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