fix: fix routing switch, tab is not activated

This commit is contained in:
nebv
2020-10-13 01:39:56 +08:00
parent 177010bf8b
commit beb4c3a37f
8 changed files with 42 additions and 26 deletions

View File

@@ -239,14 +239,13 @@ export default defineComponent({
) : (
<section class={`basic-menu-wrap`}>
{getSlot(slots, 'header')}
{props.search && (
<SearchInput
theme={props.theme}
onChange={handleInputChange}
onClick={handleInputClick}
collapsed={getCollapsedState}
/>
)}
<SearchInput
class={!props.search ? 'hidden' : ''}
theme={props.theme}
onChange={handleInputChange}
onClick={handleInputClick}
collapsed={getCollapsedState}
/>
<section style={unref(getMenuWrapStyle)}>
<ScrollContainer>{() => renderMenu()}</ScrollContainer>
</section>