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