@dt-frames/ui 2.0.13 → 2.0.15

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 (106) 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 +21 -5
  6. package/es/components/form/index.less +30 -3
  7. package/es/components/form/src/components/FormButtons.d.ts +7 -0
  8. package/es/components/form/src/props.d.ts +3 -3
  9. package/es/components/form/src/types/form.type.d.ts +3 -3
  10. package/es/components/form/src/types/items.type.d.ts +25 -0
  11. package/es/components/modal/index.js +13 -3
  12. package/es/components/modal/src/components/ModalFooter.d.ts +6 -0
  13. package/es/components/modal/src/index.d.ts +6 -0
  14. package/es/components/source/hooks/useSource.d.ts +2 -0
  15. package/es/components/source/index.js +4 -1
  16. package/es/components/source/types/source.type.d.ts +1 -0
  17. package/es/components/table/index.js +107 -38
  18. package/es/components/table/index.less +11 -0
  19. package/es/components/table/src/components/TableAction.d.ts +13 -0
  20. package/es/components/table/src/index.d.ts +11 -4
  21. package/es/components/table/src/props.d.ts +4 -1
  22. package/es/components/table/src/types/table.type.d.ts +1 -0
  23. package/es/components/upload/index.d.ts +2 -0
  24. package/es/components/upload/index.js +216 -89
  25. package/es/components/upload/index.less +37 -7
  26. package/es/components/upload/src/basicProps.d.ts +4 -6
  27. package/es/components/upload/src/components/WordView.d.ts +6 -0
  28. package/es/components/upload/src/hooks/useFile.d.ts +2 -1
  29. package/es/components/upload/src/index.d.ts +23 -18
  30. package/es/components/upload/src/utils/upload.d.ts +1 -1
  31. package/es/packages/ui/src/assets/locales/en.d.ts +103 -0
  32. package/es/packages/ui/src/assets/locales/index.d.ts +2 -0
  33. package/es/packages/ui/src/assets/locales/zh.d.ts +104 -0
  34. package/es/packages/ui/src/components/form/index.d.ts +7 -0
  35. package/es/packages/ui/src/components/form/src/components/FormButtons.d.ts +105 -0
  36. package/es/packages/ui/src/components/form/src/components/FormItem.d.ts +159 -0
  37. package/es/packages/ui/src/components/form/src/components/componentMap.d.ts +4 -0
  38. package/es/packages/ui/src/components/form/src/components/formIcon.d.ts +1223 -0
  39. package/es/packages/ui/src/components/form/src/components/formInputUseDialog.d.ts +911 -0
  40. package/es/packages/ui/src/components/form/src/components/index.d.ts +4 -0
  41. package/es/packages/ui/src/components/form/src/components/radioButton.d.ts +34 -0
  42. package/es/packages/ui/src/components/form/src/enums/index.d.ts +7 -0
  43. package/es/packages/ui/src/components/form/src/hooks/helper.d.ts +14 -0
  44. package/es/packages/ui/src/components/form/src/hooks/useForm.d.ts +6 -0
  45. package/es/packages/ui/src/components/form/src/hooks/useFormActions.d.ts +12 -0
  46. package/es/packages/ui/src/components/form/src/hooks/useFormEvent.d.ts +25 -0
  47. package/es/packages/ui/src/components/form/src/hooks/useFormValue.d.ts +3 -0
  48. package/es/packages/ui/src/components/form/src/hooks/useFormValues.d.ts +11 -0
  49. package/es/packages/ui/src/components/form/src/hooks/useLabelWidth.d.ts +6 -0
  50. package/es/packages/ui/src/components/form/src/props.d.ts +127 -0
  51. package/es/packages/ui/src/components/form/src/types/actions.type.d.ts +15 -0
  52. package/es/packages/ui/src/components/form/src/types/form.type.d.ts +79 -0
  53. package/es/packages/ui/src/components/form/src/types/items.type.d.ts +409 -0
  54. package/es/packages/ui/src/components/iframe/index.d.ts +2 -0
  55. package/es/packages/ui/src/components/modal/index.d.ts +4 -0
  56. package/es/packages/ui/src/components/modal/src/hooks/useModal.d.ts +5 -0
  57. package/es/packages/ui/src/components/modal/src/props.d.ts +101 -0
  58. package/es/packages/ui/src/components/modal/src/types/modal.type.d.ts +17 -0
  59. package/es/packages/ui/src/components/upload/index.d.ts +4 -0
  60. package/es/packages/ui/src/components/upload/src/basicProps.d.ts +87 -0
  61. package/es/packages/ui/src/components/upload/src/components/PdfView.d.ts +9 -0
  62. package/es/packages/ui/src/components/upload/src/components/WordView.d.ts +6 -0
  63. package/es/packages/ui/src/components/upload/src/hooks/useFile.d.ts +16 -0
  64. package/es/packages/ui/src/components/upload/src/index.d.ts +242 -0
  65. package/es/packages/ui/src/components/upload/src/type/file.d.ts +10 -0
  66. package/es/packages/ui/src/components/upload/src/utils/upload.d.ts +2 -0
  67. package/es/packages/ui/src/global.d.ts +7 -0
  68. package/es/packages/ui/src/theme/index.d.ts +12 -0
  69. package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +4 -0
  70. package/es/packages/ui/src/theme/src/enums/index.d.ts +1 -0
  71. package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +34 -0
  72. package/es/packages/ui/src/theme/src/hooks/index.d.ts +6 -0
  73. package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +2 -0
  74. package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +25 -0
  75. package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +29 -0
  76. package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +8 -0
  77. package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +7 -0
  78. package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +9 -0
  79. package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +2 -0
  80. package/es/packages/ui/src/theme/src/stores/index.d.ts +3 -0
  81. package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +25 -0
  82. package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +19 -0
  83. package/es/packages/ui/src/theme/src/types/index.d.ts +3 -0
  84. package/es/packages/ui/src/theme/src/types/menu.type.d.ts +15 -0
  85. package/es/packages/ui/src/theme/src/types/theme.type.d.ts +62 -0
  86. package/es/packages/ui/src/utils/withInstall.d.ts +4 -0
  87. package/es/theme/index.js +616 -221
  88. package/es/theme/index.less +185 -11
  89. package/es/theme/src/components/header/components/lock/Lockscreen.d.ts +85 -0
  90. package/es/theme/src/components/header/components/lock/Recharge.d.ts +32 -0
  91. package/es/theme/src/components/header/components/lock/index.d.ts +2 -0
  92. package/es/theme/src/components/header/components/lock/useBattery.d.ts +11 -0
  93. package/es/theme/src/components/header/components/lock/useTime.d.ts +7 -0
  94. package/es/theme/src/components/header/components/logo.d.ts +1 -3
  95. package/es/theme/src/components/header/components/notify.d.ts +1 -3
  96. package/es/theme/src/components/header/components/user-info.d.ts +10 -3
  97. package/es/theme/src/components/header/index.d.ts +812 -809
  98. package/es/theme/src/components/header/multiple-header.d.ts +921 -918
  99. package/es/theme/src/components/sider/index.d.ts +1 -3
  100. package/es/theme/src/components/sider/mix-sider.d.ts +1 -3
  101. package/es/theme/src/hooks/useHeader.d.ts +1 -0
  102. package/es/theme/src/index.d.ts +2152 -2059
  103. package/es/theme/src/stores/lockscreen.store.d.ts +7 -0
  104. package/manualContentPath.js +4 -0
  105. package/package.json +2 -1
  106. 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: StringConstructor;
