group-single-select
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

分组弹层

API属性如下:

成员 说明 类型 默认值
value 弹层的选中值 string -
size 分组弹层的尺寸 small(170px) large(340px) auto(与父级自适应) 若与非模态弹层一块使用, 则使用弹层的size属性即可 string -
font 字体大小 small(12px) large(14px) Function -
options 选项值 object{label:“分类一”,children:[{label: ‘员工1’,value: ‘empolyee’}]} -
onChange 弹层的改变选项时的回调函数 Function -

代码示例

<GroupSingleSelect
value={value} 
options={{
  label: "分类一",
  children:[{label: "员工1", value: "staff1"}]
}} 
font="small" 
onChange={this.onChange} 
/>

Readme

Keywords

none

Package Sidebar

Install

npm i group-single-select

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

32.1 kB

Total Files

24

Last publish

Collaborators

  • beisencorp