feat(TreeSelect): add badge option, mark info option as deprecated

This commit is contained in:
chenjiahan
2020-03-17 21:09:22 +08:00
parent 214b13b8ff
commit 0cc7a30528
5 changed files with 19 additions and 18 deletions
+4 -4
View File
@@ -81,7 +81,7 @@ export default {
}
```
### Show Info
### Show Badge
```html
<van-tree-select
@@ -98,7 +98,7 @@ export default {
activeIndex: 0,
items: [
{ text: 'Group 1', children: [], dot: true },
{ text: 'Group 2', children: [], info: 5 }
{ text: 'Group 2', children: [], badge: 5 }
]
}
}
@@ -141,8 +141,8 @@ In every tree object, `text` property defines `id` stands for the unique key whi
{
// name of the parent node
text: 'Group 1',
// info
info: 3,
// badge
badge: 3,
// Whether to show red dot
dot: true,
// ClassName of parent node