update 优化 删除无用代码
This commit is contained in:
parent
3c2409169b
commit
801700044c
@ -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'
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
export enum ThemeEnum {
|
||||
DARK = 'theme-dark',
|
||||
LIGHT = 'theme-light'
|
||||
}
|
@ -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
|
||||
};
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user