0.0.14 • Published 4 years ago

x-man-transfer v0.0.14

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

项目中用到的穿梭框组件,用来进行一系列的测试,比如发布npm包,使用jest进行测试等

安装

  
  npm install x-man-transfer
  
  yarn add x-man-transfer

用法

  
  import SelectPart from 'x-man-transfer

  const App = () => (
    <>
      <SelectPart />
    </>
  )

API

props

参数说明类型默认值
classAndStudentList所有的列举数据array<{children:{key, id, name}, key, id, name}>
afterchange选择之后的回调函数function({children:{key, id, name}, key, id, name})-
showResult是否列举选择的结果booleantrue
title选择框的标题string选择学生
buttonSize按钮的尺寸stringsmall
defaultSelectStudent默认选择的学生array<{children:{key, id, name}, key, id, name}>

示例

demo

npm.io

0.0.13

4 years ago

0.0.14

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago