x-man-transfer

0.0.14 • Public • Published

穿梭框组件

项目中用到的穿梭框组件,用来进行一系列的测试,比如发布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

Readme

Keywords

Package Sidebar

Install

npm i x-man-transfer

Weekly Downloads

8

Version

0.0.14

License

MIT

Unpacked Size

42.7 kB

Total Files

5

Last publish

Collaborators

  • xue.bolin