@qqt-product/ui 7.0.1 → 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 (43) hide show
  1. package/dist/index.es.js +25005 -23833
  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/src/header/index.vue.d.ts +1 -1
  24. package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +2 -2
  25. package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +1 -1
  26. package/dist/lib/components/layout-pattern/index.d.ts +2 -1
  27. package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +2 -1
  28. package/dist/lib/components/link/index.d.ts +126 -0
  29. package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +2 -1
  30. package/dist/lib/components/page-layout/src/constant/symbol.d.ts +1 -1
  31. package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +1 -1
  32. package/dist/lib/components/upload-file/index.d.ts +100 -4
  33. package/dist/lib/components/upload-file/src/hook/use-operation-column-button-hook.d.ts +3 -0
  34. package/dist/lib/components/upload-file/src/upload-file-types.d.ts +13 -0
  35. package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +100 -4
  36. package/dist/lib/components/useChart/index.d.ts +1 -0
  37. package/dist/lib/utils/event.d.ts +4 -4
  38. package/dist/lib/utils/use-create-link-hook.d.ts +1 -1
  39. package/dist/style.css +1 -1
  40. package/package.json +12 -8
  41. package/dist/lib/components/coutdown/index.d.ts +0 -84
  42. package/dist/lib/components/coutdown/src/coutdown.d.ts +0 -48
  43. package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +0 -81
