@qqt-product/ui 7.0.1 → 8.0.1

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 (65) hide show
  1. package/dist/index.es.js +33803 -32512
  2. package/dist/index.umd.js +115 -113
  3. package/dist/lib/components/audit-modal/index.d.ts +1 -1
  4. package/dist/lib/components/audit-modal/src/audit-modal.vue.d.ts +1 -1
  5. package/dist/lib/components/audit-modal/src/component/addNodeHistoryModal.vue.d.ts +1 -1
  6. package/dist/lib/components/audit-modal/src/component/approvalOpinionModal.vue.d.ts +1 -1
  7. package/dist/lib/components/code-editor-model/src/code-editor-model.vue.d.ts +1 -1
  8. package/dist/lib/components/currency/index.d.ts +36 -48
  9. package/dist/lib/components/currency/src/currency-type.d.ts +15 -21
  10. package/dist/lib/components/currency/src/currency.vue.d.ts +37 -49
  11. package/dist/lib/components/currency/src/use-currency.d.ts +2 -2
  12. package/dist/lib/components/detail-form/index.d.ts +1 -2
  13. package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +1 -2
  14. package/dist/lib/components/detail-grid/index.d.ts +3 -2
  15. package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +3 -2
  16. package/dist/lib/components/detail-page-layout/index.d.ts +2 -1
  17. package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +3 -2
  18. package/dist/lib/components/edit-form/index.d.ts +1 -1
  19. package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +1 -1
  20. package/dist/lib/components/edit-form/src/hook/use-callback-hook.d.ts +16 -14
  21. package/dist/lib/components/edit-grid/index.d.ts +1 -1
  22. package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +1 -1
  23. package/dist/lib/components/edit-page-layout/index.d.ts +2 -1
  24. package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +15 -1
  25. package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +3 -2
  26. package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -1
  27. package/dist/lib/components/import-modal/src/import-modal-types.d.ts +4 -0
  28. package/dist/lib/components/index.d.ts +2 -2
  29. package/dist/lib/components/item-wrap/index.d.ts +1 -1
  30. package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +1 -1
  31. package/dist/lib/components/ladder-price/index.d.ts +1 -1
  32. package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +1 -1
  33. package/dist/lib/components/layout/src/header/index.vue.d.ts +1 -1
  34. package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +2 -2
  35. package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +1 -1
  36. package/dist/lib/components/layout-buttons/index.d.ts +1 -0
  37. package/dist/lib/components/layout-buttons/src/layout-buttons.vue.d.ts +1 -0
  38. package/dist/lib/components/layout-pattern/index.d.ts +4 -2
  39. package/dist/lib/components/layout-pattern/src/hook/use-audit-button-hook.d.ts +1 -1
  40. package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +4 -2
  41. package/dist/lib/components/link/index.d.ts +126 -0
  42. package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +2 -1
  43. package/dist/lib/components/list-page-layout/src/symbolNames.d.ts +2 -0
  44. package/dist/lib/components/page-layout/src/constant/symbol.d.ts +49 -49
  45. package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +2 -1
  46. package/dist/lib/components/page-layout/src/hook/use-uid-hook.d.ts +4 -0
  47. package/dist/lib/components/page-layout/src/token.d.ts +2 -0
  48. package/dist/lib/components/rich-editor-model/index.d.ts +1 -1
  49. package/dist/lib/components/rich-editor-model/src/rich-editor-model.vue.d.ts +1 -1
  50. package/dist/lib/components/select-modal/index.d.ts +1 -1
  51. package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +1 -1
  52. package/dist/lib/components/upload-file/index.d.ts +112 -6
  53. package/dist/lib/components/upload-file/src/hook/use-operation-column-button-hook.d.ts +3 -0
  54. package/dist/lib/components/upload-file/src/upload-file-types.d.ts +18 -1
  55. package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +112 -6
  56. package/dist/lib/components/upload-image/index.d.ts +1 -1
  57. package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +1 -1
  58. package/dist/lib/components/useChart/index.d.ts +1 -0
  59. package/dist/lib/utils/ConstantManager.d.ts +10 -0
  60. package/dist/lib/utils/event.d.ts +5 -4
  61. package/dist/style.css +1 -1
  62. package/package.json +12 -8
  63. package/dist/lib/components/coutdown/index.d.ts +0 -84
  64. package/dist/lib/components/coutdown/src/coutdown.d.ts +0 -48
  65. package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +0 -81
