【文件属性】:
文件名称:react-selection:像普通的操作系统选择
文件大小:172KB
文件格式:ZIP
更新时间:2021-05-24 03:15:46
react selection JavaScript
React选择
像普通的OS选择一样,它内置了用于检测两个矩形是否重叠的算法,因此性能非常快。
现场演示
用法
< link href =" /dist/react-selection.css " rel =" stylesheet " />
import Selection from 'react-selection'
afterSelect = ( selectedTargets ) => {
const hasSelected = selectedTargets . length
}
render ( ) {
< Selection xss=removed xss=removed>
< ul>
< li> < span xss=removed> React <
【文件预览】:
react-selection-master
----.gitignore(111B)
----.babelrc(268B)
----.eslintrc(889B)
----package.json(2KB)
----src()
--------index.jsx(6KB)
--------react-selection.styl(270B)
--------limit-range.js(2KB)
--------toggle-class.js(342B)
----webpack.config.js(2KB)
----.travis.yml(93B)
----assets()
--------screen-demo.gif(114KB)
----scripts()
--------build.js(601B)
--------postinstall.js(0B)
--------download-selenium.js(482B)
--------exec.js(679B)
--------test-ui.js(202B)
----README.md(3KB)
----demo()
--------index.js(3KB)
--------react-selection.js(180KB)
--------index.html(3KB)
----.npmignore(86B)
----test()
--------setup()
--------toggle-css.spec.js(832B)
--------react-selection.spec.js(4KB)
--------limit-range.spec.js(3KB)
----.editorconfig(113B)