mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
Revert "fix(TreeSelect): should not render empty nav (#4663)"
This reverts commit a18a9c5701
.
This commit is contained in:
@@ -56,9 +56,7 @@ function TreeSelect(
|
|||||||
: activeId === id;
|
: activeId === id;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Navs = items
|
const Navs = items.map(item => (
|
||||||
.filter(item => item.text)
|
|
||||||
.map(item => (
|
|
||||||
<SidebarItem
|
<SidebarItem
|
||||||
dot={item.dot}
|
dot={item.dot}
|
||||||
info={item.info}
|
info={item.info}
|
||||||
|
Reference in New Issue
Block a user