update 优化 删除无用代码

This commit is contained in:
疯狂的狮子Li 2025-01-20 10:08:58 +08:00
parent 3c2409169b
commit 801700044c
3 changed files with 0 additions and 51 deletions

View File

@ -1,16 +0,0 @@
export enum SettingTypeEnum {
TITLE = 'title',
THEME = 'theme',
SIDE_THEME = 'sideTheme',
SHOW_SETTINGS = 'showSettings',
TOP_NAV = 'topNav',
TAGS_VIEW = 'tagsView',
FIXED_HEADER = 'fixedHeader',
SIDEBAR_LOGO = 'sidebarLogo',
DYNAMIC_TITLE = 'dynamicTitle',
ANIMATION_ENABLE = 'animationEnable',
LAYOUT = 'layout',
DARK = 'dark',
LAYOUT_SETTING = 'layout-setting'
}

View File

@ -1,4 +0,0 @@
export enum ThemeEnum {
DARK = 'theme-dark',
LIGHT = 'theme-light'
}

View File

@ -1,31 +0,0 @@
import { Ref } from 'vue';
interface Options {
title?: string;
}
interface Return {
title: Ref<string>;
visible: Ref<boolean>;
openDialog: () => void;
closeDialog: () => void;
}
export default (ops?: Options): Return => {
const visible = ref(false);
const title = ref(ops.title || '');
const openDialog = () => {
visible.value = true;
};
const closeDialog = () => {
visible.value = false;
};
return {
title,
visible,
openDialog,
closeDialog
};
};