@qqt-product/ui 7.0.0 → 8.0.0

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 (47) hide show
  1. package/dist/index.es.js +25041 -23858
  2. package/dist/index.umd.js +114 -112
  3. package/dist/lib/components/currency/index.d.ts +36 -48
  4. package/dist/lib/components/currency/src/currency-type.d.ts +15 -21
  5. package/dist/lib/components/currency/src/currency.vue.d.ts +37 -49
  6. package/dist/lib/components/currency/src/use-currency.d.ts +2 -2
  7. package/dist/lib/components/detail-form/index.d.ts +1 -2
  8. package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +1 -2
  9. package/dist/lib/components/detail-grid/index.d.ts +3 -2
  10. package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +3 -2
  11. package/dist/lib/components/detail-page-layout/index.d.ts +1 -1
  12. package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +2 -2
  13. package/dist/lib/components/edit-form/index.d.ts +1 -1
  14. package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +1 -1
  15. package/dist/lib/components/edit-grid/index.d.ts +1 -1
  16. package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +1 -1
  17. package/dist/lib/components/edit-page-layout/index.d.ts +1 -1
  18. package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +14 -1
  19. package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +2 -2
  20. package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -1
  21. package/dist/lib/components/import-modal/src/import-modal-types.d.ts +4 -0
  22. package/dist/lib/components/index.d.ts +2 -2
  23. package/dist/lib/components/layout/index.d.ts +7 -1
  24. package/dist/lib/components/layout/src/header/index.vue.d.ts +8 -1
  25. package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +2 -2
  26. package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +2 -1
  27. package/dist/lib/components/layout/src/header/navRight/rightTool.vue.d.ts +1 -0
  28. package/dist/lib/components/layout/src/index.vue.d.ts +7 -1
  29. package/dist/lib/components/layout/src/types.d.ts +7 -0
  30. package/dist/lib/components/layout-pattern/index.d.ts +2 -1
  31. package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +2 -1
  32. package/dist/lib/components/link/index.d.ts +126 -0
  33. package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +2 -1
  34. package/dist/lib/components/page-layout/src/constant/symbol.d.ts +1 -1
  35. package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +1 -1
  36. package/dist/lib/components/upload-file/index.d.ts +100 -4
  37. package/dist/lib/components/upload-file/src/hook/use-operation-column-button-hook.d.ts +3 -0
  38. package/dist/lib/components/upload-file/src/upload-file-types.d.ts +13 -0
  39. package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +100 -4
  40. package/dist/lib/components/useChart/index.d.ts +1 -0
  41. package/dist/lib/utils/event.d.ts +4 -4
  42. package/dist/lib/utils/use-create-link-hook.d.ts +1 -1
  43. package/dist/style.css +1 -1
  44. package/package.json +12 -8
  45. package/dist/lib/components/coutdown/index.d.ts +0 -84
  46. package/dist/lib/components/coutdown/src/coutdown.d.ts +0 -48
  47. package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +0 -81
@@ -1,6 +1,6 @@
1
1
  import type { SrmI18n } from '../../../utils/type';
2
2
  import type { UploadFile } from 'ant-design-vue';
3
- import type { FileType } from 'ant-design-vue/lib/upload/interface';
3
+ import type { UploadFileStatus, FileType } from 'ant-design-vue/lib/upload/interface';
4
4
  import type { validateInfos } from 'ant-design-vue/lib/form/useForm';
5
5
  import type { UserInfo, Role, CurrentRow, RecordString } from '../../edit-page-layout';
6
6
  import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
@@ -114,13 +114,104 @@ declare const _sfc_main: DefineComponent<{
114
114
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
115
115
  default: unknown;
116
116
  };
