mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-22 22:49:15 +08:00
[Improvement] TreeSelect: support string type id (#1126)
This commit is contained in:
parent
d2ef10991c
commit
cf88dda233
@ -51,7 +51,7 @@ export default {
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| items | Required datasets for the component, see Data Structure for detail. | `Array` | `[]` |
|
||||
| main-Active-index | The index of selected parent node | `Number` | `0` |
|
||||
| active-id | Id of selected item | `Number` | `0` |
|
||||
| active-id | Id of selected item | `String | Number` | `0` |
|
||||
|
||||
#### Event
|
||||
| Event | Description | Arguments |
|
||||
|
@ -43,7 +43,7 @@ export default create({
|
||||
default: 0
|
||||
},
|
||||
activeId: {
|
||||
type: Number,
|
||||
type: [Number, String],
|
||||
default: 0
|
||||
},
|
||||
maxHeight: {
|
||||
|
@ -52,7 +52,7 @@ export default {
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| items | 分类显示所需的数据,具体数据结构可看 数据结构 | `Array` | `[]` |
|
||||
| main-active-index | 左侧导航高亮的索引 | `Number` | `0` |
|
||||
| active-id | 右侧选择项,高亮的数据id | `Number` | `0` |
|
||||
| active-id | 右侧选择项,高亮的数据id | `String | Number` | `0` |
|
||||
|
||||
#### 事件
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user