@dt-frames/ui 2.0.13 → 2.0.14

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.
Files changed (103) hide show
  1. package/es/components/container/index.d.ts +93 -2
  2. package/es/components/curd/index.js +6 -3
  3. package/es/components/curd/src/components/Curd.d.ts +12 -6
  4. package/es/components/curd/src/props.d.ts +6 -3
  5. package/es/components/form/index.js +15 -2
  6. package/es/components/form/index.less +2 -0
  7. package/es/components/form/src/components/FormButtons.d.ts +7 -0
  8. package/es/components/form/src/types/form.type.d.ts +3 -3
  9. package/es/components/form/src/types/items.type.d.ts +25 -0
  10. package/es/components/modal/index.js +13 -3
  11. package/es/components/modal/src/components/ModalFooter.d.ts +6 -0
  12. package/es/components/modal/src/index.d.ts +6 -0
  13. package/es/components/source/hooks/useSource.d.ts +2 -0
  14. package/es/components/source/index.js +4 -1
  15. package/es/components/source/types/source.type.d.ts +1 -0
  16. package/es/components/table/index.js +169 -84
  17. package/es/components/table/index.less +11 -0
  18. package/es/components/table/src/components/TableAction.d.ts +7 -0
  19. package/es/components/table/src/index.d.ts +7 -0
  20. package/es/components/table/src/props.d.ts +3 -0
  21. package/es/components/table/src/types/table.type.d.ts +1 -0
  22. package/es/components/upload/index.d.ts +2 -0
  23. package/es/components/upload/index.js +207 -76
  24. package/es/components/upload/index.less +31 -6
  25. package/es/components/upload/src/basicProps.d.ts +3 -5
  26. package/es/components/upload/src/components/WordView.d.ts +6 -0
  27. package/es/components/upload/src/hooks/useFile.d.ts +2 -1
  28. package/es/components/upload/src/index.d.ts +23 -18
  29. package/es/components/upload/src/utils/upload.d.ts +1 -1
  30. package/es/packages/ui/src/assets/locales/en.d.ts +103 -0
  31. package/es/packages/ui/src/assets/locales/index.d.ts +2 -0
  32. package/es/packages/ui/src/assets/locales/zh.d.ts +104 -0
  33. package/es/packages/ui/src/components/form/index.d.ts +7 -0
  34. package/es/packages/ui/src/components/form/src/components/FormButtons.d.ts +105 -0
  35. package/es/packages/ui/src/components/form/src/components/FormItem.d.ts +159 -0
  36. package/es/packages/ui/src/components/form/src/components/componentMap.d.ts +4 -0
  37. package/es/packages/ui/src/components/form/src/components/formIcon.d.ts +1223 -0
  38. package/es/packages/ui/src/components/form/src/components/formInputUseDialog.d.ts +911 -0
  39. package/es/packages/ui/src/components/form/src/components/index.d.ts +4 -0
  40. package/es/packages/ui/src/components/form/src/components/radioButton.d.ts +34 -0
  41. package/es/packages/ui/src/components/form/src/enums/index.d.ts +7 -0
  42. package/es/packages/ui/src/components/form/src/hooks/helper.d.ts +14 -0
  43. package/es/packages/ui/src/components/form/src/hooks/useForm.d.ts +6 -0
  44. package/es/packages/ui/src/components/form/src/hooks/useFormActions.d.ts +12 -0
  45. package/es/packages/ui/src/components/form/src/hooks/useFormEvent.d.ts +25 -0
  46. package/es/packages/ui/src/components/form/src/hooks/useFormValue.d.ts +3 -0
  47. package/es/packages/ui/src/components/form/src/hooks/useFormValues.d.ts +11 -0
  48. package/es/packages/ui/src/components/form/src/hooks/useLabelWidth.d.ts +6 -0
  49. package/es/packages/ui/src/components/form/src/props.d.ts +127 -0
  50. package/es/packages/ui/src/components/form/src/types/actions.type.d.ts +15 -0
  51. package/es/packages/ui/src/components/form/src/types/form.type.d.ts +79 -0
  52. package/es/packages/ui/src/components/form/src/types/items.type.d.ts +409 -0
  53. package/es/packages/ui/src/components/iframe/index.d.ts +2 -0
  54. package/es/packages/ui/src/components/modal/index.d.ts +4 -0
  55. package/es/packages/ui/src/components/modal/src/hooks/useModal.d.ts +5 -0
  56. package/es/packages/ui/src/components/modal/src/props.d.ts +101 -0
  57. package/es/packages/ui/src/components/modal/src/types/modal.type.d.ts +17 -0
  58. package/es/packages/ui/src/components/upload/index.d.ts +4 -0
  59. package/es/packages/ui/src/components/upload/src/basicProps.d.ts +87 -0
  60. package/es/packages/ui/src/components/upload/src/components/PdfView.d.ts +9 -0
  61. package/es/packages/ui/src/components/upload/src/components/WordView.d.ts +6 -0
  62. package/es/packages/ui/src/components/upload/src/hooks/useFile.d.ts +16 -0
  63. package/es/packages/ui/src/components/upload/src/index.d.ts +242 -0
  64. package/es/packages/ui/src/components/upload/src/type/file.d.ts +10 -0
  65. package/es/packages/ui/src/components/upload/src/utils/upload.d.ts +2 -0
  66. package/es/packages/ui/src/global.d.ts +7 -0
  67. package/es/packages/ui/src/theme/index.d.ts +12 -0
  68. package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +4 -0
  69. package/es/packages/ui/src/theme/src/enums/index.d.ts +1 -0
  70. package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +34 -0
  71. package/es/packages/ui/src/theme/src/hooks/index.d.ts +6 -0
  72. package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +2 -0
  73. package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +25 -0
  74. package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +29 -0
  75. package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +8 -0
  76. package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +7 -0
  77. package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +9 -0
  78. package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +2 -0
  79. package/es/packages/ui/src/theme/src/stores/index.d.ts +3 -0
  80. package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +25 -0
  81. package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +19 -0
  82. package/es/packages/ui/src/theme/src/types/index.d.ts +3 -0
  83. package/es/packages/ui/src/theme/src/types/menu.type.d.ts +15 -0
  84. package/es/packages/ui/src/theme/src/types/theme.type.d.ts +62 -0
  85. package/es/packages/ui/src/utils/withInstall.d.ts +4 -0
  86. package/es/theme/index.js +703 -264
  87. package/es/theme/index.less +162 -11
  88. package/es/theme/src/components/header/components/lock/Lockscreen.d.ts +54 -0
  89. package/es/theme/src/components/header/components/lock/Recharge.d.ts +32 -0
  90. package/es/theme/src/components/header/components/lock/index.d.ts +3 -0
  91. package/es/theme/src/components/header/components/lock/useBattery.d.ts +11 -0
  92. package/es/theme/src/components/header/components/logo.d.ts +1 -3
  93. package/es/theme/src/components/header/components/notify.d.ts +1 -3
  94. package/es/theme/src/components/header/components/user-info.d.ts +3 -3
  95. package/es/theme/src/components/header/index.d.ts +805 -809
  96. package/es/theme/src/components/header/multiple-header.d.ts +914 -918
  97. package/es/theme/src/components/sider/index.d.ts +1 -3
  98. package/es/theme/src/components/sider/mix-sider.d.ts +1 -3
  99. package/es/theme/src/hooks/useHeader.d.ts +1 -0
  100. package/es/theme/src/index.d.ts +2102 -2059
  101. package/manualContentPath.js +4 -0
  102. package/package.json +2 -1
  103. package/vite.config.ts +1 -0
