@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.
- package/es/components/container/index.d.ts +93 -2
- package/es/components/curd/index.js +6 -3
- package/es/components/curd/src/components/Curd.d.ts +12 -6
- package/es/components/curd/src/props.d.ts +6 -3
- package/es/components/form/index.js +15 -2
- package/es/components/form/index.less +2 -0
- package/es/components/form/src/components/FormButtons.d.ts +7 -0
- package/es/components/form/src/types/form.type.d.ts +3 -3
- package/es/components/form/src/types/items.type.d.ts +25 -0
- package/es/components/modal/index.js +13 -3
- package/es/components/modal/src/components/ModalFooter.d.ts +6 -0
- package/es/components/modal/src/index.d.ts +6 -0
- package/es/components/source/hooks/useSource.d.ts +2 -0
- package/es/components/source/index.js +4 -1
- package/es/components/source/types/source.type.d.ts +1 -0
- package/es/components/table/index.js +169 -84
- package/es/components/table/index.less +11 -0
- package/es/components/table/src/components/TableAction.d.ts +7 -0
- package/es/components/table/src/index.d.ts +7 -0
- package/es/components/table/src/props.d.ts +3 -0
- package/es/components/table/src/types/table.type.d.ts +1 -0
- package/es/components/upload/index.d.ts +2 -0
- package/es/components/upload/index.js +207 -76
- package/es/components/upload/index.less +31 -6
- package/es/components/upload/src/basicProps.d.ts +3 -5
- package/es/components/upload/src/components/WordView.d.ts +6 -0
- package/es/components/upload/src/hooks/useFile.d.ts +2 -1
- package/es/components/upload/src/index.d.ts +23 -18
- package/es/components/upload/src/utils/upload.d.ts +1 -1
- package/es/packages/ui/src/assets/locales/en.d.ts +103 -0
- package/es/packages/ui/src/assets/locales/index.d.ts +2 -0
- package/es/packages/ui/src/assets/locales/zh.d.ts +104 -0
- package/es/packages/ui/src/components/form/index.d.ts +7 -0
- package/es/packages/ui/src/components/form/src/components/FormButtons.d.ts +105 -0
- package/es/packages/ui/src/components/form/src/components/FormItem.d.ts +159 -0
- package/es/packages/ui/src/components/form/src/components/componentMap.d.ts +4 -0
- package/es/packages/ui/src/components/form/src/components/formIcon.d.ts +1223 -0
- package/es/packages/ui/src/components/form/src/components/formInputUseDialog.d.ts +911 -0
- package/es/packages/ui/src/components/form/src/components/index.d.ts +4 -0
- package/es/packages/ui/src/components/form/src/components/radioButton.d.ts +34 -0
- package/es/packages/ui/src/components/form/src/enums/index.d.ts +7 -0
- package/es/packages/ui/src/components/form/src/hooks/helper.d.ts +14 -0
- package/es/packages/ui/src/components/form/src/hooks/useForm.d.ts +6 -0
- package/es/packages/ui/src/components/form/src/hooks/useFormActions.d.ts +12 -0
- package/es/packages/ui/src/components/form/src/hooks/useFormEvent.d.ts +25 -0
- package/es/packages/ui/src/components/form/src/hooks/useFormValue.d.ts +3 -0
- package/es/packages/ui/src/components/form/src/hooks/useFormValues.d.ts +11 -0
- package/es/packages/ui/src/components/form/src/hooks/useLabelWidth.d.ts +6 -0
- package/es/packages/ui/src/components/form/src/props.d.ts +127 -0
- package/es/packages/ui/src/components/form/src/types/actions.type.d.ts +15 -0
- package/es/packages/ui/src/components/form/src/types/form.type.d.ts +79 -0
- package/es/packages/ui/src/components/form/src/types/items.type.d.ts +409 -0
- package/es/packages/ui/src/components/iframe/index.d.ts +2 -0
- package/es/packages/ui/src/components/modal/index.d.ts +4 -0
- package/es/packages/ui/src/components/modal/src/hooks/useModal.d.ts +5 -0
- package/es/packages/ui/src/components/modal/src/props.d.ts +101 -0
- package/es/packages/ui/src/components/modal/src/types/modal.type.d.ts +17 -0
- package/es/packages/ui/src/components/upload/index.d.ts +4 -0
- package/es/packages/ui/src/components/upload/src/basicProps.d.ts +87 -0
- package/es/packages/ui/src/components/upload/src/components/PdfView.d.ts +9 -0
- package/es/packages/ui/src/components/upload/src/components/WordView.d.ts +6 -0
- package/es/packages/ui/src/components/upload/src/hooks/useFile.d.ts +16 -0
- package/es/packages/ui/src/components/upload/src/index.d.ts +242 -0
- package/es/packages/ui/src/components/upload/src/type/file.d.ts +10 -0
- package/es/packages/ui/src/components/upload/src/utils/upload.d.ts +2 -0
- package/es/packages/ui/src/global.d.ts +7 -0
- package/es/packages/ui/src/theme/index.d.ts +12 -0
- package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +4 -0
- package/es/packages/ui/src/theme/src/enums/index.d.ts +1 -0
- package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +34 -0
- package/es/packages/ui/src/theme/src/hooks/index.d.ts +6 -0
- package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +2 -0
- package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +25 -0
- package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +29 -0
- package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +8 -0
- package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +7 -0
- package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +9 -0
- package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +2 -0
- package/es/packages/ui/src/theme/src/stores/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +25 -0
- package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +19 -0
- package/es/packages/ui/src/theme/src/types/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/types/menu.type.d.ts +15 -0
- package/es/packages/ui/src/theme/src/types/theme.type.d.ts +62 -0
- package/es/packages/ui/src/utils/withInstall.d.ts +4 -0
- package/es/theme/index.js +703 -264
- package/es/theme/index.less +162 -11
- package/es/theme/src/components/header/components/lock/Lockscreen.d.ts +54 -0
- package/es/theme/src/components/header/components/lock/Recharge.d.ts +32 -0
- package/es/theme/src/components/header/components/lock/index.d.ts +3 -0
- package/es/theme/src/components/header/components/lock/useBattery.d.ts +11 -0
- package/es/theme/src/components/header/components/logo.d.ts +1 -3
- package/es/theme/src/components/header/components/notify.d.ts +1 -3
- package/es/theme/src/components/header/components/user-info.d.ts +3 -3
- package/es/theme/src/components/header/index.d.ts +805 -809
- package/es/theme/src/components/header/multiple-header.d.ts +914 -918
- package/es/theme/src/components/sider/index.d.ts +1 -3
- package/es/theme/src/components/sider/mix-sider.d.ts +1 -3
- package/es/theme/src/hooks/useHeader.d.ts +1 -0
- package/es/theme/src/index.d.ts +2102 -2059
- package/manualContentPath.js +4 -0
- package/package.json +2 -1
- package/vite.config.ts +1 -0
|
@@ -2,12 +2,10 @@ import { UploadRequestOption } from 'ant-design-vue/es/vc-upload/interface';
|
|
|
2
2
|
import type { UploadFile } from './type/file';
|
|
3
3
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
4
|
uploadUrl: {
|
|
5
|
-
type:
|
|
6
|
-
default: any;
|
|
5
|
+
type: import("vue").PropType<string | import("@dt-frames/core").ApiType>;
|
|
7
6
|
};
|
|
8
7
|
downloadUrl: {
|
|
9
|
-
type:
|
|
10
|
-
default: any;
|
|
8
|
+
type: import("vue").PropType<string | import("@dt-frames/core").ApiType>;
|
|
11
9
|
};
|
|
12
10
|
buttonText: {
|
|
13
11
|
type: StringConstructor;
|
|
@@ -87,8 +85,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
87
85
|
}, {
|
|
88
86
|
registerPdf: import("../../modal/src/types/modal.type").RegisterFn;
|
|
89
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
90
|
message: import("ant-design-vue/es/message").MessageApi;
|
|
91
91
|
props: any;
|
|
92
|
+
emits: (event: "change", ...args: any[]) => void;
|
|
92
93
|
fileListRef: import("vue").Ref<UploadFile[]>;
|
|
93
94
|
acceptRef: import("vue").Ref<string[]>;
|
|
94
95
|
helpTextRef: import("vue").Ref<string>;
|
|
@@ -96,7 +97,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
96
97
|
maxSizeRef: import("vue").Ref<number>;
|
|
97
98
|
getStringAccept: import("vue").ComputedRef<string>;
|
|
98
99
|
getHelpText: import("vue").ComputedRef<string>;
|
|
99
|
-
|
|
100
|
+
fileList: import("vue").Ref<any[]>;
|
|
100
101
|
beforeUpload: (file: File) => void;
|
|
101
102
|
btns: ({
|
|
102
103
|
class: string;
|
|
@@ -118,10 +119,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
118
119
|
};
|
|
119
120
|
src: any;
|
|
120
121
|
}>;
|
|
122
|
+
handlePreview: (file: any) => Promise<void>;
|
|
121
123
|
uploadFile: ({ file, onSuccess, onError, onProgress }: UploadRequestOption) => Promise<void>;
|
|
122
124
|
fileView: (file: UploadFile) => Promise<void>;
|
|
123
|
-
download: () => void;
|
|
124
|
-
readonly getFileThumb: (
|
|
125
|
+
download: (file: UploadFile) => void;
|
|
126
|
+
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";
|
|
125
127
|
PdfView: import("vue").DefineComponent<{}, {
|
|
126
128
|
exeReduce: import("vue").Ref<number>;
|
|
127
129
|
pdfUrlRef: import("vue").Ref<any>;
|
|
@@ -130,14 +132,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
130
132
|
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<{}>>, {}>;
|
|
131
133
|
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<{}>>, {}>;
|
|
132
134
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
133
|
-
|
|
135
|
+
DocxView: import("vue").DefineComponent<{}, {
|
|
136
|
+
ID: string;
|
|
137
|
+
register: import("../../modal/src/types/modal.type").RegisterFn;
|
|
138
|
+
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<{}>>, {}>;
|
|
139
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
140
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
134
141
|
uploadUrl: {
|
|
135
|
-
type:
|
|
136
|
-
default: any;
|
|
142
|
+
type: import("vue").PropType<string | import("@dt-frames/core").ApiType>;
|
|
137
143
|
};
|
|
138
144
|
downloadUrl: {
|
|
139
|
-
type:
|
|
140
|
-
default: any;
|
|
145
|
+
type: import("vue").PropType<string | import("@dt-frames/core").ApiType>;
|
|
141
146
|
};
|
|
142
147
|
buttonText: {
|
|
143
148
|
type: StringConstructor;
|
|
@@ -214,20 +219,20 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
214
219
|
type: BooleanConstructor;
|
|
215
220
|
default: boolean;
|
|
216
221
|
};
|
|
217
|
-
}
|
|
218
|
-
|
|
222
|
+
}>> & {
|
|
223
|
+
onChange?: (...args: any[]) => any;
|
|
224
|
+
}, {
|
|
219
225
|
data: object | ((file: UploadFile) => object);
|
|
220
|
-
|
|
221
|
-
|
|
226
|
+
disabled: Boolean | import("vue").Ref<Boolean> | import("vue").ComputedRef<Boolean>;
|
|
227
|
+
multiple: boolean;
|
|
222
228
|
buttonText: string;
|
|
223
229
|
preIcon: string;
|
|
230
|
+
filename: string;
|
|
224
231
|
accept: string[];
|
|
225
|
-
disabled: Boolean | import("vue").Ref<Boolean> | import("vue").ComputedRef<Boolean>;
|
|
226
232
|
defaultFiles: UploadFile[];
|
|
227
233
|
listType: "text" | "picture-card";
|
|
228
234
|
maxSize: number;
|
|
229
235
|
helpText: string;
|
|
230
|
-
multiple: boolean;
|
|
231
236
|
extraParams: {};
|
|
232
237
|
showView: boolean;
|
|
233
238
|
showDownload: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const getFileType: (type: string) => any;
|
|
2
|
-
export declare const getFileThumb: (
|
|
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,103 @@
|
|
|
1
|
+
export declare const EN: {
|
|
2
|
+
UI: {
|
|
3
|
+
ADD: string;
|
|
4
|
+
DELETE_CONFIRM: string;
|
|
5
|
+
CONFIRM_DELETE: string;
|
|
6
|
+
NEED_CURD: string;
|
|
7
|
+
EDIT: string;
|
|
8
|
+
EMPTY: string;
|
|
9
|
+
EMPTY_URL: string;
|
|
10
|
+
MULTIFY_DELETE_CONFIRM: string;
|
|
11
|
+
CONFIRM_MULTIFY_DELETE: string;
|
|
12
|
+
ADVANCED: string;
|
|
13
|
+
EXPAND: string;
|
|
14
|
+
SELECT_ICON: string;
|
|
15
|
+
MUSE_FUNCTION: string;
|
|
16
|
+
NEED_RENDER: string;
|
|
17
|
+
SEARCH: string;
|
|
18
|
+
RESET: string;
|
|
19
|
+
PLEASE_INPUT: string;
|
|
20
|
+
PLEASE_SELECT: string;
|
|
21
|
+
PLEASE_SET_ICON: string;
|
|
22
|
+
INPUT_FILTER: string;
|
|
23
|
+
EXIT_FULLSCREEN: string;
|
|
24
|
+
FULLSCREEN: string;
|
|
25
|
+
SAVE: string;
|
|
26
|
+
CLOSE: string;
|
|
27
|
+
ADD_SUCCESS: string;
|
|
28
|
+
UPDATE_SUCCESS: string;
|
|
29
|
+
MULTIFY: string;
|
|
30
|
+
DELETE_SUCCESS: string;
|
|
31
|
+
COLUMN_CONTROL: string;
|
|
32
|
+
COLUMN_SHOW: string;
|
|
33
|
+
INDEX: string;
|
|
34
|
+
CHECKBOX: string;
|
|
35
|
+
FIXED_TO_LEFT: string;
|
|
36
|
+
FIXED_TO_RIGHT: string;
|
|
37
|
+
EXPORT: string;
|
|
38
|
+
DOWNLOAD_TEMPLATE: string;
|
|
39
|
+
EXPORT_CURRENT_PAGE: string;
|
|
40
|
+
EXPORT_SELECT_COLUMN: string;
|
|
41
|
+
EXPORT_ALL: string;
|
|
42
|
+
SELECT_ALL: string;
|
|
43
|
+
SETTING_EXPORT_COLUMN: string;
|
|
44
|
+
NO_EXPORT_COLUMN: string;
|
|
45
|
+
NUMBER: string;
|
|
46
|
+
ACTIONS: string;
|
|
47
|
+
TOTAL_PAGE: string;
|
|
48
|
+
FILTER: string;
|
|
49
|
+
EXPAND_ALL: string;
|
|
50
|
+
COLLAPSE_ALL: string;
|
|
51
|
+
SELECT_ALL1: string;
|
|
52
|
+
CANCEL_SELECT_ALL: string;
|
|
53
|
+
LEVEL_CONNECTION: string;
|
|
54
|
+
LEVEL_SOLATE: string;
|
|
55
|
+
LOADING: string;
|
|
56
|
+
SUPPORT_FILES: string;
|
|
57
|
+
MAX_SIZE: string;
|
|
58
|
+
MAX_NUMBER: string;
|
|
59
|
+
SUPPORT_TYPES: string;
|
|
60
|
+
FILE_UPLOAD: string;
|
|
61
|
+
FILE_NAME: string;
|
|
62
|
+
FILE_STATUS: string;
|
|
63
|
+
PREVIEW: string;
|
|
64
|
+
DELETE: string;
|
|
65
|
+
HISTORY_UPLOAD: string;
|
|
66
|
+
MAX_MB: string;
|
|
67
|
+
PRE_UPLOAD: string;
|
|
68
|
+
COMPANY_NAME: string;
|
|
69
|
+
FILTER_MORE: string;
|
|
70
|
+
LARGE_SIZE: string;
|
|
71
|
+
MIDDLE_SIZE: string;
|
|
72
|
+
SMALL_SIZE: string;
|
|
73
|
+
MODIFY_PASSWORD: string;
|
|
74
|
+
LOGIN_OUT: string;
|
|
75
|
+
REFRESH: string;
|
|
76
|
+
CLOSE_CURRENT_TAG: string;
|
|
77
|
+
CLOSE_LEFT_TAGS: string;
|
|
78
|
+
CLOSE_RIGHT_TAGS: string;
|
|
79
|
+
CLOSE_OTHER_TAGS: string;
|
|
80
|
+
CLOSE_ALL_TAGE: string;
|
|
81
|
+
SETTING_THEME: string;
|
|
82
|
+
PROJECT_SETTING: string;
|
|
83
|
+
NAV_MODE: string;
|
|
84
|
+
PAGE_SHOW: string;
|
|
85
|
+
COPY: string;
|
|
86
|
+
DRAWER_TIPS: string;
|
|
87
|
+
FULL: string;
|
|
88
|
+
FIXED: string;
|
|
89
|
+
BREAD_CURB: string;
|
|
90
|
+
MENU_FILTER: string;
|
|
91
|
+
NOTICE: string;
|
|
92
|
+
SIZE: string;
|
|
93
|
+
SHOW_FULLE: string;
|
|
94
|
+
LOCAL: string;
|
|
95
|
+
ROUTE_REUSE: string;
|
|
96
|
+
SHOW_FOOTER: string;
|
|
97
|
+
CONTENT_FIXED_WIDTH: string;
|
|
98
|
+
ON: string;
|
|
99
|
+
OFF: string;
|
|
100
|
+
UNKNOWN_ROUTE: string;
|
|
101
|
+
COPY_SUCCESS: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export declare const ZH: {
|
|
2
|
+
UI: {
|
|
3
|
+
ADD: string;
|
|
4
|
+
DELETE_CONFIRM: string;
|
|
5
|
+
CONFIRM_DELETE: string;
|
|
6
|
+
NEED_CURD: string;
|
|
7
|
+
EDIT: string;
|
|
8
|
+
EMPTY: string;
|
|
9
|
+
EMPTY_URL: string;
|
|
10
|
+
MULTIFY_DELETE_CONFIRM: string;
|
|
11
|
+
CONFIRM_MULTIFY_DELETE: string;
|
|
12
|
+
ADVANCED: string;
|
|
13
|
+
EXPAND: string;
|
|
14
|
+
SELECT_ICON: string;
|
|
15
|
+
MUSE_FUNCTION: string;
|
|
16
|
+
NEED_RENDER: string;
|
|
17
|
+
SEARCH: string;
|
|
18
|
+
RESET: string;
|
|
19
|
+
PLEASE_INPUT: string;
|
|
20
|
+
PLEASE_SELECT: string;
|
|
21
|
+
PLEASE_SET_ICON: string;
|
|
22
|
+
INPUT_FILTER: string;
|
|
23
|
+
EXIT_FULLSCREEN: string;
|
|
24
|
+
FULLSCREEN: string;
|
|
25
|
+
SAVE: string;
|
|
26
|
+
CLOSE: string;
|
|
27
|
+
ADD_SUCCESS: string;
|
|
28
|
+
UPDATE_SUCCESS: string;
|
|
29
|
+
MULTIFY: string;
|
|
30
|
+
DELETE_SUCCESS: string;
|
|
31
|
+
COLUMN_CONTROL: string;
|
|
32
|
+
COLUMN_SHOW: string;
|
|
33
|
+
INDEX: string;
|
|
34
|
+
CHECKBOX: string;
|
|
35
|
+
FIXED_TO_LEFT: string;
|
|
36
|
+
FIXED_TO_RIGHT: string;
|
|
37
|
+
EXPORT: string;
|
|
38
|
+
DOWNLOAD_TEMPLATE: string;
|
|
39
|
+
EXPORT_CURRENT_PAGE: string;
|
|
40
|
+
EXPORT_SELECT_COLUMN: string;
|
|
41
|
+
EXPORT_ALL: string;
|
|
42
|
+
SELECT_ALL: string;
|
|
43
|
+
SETTING_EXPORT_COLUMN: string;
|
|
44
|
+
NO_EXPORT_COLUMN: string;
|
|
45
|
+
NUMBER: string;
|
|
46
|
+
ACTIONS: string;
|
|
47
|
+
TOTAL_PAGE: string;
|
|
48
|
+
FILTER: string;
|
|
49
|
+
EXPAND_ALL: string;
|
|
50
|
+
COLLAPSE_ALL: string;
|
|
51
|
+
SELECT_ALL1: string;
|
|
52
|
+
CANCEL_SELECT_ALL: string;
|
|
53
|
+
LEVEL_CONNECTION: string;
|
|
54
|
+
LEVEL_SOLATE: string;
|
|
55
|
+
LOADING: string;
|
|
56
|
+
SUPPORT_FILES: string;
|
|
57
|
+
MAX_SIZE: string;
|
|
58
|
+
MAX_NUMBER: string;
|
|
59
|
+
SUPPORT_TYPES: string;
|
|
60
|
+
FILE_UPLOAD: string;
|
|
61
|
+
FILE_NAME: string;
|
|
62
|
+
FILE_STATUS: string;
|
|
63
|
+
PREVIEW: string;
|
|
64
|
+
DELETE: string;
|
|
65
|
+
HISTORY_UPLOAD: string;
|
|
66
|
+
MAX_MB: string;
|
|
67
|
+
PRE_UPLOAD: string;
|
|
68
|
+
COMPANY_NAME: string;
|
|
69
|
+
FILTER_MORE: string;
|
|
70
|
+
LARGE_SIZE: string;
|
|
71
|
+
MIDDLE_SIZE: string;
|
|
72
|
+
SMALL_SIZE: string;
|
|
73
|
+
MODIFY_PASSWORD: string;
|
|
74
|
+
LOGIN_OUT: string;
|
|
75
|
+
REFRESH: string;
|
|
76
|
+
CLOSE_CURRENT_TAG: string;
|
|
77
|
+
CLOSE_LEFT_TAGS: string;
|
|
78
|
+
CLOSE_RIGHT_TAGS: string;
|
|
79
|
+
CLOSE_OTHER_TAGS: string;
|
|
80
|
+
CLOSE_ALL_TAGE: string;
|
|
81
|
+
SETTING_THEME: string;
|
|
82
|
+
PROJECT_SETTING: string;
|
|
83
|
+
NAV_MODE: string;
|
|
84
|
+
PAGE_SHOW: string;
|
|
85
|
+
COPY: string;
|
|
86
|
+
DRAWER_TIPS: string;
|
|
87
|
+
FULL: string;
|
|
88
|
+
FIXED: string;
|
|
89
|
+
BREAD_CURB: string;
|
|
90
|
+
MENU_FILTER: string;
|
|
91
|
+
NOTICE: string;
|
|
92
|
+
SIZE: string;
|
|
93
|
+
SHOW_FULLE: string;
|
|
94
|
+
LOCAL: string;
|
|
95
|
+
ROUTE_REUSE: string;
|
|
96
|
+
SHOW_FOOTER: string;
|
|
97
|
+
CONTENT_FIXED_WIDTH: string;
|
|
98
|
+
ON: string;
|
|
99
|
+
OFF: string;
|
|
100
|
+
DOWNLOAD: string;
|
|
101
|
+
UNKNOWN_ROUTE: string;
|
|
102
|
+
COPY_SUCCESS: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import DtForm from "./src/index";
|
|
2
|
+
import { useForm } from './src/hooks/useForm';
|
|
3
|
+
import { FormActionType } from './src/types/actions.type';
|
|
4
|
+
import { DtFormButtons } from './src/components';
|
|
5
|
+
import { ButtonProps } from './src/types/form.type';
|
|
6
|
+
export { DtFormButtons, DtForm, useForm };
|
|
7
|
+
export type { FormActionType, ButtonProps };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Recordable } from '@dt-frames/core';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { ButtonProps } from '../types/form.type';
|
|
4
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
5
|
+
mode: {
|
|
6
|
+
type: PropType<"search" | "dialog">;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
show: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
showAdvancedButton: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
minShowColumn: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
buttonList: {
|
|
22
|
+
type: PropType<ButtonProps[]>;
|
|
23
|
+
default: any[];
|
|
24
|
+
};
|
|
25
|
+
authPrefix: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
isAdvanced: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
colspan: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
props: any;
|
|
37
|
+
emits: (event: "handle-method", ...args: any[]) => void;
|
|
38
|
+
t: {
|
|
39
|
+
(key: string): string;
|
|
40
|
+
(key: string, locale: string): string;
|
|
41
|
+
(key: string, locale: string, list: unknown[]): string;
|
|
42
|
+
(key: string, locale: string, named: Record<string, unknown>): string;
|
|
43
|
+
(key: string, list: unknown[]): string;
|
|
44
|
+
(key: string, named: Record<string, unknown>): string;
|
|
45
|
+
};
|
|
46
|
+
advancedRef: import("vue").Ref<{
|
|
47
|
+
valueOf: () => boolean;
|
|
48
|
+
}>;
|
|
49
|
+
key: number;
|
|
50
|
+
showAdvanceRef: import("vue").ComputedRef<boolean>;
|
|
51
|
+
getAuth: (auth: string) => string | null;
|
|
52
|
+
colOpt: import("vue").ComputedRef<{
|
|
53
|
+
style: Recordable<any>;
|
|
54
|
+
span?: undefined;
|
|
55
|
+
} | {
|
|
56
|
+
style: Recordable<any>;
|
|
57
|
+
span: number;
|
|
58
|
+
}>;
|
|
59
|
+
getAdvanceClass: import("vue").ComputedRef<(string | {
|
|
60
|
+
'basic-arrow--active': boolean;
|
|
61
|
+
})[]>;
|
|
62
|
+
toggleAdvanced: () => void;
|
|
63
|
+
handleBtnClick: (button: ButtonProps) => void;
|
|
64
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "handle-method"[], "handle-method", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
+
mode: {
|
|
66
|
+
type: PropType<"search" | "dialog">;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
show: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
showAdvancedButton: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
minShowColumn: {
|
|
78
|
+
type: NumberConstructor;
|
|
79
|
+
default: number;
|
|
80
|
+
};
|
|
81
|
+
buttonList: {
|
|
82
|
+
type: PropType<ButtonProps[]>;
|
|
83
|
+
default: any[];
|
|
84
|
+
};
|
|
85
|
+
authPrefix: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
};
|
|
88
|
+
isAdvanced: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
colspan: {
|
|
93
|
+
type: ObjectConstructor;
|
|
94
|
+
};
|
|
95
|
+
}>> & {
|
|
96
|
+
"onHandle-method"?: (...args: any[]) => any;
|
|
97
|
+
}, {
|
|
98
|
+
mode: "search" | "dialog";
|
|
99
|
+
show: boolean;
|
|
100
|
+
showAdvancedButton: boolean;
|
|
101
|
+
minShowColumn: number;
|
|
102
|
+
buttonList: ButtonProps[];
|
|
103
|
+
isAdvanced: boolean;
|
|
104
|
+
}>;
|
|
105
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { PropType, Ref } from 'vue';
|
|
2
|
+
import { Recordable } from '@dt-frames/core';
|
|
3
|
+
import { FormActionType } from '../types/actions.type';
|
|
4
|
+
import { FormSchema } from '../types/form.type';
|
|
5
|
+
declare const _sfc_main: {
|
|
6
|
+
name: string;
|
|
7
|
+
inheritAttrs: boolean;
|
|
8
|
+
props: {
|
|
9
|
+
schema: {
|
|
10
|
+
type: PropType<FormSchema>;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
formProps: {
|
|
14
|
+
type: PropType<Partial<import("vue").ExtractPropTypes<{
|
|
15
|
+
mode: {
|
|
16
|
+
type: PropType<"search" | "dialog">;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
autoFetch: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
model: {
|
|
24
|
+
type: PropType<Recordable<any>>;
|
|
25
|
+
default: () => {};
|
|
26
|
+
};
|
|
27
|
+
layout: {
|
|
28
|
+
type: PropType<"vertical" | "inline" | "horizontal">;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
labelWidth: {
|
|
32
|
+
type: PropType<string | number>;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
enLabelWidth: {
|
|
36
|
+
type: PropType<string | number>;
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
39
|
+
labelAlign: {
|
|
40
|
+
type: PropType<"left" | "right">;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
labelCol: {
|
|
44
|
+
type: PropType<Partial<import("../types/form.type").ColEx>>;
|
|
45
|
+
default: () => {};
|
|
46
|
+
};
|
|
47
|
+
wrapperCol: {
|
|
48
|
+
type: PropType<Partial<import("../types/form.type").ColEx>>;
|
|
49
|
+
default: () => {};
|
|
50
|
+
};
|
|
51
|
+
rowProps: {
|
|
52
|
+
type: PropType<Partial<import("vue").ExtractPropTypes<{
|
|
53
|
+
align: PropType<"stretch" | "bottom" | "top" | "middle">;
|
|
54
|
+
justify: PropType<"space-around" | "space-between" | "center" | "end" | "start">;
|
|
55
|
+
prefixCls: StringConstructor;
|
|
56
|
+
gutter: {
|
|
57
|
+
type: PropType<import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter]>;
|
|
58
|
+
default: import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter];
|
|
59
|
+
};
|
|
60
|
+
wrap: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: any;
|
|
63
|
+
};
|
|
64
|
+
}>>>;
|
|
65
|
+
default: () => {};
|
|
66
|
+
};
|
|
67
|
+
colProps: {
|
|
68
|
+
type: PropType<Partial<import("../types/form.type").ColEx>>;
|
|
69
|
+
};
|
|
70
|
+
span: {
|
|
71
|
+
type: NumberConstructor;
|
|
72
|
+
};
|
|
73
|
+
size: {
|
|
74
|
+
type: PropType<"middle" | "small" | "large">;
|
|
75
|
+
};
|
|
76
|
+
disabled: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
compact: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: any;
|
|
83
|
+
};
|
|
84
|
+
schemas: {
|
|
85
|
+
type: PropType<FormSchema[]>;
|
|
86
|
+
default: () => any[];
|
|
87
|
+
};
|
|
88
|
+
autoSearchOnEnter: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
minShowColumn: {
|
|
93
|
+
type: NumberConstructor;
|
|
94
|
+
default: number;
|
|
95
|
+
};
|
|
96
|
+
showAdvancedButton: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
allowClear: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
scrollToFirstError: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
colon: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
loading: {
|
|
113
|
+
type: PropType<{
|
|
114
|
+
[key: string]: Ref<boolean>;
|
|
115
|
+
}>;
|
|
116
|
+
default: () => {};
|
|
117
|
+
};
|
|
118
|
+
onSearch: {
|
|
119
|
+
type: PropType<(params: Recordable<any>) => void>;
|
|
120
|
+
default: (params: Recordable<any>) => void;
|
|
121
|
+
};
|
|
122
|
+
onReset: {
|
|
123
|
+
type: PropType<(params: Recordable<any>) => void>;
|
|
124
|
+
default: (params: Recordable<any>) => void;
|
|
125
|
+
};
|
|
126
|
+
buttons: {
|
|
127
|
+
type: PropType<boolean | import("../types/form.type").ButtonProps[]>;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
resetFunc: {
|
|
131
|
+
type: PropType<() => void>;
|
|
132
|
+
};
|
|
133
|
+
registerInstance: {
|
|
134
|
+
type: PropType<(instance: FormActionType) => void>;
|
|
135
|
+
};
|
|
136
|
+
}>>>;
|
|
137
|
+
default: () => {};
|
|
138
|
+
};
|
|
139
|
+
defaultValues: {
|
|
140
|
+
type: PropType<Recordable<any>>;
|
|
141
|
+
default: () => {};
|
|
142
|
+
};
|
|
143
|
+
formModel: {
|
|
144
|
+
type: PropType<Recordable<any>>;
|
|
145
|
+
default: () => {};
|
|
146
|
+
};
|
|
147
|
+
setFormModel: {
|
|
148
|
+
type: PropType<(key: string, value: any) => void>;
|
|
149
|
+
};
|
|
150
|
+
formActionType: {
|
|
151
|
+
type: PropType<FormActionType>;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
setup(props: any, { emit, slots }: {
|
|
155
|
+
emit: any;
|
|
156
|
+
slots: any;
|
|
157
|
+
}): () => JSX.Element;
|
|
158
|
+
};
|
|
159
|
+
export default _sfc_main;
|