@@ -318,8 +318,8 @@ declare const _default: SFCWithInstall<DefineComponent<{
318
318
  onOk?: ((...args: any[]) => any) | undefined;
319
319
  onCancel?: ((...args: any[]) => any) | undefined;
320
320
  }, {
321
- title: string;
322
321
  form: Form[];
322
+ title: string;
323
323
  'onUpdate:visible': ((value: string) => void) | ((value: string) => void)[];
324
324
  visible: boolean;
325
325
  currentRow: any;
@@ -314,8 +314,8 @@ declare const _sfc_main: DefineComponent<{
314
314
  onOk?: ((...args: any[]) => any) | undefined;
315
315
  onCancel?: ((...args: any[]) => any) | undefined;
316
316
  }, {
317
- title: string;
318
317
  form: Form[];
318
+ title: string;
319
319
  'onUpdate:visible': ((value: string) => void) | ((value: string) => void)[];
320
320
  visible: boolean;
321
321
  currentRow: any;
@@ -668,8 +668,8 @@ declare const _sfc_main: DefineComponent<{
668
668
  onOk?: ((...args: any[]) => any) | undefined;
669
669
  onCancel?: ((...args: any[]) => any) | undefined;
670
670
  }, {
671
- title: string;
672
671
  form: Form[];
672
+ title: string;
673
673
  'onUpdate:visible': ((value: string) => void) | ((value: string) => void)[];
674
674
  visible: boolean;
675
675
  currentRow: any;
@@ -398,8 +398,8 @@ declare const _sfc_main: DefineComponent<{
398
398
  onOk?: ((...args: any[]) => any) | undefined;
399
399
  onCancel?: ((...args: any[]) => any) | undefined;
400
400
  }, {
401
- title: string;
402
401
  form: Form[];
402
+ title: string;
403
403
  'onUpdate:visible': ((value: string) => void) | ((value: string) => void)[];
404
404
  visible: boolean;
405
405
  currentRow: any;
@@ -190,9 +190,9 @@ declare const _sfc_main: DefineComponent<{
190
190
  onHandleSureClose?: ((...args: any[]) => any) | undefined;
191
191
  "onUpdate:editorModalFlag"?: ((...args: any[]) => any) | undefined;
192
192
  }, {
193
- disabled: boolean;
194
193
  value: string;
195
194
  options: Record<string, any>;
195
+ disabled: boolean;
196
196
  editorModalFlag: boolean;
197
197
  isAllowToOpenMode: boolean;
198
198
  showLabel: string;
@@ -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
+ type: Ref<Type>;
39
+ value: Ref<string | number>;
40
+ disabled: Ref<boolean>;
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;
@@ -97,12 +86,11 @@ declare const _default: SFCWithInstall<DefineComponent<{
97
86
  onChange?: ((...args: any[]) => any) | undefined;
98
87
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
99
88
  }, {
89
+ readonly type: Type;
90
+ readonly value: string | number;
100
91
  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;
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
+ type: Ref<Type>;
35
+ value: Ref<string | number>;
36
+ disabled: Ref<boolean>;
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;
@@ -93,12 +82,11 @@ declare const _sfc_main: DefineComponent<{
93
82
  onChange?: ((...args: any[]) => any) | undefined;
94
83
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
95
84
  }, {
85
+ readonly type: Type;
86
+ readonly value: string | number;
96
87
  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;
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>;
@@ -114,6 +114,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
114
114
  patternAppend: string;
115
115
  }[];
116
116
  computedCustomSlotFields: ComputedRef<ComputedFormFieldsItem[]>;
117
+ handlePageBack: () => void;
117
118
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
118
119
  showPageHeader: {
119
120
  type: PropType<boolean>;
@@ -216,12 +217,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
216
217
  currentRow: CurrentRow;
217
218
  businessType: string;
218
219
  token: string;
220
+ userInfo: UserInfo;
219
221
  showPageHeader: boolean;
220
222
  showLayoutAnchor: boolean;
221
223
  isDetail: boolean;
222
224
  role: Role;
223
225
  refreshMethods: (row?: CurrentRow | undefined) => void;
224
- userInfo: UserInfo;
225
226
  isUseLocalPattern: boolean;
226
227
  localConfig: Partial<RemoteConfig>;
227
228
  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>;
@@ -110,6 +110,7 @@ declare const _sfc_main: DefineComponent<{
110
110
  patternAppend: string;
111
111
  }[];
112
112
  computedCustomSlotFields: ComputedRef<ComputedFormFieldsItem[]>;
113
+ handlePageBack: () => void;
113
114
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
114
115
  showPageHeader: {
115
116
  type: PropType<boolean>;
@@ -212,12 +213,12 @@ declare const _sfc_main: DefineComponent<{
212
213
  currentRow: CurrentRow;
213
214
  businessType: string;
214
215
  token: string;
216
+ userInfo: UserInfo;
215
217
  showPageHeader: boolean;
216
218
  showLayoutAnchor: boolean;
217
219
  isDetail: boolean;
218
220
  role: Role;
219
221
  refreshMethods: (row?: CurrentRow | undefined) => void;
220
- userInfo: UserInfo;
221
222
  isUseLocalPattern: boolean;
222
223
  localConfig: Partial<RemoteConfig>;
223
224
  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";
@@ -2,17 +2,19 @@ import type { FormFieldsItem, RecordString } from '../../../edit-page-layout';
2
2
  import type { MixSelectArgs } from '../../../select';
3
3
  import type { TreeSelectPayload } from '../../../tree-select';
4
4
  import type { CascaderProps } from 'ant-design-vue';
5
- export declare const handleInputBlur: (event: Event, config: FormFieldsItem) => void;
6
- export declare const handleSelectChange: (value: string, selectedOptions: CascaderProps['options'], config: FormFieldsItem) => void;
7
- export declare const handleTreeSelectChange: ({ value, label, extra }: TreeSelectPayload, config: FormFieldsItem) => void;
8
- export declare const handleMixSelectChange: ({ value, label }: MixSelectArgs, config: FormFieldsItem) => void;
9
- export declare const handleSwitchChange: (value: string, config: FormFieldsItem) => void;
10
- export declare const handleRadioChange: (value: string, config: FormFieldsItem) => void;
11
- export declare const handleUploadChange: (value: string, config: FormFieldsItem) => void;
12
- export declare const handleCurrencyChange: (value: string, config: FormFieldsItem) => void;
13
- export declare const handleRemoteSelectChange: (data: RecordString[], config: FormFieldsItem) => void;
14
- export declare const handleSelectModalChange: (data: RecordString[], config: FormFieldsItem) => void;
15
- export declare const handleCustomSelectModelClick: (config: FormFieldsItem) => void;
16
- export declare const handleLadderPriceAfterSelect: (data: RecordString[], config: FormFieldsItem) => void;
17
- export declare const handleDateChange: (value: string, config: FormFieldsItem) => void;
18
- export declare const handleCodeChange: (value: string, config: FormFieldsItem) => void;
5
+ export default function useCallback(): {
6
+ handleInputBlur: (event: Event, config: FormFieldsItem) => void;
7
+ handleSelectChange: (value: string, selectedOptions: CascaderProps['options'], config: FormFieldsItem) => void;
8
+ handleTreeSelectChange: ({ value, label, extra }: TreeSelectPayload, config: FormFieldsItem) => void;
9
+ handleMixSelectChange: ({ value, label }: MixSelectArgs, config: FormFieldsItem) => void;
10
+ handleSwitchChange: (value: string, config: FormFieldsItem) => void;
11
+ handleRadioChange: (value: string, config: FormFieldsItem) => void;
12
+ handleUploadChange: (value: string, config: FormFieldsItem) => void;
13
+ handleCurrencyChange: (value: string, config: FormFieldsItem) => void;
14
+ handleRemoteSelectChange: (data: RecordString[], config: FormFieldsItem) => void;
15
+ handleSelectModalChange: (data: RecordString[], config: FormFieldsItem) => void;
16
+ handleCustomSelectModelClick: (config: FormFieldsItem) => void;
17
+ handleLadderPriceAfterSelect: (data: RecordString[], config: FormFieldsItem) => void;
18
+ handleDateChange: (value: string, config: FormFieldsItem) => void;
19
+ handleCodeChange: (value: string, config: FormFieldsItem) => void;
20
+ };
@@ -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>;