mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
fix(TreeSelect): should not render empty nav (#4663)
This commit is contained in:
@@ -56,15 +56,17 @@ function TreeSelect(
|
|||||||
: activeId === id;
|
: activeId === id;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Navs = items.map(item => (
|
const Navs = items
|
||||||
<SidebarItem
|
.filter(item => item.text)
|
||||||
dot={item.dot}
|
.map(item => (
|
||||||
info={item.info}
|
<SidebarItem
|
||||||
title={item.text}
|
dot={item.dot}
|
||||||
disabled={item.disabled}
|
info={item.info}
|
||||||
class={bem('nav-item')}
|
title={item.text}
|
||||||
/>
|
disabled={item.disabled}
|
||||||
));
|
class={bem('nav-item')}
|
||||||
|
/>
|
||||||
|
));
|
||||||
|
|
||||||
function Content() {
|
function Content() {
|
||||||
if (slots.content) {
|
if (slots.content) {
|
||||||
|
Reference in New Issue
Block a user