6
- default: any;
5
+ type: import("vue").PropType<string | import("@dt-frames/core").ApiType>;
7
6
  };
8
7
  downloadUrl: {
9
- type: StringConstructor;
10
- default: any;
8
+ type: import("vue").PropType<string | import("@dt-frames/core").ApiType>;
11
9
  };
12
10
  buttonText: {
13
11
  type: StringConstructor;
@@ -21,7 +19,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
21
19
  type: import("vue").PropType<object | ((file: UploadFile) => object)>;
22
20
  default: {};
23
21
  };
24
- filename: {
22
+ fileName: {
25
23
  type: StringConstructor;
26
24
  default: string;
27
25
  };
@@ -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
- getFileList: () => UploadFile[];
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: (filename: string) => string;
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
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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: StringConstructor;
136
- default: any;
142
+ type: import("vue").PropType<string | import("@dt-frames/core").ApiType>;
137
143
  };
138
144
  downloadUrl: {
139
- type: StringConstructor;
140
- default: any;
145
+ type: import("vue").PropType<string | import("@dt-frames/core").ApiType>;
141
146
  };
142
147
  buttonText: {
143
148
  type: StringConstructor;
@@ -151,7 +156,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
151
156
  type: import("vue").PropType<object | ((file: UploadFile) => object)>;
152
157
  default: {};
153
158
  };
154
- filename: {
159
+ fileName: {
155
160
  type: StringConstructor;
156
161
  default: string;
157
162
  };
@@ -214,13 +219,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
214
219
  type: BooleanConstructor;
215
220
  default: boolean;
216
221
  };
217
- }>>, {
218
- filename: string;
222
+ }>> & {
223
+ onChange?: (...args: any[]) => any;
224
+ }, {
219
225
  data: object | ((file: UploadFile) => object);
220
- uploadUrl: string;
221
- downloadUrl: string;
222
226
  buttonText: string;
223
227
  preIcon: string;
228
+ fileName: string;
224
229
  accept: string[];
225
230
  disabled: Boolean | import("vue").Ref<Boolean> | import("vue").ComputedRef<Boolean>;
226
231
  defaultFiles: UploadFile[];
@@ -1,2 +1,2 @@
1
1
  export declare const getFileType: (type: string) => any;
2
- export declare const getFileThumb: (filename: string) => string;
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,2 @@
1
+ import { Recordable, Language } from "@dt-frames/core";
2
+ export declare const uiLang: (lang: Language) => Recordable;
@@ -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;
@@ -0,0 +1,4 @@
1
+ import { Component } from "vue";
2
+ import { ComponentType } from "../types/form.type";
3
+ declare const componentMap: Map<ComponentType, Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
4
+ export { componentMap };