@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
@@ -8,6 +8,7 @@ import * as QCascader from './cascader';
8
8
  import * as QBreadcrumb from './breadcrumb';
9
9
  import * as QCountdown from './countdown';
10
10
  import * as QEmpty from './empty';
11
+ import * as QLink from './link';
11
12
  import * as QCollapseTransition from './collapse-transition';
12
13
  import * as QFieldSelectModal from './field-select-modal';
13
14
  import * as QSelectModal from './select-modal';
@@ -35,11 +36,10 @@ import * as QCurrency from './currency';
35
36
  import * as QUploadImage from './upload-image';
36
37
  import * as QUploadFile from './upload-file';
37
38
  import * as QUploadFileVxe from './upload-file-vxe';
38
- import * as QCoutdown from './coutdown/index';
39
39
  import * as QCardListLayout from './card-list-layout/index';
40
40
  import * as QSelectTemplate from './select-template/index';
41
41
  import * as QImportModal from './import-modal/index';
42
42
  import * as QRelationGraph from './relation-graph/index';
43
43
  import * as QAuditModal from './audit-modal/index';
44
44
  import * as QRichEditorModel from './rich-editor-model/index';
45
- export { QLayout, QSwitch, QSelect, QMenu, QTreeSelect, QVxeSelect, QCascader, QBreadcrumb, QCountdown, QEmpty, QCollapseTransition, QEditPageLayout, QDetailPageLayout, QPageLayout, QLayoutPattern, QLayoutButtons, QLayoutAnchor, QEditForm, QDetailForm, QEditGrid, QDetailGrid, QItemWrap, QListLayout, QRadio, QFieldSelectModal, QCodeEditorModel, QCheckBox, QCurrency, QSelectModal, QUploadImage, QRemoteSelect, QEditor, QSaleTemplate, QLadderPrice, FlowViewModal, QUploadFile, QCoutdown, QCardListLayout, QUploadFileVxe, QSelectTemplate, QImportModal, QRelationGraph, QAuditModal, QRichEditorModel, };
45
+ export { QLayout, QSwitch, QSelect, QMenu, QTreeSelect, QVxeSelect, QCascader, QBreadcrumb, QCountdown, QEmpty, QLink, QCollapseTransition, QEditPageLayout, QDetailPageLayout, QPageLayout, QLayoutPattern, QLayoutButtons, QLayoutAnchor, QEditForm, QDetailForm, QEditGrid, QDetailGrid, QItemWrap, QListLayout, QRadio, QFieldSelectModal, QCodeEditorModel, QCheckBox, QCurrency, QSelectModal, QUploadImage, QRemoteSelect, QEditor, QSaleTemplate, QLadderPrice, FlowViewModal, QUploadFile, QCardListLayout, QUploadFileVxe, QSelectTemplate, QImportModal, QRelationGraph, QAuditModal, QRichEditorModel, };
@@ -1,4 +1,4 @@
1
- import type { Menu, UserInfoType } from './src/types';
1
+ import type { Menu, UserInfoType, LayoutConfigType } from './src/types';
2
2
  import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
3
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
4
4
  import QQTLayout from './src/index.vue';
@@ -86,6 +86,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
86
86
  kefu: {
87
87
  type: FunctionConstructor;
88
88
  };