@@ -0,0 +1,242 @@
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;
@@ -0,0 +1,10 @@
1
+ export declare type UploadFile = {
2
+ name?: string;
3
+ percent?: number;
4
+ status?: 'error' | 'success' | 'done' | 'uploading' | 'removed';
5
+ thumbUrl?: string;
6
+ uid?: string;
7
+ url?: string;
8
+ fileId?: string;
9
+ [key: string]: any;
10
+ };
@@ -0,0 +1,2 @@
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";
@@ -0,0 +1,7 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module "*" {
4
+ import type { DefineComponent } from 'vue'
5
+ const component: DefineComponent<{}, {}, any>
6
+ export default component
7
+ }
@@ -0,0 +1,12 @@
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 };
@@ -0,0 +1,4 @@
1
+ import { Menus } from "@dt-frames/core";
2
+ export declare function getBreadCrumb(path: string, menus?: Menus[]): Menus[];
3
+ export declare function getFilterMenu(filter?: string, flag?: boolean): any[];
4
+ export declare function getParentTreeByPath(path: string): Menus;
@@ -0,0 +1 @@
1
+ export * from './theme.enum';
@@ -0,0 +1,34 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ export * from './useHeader';
2
+ export * from './useMenu';
3
+ export * from './useMultifyTab';
4
+ export * from './useTheme';
5
+ export * from './useOpenKeys';
6
+ export * from './useDragLine';
@@ -0,0 +1,2 @@
1
+ import { Ref } from "vue";
2
+ export declare function useDragLine(siderRef: Ref<any>, dragBarRef: Ref<any>): void;
@@ -0,0 +1,25 @@
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
+ };
@@ -0,0 +1,29 @@
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
+ };
@@ -0,0 +1,8 @@
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
+ };
@@ -0,0 +1,7 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,2 @@
1
+ import { ThemeOptions } from "../types";
2
+ export declare const defaultThemeConf: ThemeOptions;
@@ -0,0 +1,3 @@
1
+ import { useThemeStore } from './theme.store';
2
+ import { useRouteReuseStore } from './routeReuse.store';
3
+ export { useThemeStore, useRouteReuseStore };
@@ -0,0 +1,25 @@
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
+ }>;
@@ -0,0 +1,19 @@
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
+ }>;
@@ -0,0 +1,3 @@
1
+ import { ThemeOptions, HeadOptions, MenuOptions, FooterOptions, RouteReuseOptions } from './theme.type';
2
+ import { Menus, MenuState } from './menu.type';
3
+ export type { ThemeOptions, HeadOptions, MenuOptions, FooterOptions, RouteReuseOptions, Menus, MenuState };
@@ -0,0 +1,15 @@
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
+ };
@@ -0,0 +1,62 @@
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 };
@@ -0,0 +1,4 @@
1
+ import type { Plugin } from 'vue';
2
+ export declare type SFCWithInstall<T> = T & Plugin;
3
+ declare const withInstall: <T>(comp: T) => SFCWithInstall<T>;
4
+ export { withInstall };