x-man-transfer
v0.0.14
Published
穿梭框组件
Readme
项目中用到的穿梭框组件,用来进行一系列的测试,比如发布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 | 是否列举选择的结果 |boolean | true|
|title | 选择框的标题 |string | 选择学生|
|buttonSize | 按钮的尺寸 |string | small |
| defaultSelectStudent| 默认选择的学生 |array<{children:{key, id, name}, key, id, name}> | |
示例
demo

