optimize ts type

This commit is contained in:
xiaoma
2021-09-24 09:08:23 +08:00
parent 7929a74d20
commit ef4912636e
13 changed files with 490 additions and 373 deletions
+5
View File
@@ -17,6 +17,10 @@ export interface ProjectSettingState {
permissionMode: string;
}
export interface IbodySetting {
fixed: boolean;
}
export interface IheaderSetting {
bgColor: string;
fixed: boolean;
@@ -28,6 +32,7 @@ export interface ImenuSetting {
menuWidth: number;
fixed: boolean;
mixMenu: boolean;
collapsed: boolean;
}
export interface IcrumbsSetting {
+5
View File
@@ -0,0 +1,5 @@
import type { ComputedRef, Ref } from 'vue';
export type DynamicProps<T> = {
[P in keyof T]: Ref<T[P]> | T[P] | ComputedRef<T[P]>;
};