0.0.14 • Published 5 years ago

x-man-transfer v0.0.14

Weekly downloads
3
License
MIT
Repository
github
Last release
5 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

5 years ago

0.0.14

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.5

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago