mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-04 13:42:27 +08:00
optimize ts type
This commit is contained in:
5
types/config.d.ts
vendored
5
types/config.d.ts
vendored
@@ -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
types/utils.d.ts
vendored
Normal file
5
types/utils.d.ts
vendored
Normal 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]>;
|
||||
};
|
||||
Reference in New Issue
Block a user