@ -1,6 +1,6 @@
<template>
<Dropdown
placement="bottomCenter"
placement="bottom"
:trigger="['click']"
:dropMenuList="localeList"
:selectedKeys="selectedKeys"
@ -98,7 +98,7 @@
opt.width = '100%';
}
const detailCls = `${prefixCls}__detail`;
opt.wrapClassName = wrapClassName ? `${wrapClassName} ${detailCls}` : detailCls;
opt.class = wrapClassName ? `${wrapClassName} ${detailCls}` : detailCls;
if (!getContainer) {
// TODO type error?
@ -134,6 +134,7 @@ export interface DrawerProps extends DrawerFooterProps {
* @type string
*/
wrapClassName?: string;
class?: string;
/**
* Style of wrapper element which **contains mask** compare to `drawerStyle`
@ -406,7 +406,7 @@ export default defineComponent({
{...attrs}
title={t('layout.setting.drawerTitle')}
width={330}
wrapClassName="setting-drawer"
class="setting-drawer"
>
{unref(getShowDarkModeToggle) && <Divider>{() => t('layout.setting.darkMode')}</Divider>}
{unref(getShowDarkModeToggle) && <AppDarkModeToggle class="mx-auto" />}
@ -18,7 +18,7 @@
</TabPane>
</template>
<template v-if="getShowRedo || getShowQuick" #tabBarExtraContent>
<template v-if="getShowRedo || getShowQuick" #rightExtra>
<TabRedo v-if="getShowRedo"/>
<TabContent v-if="getShowQuick" isExtra :tabItem="$route"/>
<FoldButton v-if="getShowFold"/>
@ -45,7 +45,6 @@ async function createI18nOptions(): Promise<I18nOptions> {
/** 使用全局设置 i18n 实例 */
export async function setupI18n(app: App) {
const options = await createI18nOptions();
console.log(options)
i18n = createI18n(options) as I18n;
app.use(i18n);
@ -85,7 +85,7 @@
<ADropdown :trigger="['click']"
:getPopupContainer="getPopupContainer"
<ColumnHeightOutlined/>
<template #overlay>