【文件属性】:
文件名称:react-sortable-list:可排序的列表组件
文件大小:400KB
文件格式:ZIP
更新时间:2021-05-14 13:27:46
JavaScript
React排序列表
react-sortable-list是使用react和html5拖放API的可排序列表组件。
安装
yarn add react-sortable-list
用
import SortableList from 'react-sortable-list'
import ReactDOM from 'react-dom'
import React , { Component } from 'react'
class TestComponent extends Component {
render ( ) {
let colors = [ 'Red' , 'Green' , 'Blue' , 'Yellow' , 'Black' , 'White' , 'Orange' ]
return (
< div>
< Sort
【文件预览】:
react-sortable-list-master
----.gitignore(37B)
----.babelrc(108B)
----package.json(1KB)
----src()
--------SortableList.js(2KB)
--------__tests__()
----README.md(1KB)
----example()
--------webpack.config.js(533B)
--------index.js(439B)
--------screenshot.gif(429KB)
--------index.html(304B)
----lib()
--------SortableList.js(6KB)
--------__tests__()
----yarn.lock(301KB)