fix(menu): fix scrillbar not work

This commit is contained in:
vben
2020-12-17 00:20:29 +08:00
parent 689425e429
commit de25557f86
11 changed files with 204 additions and 157 deletions

View File

@@ -90,9 +90,10 @@
});
const getMenuClass = computed(() => {
const align = props.isHorizontal && unref(getSplit) ? 'start' : unref(getTopMenuAlign);
return [
prefixCls,
`justify-${unref(getTopMenuAlign)}`,
`justify-${align}`,
{
[`${prefixCls}--hide-title`]: !unref(showTitle),
[`${prefixCls}--collapsed-show-title`]: props.collapsedShowTitle,