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` | `[]` |
|
| items | Required datasets for the component, see Data Structure for detail. | `Array` | `[]` |
|
||||||
| main-Active-index | The index of selected parent node | `Number` | `0` |
|
| 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
|
||||||
| Event | Description | Arguments |
|
| Event | Description | Arguments |
|
||||||
|
@ -43,7 +43,7 @@ export default create({
|
|||||||
default: 0
|
default: 0
|
||||||
},
|
},
|
||||||
activeId: {
|
activeId: {
|
||||||
type: Number,
|
type: [Number, String],
|
||||||
default: 0
|
default: 0
|
||||||
},
|
},
|
||||||
maxHeight: {
|
maxHeight: {
|
||||||
|
@ -52,7 +52,7 @@ export default {
|
|||||||
|-----------|-----------|-----------|-------------|
|
|-----------|-----------|-----------|-------------|
|
||||||
| items | 分类显示所需的数据,具体数据结构可看 数据结构 | `Array` | `[]` |
|
| items | 分类显示所需的数据,具体数据结构可看 数据结构 | `Array` | `[]` |
|
||||||
| main-active-index | 左侧导航高亮的索引 | `Number` | `0` |
|
| 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