117
+ readonly onConfirmBeforeUpload: {
118
+ readonly type: FunctionConstructor;
119
+ readonly default: null;
120
+ };
117
121
  }, {
118
122
  validateInfos: validateInfos;
119
123
  limitSize: Ref<number>;
120
- accept: Ref<string>;
124
+ acceptNew: Ref<string>;
121
125
  handleConfirm: () => void;
122
126
  handleCancel: () => void;
123
- fileData: Record<string, any>;
127
+ fileData: {
128
+ [x: string]: unknown;
129
+ [x: number]: unknown;
130
+ fileType: string;
131
+ fileList: {
132
+ uid: string;
133
+ size?: number | undefined;
134
+ name: string;
135
+ fileName?: string | undefined;
136
+ lastModified?: number | undefined;
137
+ lastModifiedDate?: {
138
+ toString: () => string;
139
+ toDateString: () => string;
140
+ toTimeString: () => string;
141
+ toLocaleString: {
142
+ (): string;
143
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
144
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
145
+ };
146
+ toLocaleDateString: {
147
+ (): string;
148
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
149
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
150
+ };
151
+ toLocaleTimeString: {
152
+ (): string;
153
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
154
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
155
+ };
156
+ valueOf: () => number;
157
+ getTime: () => number;
158
+ getFullYear: () => number;
159
+ getUTCFullYear: () => number;
160
+ getMonth: () => number;
161
+ getUTCMonth: () => number;
162
+ getDate: () => number;
163
+ getUTCDate: () => number;
164
+ getDay: () => number;
165
+ getUTCDay: () => number;
166
+ getHours: () => number;
167
+ getUTCHours: () => number;
168
+ getMinutes: () => number;
169
+ getUTCMinutes: () => number;
170
+ getSeconds: () => number;
171
+ getUTCSeconds: () => number;
172
+ getMilliseconds: () => number;
173
+ getUTCMilliseconds: () => number;
174
+ getTimezoneOffset: () => number;
175
+ setTime: (time: number) => number;
176
+ setMilliseconds: (ms: number) => number;
177
+ setUTCMilliseconds: (ms: number) => number;
178
+ setSeconds: (sec: number, ms?: number | undefined) => number;
179
+ setUTCSeconds: (sec: number, ms?: number | undefined) => number;
180
+ setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
181
+ setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
182
+ setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
183
+ setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
184
+ setDate: (date: number) => number;
185
+ setUTCDate: (date: number) => number;
186
+ setMonth: (month: number, date?: number | undefined) => number;
187
+ setUTCMonth: (month: number, date?: number | undefined) => number;
188
+ setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
189
+ setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
190
+ toUTCString: () => string;
191
+ toISOString: () => string;
192
+ toJSON: (key?: any) => string;
193
+ [Symbol.toPrimitive]: {
194
+ (hint: "default"): string;
195
+ (hint: "string"): string;
196
+ (hint: "number"): number;
197
+ (hint: string): string | number;
198
+ };
199
+ } | undefined;
200
+ url?: string | undefined;
201
+ status?: UploadFileStatus | undefined;
202
+ percent?: number | undefined;
203
+ thumbUrl?: string | undefined;
204
+ originFileObj?: FileType | undefined;
205
+ response?: unknown;
206
+ error?: any;
207
+ linkProps?: any;
208
+ type?: string | undefined;
209
+ xhr?: unknown;
210
+ preview?: string | undefined;
211
+ }[] | undefined;
212
+ itemNumber: string;
213
+ fileBelong: string;
214
+ };
124
215
  itemNumberLabel: Ref<string>;
125
216
  itemNumbeValueProp: Ref<string>;
126
217
  property: Ref<string>;
@@ -251,6 +342,10 @@ declare const _sfc_main: DefineComponent<{
251
342
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
252
343
  default: unknown;
253
344
  };
345
+ readonly onConfirmBeforeUpload: {
346
+ readonly type: FunctionConstructor;
347
+ readonly default: null;
348
+ };
254
349
  }>> & {
255
350
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
256
351
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
@@ -262,8 +357,8 @@ declare const _sfc_main: DefineComponent<{
262
357
  readonly action: string;
263
358
  readonly accept: string;
264
359
  readonly dictCode: string;
265
- readonly role: Role;
266
360
  readonly userInfo: UserInfo;
361
+ readonly role: Role;
267
362
  readonly property: string;
268
363
  readonly requiredFileType: boolean;
269
364
  readonly attrCheck: string;
@@ -282,5 +377,6 @@ declare const _sfc_main: DefineComponent<{
282
377
  readonly fileTypeList: FileTypeList[];
283
378
  readonly actionRoutePath: string;
284
379
  readonly sourceNumberType: string;
380
+ readonly onConfirmBeforeUpload: Function;
285
381
  }, {}>;
286
382
  export default _sfc_main;
@@ -4,6 +4,7 @@ import type { EChartsOption, SetOptionOpts } from 'echarts';
4
4
  import { UseChartsOptionType } from './types';
5
5
  export * from './types';
6
6
  export default function useChart(elRef: Ref<HTMLDivElement>, option?: UseChartsOptionType): {
7
+ clear: () => void;
7
8
  setOption: (option: EChartsOption, opts?: boolean | SetOptionOpts, lazyUpdate?: boolean) => void;
8
9
  getInstance: () => echarts.ECharts | null;
9
10
  showLoading: () => void;
@@ -1,7 +1,7 @@
1
1
  import type { Emitter } from '@qqt-product/utils';
2
2
  import { VxeTableInstance } from 'vxe-table';
3
- import { SYMBOL_BINDFUNCTION, SYMBOL_CUSTOM_BINDFUNCTION, SYMBOL_VXE_BINDFUNCTION, SYMBOL_CUSTOM_VXE_BINDFUNCTION, SYMBOL_ADD_ONE_ROW, SYMBOL_DELETE_ROWS, SYMBOL_CUSTOM_CLICK, SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK, SYMBOL_CACHE_BUTTON, SYMBOL_CACHE_PAGEDATA, SYMBOL_CACHE_REFRESH, SYMBOL_CACHE_SHOW_MESSAGE, SYMBOL_VALIDATE, SYMBOL_VALIDATE_RESULT, SYMBOL_LINK_CLICK, SYMBOL_VALIDATE_SUCCESS, SYMBOL_REFRESH, SYMBOL_BACK, SYMBOL_SAVE, SYMBOL_PUBLISH, SYMBOL_SUBMIT, SYMBOL_CONFIRM, SYMBOL_REJECT, SYMBOL_UPLOAD, SYMBOL_UPLOAD_GRID, SYMBOL_CANCELAUDIT, SYMBOL_DOWNLOAD_ALL, SYMBOL_REMOVE_ALL, SYMBOL_CHECKBOX_CHANGE, SYMBOL_CHECKBOX_ALL, SYMBOL_IMPORT_ROWS, SYMBOL_FLOW_VIEW, SYMBOL_AUDIT_AGREE, SYMBOL_AUDIT_REFUSE, SYMBOL_AUDIT_INFORMED, SYMBOL_AUDIT_TRANSFER, SYMBOL_AUDIT_BACK, SYMBOL_AUDIT_TRANSACTION, SYMBOL_AUDIT_INVALID, SYMBOL_AUDIT_REVOCATION, SYMBOL_AUDIT_REVOCATION_PRE_SIGN, SYMBOL_AUDIT_FLOW_IMAGE, SYMBOL_AUDIT_APPROVAL_COMMENT, SYMBOL_AUDIT_SIGN_NODE, SYMBOL_AUDIT_PRE_SIGN, SYMBOL_AUDIT_AFTER_SIGN, SYMBOL_AUDIT_PRINT, SYMBOL_AUDIT_ADD_NODE_HISTORY, SYMBOL_AUDIT_CHAT } from '../../lib/components/page-layout';
4
- import type { RecordString, BindFunctionEvent, VxeBindFunctionEvent, PageButton, PageButtonWithGroupCode, PageButtonDeleteRow, PageButtonDownLoad, ValidateResult, LinkClickCallbackParams, FormFieldsItem, ColumnItem, PageButtonDeleteFileRow, GridCheckboxChangeParamsWithGroupCoe, GridCheckboxAllParamsWithGroupCoe } from '../../lib/components/edit-page-layout';
3
+ import { SYMBOL_BINDFUNCTION, SYMBOL_CUSTOM_BINDFUNCTION, SYMBOL_VXE_BINDFUNCTION, SYMBOL_CUSTOM_VXE_BINDFUNCTION, SYMBOL_ADD_ONE_ROW, SYMBOL_DELETE_ROWS, SYMBOL_CUSTOM_CLICK, SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK, SYMBOL_CACHE_BUTTON, SYMBOL_CACHE_PAGEDATA, SYMBOL_CACHE_REFRESH, SYMBOL_CACHE_SHOW_MESSAGE, SYMBOL_VALIDATE, SYMBOL_VALIDATE_RESULT, SYMBOL_LINK_CLICK, SYMBOL_VALIDATE_SUCCESS, SYMBOL_REFRESH, SYMBOL_BACK, SYMBOL_SAVE, SYMBOL_PUBLISH, SYMBOL_SUBMIT, SYMBOL_CONFIRM, SYMBOL_REJECT, SYMBOL_UPLOAD, SYMBOL_UPLOAD_GRID, SYMBOL_CANCEL_AUDIT, SYMBOL_DOWNLOAD_ALL, SYMBOL_REMOVE_ALL, SYMBOL_CHECKBOX_CHANGE, SYMBOL_CHECKBOX_ALL, SYMBOL_IMPORT_ROWS, SYMBOL_FLOW_VIEW, SYMBOL_AUDIT_AGREE, SYMBOL_AUDIT_REFUSE, SYMBOL_AUDIT_INFORMED, SYMBOL_AUDIT_TRANSFER, SYMBOL_AUDIT_BACK, SYMBOL_AUDIT_TRANSACTION, SYMBOL_AUDIT_INVALID, SYMBOL_AUDIT_REVOCATION, SYMBOL_AUDIT_REVOCATION_PRE_SIGN, SYMBOL_AUDIT_FLOW_IMAGE, SYMBOL_AUDIT_APPROVAL_COMMENT, SYMBOL_AUDIT_SIGN_NODE, SYMBOL_AUDIT_PRE_SIGN, SYMBOL_AUDIT_AFTER_SIGN, SYMBOL_AUDIT_PRINT, SYMBOL_AUDIT_ADD_NODE_HISTORY, SYMBOL_AUDIT_CHAT } from '../../lib/components/page-layout';
4
+ import type { RecordString, BindFunctionEvent, VxeBindFunctionEvent, PageButton, PageButtonWithGroupCode, PageButtonDeleteRow, PageButtonDownLoad, ValidateResult, LinkClickCallbackParams, FormFieldsItem, PageButtonDeleteFileRow, GridCheckboxChangeParamsWithGroupCoe, GridCheckboxAllParamsWithGroupCoe } from '../../lib/components/edit-page-layout';
5
5
  import type { ButtonItem, ObjectMap, ToolsButtonItem } from '../../lib/components/list-page-layout';
6
6
  import type { VxeItemFileUpload } from '../../lib/components/upload-file';
7
7
  import { SYMBOL_GRID_INSTANCE, SYMBOL_HANDLE_SETTING, SYMBOL_HANDLE_ADD, SYMBOL_HANDLE_EXPORT, SYMBOL_HANDLE_IMPORT, SYMBOL_HANDLE_QUICK_NAV, SYMBOL_HANDLE_RECORD, SYMBOL_HANDLE_HELP_TEXT, SYMBOL_HANDLE_ATTACHMENT_TEXT, SYMBOL_HANDLE_VIDEO_TEXT, SYMBOL_HANDLE_MERGE_GRID, SYMBOL_FETCH_NAV_DATA } from '../components/list-page-layout/src/symbol';
@@ -13,7 +13,7 @@ export type Events = {
13
13
  [SYMBOL_ADD_ONE_ROW]: PageButtonWithGroupCode;
14
14
  [SYMBOL_DELETE_ROWS]: PageButtonDeleteRow;
15
15
  [SYMBOL_CUSTOM_CLICK]: PageButtonWithGroupCode;
16
- [SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK]: FormFieldsItem | ColumnItem;
16
+ [SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK]: FormFieldsItem | VxeBindFunctionEvent;
17
17
  [SYMBOL_CACHE_BUTTON]: PageButton;
18
18
  [SYMBOL_CACHE_PAGEDATA]: RecordString;
19
19
  [SYMBOL_CACHE_REFRESH]: boolean;
@@ -43,7 +43,7 @@ export type Events = {
43
43
  [SYMBOL_FETCH_NAV_DATA]: string | number | undefined;
44
44
  [SYMBOL_UPLOAD]: PageButtonWithGroupCode;
45
45
  [SYMBOL_UPLOAD_GRID]: VxeItemFileUpload;
46
- [SYMBOL_CANCELAUDIT]: PageButton;
46
+ [SYMBOL_CANCEL_AUDIT]: PageButton;
47
47
  [SYMBOL_DOWNLOAD_ALL]: PageButtonDownLoad;
48
48
  [SYMBOL_REMOVE_ALL]: PageButtonDeleteFileRow;
49
49
  [SYMBOL_CHECKBOX_CHANGE]: GridCheckboxChangeParamsWithGroupCoe;
@@ -17,7 +17,7 @@ interface LinkClickParams {
17
17
  callback: (args: LinkClickCallbackParams) => void;
18
18
  [key: string]: any;
19
19
  }
20
- export default function (Request: ObjectMap): {
20
+ export default function (): {
21
21
  createLink: (fieldInfo: ObjectMap, type: Type, callback: (args: LinkClickCallbackParams) => void, customLinkConfig?: LinkParams) => void;
22
22
  linkClick: ({ title, row, column, formData, linkConfig, fieldInfo, callback }: LinkClickParams, type: Type) => void;
23
23
  };