mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
Revert "fix(TreeSelect): should not render empty nav (#4663)"
This reverts commit a18a9c5701f5ea08469f4af925fcd2811e65c98a.
This commit is contained in:
parent
4fadffa50a
commit
514a27994a
@ -56,17 +56,15 @@ function TreeSelect(
|
||||
: activeId === id;
|
||||
}
|
||||
|
||||
const Navs = items
|
||||
.filter(item => item.text)
|
||||
.map(item => (
|
||||
<SidebarItem
|
||||
dot={item.dot}
|
||||
info={item.info}
|
||||
title={item.text}
|
||||
disabled={item.disabled}
|
||||
class={bem('nav-item')}
|
||||
/>
|
||||
));
|
||||
const Navs = items.map(item => (
|
||||
<SidebarItem
|
||||
dot={item.dot}
|
||||
info={item.info}
|
||||
title={item.text}
|
||||
disabled={item.disabled}
|
||||
class={bem('nav-item')}
|
||||
/>
|
||||
));
|
||||
|
||||
function Content() {
|
||||
if (slots.content) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user