@dt-frames/ui 2.0.15 → 2.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/imgs/tree/forder-open.svg +1 -0
- package/es/assets/imgs/tree/forder.svg +1 -0
- package/es/assets/locales/zh.ts +1 -1
- package/es/components/curd/index.js +28 -8
- package/es/components/curd/src/components/Curd.d.ts +10 -0
- package/es/components/curd/src/hooks/useCurd.d.ts +2 -4
- package/es/components/curd/src/props.d.ts +5 -1
- package/es/components/drawer/index.js +25 -24
- package/es/components/form/index.js +50 -37
- package/es/components/form/index.less +16 -0
- package/es/components/form/src/props.d.ts +1 -1
- package/es/components/modal/index.js +8 -143
- package/es/components/modal/index.less +23 -0
- package/es/components/modal/src/index.d.ts +2 -84
- package/es/components/table/index.js +2 -2
- package/es/components/tree/index.js +197 -93
- package/es/components/tree/index.less +75 -13
- package/es/components/tree/src/basicProps.d.ts +46 -7
- package/es/components/tree/src/components/TreeHeader.d.ts +2 -2
- package/es/components/tree/src/hooks/useTree.d.ts +3 -2
- package/es/components/tree/src/index.d.ts +120 -29
- package/es/components/upload/index.js +28 -20
- package/es/components/upload/index.less +10 -1
- package/es/components/upload/src/index.d.ts +1 -1
- package/es/components/upload/src/utils/upload.d.ts +1 -1
- package/es/theme/index.js +307 -307
- package/es/theme/index.less +1 -0
- package/es/theme/src/components/header/components/size.d.ts +5 -5
- package/es/theme/src/components/header/index.d.ts +5 -5
- package/es/theme/src/components/header/multiple-header.d.ts +5 -5
- package/es/theme/src/index.d.ts +10 -10
- package/manualContentPath.js +10 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/es/packages/ui/src/assets/locales/en.d.ts +0 -103
- package/es/packages/ui/src/assets/locales/index.d.ts +0 -2
- package/es/packages/ui/src/assets/locales/zh.d.ts +0 -104
- package/es/packages/ui/src/components/form/index.d.ts +0 -7
- package/es/packages/ui/src/components/form/src/components/FormButtons.d.ts +0 -105
- package/es/packages/ui/src/components/form/src/components/FormItem.d.ts +0 -159
- package/es/packages/ui/src/components/form/src/components/componentMap.d.ts +0 -4
- package/es/packages/ui/src/components/form/src/components/formIcon.d.ts +0 -1223
- package/es/packages/ui/src/components/form/src/components/formInputUseDialog.d.ts +0 -911
- package/es/packages/ui/src/components/form/src/components/index.d.ts +0 -4
- package/es/packages/ui/src/components/form/src/components/radioButton.d.ts +0 -34
- package/es/packages/ui/src/components/form/src/enums/index.d.ts +0 -7
- package/es/packages/ui/src/components/form/src/hooks/helper.d.ts +0 -14
- package/es/packages/ui/src/components/form/src/hooks/useForm.d.ts +0 -6
- package/es/packages/ui/src/components/form/src/hooks/useFormActions.d.ts +0 -12
- package/es/packages/ui/src/components/form/src/hooks/useFormEvent.d.ts +0 -25
- package/es/packages/ui/src/components/form/src/hooks/useFormValue.d.ts +0 -3
- package/es/packages/ui/src/components/form/src/hooks/useFormValues.d.ts +0 -11
- package/es/packages/ui/src/components/form/src/hooks/useLabelWidth.d.ts +0 -6
- package/es/packages/ui/src/components/form/src/props.d.ts +0 -127
- package/es/packages/ui/src/components/form/src/types/actions.type.d.ts +0 -15
- package/es/packages/ui/src/components/form/src/types/form.type.d.ts +0 -79
- package/es/packages/ui/src/components/form/src/types/items.type.d.ts +0 -409
- package/es/packages/ui/src/components/iframe/index.d.ts +0 -2
- package/es/packages/ui/src/components/modal/index.d.ts +0 -4
- package/es/packages/ui/src/components/modal/src/hooks/useModal.d.ts +0 -5
- package/es/packages/ui/src/components/modal/src/props.d.ts +0 -101
- package/es/packages/ui/src/components/modal/src/types/modal.type.d.ts +0 -17
- package/es/packages/ui/src/components/upload/index.d.ts +0 -4
- package/es/packages/ui/src/components/upload/src/basicProps.d.ts +0 -87
- package/es/packages/ui/src/components/upload/src/components/PdfView.d.ts +0 -9
- package/es/packages/ui/src/components/upload/src/components/WordView.d.ts +0 -6
- package/es/packages/ui/src/components/upload/src/hooks/useFile.d.ts +0 -16
- package/es/packages/ui/src/components/upload/src/index.d.ts +0 -242
- package/es/packages/ui/src/components/upload/src/type/file.d.ts +0 -10
- package/es/packages/ui/src/components/upload/src/utils/upload.d.ts +0 -2
- package/es/packages/ui/src/global.d.ts +0 -7
- package/es/packages/ui/src/theme/index.d.ts +0 -12
- package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +0 -4
- package/es/packages/ui/src/theme/src/enums/index.d.ts +0 -1
- package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +0 -34
- package/es/packages/ui/src/theme/src/hooks/index.d.ts +0 -6
- package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +0 -2
- package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +0 -25
- package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +0 -29
- package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +0 -8
- package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +0 -7
- package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +0 -9
- package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +0 -2
- package/es/packages/ui/src/theme/src/stores/index.d.ts +0 -3
- package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +0 -25
- package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +0 -19
- package/es/packages/ui/src/theme/src/types/index.d.ts +0 -3
- package/es/packages/ui/src/theme/src/types/menu.type.d.ts +0 -15
- package/es/packages/ui/src/theme/src/types/theme.type.d.ts +0 -62
- package/es/packages/ui/src/utils/withInstall.d.ts +0 -4
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
import { UploadRequestOption } from 'ant-design-vue/es/vc-upload/interface';
|
|
2
|
-
import type { UploadFile } from './type/file';
|
|
3
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
-
uploadUrl: {
|
|
5
|
-
type: StringConstructor;
|
|
6
|
-
};
|
|
7
|
-
downloadUrl: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
};
|
|
10
|
-
buttonText: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
preIcon: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
data: {
|
|
19
|
-
type: import("vue").PropType<object | ((file: UploadFile) => object)>;
|
|
20
|
-
default: {};
|
|
21
|
-
};
|
|
22
|
-
filename: {
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
default: string;
|
|
25
|
-
};
|
|
26
|
-
accept: {
|
|
27
|
-
type: import("vue").PropType<string[]>;
|
|
28
|
-
default: () => any[];
|
|
29
|
-
};
|
|
30
|
-
beforeUpload: {
|
|
31
|
-
type: import("vue").PropType<(<T = any>(file: UploadFile, fileList: UploadFile[]) => boolean | Promise<T>)>;
|
|
32
|
-
};
|
|
33
|
-
customRequest: {
|
|
34
|
-
type: import("vue").PropType<(params: UploadRequestOption<any>) => void>;
|
|
35
|
-
};
|
|
36
|
-
disabled: {
|
|
37
|
-
type: import("vue").PropType<Boolean | import("vue").Ref<Boolean> | import("vue").ComputedRef<Boolean>>;
|
|
38
|
-
default: boolean;
|
|
39
|
-
};
|
|
40
|
-
defaultFiles: {
|
|
41
|
-
type: import("vue").PropType<UploadFile[]>;
|
|
42
|
-
default: () => any[];
|
|
43
|
-
};
|
|
44
|
-
headers: {
|
|
45
|
-
type: ObjectConstructor;
|
|
46
|
-
};
|
|
47
|
-
listType: {
|
|
48
|
-
type: import("vue").PropType<"text" | "picture-card">;
|
|
49
|
-
default: string;
|
|
50
|
-
};
|
|
51
|
-
maxCount: {
|
|
52
|
-
type: NumberConstructor;
|
|
53
|
-
};
|
|
54
|
-
maxSize: {
|
|
55
|
-
type: NumberConstructor;
|
|
56
|
-
default: number;
|
|
57
|
-
};
|
|
58
|
-
helpText: {
|
|
59
|
-
type: StringConstructor;
|
|
60
|
-
default: string;
|
|
61
|
-
};
|
|
62
|
-
multiple: {
|
|
63
|
-
type: BooleanConstructor;
|
|
64
|
-
default: boolean;
|
|
65
|
-
};
|
|
66
|
-
onChange: {
|
|
67
|
-
type: import("vue").PropType<(ids: string[] | number[], files: UploadFile[]) => void>;
|
|
68
|
-
};
|
|
69
|
-
extraParams: {
|
|
70
|
-
type: import("vue").PropType<import("@dt-frames/core").Recordable<any>>;
|
|
71
|
-
default: () => {};
|
|
72
|
-
};
|
|
73
|
-
showView: {
|
|
74
|
-
type: BooleanConstructor;
|
|
75
|
-
default: boolean;
|
|
76
|
-
};
|
|
77
|
-
showDownload: {
|
|
78
|
-
type: BooleanConstructor;
|
|
79
|
-
default: boolean;
|
|
80
|
-
};
|
|
81
|
-
showDelete: {
|
|
82
|
-
type: BooleanConstructor;
|
|
83
|
-
default: boolean;
|
|
84
|
-
};
|
|
85
|
-
}, {
|
|
86
|
-
registerPdf: import("../../modal/src/types/modal.type").RegisterFn;
|
|
87
|
-
openPdfModal: <T_1 = any, U = any>(params?: T_1, afterClose?: (res: U) => void) => void;
|
|
88
|
-
registerDocx: import("../../modal/src/types/modal.type").RegisterFn;
|
|
89
|
-
openDocxModal: <T_1 = any, U = any>(params?: T_1, afterClose?: (res: U) => void) => void;
|
|
90
|
-
message: import("ant-design-vue/es/message").MessageApi;
|
|
91
|
-
props: any;
|
|
92
|
-
emits: (event: "change", ...args: any[]) => void;
|
|
93
|
-
fileListRef: import("vue").Ref<UploadFile[]>;
|
|
94
|
-
acceptRef: import("vue").Ref<string[]>;
|
|
95
|
-
helpTextRef: import("vue").Ref<string>;
|
|
96
|
-
maxCountRef: import("vue").Ref<number>;
|
|
97
|
-
maxSizeRef: import("vue").Ref<number>;
|
|
98
|
-
getStringAccept: import("vue").ComputedRef<string>;
|
|
99
|
-
getHelpText: import("vue").ComputedRef<string>;
|
|
100
|
-
fileList: import("vue").Ref<any[]>;
|
|
101
|
-
beforeUpload: (file: File) => void;
|
|
102
|
-
btns: ({
|
|
103
|
-
class: string;
|
|
104
|
-
show: (file: UploadFile) => boolean;
|
|
105
|
-
click: (file: UploadFile) => Promise<void>;
|
|
106
|
-
} | {
|
|
107
|
-
class: string;
|
|
108
|
-
show: () => boolean;
|
|
109
|
-
click: (file: UploadFile) => void;
|
|
110
|
-
})[];
|
|
111
|
-
getBind: import("vue").ComputedRef<any>;
|
|
112
|
-
imgVisable: import("vue").Ref<boolean>;
|
|
113
|
-
imgSrcRef: import("vue").Ref<any>;
|
|
114
|
-
bindImg: import("vue").ComputedRef<{
|
|
115
|
-
preview: {
|
|
116
|
-
width: number;
|
|
117
|
-
visible: boolean;
|
|
118
|
-
onVisibleChange: (v: any) => any;
|
|
119
|
-
};
|
|
120
|
-
src: any;
|
|
121
|
-
}>;
|
|
122
|
-
handlePreview: (file: any) => Promise<void>;
|
|
123
|
-
change: () => void;
|
|
124
|
-
uploadFile: ({ file, onSuccess, onError, onProgress }: UploadRequestOption) => Promise<void>;
|
|
125
|
-
fileView: (file: UploadFile) => Promise<void>;
|
|
126
|
-
download: (file: UploadFile) => void;
|
|
127
|
-
readonly getFileThumb: (fileType: string) => "/imgs/fu_ppt.gif" | "/imgs/fu_doc.gif" | "/imgs/fu_pdf.gif" | "/imgs/fu_bmp.gif" | "/imgs/fu_exl.gif" | "/imgs/fu_txt.gif" | "/imgs/fu_rar.gif" | "/imgs/fu_blank.gif";
|
|
128
|
-
PdfView: import("vue").DefineComponent<{}, {
|
|
129
|
-
exeReduce: import("vue").Ref<number>;
|
|
130
|
-
pdfUrlRef: import("vue").Ref<any>;
|
|
131
|
-
register: import("../../modal/src/types/modal.type").RegisterFn;
|
|
132
|
-
toggleFullscreen: (isFullscreen: boolean) => void;
|
|
133
|
-
readonly DtModal: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
134
|
-
readonly DtIframe: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
135
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
136
|
-
DocxView: import("vue").DefineComponent<{}, {
|
|
137
|
-
ID: string;
|
|
138
|
-
register: import("../../modal/src/types/modal.type").RegisterFn;
|
|
139
|
-
readonly DtModal: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
140
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
141
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
142
|
-
uploadUrl: {
|
|
143
|
-
type: StringConstructor;
|
|
144
|
-
};
|
|
145
|
-
downloadUrl: {
|
|
146
|
-
type: StringConstructor;
|
|
147
|
-
};
|
|
148
|
-
buttonText: {
|
|
149
|
-
type: StringConstructor;
|
|
150
|
-
default: string;
|
|
151
|
-
};
|
|
152
|
-
preIcon: {
|
|
153
|
-
type: StringConstructor;
|
|
154
|
-
default: string;
|
|
155
|
-
};
|
|
156
|
-
data: {
|
|
157
|
-
type: import("vue").PropType<object | ((file: UploadFile) => object)>;
|
|
158
|
-
default: {};
|
|
159
|
-
};
|
|
160
|
-
filename: {
|
|
161
|
-
type: StringConstructor;
|
|
162
|
-
default: string;
|
|
163
|
-
};
|
|
164
|
-
accept: {
|
|
165
|
-
type: import("vue").PropType<string[]>;
|
|
166
|
-
default: () => any[];
|
|
167
|
-
};
|
|
168
|
-
beforeUpload: {
|
|
169
|
-
type: import("vue").PropType<(<T = any>(file: UploadFile, fileList: UploadFile[]) => boolean | Promise<T>)>;
|
|
170
|
-
};
|
|
171
|
-
customRequest: {
|
|
172
|
-
type: import("vue").PropType<(params: UploadRequestOption<any>) => void>;
|
|
173
|
-
};
|
|
174
|
-
disabled: {
|
|
175
|
-
type: import("vue").PropType<Boolean | import("vue").Ref<Boolean> | import("vue").ComputedRef<Boolean>>;
|
|
176
|
-
default: boolean;
|
|
177
|
-
};
|
|
178
|
-
defaultFiles: {
|
|
179
|
-
type: import("vue").PropType<UploadFile[]>;
|
|
180
|
-
default: () => any[];
|
|
181
|
-
};
|
|
182
|
-
headers: {
|
|
183
|
-
type: ObjectConstructor;
|
|
184
|
-
};
|
|
185
|
-
listType: {
|
|
186
|
-
type: import("vue").PropType<"text" | "picture-card">;
|
|
187
|
-
default: string;
|
|
188
|
-
};
|
|
189
|
-
maxCount: {
|
|
190
|
-
type: NumberConstructor;
|
|
191
|
-
};
|
|
192
|
-
maxSize: {
|
|
193
|
-
type: NumberConstructor;
|
|
194
|
-
default: number;
|
|
195
|
-
};
|
|
196
|
-
helpText: {
|
|
197
|
-
type: StringConstructor;
|
|
198
|
-
default: string;
|
|
199
|
-
};
|
|
200
|
-
multiple: {
|
|
201
|
-
type: BooleanConstructor;
|
|
202
|
-
default: boolean;
|
|
203
|
-
};
|
|
204
|
-
onChange: {
|
|
205
|
-
type: import("vue").PropType<(ids: string[] | number[], files: UploadFile[]) => void>;
|
|
206
|
-
};
|
|
207
|
-
extraParams: {
|
|
208
|
-
type: import("vue").PropType<import("@dt-frames/core").Recordable<any>>;
|
|
209
|
-
default: () => {};
|
|
210
|
-
};
|
|
211
|
-
showView: {
|
|
212
|
-
type: BooleanConstructor;
|
|
213
|
-
default: boolean;
|
|
214
|
-
};
|
|
215
|
-
showDownload: {
|
|
216
|
-
type: BooleanConstructor;
|
|
217
|
-
default: boolean;
|
|
218
|
-
};
|
|
219
|
-
showDelete: {
|
|
220
|
-
type: BooleanConstructor;
|
|
221
|
-
default: boolean;
|
|
222
|
-
};
|
|
223
|
-
}>> & {
|
|
224
|
-
onChange?: (...args: any[]) => any;
|
|
225
|
-
}, {
|
|
226
|
-
data: object | ((file: UploadFile) => object);
|
|
227
|
-
disabled: Boolean | import("vue").Ref<Boolean> | import("vue").ComputedRef<Boolean>;
|
|
228
|
-
multiple: boolean;
|
|
229
|
-
buttonText: string;
|
|
230
|
-
preIcon: string;
|
|
231
|
-
filename: string;
|
|
232
|
-
accept: string[];
|
|
233
|
-
defaultFiles: UploadFile[];
|
|
234
|
-
listType: "text" | "picture-card";
|
|
235
|
-
maxSize: number;
|
|
236
|
-
helpText: string;
|
|
237
|
-
extraParams: {};
|
|
238
|
-
showView: boolean;
|
|
239
|
-
showDownload: boolean;
|
|
240
|
-
showDelete: boolean;
|
|
241
|
-
}>;
|
|
242
|
-
export default _sfc_main;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const getFileType: (type: string) => any;
|
|
2
|
-
export declare const getFileThumb: (fileType: string) => "/imgs/fu_ppt.gif" | "/imgs/fu_doc.gif" | "/imgs/fu_pdf.gif" | "/imgs/fu_bmp.gif" | "/imgs/fu_exl.gif" | "/imgs/fu_txt.gif" | "/imgs/fu_rar.gif" | "/imgs/fu_blank.gif";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { uiLang } from '../assets/locales';
|
|
2
|
-
import { useThemeStore } from './src/stores/theme.store';
|
|
3
|
-
import { defaultThemeConf } from './src/setting/theme.setting';
|
|
4
|
-
import { useRouteReuseStore } from './src/stores/routeReuse.store';
|
|
5
|
-
import type { ThemeOptions, HeadOptions, MenuOptions, FooterOptions, RouteReuseOptions } from './src/types';
|
|
6
|
-
import { Component } from 'vue';
|
|
7
|
-
import { SFCWithInstall } from '../utils/withInstall';
|
|
8
|
-
import { UiSize, ContentMode, MenuMode, MenuType } from './src/enums/theme.enum';
|
|
9
|
-
import { useMenu, useHeader, useMultipleTab, useTheme } from './src/hooks';
|
|
10
|
-
declare const DtTheme: SFCWithInstall<Component>;
|
|
11
|
-
export { UiSize, ContentMode, MenuMode, MenuType, uiLang, DtTheme, useMenu, useHeader, useMultipleTab, useTheme, useThemeStore, useRouteReuseStore, defaultThemeConf };
|
|
12
|
-
export type { ThemeOptions, HeadOptions, MenuOptions, FooterOptions, RouteReuseOptions };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './theme.enum';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare enum Theme {
|
|
2
|
-
DARK = "dark",
|
|
3
|
-
LIGHT = "light"
|
|
4
|
-
}
|
|
5
|
-
export declare enum MenuTriggerPos {
|
|
6
|
-
NONE = "none",
|
|
7
|
-
FOOTER = "footer",
|
|
8
|
-
HEADER = "header"
|
|
9
|
-
}
|
|
10
|
-
export declare enum MenuType {
|
|
11
|
-
SIDE = "sidebar",
|
|
12
|
-
TOP_MENU = "top-menu",
|
|
13
|
-
MIX = "mix",
|
|
14
|
-
MIX_SIDEBAR = "mix-sidebar"
|
|
15
|
-
}
|
|
16
|
-
export declare enum MenuMode {
|
|
17
|
-
INLINE = "inline",
|
|
18
|
-
HORIZONTAL = "horizontal",
|
|
19
|
-
VERTICAL = "vertical"
|
|
20
|
-
}
|
|
21
|
-
export declare enum ContentMode {
|
|
22
|
-
FULL = "full",
|
|
23
|
-
FIXED = "fixed"
|
|
24
|
-
}
|
|
25
|
-
export declare enum MenuSplitTye {
|
|
26
|
-
NONE = 0,
|
|
27
|
-
TOP = 1,
|
|
28
|
-
LEFT = 2
|
|
29
|
-
}
|
|
30
|
-
export declare enum UiSize {
|
|
31
|
-
LARGE = "large",
|
|
32
|
-
MIDDLE = "middle",
|
|
33
|
-
SMALL = "small"
|
|
34
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { UiSize } from "../enums";
|
|
2
|
-
export declare function useHeader(): {
|
|
3
|
-
getHeaderTheme: import("vue").ComputedRef<import("../enums").Theme>;
|
|
4
|
-
getFixed: import("vue").ComputedRef<boolean>;
|
|
5
|
-
getShowSearch: import("vue").ComputedRef<boolean>;
|
|
6
|
-
getShowHeaderLogo: import("vue").ComputedRef<boolean>;
|
|
7
|
-
getShowHeaderTrigger: import("vue").ComputedRef<boolean>;
|
|
8
|
-
getShowBread: import("vue").ComputedRef<boolean>;
|
|
9
|
-
getShowTopMenu: import("vue").ComputedRef<boolean>;
|
|
10
|
-
getShowFullScreen: import("vue").ComputedRef<boolean>;
|
|
11
|
-
getShowLocale: import("vue").ComputedRef<boolean>;
|
|
12
|
-
getShowSettingTheme: import("vue").ComputedRef<boolean>;
|
|
13
|
-
getShowNotice: import("vue").ComputedRef<boolean>;
|
|
14
|
-
getShowFullHeaderRef: import("vue").ComputedRef<boolean>;
|
|
15
|
-
getHeaderHeight: import("vue").ComputedRef<number>;
|
|
16
|
-
getTabsHeight: import("vue").ComputedRef<number>;
|
|
17
|
-
getShowInsetHeaderRef: import("vue").ComputedRef<boolean>;
|
|
18
|
-
getShowBackToTop: import("vue").ComputedRef<boolean>;
|
|
19
|
-
getIsZH: import("vue").ComputedRef<boolean>;
|
|
20
|
-
getUiSize: import("vue").ComputedRef<UiSize>;
|
|
21
|
-
getShowLogo: import("vue").ComputedRef<boolean>;
|
|
22
|
-
getShowLoginOut: import("vue").ComputedRef<boolean>;
|
|
23
|
-
getShowUiSize: import("vue").ComputedRef<boolean>;
|
|
24
|
-
loginOutClick: () => {};
|
|
25
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Recordable } from "@dt-frames/core";
|
|
2
|
-
import { MenuMode, MenuType } from "../enums";
|
|
3
|
-
export declare function useMenu(): {
|
|
4
|
-
getCollapsedShowTitle: import("vue").ComputedRef<boolean>;
|
|
5
|
-
getIsSidebarType: import("vue").ComputedRef<boolean>;
|
|
6
|
-
getMenuFixed: import("vue").ComputedRef<boolean>;
|
|
7
|
-
getShowMenu: import("vue").ComputedRef<boolean>;
|
|
8
|
-
getShowSidebar: import("vue").ComputedRef<boolean>;
|
|
9
|
-
getMenuHidden: import("vue").ComputedRef<boolean>;
|
|
10
|
-
getMenuTheme: import("vue").ComputedRef<import("../enums").Theme>;
|
|
11
|
-
getTrigger: import("vue").ComputedRef<boolean>;
|
|
12
|
-
getMenuWidth: import("vue").ComputedRef<number>;
|
|
13
|
-
getLogoWidth: import("vue").ComputedRef<string | number>;
|
|
14
|
-
getMenuType: import("vue").ComputedRef<MenuType>;
|
|
15
|
-
getIsTopMenu: import("vue").ComputedRef<boolean>;
|
|
16
|
-
getMenuMode: import("vue").ComputedRef<MenuMode>;
|
|
17
|
-
getSplit: import("vue").ComputedRef<boolean>;
|
|
18
|
-
getCollapsed: import("vue").ComputedRef<boolean>;
|
|
19
|
-
getIsHorizontal: import("vue").ComputedRef<boolean>;
|
|
20
|
-
getMiniWidthNumber: import("vue").ComputedRef<48 | 80>;
|
|
21
|
-
getRealWidth: import("vue").ComputedRef<number>;
|
|
22
|
-
getCalcContentWidth: import("vue").ComputedRef<string>;
|
|
23
|
-
getIsMixMode: import("vue").ComputedRef<boolean>;
|
|
24
|
-
getIsMixSidebar: import("vue").ComputedRef<boolean>;
|
|
25
|
-
getCanDrag: import("vue").ComputedRef<boolean>;
|
|
26
|
-
getMixSideTrigger: import("vue").ComputedRef<"hover" | "click">;
|
|
27
|
-
toggleCollapsed: () => void;
|
|
28
|
-
setThemeStore: (conf?: Recordable) => void;
|
|
29
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare function useMultipleTab(): {
|
|
2
|
-
getShowMultipleTab: import("vue").ComputedRef<boolean>;
|
|
3
|
-
getShowQuick: import("vue").ComputedRef<boolean>;
|
|
4
|
-
getMultipleTabPosIsTop: import("vue").ComputedRef<boolean>;
|
|
5
|
-
getShowRedo: import("vue").ComputedRef<boolean>;
|
|
6
|
-
getCanCache: import("vue").ComputedRef<boolean>;
|
|
7
|
-
getCanDrag: import("vue").ComputedRef<boolean>;
|
|
8
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Menus, MenuState } from "../types";
|
|
2
|
-
export declare function useOpenKeys(menuState: MenuState, menus: Menus[], type: string): {
|
|
3
|
-
getOpenKeys: import("vue").ComputedRef<string[]>;
|
|
4
|
-
setOpenKeys: (path: string) => Promise<void>;
|
|
5
|
-
resetKeys: () => void;
|
|
6
|
-
handleOpenChange: (openKeys: string[]) => void;
|
|
7
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FooterOptions } from "../types";
|
|
2
|
-
export declare function useTheme(): {
|
|
3
|
-
getLayoutContentMode: import("vue").ComputedRef<import("../enums").ContentMode>;
|
|
4
|
-
getPageLoading: boolean;
|
|
5
|
-
getFooter: import("vue").ComputedRef<FooterOptions>;
|
|
6
|
-
getShowFooter: import("vue").ComputedRef<any>;
|
|
7
|
-
getContentMode: import("vue").ComputedRef<import("../enums").ContentMode>;
|
|
8
|
-
getOpenPageLoading: import("vue").ComputedRef<boolean>;
|
|
9
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Ref } from "vue";
|
|
2
|
-
import { RouteLocationNormalized, RouteLocationNormalizedLoaded, Router } from "vue-router";
|
|
3
|
-
export declare type RouteReuseState = {
|
|
4
|
-
cacheTabList: Set<string>;
|
|
5
|
-
tabList: RouteLocationNormalized[];
|
|
6
|
-
lastDragEndIndex: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const useRouteReuseStore: import("pinia").StoreDefinition<"route-reuse", RouteReuseState, {
|
|
9
|
-
getTabList(): RouteLocationNormalized[];
|
|
10
|
-
getCachedTabList(): string[];
|
|
11
|
-
getLastDragEndIndex(): number;
|
|
12
|
-
}, {
|
|
13
|
-
addTab(route: RouteLocationNormalized): Promise<void>;
|
|
14
|
-
closeTab(route: RouteLocationNormalized, router: Router): void;
|
|
15
|
-
closeAllTab(currentRoute: Ref<RouteLocationNormalizedLoaded>, router: Router): void;
|
|
16
|
-
closeLeftTabs(route: RouteLocationNormalized, router: Router): void;
|
|
17
|
-
closeRightTabs(route: RouteLocationNormalized, router: Router): void;
|
|
18
|
-
closeOtherTabs(route: RouteLocationNormalized, router: Router): void;
|
|
19
|
-
closeTabByKey(path: string, router: Router): void;
|
|
20
|
-
bulkCloseTabs(pathList: string[]): void;
|
|
21
|
-
updateCacheTab(): void;
|
|
22
|
-
refreshPage(router: Router): Promise<void>;
|
|
23
|
-
sortTabs(oldIndex: number, newIndex: number): void;
|
|
24
|
-
resetState(): void;
|
|
25
|
-
}>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { VNode } from 'vue';
|
|
2
|
-
import { ThemeOptions, HeadOptions, MenuOptions, RouteReuseOptions, FooterOptions } from '../types/theme.type';
|
|
3
|
-
export declare const useThemeStore: import("pinia").StoreDefinition<"dt-theme", {
|
|
4
|
-
themeConf: ThemeOptions;
|
|
5
|
-
pageLoading: boolean;
|
|
6
|
-
mixSiderHasSubMenu: boolean;
|
|
7
|
-
}, {
|
|
8
|
-
getThemeConf(): ThemeOptions;
|
|
9
|
-
getHeaderConf(): HeadOptions;
|
|
10
|
-
getMenuConf(): MenuOptions;
|
|
11
|
-
getFooterConf(): FooterOptions | VNode;
|
|
12
|
-
getRouteReuseConf(): RouteReuseOptions;
|
|
13
|
-
getPageLoading(): boolean;
|
|
14
|
-
getMixSiderIsHasMenu(): boolean;
|
|
15
|
-
}, {
|
|
16
|
-
setThemeConf(options?: ThemeOptions): void;
|
|
17
|
-
setMixSiderIsHasMenu(val: boolean): void;
|
|
18
|
-
resetState(): void;
|
|
19
|
-
}>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface Menus {
|
|
2
|
-
id: string;
|
|
3
|
-
icon: string;
|
|
4
|
-
label: string;
|
|
5
|
-
enLabel?: string;
|
|
6
|
-
url?: string;
|
|
7
|
-
children?: Array<Menus>;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
export declare type MenuState = {
|
|
11
|
-
defaultSelectedKeys: string[];
|
|
12
|
-
openKeys: string[];
|
|
13
|
-
selectedKeys: string[];
|
|
14
|
-
collapsedOpenKeys: string[];
|
|
15
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Language } from '@dt-frames/core';
|
|
2
|
-
import { VNode } from 'vue';
|
|
3
|
-
import { ContentMode, MenuMode, MenuType, Theme, UiSize } from "../enums/theme.enum";
|
|
4
|
-
declare type HeadOptions = {
|
|
5
|
-
fixed?: boolean;
|
|
6
|
-
theme?: Theme;
|
|
7
|
-
showLogo?: boolean;
|
|
8
|
-
showBackToTop?: boolean;
|
|
9
|
-
useLockPage?: boolean;
|
|
10
|
-
size?: UiSize;
|
|
11
|
-
showSize?: boolean;
|
|
12
|
-
showBreadCrumb?: boolean;
|
|
13
|
-
showFullScreen?: boolean;
|
|
14
|
-
showSearch?: boolean;
|
|
15
|
-
showNotice?: boolean;
|
|
16
|
-
showLocaleSwitch?: boolean;
|
|
17
|
-
locale?: Language.ZH;
|
|
18
|
-
showLoginOut?: boolean;
|
|
19
|
-
showSettingTheme?: boolean;
|
|
20
|
-
logoutClick?: () => ({});
|
|
21
|
-
};
|
|
22
|
-
declare type MenuOptions = {
|
|
23
|
-
fixed?: boolean;
|
|
24
|
-
theme?: Theme;
|
|
25
|
-
collapsed?: boolean;
|
|
26
|
-
collapsedShowTitle?: boolean;
|
|
27
|
-
canDrag?: boolean;
|
|
28
|
-
show?: boolean;
|
|
29
|
-
hidden?: boolean;
|
|
30
|
-
split?: boolean;
|
|
31
|
-
menuWidth?: number | string;
|
|
32
|
-
trigger?: boolean;
|
|
33
|
-
type?: MenuType;
|
|
34
|
-
mode?: MenuMode;
|
|
35
|
-
mixSideTrigger?: 'hover' | 'click';
|
|
36
|
-
};
|
|
37
|
-
declare type FooterOptions = {
|
|
38
|
-
show?: boolean;
|
|
39
|
-
height?: number;
|
|
40
|
-
title?: string;
|
|
41
|
-
subTitle?: string;
|
|
42
|
-
};
|
|
43
|
-
declare type RouteReuseOptions = {
|
|
44
|
-
show?: boolean;
|
|
45
|
-
position?: 'top' | 'normal';
|
|
46
|
-
cache?: boolean;
|
|
47
|
-
canDrag?: boolean;
|
|
48
|
-
showQuick?: boolean;
|
|
49
|
-
showRedo?: boolean;
|
|
50
|
-
showFold?: boolean;
|
|
51
|
-
};
|
|
52
|
-
declare type ContentOptions = {
|
|
53
|
-
contentMode?: ContentMode;
|
|
54
|
-
};
|
|
55
|
-
declare type ThemeOptions = {
|
|
56
|
-
headOptions?: HeadOptions;
|
|
57
|
-
menuOptions?: MenuOptions;
|
|
58
|
-
footerOptions?: FooterOptions | VNode;
|
|
59
|
-
routeReuse?: RouteReuseOptions;
|
|
60
|
-
content?: ContentOptions;
|
|
61
|
-
};
|
|
62
|
-
export type { ThemeOptions, HeadOptions, MenuOptions, FooterOptions, RouteReuseOptions };
|