mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(TreeSelect): add nav-text slot (#11602)
* feat(TreeSelect): render HTML toggling allowHtml * feat(TreeSelect): Custom name of the parent node * docs(TreeSelect): Add nav-text slot
This commit is contained in:
parent
2d72821de0
commit
572e2482d9
@ -210,9 +210,10 @@ export default {
|
|||||||
|
|
||||||
### Slots
|
### Slots
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
| ------- | -------------------- |
|
| -------- | ------------------------------ |
|
||||||
| content | Custom right content |
|
| nav-text | Custom name of the parent node |
|
||||||
|
| content | Custom right content |
|
||||||
|
|
||||||
### Data Structure of TreeSelectItem
|
### Data Structure of TreeSelectItem
|
||||||
|
|
||||||
|
@ -218,9 +218,10 @@ export default {
|
|||||||
|
|
||||||
### Slots
|
### Slots
|
||||||
|
|
||||||
| 名称 | 说明 |
|
| 名称 | 说明 |
|
||||||
| ------- | ------------------ |
|
| -------- | ------------------ |
|
||||||
| content | 自定义右侧区域内容 |
|
| nav-text | 自定义导航名称 |
|
||||||
|
| content | 自定义右侧区域内容 |
|
||||||
|
|
||||||
### TreeSelectItem 数据结构
|
### TreeSelectItem 数据结构
|
||||||
|
|
||||||
|
@ -119,6 +119,7 @@ export default defineComponent({
|
|||||||
class={[bem('nav-item'), item.className]}
|
class={[bem('nav-item'), item.className]}
|
||||||
disabled={item.disabled}
|
disabled={item.disabled}
|
||||||
onClick={onClickSidebarItem}
|
onClick={onClickSidebarItem}
|
||||||
|
v-slots={{ title: slots['nav-text']?.() }}
|
||||||
/>
|
/>
|
||||||
));
|
));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user