mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(TreeSelect): should not render empty nav (#4663)
This commit is contained in:
parent
d4157e656a
commit
a18a9c5701
@ -56,7 +56,9 @@ function TreeSelect(
|
|||||||
: activeId === id;
|
: activeId === id;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Navs = items.map(item => (
|
const Navs = items
|
||||||
|
.filter(item => item.text)
|
||||||
|
.map(item => (
|
||||||
<SidebarItem
|
<SidebarItem
|
||||||
dot={item.dot}
|
dot={item.dot}
|
||||||
info={item.info}
|
info={item.info}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user