@@ -1,34 +1,30 @@
1
- import type { requiredValidator } from './src/currency-type';
1
+ import type { Type, typeValidator } from './src/currency-type';
2
2
  import type { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
3
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
4
4
  import QInputCurrency from './src/currency.vue';
5
5
  export * from './src/currency-type';
6
6
  export { QInputCurrency };
7
7
  declare const _default: SFCWithInstall<DefineComponent<{
8
- readonly required: {
9
- readonly type: PropType<"0" | "1">;
10
- readonly default: "";
11
- readonly validator: typeof requiredValidator;
8
+ readonly config: {
9
+ readonly type: ObjectConstructor;
10
+ readonly default: () => {};
12
11
  };
13
- readonly placeholder: {
12
+ readonly dataFormat: {
14
13
  readonly type: StringConstructor;
15
14
  readonly default: "";
16
15
  };
17
- readonly configData: {
18
- readonly type: ObjectConstructor;
19
- readonly default: () => {};
20
- };
21
16
  readonly disabled: {
22
17
  readonly type: BooleanConstructor;
23
18
  readonly default: false;
24
19
  };
25
20
  readonly value: {
26
- readonly type: NumberConstructor;
21
+ readonly type: PropType<string | number>;
27
22
  readonly default: "";
28
23
  };
29
- readonly inputType: {
30
- readonly type: StringConstructor;
31
- readonly default: "float";
24
+ readonly type: {
25
+ readonly type: PropType<Type>;
26
+ readonly default: "currency";
27
+ readonly validator: typeof typeValidator;
32
28
  };
33
29
  readonly showInputNumber: {
34
30
  readonly type: BooleanConstructor;
@@ -39,51 +35,44 @@ declare const _default: SFCWithInstall<DefineComponent<{
39
35
  readonly default: true;
40
36
  };
41
37
  }, {
38
+ disabled: Ref<boolean>;
39
+ type: Ref<Type>;
40
+ value: Ref<string | number>;
41
+ config: Ref<Record<string, any>>;
42
+ dataFormat: Ref<string>;
43
+ showInputNumber: Ref<boolean>;
44
+ showClassName: Ref<boolean>;
42
45
  show: Ref<boolean>;
43
- realValue: Ref<string | number>;
46
+ realValue: Ref<number | undefined>;
44
47
  classes: ComputedRef<{
45
48
  [key: string]: string | boolean;
46
49
  }>;
47
- placeholder: Ref<string>;
48
- extend: any;
49
- symbol: any;
50
- decimals: number;
51
- disabled: Ref<boolean>;
52
- dataFormat: any;
53
- number: Ref<HTMLElement | null>;
54
- inputType: string;
55
- showClassName: Ref<boolean>;
56
- showInputNumber: Ref<boolean>;
57
- changeInputValue: (val: string) => void;
58
- focusFn: () => void;
59
- blurFun: () => void;
60
- currency: (value: string, _currency: string, decimals: number) => string;
61
- formatFloat: (value: any, dataFormat: string, setLength?: number | undefined) => string;
50
+ handleChange: (val: number) => void;
51
+ handleClick: () => void;
52
+ currencyValue: Ref<string>;
53
+ formatValue: Ref<string>;
54
+ isCurrencyType: ComputedRef<boolean>;
62
55
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
63
- readonly required: {
64
- readonly type: PropType<"0" | "1">;
65
- readonly default: "";
66
- readonly validator: typeof requiredValidator;
56
+ readonly config: {
57
+ readonly type: ObjectConstructor;
58
+ readonly default: () => {};
67
59
  };
68
- readonly placeholder: {
60
+ readonly dataFormat: {
69
61
  readonly type: StringConstructor;
70
62
  readonly default: "";
71
63
  };
72
- readonly configData: {
73
- readonly type: ObjectConstructor;
74
- readonly default: () => {};
75
- };
76
64
  readonly disabled: {
77
65
  readonly type: BooleanConstructor;
78
66
  readonly default: false;
79
67
  };
80
68
  readonly value: {
81
- readonly type: NumberConstructor;
69
+ readonly type: PropType<string | number>;
82
70
  readonly default: "";
83
71
  };
84
- readonly inputType: {
85
- readonly type: StringConstructor;
86
- readonly default: "float";
72
+ readonly type: {
73
+ readonly type: PropType<Type>;
74
+ readonly default: "currency";
75
+ readonly validator: typeof typeValidator;
87
76
  };
88
77
  readonly showInputNumber: {
89
78
  readonly type: BooleanConstructor;
@@ -98,11 +87,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
98
87
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
99
88
  }, {
100
89
  readonly disabled: boolean;
101
- readonly placeholder: string;
102
- readonly value: number;
103
- readonly required: "0" | "1";
104
- readonly configData: Record<string, any>;
105
- readonly inputType: string;
90
+ readonly type: Type;
91
+ readonly value: string | number;
92
+ readonly config: Record<string, any>;
93
+ readonly dataFormat: string;
106
94
  readonly showInputNumber: boolean;
107
95
  readonly showClassName: boolean;
108
96
  }, {}>>;
@@ -1,30 +1,28 @@
1
- import { ExtractPropTypes, PropType, ComputedRef, Ref } from 'vue';
1
+ import type { ExtractPropTypes, PropType, ComputedRef } from 'vue';
2
2
  export declare function requiredValidator(val: string): boolean;
3
- export declare const inputCurrencyProps: {
4
- readonly required: {
5
- readonly type: PropType<"0" | "1">;
6
- readonly default: "";
7
- readonly validator: typeof requiredValidator;
3
+ export type Type = 'currency' | 'float';
4
+ export declare function typeValidator(type: string): boolean;
5
+ export declare const currencyProps: {
6
+ readonly config: {
7
+ readonly type: ObjectConstructor;
8
+ readonly default: () => {};
8
9
  };
9
- readonly placeholder: {
10
+ readonly dataFormat: {
10
11
  readonly type: StringConstructor;
11
12
  readonly default: "";
12
13
  };
13
- readonly configData: {
14
- readonly type: ObjectConstructor;
15
- readonly default: () => {};
16
- };
17
14
  readonly disabled: {
18
15
  readonly type: BooleanConstructor;
19
16
  readonly default: false;
20
17
  };
21
18
  readonly value: {
22
- readonly type: NumberConstructor;
19
+ readonly type: PropType<string | number>;
23
20
  readonly default: "";
24
21
  };
25
- readonly inputType: {
26
- readonly type: StringConstructor;
27
- readonly default: "float";
22
+ readonly type: {
23
+ readonly type: PropType<Type>;
24
+ readonly default: "currency";
25
+ readonly validator: typeof typeValidator;
28
26
  };
29
27
  readonly showInputNumber: {
30
28
  readonly type: BooleanConstructor;
@@ -35,13 +33,9 @@ export declare const inputCurrencyProps: {
35
33
  readonly default: true;
36
34
  };
37
35
  };
38
- export type InputCurrencyProps = ExtractPropTypes<typeof inputCurrencyProps>;
39
- export interface useInputCurrencyReturnType {
36
+ export type CurrencyProps = ExtractPropTypes<typeof currencyProps>;
37
+ export interface CurrencyReturnType {
40
38
  classes: ComputedRef<{
41
39
  [key: string]: string | boolean;
42
40
  }>;
43
- placeholder: Ref<string>;
44
- configData: Record<string, any>;
45
- disabled: Ref<boolean>;
46
- value: Ref<number | string>;
47
41
  }
@@ -1,30 +1,26 @@
1
- import type { requiredValidator } from './currency-type';
2
- import type { DefineComponent, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Ref } from 'vue';
1
+ import type { Type, typeValidator } from './currency-type';
2
+ import type { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
3
  declare const _sfc_main: DefineComponent<{
4
- readonly required: {
5
- readonly type: PropType<"0" | "1">;
6
- readonly default: "";
7
- readonly validator: typeof requiredValidator;
4
+ readonly config: {
5
+ readonly type: ObjectConstructor;
6
+ readonly default: () => {};
8
7
  };
9
- readonly placeholder: {
8
+ readonly dataFormat: {
10
9
  readonly type: StringConstructor;
11
10
  readonly default: "";
12
11
  };
13
- readonly configData: {
14
- readonly type: ObjectConstructor;
15
- readonly default: () => {};
16
- };
17
12
  readonly disabled: {
18
13
  readonly type: BooleanConstructor;
19
14
  readonly default: false;
20
15
  };
21
16
  readonly value: {
22
- readonly type: NumberConstructor;
17
+ readonly type: PropType<string | number>;
23
18
  readonly default: "";
24
19
  };
25
- readonly inputType: {
26
- readonly type: StringConstructor;
27
- readonly default: "float";
20
+ readonly type: {
21
+ readonly type: PropType<Type>;
22
+ readonly default: "currency";
23
+ readonly validator: typeof typeValidator;
28
24
  };
29
25
  readonly showInputNumber: {
30
26
  readonly type: BooleanConstructor;
@@ -35,51 +31,44 @@ declare const _sfc_main: DefineComponent<{
35
31
  readonly default: true;
36
32
  };
37
33
  }, {
34
+ disabled: Ref<boolean>;
35
+ type: Ref<Type>;
36
+ value: Ref<string | number>;
37
+ config: Ref<Record<string, any>>;
38
+ dataFormat: Ref<string>;
39
+ showInputNumber: Ref<boolean>;
40
+ showClassName: Ref<boolean>;
38
41
  show: Ref<boolean>;
39
- realValue: Ref<string | number>;
42
+ realValue: Ref<number | undefined>;
40
43
  classes: ComputedRef<{
41
44
  [key: string]: string | boolean;
42
45
  }>;
43
- placeholder: Ref<string>;
44
- extend: any;
45
- symbol: any;
46
- decimals: number;
47
- disabled: Ref<boolean>;
48
- dataFormat: any;
49
- number: Ref<HTMLElement | null>;
50
- inputType: string;
51
- showClassName: Ref<boolean>;
52
- showInputNumber: Ref<boolean>;
53
- changeInputValue: (val: string) => void;
54
- focusFn: () => void;
55
- blurFun: () => void;
56
- currency: (value: string, _currency: string, decimals: number) => string;
57
- formatFloat: (value: any, dataFormat: string, setLength?: number | undefined) => string;
46
+ handleChange: (val: number) => void;
47
+ handleClick: () => void;
48
+ currencyValue: Ref<string>;
49
+ formatValue: Ref<string>;
50
+ isCurrencyType: ComputedRef<boolean>;
58
51
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
59
- readonly required: {
60
- readonly type: PropType<"0" | "1">;
61
- readonly default: "";
62
- readonly validator: typeof requiredValidator;
52
+ readonly config: {
53
+ readonly type: ObjectConstructor;
54
+ readonly default: () => {};
63
55
  };
64
- readonly placeholder: {
56
+ readonly dataFormat: {
65
57
  readonly type: StringConstructor;
66
58
  readonly default: "";
67
59
  };
68
- readonly configData: {
69
- readonly type: ObjectConstructor;
70
- readonly default: () => {};
71
- };
72
60
  readonly disabled: {
73
61
  readonly type: BooleanConstructor;
74
62
  readonly default: false;
75
63
  };
76
64
  readonly value: {
77
- readonly type: NumberConstructor;
65
+ readonly type: PropType<string | number>;
78
66
  readonly default: "";
79
67
  };
80
- readonly inputType: {
81
- readonly type: StringConstructor;
82
- readonly default: "float";
68
+ readonly type: {
69
+ readonly type: PropType<Type>;
70
+ readonly default: "currency";
71
+ readonly validator: typeof typeValidator;
83
72
  };
84
73
  readonly showInputNumber: {
85
74
  readonly type: BooleanConstructor;
@@ -94,11 +83,10 @@ declare const _sfc_main: DefineComponent<{
94
83
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
95
84
  }, {
96
85
  readonly disabled: boolean;
97
- readonly placeholder: string;
98
- readonly value: number;
99
- readonly required: "0" | "1";
100
- readonly configData: Record<string, any>;
101
- readonly inputType: string;
86
+ readonly type: Type;
87
+ readonly value: string | number;
88
+ readonly config: Record<string, any>;
89
+ readonly dataFormat: string;
102
90
  readonly showInputNumber: boolean;
103
91
  readonly showClassName: boolean;
104
92
  }, {}>;
@@ -1,2 +1,2 @@
1
- import { InputCurrencyProps, useInputCurrencyReturnType } from './currency-type';
2
- export default function useInputCurrency(props: InputCurrencyProps): useInputCurrencyReturnType;
1
+ import { CurrencyReturnType } from './currency-type';
2
+ export default function useInputCurrency(): CurrencyReturnType;
@@ -73,7 +73,6 @@ declare const _default: SFCWithInstall<DefineComponent<{
73
73
  EditorList: Ref<FormFieldsItem[] | undefined>;
74
74
  editorName: Ref<string>;
75
75
  handleCodeChange: (value: string, config: FormFieldsItem) => void;
76
- handleLick: (formData: RecordString, field: FormFieldsItem) => void;
77
76
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
78
77
  readonly groupName: {
79
78
  readonly type: PropType<string>;
@@ -121,13 +120,13 @@ declare const _default: SFCWithInstall<DefineComponent<{
121
120
  };
122
121
  }>>, {
123
122
  readonly buttons: PageButton[];
124
- readonly extend: Record<string, any>;
125
123
  readonly groupName: string;
126
124
  readonly groupNameI18nKey: string;
127
125
  readonly groupCode: string;
128
126
  readonly groupType: string;
129
127
  readonly sortOrder: string;
130
128
  readonly formFields: FormFieldsItem[];
129
+ readonly extend: Record<string, any>;
131
130
  readonly shake: boolean;
132
131
  readonly slot: boolean;
133
132
  readonly enableTile: "0" | "1";
@@ -69,7 +69,6 @@ declare const _sfc_main: DefineComponent<{
69
69
  EditorList: Ref<FormFieldsItem[] | undefined>;
70
70
  editorName: Ref<string>;
71
71
  handleCodeChange: (value: string, config: FormFieldsItem) => void;
72
- handleLick: (formData: RecordString, field: FormFieldsItem) => void;
73
72
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
74
73
  readonly groupName: {
75
74
  readonly type: PropType<string>;
@@ -117,13 +116,13 @@ declare const _sfc_main: DefineComponent<{
117
116
  };
118
117
  }>>, {
119
118
  readonly buttons: PageButton[];
120
- readonly extend: Record<string, any>;
121
119
  readonly groupName: string;
122
120
  readonly groupNameI18nKey: string;
123
121
  readonly groupCode: string;
124
122
  readonly groupType: string;
125
123
  readonly sortOrder: string;
126
124
  readonly formFields: FormFieldsItem[];
125
+ readonly extend: Record<string, any>;
127
126
  readonly shake: boolean;
128
127
  readonly slot: boolean;
129
128
  readonly enableTile: "0" | "1";
@@ -1,6 +1,6 @@
1
1
  import type { RecordString } from '../select-modal';
2
2
  import type { VxeGridProps, VxeTableDataRow, VxeGridInstance, SizeType, VxeTablePropTypes, VxeColumnPropTypes, VxeTooltipPropTypes, VxeColumnSlotTypes, VxeTableDefines, SlotVNodeType, VxeTableConstructor, VxeTablePrivateMethods, VxeGridConstructor, VxeTableProDefines, VxePagerPropTypes, VxeGridPropTypes, VxeButtonPropTypes, VxeToolbarPropTypes, VxeFormPropTypes, VxeFormItemPropTypes, VxeFormItemProps, FormItemTitleRenderParams, FormItemContentRenderParams } from 'vxe-table';
3
- import type { PageButton, ColumnItem, PageButtonWithGroupCode, PageDownLoadButton, GridCheckboxChangeParams, GridCheckboxAllParams } from '../edit-page-layout';
3
+ import type { PageButton, ColumnItem, PageButtonWithGroupCode, PageDownLoadButton, GridCheckboxChangeParams, GridCheckboxAllParams, PageButtonDeleteFileRow } from '../edit-page-layout';
4
4
  import type { DefineComponent, PropType, ComputedRef, Ref, CSSProperties, VNode, RendererNode, RendererElement, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
5
5
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
6
6
  import QDetailForm from './src/detail-grid.vue';
@@ -2634,6 +2634,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
2634
2634
  shake: Ref<boolean>;
2635
2635
  handleCheckboxChange: (params: GridCheckboxChangeParams) => void;
2636
2636
  handleCheckboxAll: (params: GridCheckboxAllParams) => void;
2637
+ handleRemoveAll: (btn: PageButtonDeleteFileRow) => void;
2637
2638
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
2638
2639
  readonly groupName: {
2639
2640
  readonly type: PropType<string>;
@@ -2687,12 +2688,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
2687
2688
  readonly total: Record<string, any>;
2688
2689
  readonly columns: ColumnItem[];
2689
2690
  readonly buttons: PageButton[];
2690
- readonly extend: Record<string, any>;
2691
2691
  readonly groupName: string;
2692
2692
  readonly groupNameI18nKey: string;
2693
2693
  readonly groupCode: string;
2694
2694
  readonly groupType: string;
2695
2695
  readonly sortOrder: string;
2696
+ readonly extend: Record<string, any>;
2696
2697
  readonly shake: boolean;
2697
2698
  readonly slot: boolean;
2698
2699
  readonly vxeGridConfig: VxeGridProps<VxeTableDataRow>;
@@ -1,5 +1,5 @@
1
1
  import type { DefineComponent, PropType, ComputedRef, Ref, VNode, RendererNode, RendererElement, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, CSSProperties } from 'vue';
2
- import type { ColumnItem, PageButton, PageButtonWithGroupCode, RecordString, PageDownLoadButton, GridCheckboxChangeParams, GridCheckboxAllParams } from '../../edit-page-layout';
2
+ import type { ColumnItem, PageButton, PageButtonWithGroupCode, PageButtonDeleteFileRow, RecordString, PageDownLoadButton, GridCheckboxChangeParams, GridCheckboxAllParams } from '../../edit-page-layout';
3
3
  import type { VxeTableDataRow, SizeType, VxeTablePropTypes, VxeColumnPropTypes, VxeTooltipPropTypes, VxeColumnSlotTypes, VxeTableDefines, SlotVNodeType, VxeTableConstructor, VxeTablePrivateMethods, VxeGridConstructor, VxeTableProDefines, VxePagerPropTypes, VxeGridPropTypes, VxeButtonPropTypes, VxeToolbarPropTypes, VxeFormPropTypes, VxeFormItemPropTypes, VxeFormItemProps, FormItemTitleRenderParams, FormItemContentRenderParams, VxeGridInstance, VxeGridProps } from 'vxe-table';
4
4
  declare const _sfc_main: DefineComponent<{
5
5
  readonly groupName: {
@@ -2630,6 +2630,7 @@ declare const _sfc_main: DefineComponent<{
2630
2630
  shake: Ref<boolean>;
2631
2631
  handleCheckboxChange: (params: GridCheckboxChangeParams) => void;
2632
2632
  handleCheckboxAll: (params: GridCheckboxAllParams) => void;
2633
+ handleRemoveAll: (btn: PageButtonDeleteFileRow) => void;
2633
2634
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
2634
2635
  readonly groupName: {
2635
2636
  readonly type: PropType<string>;
@@ -2683,12 +2684,12 @@ declare const _sfc_main: DefineComponent<{
2683
2684
  readonly total: Record<string, any>;
2684
2685
  readonly columns: ColumnItem[];
2685
2686
  readonly buttons: PageButton[];
2686
- readonly extend: Record<string, any>;
2687
2687
  readonly groupName: string;
2688
2688
  readonly groupNameI18nKey: string;
2689
2689
  readonly groupCode: string;
2690
2690
  readonly groupType: string;
2691
2691
  readonly sortOrder: string;
2692
+ readonly extend: Record<string, any>;
2692
2693
  readonly shake: boolean;
2693
2694
  readonly slot: boolean;
2694
2695
  readonly vxeGridConfig: VxeGridProps<VxeTableDataRow>;
@@ -216,12 +216,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
216
216
  currentRow: CurrentRow;
217
217
  businessType: string;
218
218
  token: string;
219
+ userInfo: UserInfo;
219
220
  showPageHeader: boolean;
220
221
  showLayoutAnchor: boolean;
221
222
  isDetail: boolean;
222
223
  role: Role;
223
224
  refreshMethods: (row?: CurrentRow | undefined) => void;
224
- userInfo: UserInfo;
225
225
  isUseLocalPattern: boolean;
226
226
  localConfig: Partial<RemoteConfig>;
227
227
  handleAfterRemoteConfig: <T>(args: T) => T | Promise<T>;
@@ -1,5 +1,5 @@
1
1
  import type { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
- import type { Role, roleValidator, CurrentRow, UserInfo, Pattern, patternValidator, RemoteConfig, DetailApiFunctionType, PageButtonPosition, pageButtonPositionValidator, RecordString, Expose, PageButton, ComputedFormFieldsItem } from '../../edit-page-layout';
2
+ import type { Role, roleValidator, CurrentRow, UserInfo, Pattern, patternValidator, RemoteConfig, DetailApiFunctionType, PageButton, PageButtonPosition, pageButtonPositionValidator, RecordString, Expose, ComputedFormFieldsItem } from '../../edit-page-layout';
3
3
  declare const _sfc_main: DefineComponent<{
4
4
  showPageHeader: {
5
5
  type: PropType<boolean>;
@@ -212,12 +212,12 @@ declare const _sfc_main: DefineComponent<{
212
212
  currentRow: CurrentRow;
213
213
  businessType: string;
214
214
  token: string;
215
+ userInfo: UserInfo;
215
216
  showPageHeader: boolean;
216
217
  showLayoutAnchor: boolean;
217
218
  isDetail: boolean;
218
219
  role: Role;
219
220
  refreshMethods: (row?: CurrentRow | undefined) => void;
220
- userInfo: UserInfo;
221
221
  isUseLocalPattern: boolean;
222
222
  localConfig: Partial<RemoteConfig>;
223
223
  handleAfterRemoteConfig: <T>(args: T) => T | Promise<T>;
@@ -148,13 +148,13 @@ declare const _default: SFCWithInstall<DefineComponent<{
148
148
  };
149
149
  }>>, {
150
150
  readonly buttons: PageButton[];
151
- readonly extend: Record<string, any>;
152
151
  readonly groupName: string;
153
152
  readonly groupNameI18nKey: string;
154
153
  readonly groupCode: string;
155
154
  readonly groupType: string;
156
155
  readonly sortOrder: string;
157
156
  readonly formFields: FormFieldsItem[];
157
+ readonly extend: Record<string, any>;
158
158
  readonly shake: boolean;
159
159
  readonly slot: boolean;
160
160
  readonly enableTile: "0" | "1";
@@ -143,13 +143,13 @@ declare const _sfc_main: DefineComponent<{
143
143
  };
144
144
  }>>, {
145
145
  readonly buttons: PageButton[];
146
- readonly extend: Record<string, any>;
147
146
  readonly groupName: string;
148
147
  readonly groupNameI18nKey: string;
149
148
  readonly groupCode: string;
150
149
  readonly groupType: string;
151
150
  readonly sortOrder: string;
152
151
  readonly formFields: FormFieldsItem[];
152
+ readonly extend: Record<string, any>;
153
153
  readonly shake: boolean;
154
154
  readonly slot: boolean;
155
155
  readonly enableTile: "0" | "1";
@@ -2692,12 +2692,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
2692
2692
  readonly total: Record<string, any>;
2693
2693
  readonly columns: ColumnItem[];
2694
2694
  readonly buttons: PageButton[];
2695
- readonly extend: Record<string, any>;
2696
2695
  readonly groupName: string;
2697
2696
  readonly groupNameI18nKey: string;
2698
2697
  readonly groupCode: string;
2699
2698
  readonly groupType: string;
2700
2699
  readonly sortOrder: string;
2700
+ readonly extend: Record<string, any>;
2701
2701
  readonly shake: boolean;
2702
2702
  readonly slot: boolean;
2703
2703
  readonly vxeGridConfig: VxeGridProps<VxeTableDataRow>;
@@ -2687,12 +2687,12 @@ declare const _sfc_main: DefineComponent<{
2687
2687
  readonly total: Record<string, any>;
2688
2688
  readonly columns: ColumnItem[];
2689
2689
  readonly buttons: PageButton[];
2690
- readonly extend: Record<string, any>;
2691
2690
  readonly groupName: string;
2692
2691
  readonly groupNameI18nKey: string;
2693
2692
  readonly groupCode: string;
2694
2693
  readonly groupType: string;
2695
2694
  readonly sortOrder: string;
2695
+ readonly extend: Record<string, any>;
2696
2696
  readonly shake: boolean;
2697
2697
  readonly slot: boolean;
2698
2698
  readonly vxeGridConfig: VxeGridProps<VxeTableDataRow>;
@@ -217,12 +217,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
217
217
  currentRow: CurrentRow;
218
218
  businessType: string;
219
219
  token: string;
220
+ userInfo: UserInfo;
220
221
  showPageHeader: boolean;
221
222
  showLayoutAnchor: boolean;
222
223
  isDetail: boolean;
223
224
  role: Role;
224
225
  refreshMethods: (row?: CurrentRow | undefined) => void;
225
- userInfo: UserInfo;
226
226
  isUseLocalPattern: boolean;
227
227
  localConfig: Partial<RemoteConfig>;
228
228
  handleAfterRemoteConfig: <T>(args: T) => T | Promise<T>;
@@ -4,6 +4,7 @@ import type { VxeGridProps, VxeTablePropTypes, VxeTableDefines, VxeTableDataRow,
4
4
  import type { Decimal } from 'decimal.js';
5
5
  import { FlowViewModalProps } from '../../flow-view/src/flow-view-modal-types';
6
6
  import { Extend } from '../../select-modal';
7
+ import { FileDataType } from '../../upload-file/src/upload-file-types';
7
8
  import type { CascaderProps } from 'ant-design-vue';
8
9
  export type { Extend };
9
10
  export interface ResponseType {
@@ -89,6 +90,14 @@ export interface PageButtonWithGroupCode extends PageButton {
89
90
  groupCode: string;
90
91
  itemInfo?: RecordString[];
91
92
  }
93
+ export interface PageButtonUploadType extends PageButton {
94
+ groupCode: string;
95
+ itemInfo?: RecordString[];
96
+ onConfirmBeforeUpload?: (formData: FileDataType) => boolean;
97
+ }
98
+ export interface FormDataType extends FileDataType {
99
+ [key: string]: unknown;
100
+ }
92
101
  export interface PageButtonDeleteRow extends PageButton {
93
102
  groupCode: string;
94
103
  ids?: string[];
@@ -191,13 +200,16 @@ export type MixVxeGridProps = OmitEditConfigVxeGridProps & {
191
200
  export interface GroupExtend extends RecordString {
192
201
  vxeGridConfig?: MixVxeGridProps;
193
202
  }
203
+ export interface UploadPageButton extends PageButton {
204
+ onConfirmBeforeUpload?: (formData: FileDataType) => boolean;
205
+ }
194
206
  export interface Group {
195
207
  groupName: string;
196
208
  groupNameI18nKey?: string;
197
209
  groupCode: string;
198
210
  groupType: GroupType;
199
211
  sortOrder?: string;
200
- buttons?: PageButton[];
212
+ buttons?: PageButton[] | UploadPageButton[];
201
213
  extend?: GroupExtend;
202
214
  show?: boolean;
203
215
  shake?: boolean;
@@ -331,6 +343,7 @@ export interface FormFieldsItemWithValue extends FormFieldsItem {
331
343
  export interface ColumnItemWithValue extends ColumnItem {
332
344
  value: StringOrNumber;
333
345
  idx: number;
346
+ row: RecordString;
334
347
  data?: RecordString[];
335
348
  }
336
349
  export interface ImportPropsType {
@@ -1,5 +1,5 @@
1
1
  import type { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
- import type { Role, roleValidator, CurrentRow, UserInfo, Pattern, patternValidator, RemoteConfig, DetailApiFunctionType, PageButtonPosition, pageButtonPositionValidator, RecordString, Expose, PageButton, ComputedFormFieldsItem } from './edit-page-layout-types';
2
+ import type { Role, roleValidator, CurrentRow, UserInfo, Pattern, patternValidator, RemoteConfig, DetailApiFunctionType, PageButton, PageButtonPosition, pageButtonPositionValidator, RecordString, Expose, ComputedFormFieldsItem } from './edit-page-layout-types';
3
3
  declare const _sfc_main: DefineComponent<{
4
4
  showPageHeader: {
5
5
  type: PropType<boolean>;
@@ -212,12 +212,12 @@ declare const _sfc_main: DefineComponent<{
212
212
  currentRow: CurrentRow;
213
213
  businessType: string;
214
214
  token: string;
215
+ userInfo: UserInfo;
215
216
  showPageHeader: boolean;
216
217
  showLayoutAnchor: boolean;
217
218
  isDetail: boolean;
218
219
  role: Role;
219
220
  refreshMethods: (row?: CurrentRow | undefined) => void;
220
- userInfo: UserInfo;
221
221
  isUseLocalPattern: boolean;
222
222
  localConfig: Partial<RemoteConfig>;
223
223
  handleAfterRemoteConfig: <T>(args: T) => T | Promise<T>;
@@ -1 +1 @@
1
- export type { ResponseType, UserInfo, CurrentRow, DictCodeItem, Role, GroupType, Pattern, Icon, PageButtonPayload, PageButtonArgs, PageButtonArgsFunctionType, PageButton, PageUploadButton, PageButtonWithGroupCode, PageButtonDeleteRow, PageDownLoadButton, PageButtonDownLoad, ExposeWithPageDeleteFileRows, PageDeleteFileRowButton, PageButtonDeleteFileRow, ValidateStatus, ValidateResult, PageButtonPosition, RecordString, OmitEditConfigVxeGridProps, OmitBeforeEditMethodEditConfig, GridCheckboxChangeParams, GridCheckboxChangeParamsWithGroupCoe, GridCheckboxAllParams, GridCheckboxAllParamsWithGroupCoe, BeforeEditMethodParams, MixBeforeEditMethod, MixEditConfig, MixVxeGridProps, GroupExtend, Group, HeadGroupType, ItemGroupType, GroupItem, StringOrNumber, Expose, ExposeWithPageButtons, CustomFormatItem, SetItemRequired, SetItemDisabled, SetItemRequiredOrDisabled, ValuePayload, UsePromiseStepPayload, Payload, VxePayload, UploadExtend, FormFieldsItem, ColumnItem, FormFieldsItemSelectModal, ColumnItemWithSelectModal, FormFieldsItemUpload, ColumnItemWithExtend, FormFieldsItemWithValue, ColumnItemWithValue, ImportPropsType, FlowPropsType, ComputedFormFieldsItem, BindFunctionEvent, VxeBindFunctionEvent, RemoteConfig, LayoutConfig, LocalConfig, DetailApiFunctionType, EditPageLayoutProps, Extend, LadderPriceExtend, } from './edit-page-layout-types';
1
+ export type { ResponseType, UserInfo, CurrentRow, DictCodeItem, Role, GroupType, Pattern, Icon, PageButtonPayload, PageButtonArgs, PageButtonArgsFunctionType, PageButton, PageUploadButton, PageButtonWithGroupCode, PageButtonDeleteRow, PageDownLoadButton, PageButtonDownLoad, ExposeWithPageDeleteFileRows, PageDeleteFileRowButton, PageButtonDeleteFileRow, ValidateStatus, ValidateResult, PageButtonPosition, RecordString, OmitEditConfigVxeGridProps, OmitBeforeEditMethodEditConfig, GridCheckboxChangeParams, GridCheckboxChangeParamsWithGroupCoe, GridCheckboxAllParams, GridCheckboxAllParamsWithGroupCoe, BeforeEditMethodParams, MixBeforeEditMethod, MixEditConfig, MixVxeGridProps, GroupExtend, Group, HeadGroupType, ItemGroupType, GroupItem, StringOrNumber, Expose, ExposeWithPageButtons, CustomFormatItem, SetItemRequired, SetItemDisabled, SetItemRequiredOrDisabled, ValuePayload, UsePromiseStepPayload, Payload, VxePayload, UploadExtend, FormFieldsItem, ColumnItem, FormFieldsItemSelectModal, ColumnItemWithSelectModal, FormFieldsItemUpload, ColumnItemWithExtend, FormFieldsItemWithValue, ColumnItemWithValue, ImportPropsType, FlowPropsType, ComputedFormFieldsItem, BindFunctionEvent, VxeBindFunctionEvent, RemoteConfig, LayoutConfig, LocalConfig, DetailApiFunctionType, EditPageLayoutProps, Extend, LadderPriceExtend, FormDataType, } from './edit-page-layout-types';
@@ -3,6 +3,10 @@ import { PageButton } from '../../edit-page-layout/src/edit-page-layout-types';
3
3
  export interface ButtonItem extends Omit<PageButton, 'args'> {
4
4
  args?: {
5
5
  excelCode: string;
6
+ url: string;
7
+ handlerName: string;
8
+ roleCode: string;
9
+ fileName: string;
6
10
  [key: string]: unknown;
7
11
  };
8
12
  groupCode: string;