style: perf code style

This commit is contained in:
vben
2020-10-14 21:22:08 +08:00
parent 7c7f35a3d7
commit 77db3d5f80
11 changed files with 35 additions and 39 deletions

View File

@@ -54,14 +54,12 @@ export default defineComponent({
<Dropdown placement="bottomLeft">
{{
default: () => (
<>
<section class={prefixCls}>
<img class={`${prefixCls}__header`} src={headerImg} />
<section class={`${prefixCls}__info`}>
<section class={`${prefixCls}__name`}>{realName}</section>
</section>
<section class={prefixCls}>
<img class={`${prefixCls}__header`} src={headerImg} />
<section class={`${prefixCls}__info`}>
<section class={`${prefixCls}__name`}>{realName}</section>
</section>
</>
</section>
),
overlay: () => (
<Menu slot="overlay" onClick={handleMenuClick}>
@@ -70,12 +68,10 @@ export default defineComponent({
{showDoc && (
<Menu.Item key="doc">
{() => (
<>
<span class="flex items-center">
<Icon icon="gg:loadbar-doc" class="mr-1" />
<span></span>
</span>
</>
<span class="flex items-center">
<Icon icon="gg:loadbar-doc" class="mr-1" />
<span></span>
</span>
)}
</Menu.Item>
)}

View File

@@ -406,6 +406,7 @@ export default defineComponent({
menuSetting: {
mode,
type,
collapsed: false,
...splitOpt,
},
};