Skip to content

Commit

Permalink
style(projects): fix event style
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Dec 18, 2023
1 parent 81a312f commit e935f77
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/common/lang-switch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function changeLang(lang: App.I18n.LangType) {
</ButtonIcon>
<template #overlay>
<AMenu :selected-keys="[lang]">
<AMenuItem v-for="option in langOptions" :key="option.key" @click="() => changeLang(option.key)">
<AMenuItem v-for="option in langOptions" :key="option.key" @click="changeLang(option.key)">
{{ option.label }}
</AMenuItem>
</AMenu>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/modules/global-breadcrumb/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function handleClickMenu(key: RouteKey) {
</div>
<template v-if="item.children?.length" #overlay>
<AMenu>
<AMenuItem v-for="option in item.children" :key="option.key" @click="() => handleClickMenu(option.routeKey)">
<AMenuItem v-for="option in item.children" :key="option.key" @click="handleClickMenu(option.routeKey)">
<div class="flex-y-center gap-12px">
<component :is="option.icon" />
<span>{{ option.label }}</span>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/modules/global-menu/first-level-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function handleClickMixMenu(menu: App.Global.Menu) {
:icon="menu.icon"
:active="menu.key === activeMenuKey"
:is-mini="appStore.siderCollapse"
@click="() => handleClickMixMenu(menu)"
@click="handleClickMixMenu(menu)"
/>
</SimpleScrollbar>
<MenuToggler
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/modules/global-tab/context-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const dropdownAction: Record<App.Global.DropdownKey, () => void> = {
v-for="option in options"
:key="option.key"
:disabled="option.disabled"
@click="() => dropdownAction[option.key]"
@click="dropdownAction[option.key]"
>
<div class="flex-y-center gap-12px">
<SvgIcon :icon="option.icon" class="text-icon" />
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/modules/global-tab/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ init();
:active="tab.id === tabStore.activeTabId"
:active-color="themeStore.themeColor"
:closable="!tabStore.isTabRetain(tab.id)"
@click="() => tabStore.switchRouteByTab(tab)"
@close="() => handleCloseTab(tab)"
@click="tabStore.switchRouteByTab(tab)"
@close="handleCloseTab(tab)"
>
<template #prefix>
<SvgIcon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function handleChangeMode(mode: UnionKey.ThemeLayoutMode) {
:key="key"
class="flex border-2px rounded-6px cursor-pointer hover:border-primary"
:class="[mode === key ? 'border-primary' : 'border-transparent']"
@click="() => handleChangeMode(key)"
@click="handleChangeMode(key)"
>
<ATooltip :placement="item.placement" :title="$t(themeLayoutModeRecord[key])">
<div
Expand Down

0 comments on commit e935f77

Please sign in to comment.