0.1.0 • Published 2 years ago
@moment-design/permissions-allocate v0.1.0
参数解释
Prop Name | Description | Type | Default | Require |
---|---|---|---|---|
config | 定义组件中所有权限数据 | Object | PERMISSIONS | √ |
index | 定义组件中当前选中的序号 | Number | 0 | √ |
menus | 定义组件中循环 一级权限数据 | Object | PERMISSIONS | √ |
disable | 定义组件中CheckBox是否禁用 | Boolean | false | ✗ |
checked | 定义组件是否显示左上角序号 | Array[id] | [] | ✗ |
数据解释
PERMISSIONS
Item Key | Description | Type | Default | Require |
---|---|---|---|---|
id | 权限数据的唯一值 | Number|String | 1 | √ |
icon | 权限一级中渲染图标 | Number|String | '' | ✗ |
name | 权限的名称 | String | '' | ✗ |
child | 下一级权限数据 | PERMISSIONS | {} | √ |
0.1.0
2 years ago