89
+ layoutConfig: {
90
+ type: PropType<LayoutConfigType>;
91
+ };
89
92
  }, {
90
93
  menuSelect: (obj: any) => void;
91
94
  scheduleClick: () => void;
@@ -179,6 +182,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
179
182
  kefu: {
180
183
  type: FunctionConstructor;
181
184
  };
185
+ layoutConfig: {
186
+ type: PropType<LayoutConfigType>;
187
+ };
182
188
  }>> & {
183
189
  onMenuSelect?: ((...args: any[]) => any) | undefined;
184
190
  "onSchedule-click"?: ((...args: any[]) => any) | undefined;
@@ -12,11 +12,17 @@ declare const _sfc_main: DefineComponent<{}, {
12
12
  shoppingMall: () => void;
13
13
  webFinancialCloud: () => void;
14
14
  webProcurement: () => void;
15
+ headerLayoutConfig: {
16
+ showTanentPageHome: boolean;
17
+ showShoppingMall: boolean;
18
+ showWebProcurement: boolean;
19
+ };
15
20
  btns: Ref<{
16
21
  title: string;
17
22
  icon: string;
18
23
  type: string;
19
24
  color?: string | undefined;
25
+ show?: boolean | undefined;
20
26
  }[]>;
21
27
  linkHandle: (type: string) => void;
22
28
  readonly QIcon: DefineComponent<{
@@ -73,6 +79,7 @@ declare const _sfc_main: DefineComponent<{}, {
73
79
  icon: string;
74
80
  type: string;
75
81
  color?: string | undefined;
82
+ show?: boolean | undefined;
76
83
  }[]>;
77
84
  iconToolClick: (type: string) => void;
78
85
  openChat: () => void;
@@ -184,7 +191,7 @@ declare const _sfc_main: DefineComponent<{}, {
184
191
  personalSetting: () => void;
185
192
  handleLogout: () => void;
186
193
  nickname: Ref<string>;
187
- avatarUrl: Ref<string>;
194
+ avatarUrl: ComputedRef<string>;
188
195
  handlePersonalSettings: () => void;
189
196
  readonly SettingOutlined: SettingOutlinedIconType;
190
197
  readonly LogoutOutlined: LogoutOutlinedIconType;
@@ -1,7 +1,7 @@
1
1
  import type { LogoutOutlinedIconType } from '@ant-design/icons-vue/lib/icons/LogoutOutlined';
2
2
  import type { SettingOutlinedIconType } from '@ant-design/icons-vue/lib/icons/SettingOutlined';
3
3
  import type { SrmI18n } from '../../../../../utils/type';
4
- import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
4
+ import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
5
5
  declare const _sfc_main: DefineComponent<{}, {
6
6
  srmI18n: SrmI18n;
7
7
  userInfo: {
@@ -18,7 +18,7 @@ declare const _sfc_main: DefineComponent<{}, {
18
18
  personalSetting: () => void;
19
19
  handleLogout: () => void;
20
20
  nickname: Ref<string>;
21
- avatarUrl: Ref<string>;
21
+ avatarUrl: ComputedRef<string>;
22
22
  handlePersonalSettings: () => void;
23
23
  readonly SettingOutlined: SettingOutlinedIconType;
24
24
  readonly LogoutOutlined: LogoutOutlinedIconType;
@@ -27,6 +27,7 @@ declare const _sfc_main: DefineComponent<{}, {
27
27
  icon: string;
28
28
  type: string;
29
29
  color?: string | undefined;
30
+ show?: boolean | undefined;
30
31
  }[]>;
31
32
  iconToolClick: (type: string) => void;
32
33
  openChat: () => void;
@@ -138,7 +139,7 @@ declare const _sfc_main: DefineComponent<{}, {
138
139
  personalSetting: () => void;
139
140
  handleLogout: () => void;
140
141
  nickname: Ref<string>;
141
- avatarUrl: Ref<string>;
142
+ avatarUrl: ComputedRef<string>;
142
143
  handlePersonalSettings: () => void;
143
144
  readonly SettingOutlined: SettingOutlinedIconType;
144
145
  readonly LogoutOutlined: LogoutOutlinedIconType;
@@ -18,6 +18,7 @@ declare const _sfc_main: DefineComponent<{}, {
18
18
  icon: string;
19
19
  type: string;
20
20
  color?: string | undefined;
21
+ show?: boolean | undefined;
21
22
  }[]>;
22
23
  iconToolClick: (type: string) => void;
23
24
  openChat: () => void;
@@ -1,5 +1,5 @@
1
1
  import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
- import type { Menu, UserInfoType } from './types';
2
+ import type { Menu, UserInfoType, LayoutConfigType } from './types';
3
3
  declare const _sfc_main: DefineComponent<{
4
4
  internalOrExternal: {
5
5
  type: BooleanConstructor;
@@ -83,6 +83,9 @@ declare const _sfc_main: DefineComponent<{
83
83
  kefu: {
84
84
  type: FunctionConstructor;
85
85
  };
86
+ layoutConfig: {
87
+ type: PropType<LayoutConfigType>;
88
+ };
86
89
  }, {
87
90
  menuSelect: (obj: any) => void;
88
91
  scheduleClick: () => void;
@@ -176,6 +179,9 @@ declare const _sfc_main: DefineComponent<{
176
179
  kefu: {
177
180
  type: FunctionConstructor;
178
181
  };
182
+ layoutConfig: {
183
+ type: PropType<LayoutConfigType>;
184
+ };
179
185
  }>> & {
180
186
  onMenuSelect?: ((...args: any[]) => any) | undefined;
181
187
  "onSchedule-click"?: ((...args: any[]) => any) | undefined;
@@ -46,6 +46,7 @@ export interface BtnPropsType {
46
46
  icon: string;
47
47
  type: string;
48
48
  color?: string;
49
+ show?: boolean;
49
50
  }
50
51
  export interface UserInfoType {
51
52
  token?: string;
@@ -67,3 +68,9 @@ export interface ColorListType {
67
68
  label: string;
68
69
  color: string;
69
70
  }
71
+ export interface LayoutConfigType {
72
+ showTanentPageHome?: boolean;
73
+ showShoppingMall?: boolean;
74
+ showWebProcurement?: boolean;
75
+ [propName: string]: any;
76
+ }
@@ -48,13 +48,13 @@ declare const _default: SFCWithInstall<DefineComponent<{
48
48
  readonly action?: string | undefined;
49
49
  readonly accept?: string | undefined;
50
50
  readonly dictCode?: string | undefined;
51
- readonly role?: Role | undefined;
52
51
  readonly userInfo?: {
53
52
  [x: string]: unknown;
54
53
  elsAccount: string;
55
54
  subAccount: string;
56
55
  serivceUrl: string;
57
56
  } | undefined;
57
+ readonly role?: Role | undefined;
58
58
  readonly property?: string | undefined;
59
59
  readonly requiredFileType?: boolean | undefined;
60
60
  readonly attrCheck?: string | undefined;
@@ -77,6 +77,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
77
77
  }[] | undefined;
78
78
  readonly actionRoutePath?: string | undefined;
79
79
  readonly sourceNumberType?: string | undefined;
80
+ readonly onConfirmBeforeUpload?: Function | undefined;
80
81
  }>;
81
82
  handleChangeFiles: (fileResult: RecordString[]) => void;
82
83
  importVisible: Ref<boolean>;
@@ -43,13 +43,13 @@ declare const _sfc_main: DefineComponent<{
43
43
  readonly action?: string | undefined;
44
44
  readonly accept?: string | undefined;
45
45
  readonly dictCode?: string | undefined;
46
- readonly role?: Role | undefined;
47
46
  readonly userInfo?: {
48
47
  [x: string]: unknown;
49
48
  elsAccount: string;
50
49
  subAccount: string;
51
50
  serivceUrl: string;
52
51
  } | undefined;
52
+ readonly role?: Role | undefined;
53
53
  readonly property?: string | undefined;
54
54
  readonly requiredFileType?: boolean | undefined;
55
55
  readonly attrCheck?: string | undefined;
@@ -72,6 +72,7 @@ declare const _sfc_main: DefineComponent<{
72
72
  }[] | undefined;
73
73
  readonly actionRoutePath?: string | undefined;
74
74
  readonly sourceNumberType?: string | undefined;
75
+ readonly onConfirmBeforeUpload?: Function | undefined;
75
76
  }>;
76
77
  handleChangeFiles: (fileResult: RecordString[]) => void;
77
78
  importVisible: Ref<boolean>;
@@ -0,0 +1,126 @@
1
+ import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
3
+ import type { RecordString, FormFieldsItem, ColumnItem, GroupType } from '../edit-page-layout';
4
+ declare const linkProps: {
5
+ readonly pageData: {
6
+ readonly type: PropType<RecordString>;
7
+ readonly default: () => {};
8
+ };
9
+ readonly row: {
10
+ readonly type: PropType<RecordString>;
11
+ readonly default: () => {};
12
+ };
13
+ readonly formField: {
14
+ readonly type: PropType<FormFieldsItem>;
15
+ readonly default: () => {};
16
+ };
17
+ readonly columnField: {
18
+ readonly type: PropType<ColumnItem>;
19
+ readonly default: () => {};
20
+ };
21
+ readonly groupType: {
22
+ readonly type: PropType<GroupType>;
23
+ readonly default: "head";
24
+ };
25
+ };
26
+ export type LinkProps = ExtractPropTypes<typeof linkProps>;
27
+ declare const Link: DefineComponent<{
28
+ readonly pageData: {
29
+ readonly type: PropType<RecordString>;
30
+ readonly default: () => {};
31
+ };
32
+ readonly row: {
33
+ readonly type: PropType<RecordString>;
34
+ readonly default: () => {};
35
+ };
36
+ readonly formField: {
37
+ readonly type: PropType<FormFieldsItem>;
38
+ readonly default: () => {};
39
+ };
40
+ readonly columnField: {
41
+ readonly type: PropType<ColumnItem>;
42
+ readonly default: () => {};
43
+ };
44
+ readonly groupType: {
45
+ readonly type: PropType<GroupType>;
46
+ readonly default: "head";
47
+ };
48
+ }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
49
+ readonly pageData: {
50
+ readonly type: PropType<RecordString>;
51
+ readonly default: () => {};
52
+ };
53
+ readonly row: {
54
+ readonly type: PropType<RecordString>;
55
+ readonly default: () => {};
56
+ };
57
+ readonly formField: {
58
+ readonly type: PropType<FormFieldsItem>;
59
+ readonly default: () => {};
60
+ };
61
+ readonly columnField: {
62
+ readonly type: PropType<ColumnItem>;
63
+ readonly default: () => {};
64
+ };
65
+ readonly groupType: {
66
+ readonly type: PropType<GroupType>;
67
+ readonly default: "head";
68
+ };
69
+ }>>, {
70
+ readonly row: RecordString;
71
+ readonly pageData: RecordString;
72
+ readonly groupType: GroupType;
73
+ readonly formField: FormFieldsItem;
74
+ readonly columnField: ColumnItem;
75
+ }, {}>;
76
+ export { Link };
77
+ declare const _default: SFCWithInstall<DefineComponent<{
78
+ readonly pageData: {
79
+ readonly type: PropType<RecordString>;
80
+ readonly default: () => {};
81
+ };
82
+ readonly row: {
83
+ readonly type: PropType<RecordString>;
84
+ readonly default: () => {};
85
+ };
86
+ readonly formField: {
87
+ readonly type: PropType<FormFieldsItem>;
88
+ readonly default: () => {};
89
+ };
90
+ readonly columnField: {
91
+ readonly type: PropType<ColumnItem>;
92
+ readonly default: () => {};
93
+ };
94
+ readonly groupType: {
95
+ readonly type: PropType<GroupType>;
96
+ readonly default: "head";
97
+ };
98
+ }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
99
+ readonly pageData: {
100
+ readonly type: PropType<RecordString>;
101
+ readonly default: () => {};
102
+ };
103
+ readonly row: {
104
+ readonly type: PropType<RecordString>;
105
+ readonly default: () => {};
106
+ };
107
+ readonly formField: {
108
+ readonly type: PropType<FormFieldsItem>;
109
+ readonly default: () => {};
110
+ };
111
+ readonly columnField: {
112
+ readonly type: PropType<ColumnItem>;
113
+ readonly default: () => {};
114
+ };
115
+ readonly groupType: {
116
+ readonly type: PropType<GroupType>;
117
+ readonly default: "head";
118
+ };
119
+ }>>, {
120
+ readonly row: RecordString;
121
+ readonly pageData: RecordString;
122
+ readonly groupType: GroupType;
123
+ readonly formField: FormFieldsItem;
124
+ readonly columnField: ColumnItem;
125
+ }, {}>>;
126
+ export default _default;
@@ -3,11 +3,12 @@ import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedCo
3
3
  import type { VxeColumnSlotTypes, VxeTableDataRow, SlotVNodeType, VxeColumnPropTypes, VxeTablePropTypes, VxeTooltipPropTypes, VxeTableDefines } from 'vxe-table';
4
4
  import { GridColumn } from '../../../list-page-layout-types';
5
5
  declare const _sfc_main: DefineComponent<{}, {
6
+ columnGroupOptions: Ref<never[]>;
6
7
  columnGrid: Ref<any>;
7
8
  srmI18n: SrmI18n;
8
9
  busAccount: Ref<string>;
9
10
  open: (columnCode: string) => void;
10
- close: () => void;
11
+ close: typeof close;
11
12
  setFrozenColumn<T extends GridColumn>(listArry: T[]): T[];
12
13
  getColumnsList(columnCode: string): void;
13
14
  getFieldColorsData(item: any): void;
@@ -23,7 +23,7 @@ export declare const SYMBOL_CUSTOM_CLICK: unique symbol;
23
23
  export declare const SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK: unique symbol;
24
24
  export declare const SYMBOL_UPLOAD: unique symbol;
25
25
  export declare const SYMBOL_UPLOAD_GRID: unique symbol;
26
- export declare const SYMBOL_CANCELAUDIT: unique symbol;
26
+ export declare const SYMBOL_CANCEL_AUDIT: unique symbol;
27
27
  export declare const SYMBOL_DOWNLOAD_ALL: unique symbol;
28
28
  export declare const SYMBOL_REMOVE_ALL: unique symbol;
29
29
  export declare const SYMBOL_CHECKBOX_CHANGE: unique symbol;
@@ -3,7 +3,7 @@ import type { UsePromiseStepPayload, ExposeWithPageButtons, RecordString, PageBu
3
3
  export default function usePromiseStep<T extends UsePromiseStepPayload>(payload: T): {
4
4
  customLoading: Readonly<Ref<boolean>>;
5
5
  normalizeStepPromiseMethod: <T_1 extends ExposeWithPageButtons>(key: string | symbol) => ((args: T_1) => Promise<ExposeWithPageButtons>)[];
6
- handleResetValidateStatus: (btn: PageButton) => void;
6
+ handleResetValidateStatus: () => void;
7
7
  handleValidateResult: ({ result, button }: ValidateResult) => void;
8
8
  stepSave: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
9
9
  stepAdd: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
@@ -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 { RecordString } from '../select-modal';
6
6
  import type { Data, FileTypeList } from './src/upload-file-types';
@@ -122,13 +122,104 @@ declare const _default: SFCWithInstall<DefineComponent<{
122
122
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
123
123
  default: unknown;
124
124
  };
125
+ readonly onConfirmBeforeUpload: {
126
+ readonly type: FunctionConstructor;
127
+ readonly default: null;
128
+ };
125
129
  }, {
126
130
  validateInfos: validateInfos;
127
131
  limitSize: Ref<number>;
128
- accept: Ref<string>;
132
+ acceptNew: Ref<string>;
129
133
  handleConfirm: () => void;
130
134
  handleCancel: () => void;
131
- fileData: Record<string, any>;
135
+ fileData: {
136
+ [x: string]: unknown;
137
+ [x: number]: unknown;
138
+ fileType: string;
139
+ fileList: {
140
+ uid: string;
141
+ size?: number | undefined;
142
+ name: string;
143
+ fileName?: string | undefined;
144
+ lastModified?: number | undefined;
145
+ lastModifiedDate?: {
146
+ toString: () => string;
147
+ toDateString: () => string;
148
+ toTimeString: () => string;
149
+ toLocaleString: {
150
+ (): string;
151
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
152
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
153
+ };
154
+ toLocaleDateString: {
155
+ (): string;
156
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
157
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
158
+ };
159
+ toLocaleTimeString: {
160
+ (): string;
161
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
162
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
163
+ };
164
+ valueOf: () => number;
165
+ getTime: () => number;
166
+ getFullYear: () => number;
167
+ getUTCFullYear: () => number;
168
+ getMonth: () => number;
169
+ getUTCMonth: () => number;
170
+ getDate: () => number;
171
+ getUTCDate: () => number;
172
+ getDay: () => number;
173
+ getUTCDay: () => number;
174
+ getHours: () => number;
175
+ getUTCHours: () => number;
176
+ getMinutes: () => number;
177
+ getUTCMinutes: () => number;
178
+ getSeconds: () => number;
179
+ getUTCSeconds: () => number;
180
+ getMilliseconds: () => number;
181
+ getUTCMilliseconds: () => number;
182
+ getTimezoneOffset: () => number;
183
+ setTime: (time: number) => number;
184
+ setMilliseconds: (ms: number) => number;
185
+ setUTCMilliseconds: (ms: number) => number;
186
+ setSeconds: (sec: number, ms?: number | undefined) => number;
187
+ setUTCSeconds: (sec: number, ms?: number | undefined) => number;
188
+ setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
189
+ setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
190
+ setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
191
+ setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
192
+ setDate: (date: number) => number;
193
+ setUTCDate: (date: number) => number;
194
+ setMonth: (month: number, date?: number | undefined) => number;
195
+ setUTCMonth: (month: number, date?: number | undefined) => number;
196
+ setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
197
+ setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
198
+ toUTCString: () => string;
199
+ toISOString: () => string;
200
+ toJSON: (key?: any) => string;
201
+ [Symbol.toPrimitive]: {
202
+ (hint: "default"): string;
203
+ (hint: "string"): string;
204
+ (hint: "number"): number;
205
+ (hint: string): string | number;
206
+ };
207
+ } | undefined;
208
+ url?: string | undefined;
209
+ status?: UploadFileStatus | undefined;
210
+ percent?: number | undefined;
211
+ thumbUrl?: string | undefined;
212
+ originFileObj?: FileType | undefined;
213
+ response?: unknown;
214
+ error?: any;
215
+ linkProps?: any;
216
+ type?: string | undefined;
217
+ xhr?: unknown;
218
+ preview?: string | undefined;
219
+ }[] | undefined;
220
+ itemNumber: string;
221
+ fileBelong: string;
222
+ };
132
223
  itemNumberLabel: Ref<string>;
133
224
  itemNumbeValueProp: Ref<string>;
134
225
  property: Ref<string>;
@@ -259,6 +350,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
259
350
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
260
351
  default: unknown;
261
352
  };
353
+ readonly onConfirmBeforeUpload: {
354
+ readonly type: FunctionConstructor;
355
+ readonly default: null;
356
+ };
262
357
  }>> & {
263
358
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
264
359
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
@@ -270,8 +365,8 @@ declare const _default: SFCWithInstall<DefineComponent<{
270
365
  readonly action: string;
271
366
  readonly accept: string;
272
367
  readonly dictCode: string;
273
- readonly role: Role;
274
368
  readonly userInfo: UserInfo;
369
+ readonly role: Role;
275
370
  readonly property: string;
276
371
  readonly requiredFileType: boolean;
277
372
  readonly attrCheck: string;
@@ -290,5 +385,6 @@ declare const _default: SFCWithInstall<DefineComponent<{
290
385
  readonly fileTypeList: FileTypeList[];
291
386
  readonly actionRoutePath: string;
292
387
  readonly sourceNumberType: string;
388
+ readonly onConfirmBeforeUpload: Function;
293
389
  }, {}>>;
294
390
  export default _default;
@@ -3,6 +3,9 @@ import { InitializeConfig } from '../upload-file-types';
3
3
  export interface ButtonConfig extends InitializeConfig {
4
4
  row: RecordString;
5
5
  rowIndex: number;
6
+ downloadUrl?: string;
7
+ deleteUrl?: string;
8
+ previewUrl?: string;
6
9
  }
7
10
  export default function useOperationColumnButton(): {
8
11
  handleDelete: <T extends ButtonConfig>(payload: T) => void;
@@ -1,5 +1,6 @@
1
1
  import { ExtractPropTypes, PropType, Ref } from 'vue';
2
2
  import type { Role, UserInfo, CurrentRow, ColumnItem, LayoutConfig, RecordString } from '../../edit-page-layout';
3
+ import type { UploadProps } from 'ant-design-vue';
3
4
  export interface InitializeConfig {
4
5
  groupCode: string;
5
6
  pageData?: Ref<RecordString>;
@@ -45,6 +46,14 @@ export interface ColumnItemWithExtend extends ColumnItem {
45
46
  idx: number;
46
47
  }
47
48
  export type VxeItemFileUpload = ColumnItemWithExtend;
49
+ export interface FileDataType {
50
+ fileType: string;
51
+ fileList: UploadProps['fileList'];
52
+ itemNumber: string;
53
+ fileBelong: string;
54
+ [key: string]: unknown;
55
+ [key: number]: unknown;
56
+ }
48
57
  export declare const uploadFilesProps: {
49
58
  readonly visible: {
50
59
  readonly type: BooleanConstructor;
@@ -154,5 +163,9 @@ export declare const uploadFilesProps: {
154
163
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
155
164
  default: unknown;
156
165
  };
166
+ readonly onConfirmBeforeUpload: {
167
+ readonly type: FunctionConstructor;
168
+ readonly default: null;
169
+ };
157
170
  };
158
171
  export type UploadFilesProps = ExtractPropTypes<typeof uploadFilesProps>;