@qqt-product/ui 0.0.14 → 0.0.16

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 (147) hide show
  1. package/dist/index.es.js +112024 -41701
  2. package/dist/index.umd.js +254 -15197
  3. package/dist/lib/components/audit-modal/index.d.ts +324 -0
  4. package/dist/lib/components/audit-modal/src/audit-modal-type.d.ts +65 -0
  5. package/dist/lib/components/audit-modal/src/audit-modal.vue.d.ts +320 -0
  6. package/dist/lib/components/audit-modal/src/component/addNodeHistoryModal.vue.d.ts +675 -0
  7. package/dist/lib/components/audit-modal/src/component/approvalOpinionModal.vue.d.ts +406 -0
  8. package/dist/lib/components/audit-modal/src/component/field-select-modal-types.d.ts +93 -0
  9. package/dist/lib/components/audit-modal/src/component/field-select-modal.vue.d.ts +163 -0
  10. package/dist/lib/components/audit-modal/src/component/use-field-select-modal.d.ts +6 -0
  11. package/dist/lib/components/audit-modal/src/hook/list-slot-hook.d.ts +16 -0
  12. package/dist/lib/components/audit-modal/src/hook/use-audit-config-hook.d.ts +6 -0
  13. package/dist/lib/components/audit-modal/src/hook/use-field-select-modal-hook.d.ts +9 -0
  14. package/dist/lib/components/card-list-layout/index.d.ts +8 -18
  15. package/dist/lib/components/card-list-layout/src/card-content.vue.d.ts +2 -2
  16. package/dist/lib/components/card-list-layout/src/cardItem.vue.d.ts +2 -2
  17. package/dist/lib/components/card-list-layout/src/index.vue.d.ts +8 -18
  18. package/dist/lib/components/cascader/index.d.ts +10 -8
  19. package/dist/lib/components/cascader/src/cascader.vue.d.ts +10 -8
  20. package/dist/lib/components/checkbox/index.d.ts +1 -1
  21. package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +1 -1
  22. package/dist/lib/components/{codeEditorModel/src/codeEditorModel.vue.d.ts → code-editor-model/src/code-editor-model.vue.d.ts} +40 -9
  23. package/dist/lib/components/countdown/index.d.ts +122 -0
  24. package/dist/lib/components/countdown/src/countdown-types.d.ts +87 -0
  25. package/dist/lib/components/countdown/src/countdown.d.ts +118 -0
  26. package/dist/lib/components/countdown/src/use-countdown.d.ts +2 -0
  27. package/dist/lib/components/coutdown/index.d.ts +3 -3
  28. package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +3 -3
  29. package/dist/lib/components/currency/index.d.ts +1 -1
  30. package/dist/lib/components/currency/src/currency.vue.d.ts +1 -1
  31. package/dist/lib/components/detail-form/index.d.ts +23 -2
  32. package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +23 -3
  33. package/dist/lib/components/detail-grid/index.d.ts +10 -6
  34. package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +9 -6
  35. package/dist/lib/components/detail-grid/src/hook/use-grid-config-hook.d.ts +1 -1
  36. package/dist/lib/components/detail-page-layout/index.d.ts +20 -3
  37. package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +19 -3
  38. package/dist/lib/components/edit-form/index.d.ts +27 -2
  39. package/dist/lib/components/edit-form/src/edit-form-types.d.ts +4 -0
  40. package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +26 -2
  41. package/dist/lib/components/edit-form/src/hook/use-callback-hook.d.ts +7 -1
  42. package/dist/lib/components/edit-grid/index.d.ts +11 -6
  43. package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +10 -6
  44. package/dist/lib/components/edit-grid/src/hook/use-grid-config-hook.d.ts +3 -3
  45. package/dist/lib/components/edit-page-layout/index.d.ts +19 -3
  46. package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +143 -22
  47. package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +19 -3
  48. package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -1
  49. package/dist/lib/components/editor/index.d.ts +22 -8
  50. package/dist/lib/components/editor/src/index.vue.d.ts +22 -8
  51. package/dist/lib/components/field-select-modal/index.d.ts +24 -8
  52. package/dist/lib/components/field-select-modal/src/field-select-modal-types.d.ts +9 -2
  53. package/dist/lib/components/field-select-modal/src/field-select-modal.vue.d.ts +24 -8
  54. package/dist/lib/components/flow-view/index.d.ts +121 -0
  55. package/dist/lib/components/flow-view/src/flow-view-modal-types.d.ts +60 -0
  56. package/dist/lib/components/flow-view/src/flow-view.d.ts +118 -0
  57. package/dist/lib/components/flow-view/src/use-flow-view-modal.d.ts +2 -0
  58. package/dist/lib/components/import-modal/index.d.ts +90 -0
  59. package/dist/lib/components/import-modal/src/import-modal-types.d.ts +28 -0
  60. package/dist/lib/components/import-modal/src/import-modal.vue.d.ts +86 -0
  61. package/dist/lib/components/index.d.ts +11 -2
  62. package/dist/lib/components/item-wrap/index.d.ts +3 -3
  63. package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +3 -3
  64. package/dist/lib/components/ladder-price/index.d.ts +58 -0
  65. package/dist/lib/components/ladder-price/src/LadderNotPriceModal.vue.d.ts +35 -0
  66. package/dist/lib/components/ladder-price/src/LadderPriceModal.vue.d.ts +38 -0
  67. package/dist/lib/components/ladder-price/src/ladder-not-price-modal-types.d.ts +16 -0
  68. package/dist/lib/components/ladder-price/src/ladder-price-modal-types.d.ts +15 -0
  69. package/dist/lib/components/ladder-price/src/ladder-price-types.d.ts +35 -0
  70. package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +55 -0
  71. package/dist/lib/components/ladder-price/src/use-ladder-not-price-modal.d.ts +6 -0
  72. package/dist/lib/components/ladder-price/src/use-ladder-price.d.ts +6 -0
  73. package/dist/lib/components/layout/src/types.d.ts +1 -0
  74. package/dist/lib/components/layout-anchor/index.d.ts +2 -1
  75. package/dist/lib/components/layout-anchor/src/layout-auchor.vue.d.ts +2 -1
  76. package/dist/lib/components/layout-buttons/index.d.ts +2 -1
  77. package/dist/lib/components/layout-pattern/index.d.ts +12 -2
  78. package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +126 -15
  79. package/dist/lib/components/layout-pattern/src/hook/use-audit-button-hook.d.ts +46 -0
  80. package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +12 -2
  81. package/dist/lib/components/list-page-layout/index.d.ts +77 -15
  82. package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +2 -1
  83. package/dist/lib/components/list-page-layout/src/components/common/import-modal/import-modal.vue.d.ts +3 -1
  84. package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +10 -10
  85. package/dist/lib/components/list-page-layout/src/components/list-content/events-helper.d.ts +0 -2
  86. package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +6 -4
  87. package/dist/lib/components/list-page-layout/src/components/list-header/hooks/use-callback-hook.d.ts +3 -0
  88. package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +4 -2
  89. package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +8 -2
  90. package/dist/lib/components/list-page-layout/src/components/list-header/module/quick-nav/index.vue.d.ts +1 -0
  91. package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +14 -6
  92. package/dist/lib/components/list-page-layout/src/hooks/auth-button.d.ts +4 -0
  93. package/dist/lib/components/list-page-layout/src/hooks/get-columns-hook.d.ts +1 -1
  94. package/dist/lib/components/list-page-layout/src/hooks/list-slot-hook.d.ts +10 -4
  95. package/dist/lib/components/list-page-layout/src/hooks/use-button-function-hook.d.ts +8 -0
  96. package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +75 -14
  97. package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +59 -7
  98. package/dist/lib/components/list-page-layout/src/utils/gridConfig.d.ts +6 -21
  99. package/dist/lib/components/list-page-layout/src/utils/index.d.ts +2 -0
  100. package/dist/lib/components/page-layout/index.d.ts +2 -1
  101. package/dist/lib/components/page-layout/src/constant/buttons.d.ts +28 -2
  102. package/dist/lib/components/page-layout/src/constant/symbol.d.ts +35 -0
  103. package/dist/lib/components/page-layout/src/hook/use-merge-defaultValues-hook.d.ts +1 -1
  104. package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +19 -9
  105. package/dist/lib/components/radio/index.d.ts +1 -1
  106. package/dist/lib/components/radio/src/radio.vue.d.ts +1 -1
  107. package/dist/lib/components/relation-graph/src/relation-graph-types.d.ts +23 -0
  108. package/dist/lib/components/remote-select/index.d.ts +30 -71
  109. package/dist/lib/components/remote-select/src/remote-select-types.d.ts +44 -28
  110. package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +31 -72
  111. package/dist/lib/components/sale-template/index.d.ts +99 -0
  112. package/dist/lib/components/sale-template/src/sale-template-types.d.ts +41 -0
  113. package/dist/lib/components/sale-template/src/sale-template.vue.d.ts +95 -0
  114. package/dist/lib/components/sale-template/src/use-sale-template.d.ts +2 -0
  115. package/dist/lib/components/select/index.d.ts +6 -6
  116. package/dist/lib/components/select/src/select-types.d.ts +5 -1
  117. package/dist/lib/components/select/src/select.vue.d.ts +6 -6
  118. package/dist/lib/components/select-modal/index.d.ts +54 -16
  119. package/dist/lib/components/select-modal/src/select-modal-types.d.ts +24 -4
  120. package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +54 -16
  121. package/dist/lib/components/select-template/index.d.ts +92 -0
  122. package/dist/lib/components/select-template/src/select-template-type.d.ts +32 -0
  123. package/dist/lib/components/select-template/src/select-template.vue.d.ts +88 -0
  124. package/dist/lib/components/tree-select/index.d.ts +8 -7
  125. package/dist/lib/components/tree-select/src/tree-select-types.d.ts +7 -1
  126. package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +8 -7
  127. package/dist/lib/components/upload-file/index.d.ts +15 -24
  128. package/dist/lib/components/upload-file/src/hook/use-file-column-hook.d.ts +0 -1
  129. package/dist/lib/components/upload-file/src/upload-file-types.d.ts +14 -10
  130. package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +13 -23
  131. package/dist/lib/components/upload-file-vxe/index.d.ts +78 -0
  132. package/dist/lib/components/upload-file-vxe/src/upload-file-vxe-types.d.ts +38 -0
  133. package/dist/lib/components/upload-file-vxe/src/upload-file-vxe.vue.d.ts +75 -0
  134. package/dist/lib/components/upload-image/index.d.ts +3 -3
  135. package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +3 -3
  136. package/dist/lib/components/useChart/index.d.ts +11 -0
  137. package/dist/lib/components/useChart/lib.d.ts +2 -0
  138. package/dist/lib/components/useChart/types.d.ts +21 -0
  139. package/dist/lib/components/vxe-select/index.d.ts +24 -6
  140. package/dist/lib/components/vxe-select/src/vxe-select-types.d.ts +7 -1
  141. package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +24 -6
  142. package/dist/lib/index.d.ts +4 -1
  143. package/dist/lib/utils/event.d.ts +35 -2
  144. package/dist/style.css +1 -6
  145. package/package.json +24 -18
  146. package/dist/lib/components/codeEditorModel/index.d.ts +0 -93
  147. package/dist/lib/components/list-page-layout/src/components/common/add-modal/add-modal.vue.d.ts +0 -21
@@ -0,0 +1,88 @@
1
+ import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
+ declare const _sfc_main: DefineComponent<{
3
+ readonly url: {
4
+ readonly type: PropType<string>;
5
+ readonly default: "";
6
+ };
7
+ readonly businessType: {
8
+ readonly type: PropType<string>;
9
+ readonly default: "";
10
+ };
11
+ readonly elsAccount: {
12
+ readonly type: PropType<string>;
13
+ readonly default: "";
14
+ };
15
+ readonly visible: {
16
+ readonly type: PropType<boolean>;
17
+ readonly default: false;
18
+ };
19
+ readonly autoVisible: {
20
+ readonly type: PropType<boolean>;
21
+ readonly default: true;
22
+ };
23
+ readonly 'onUpdate:visible': {
24
+ type: PropType<((visible: boolean) => void) | ((visible: boolean) => void)[]>;
25
+ default: unknown;
26
+ };
27
+ readonly ok: {
28
+ type: PropType<(() => void) | (() => void)[]>;
29
+ default: unknown;
30
+ };
31
+ }, {
32
+ visible: Ref<boolean>;
33
+ form: {
34
+ templateNumber: string;
35
+ };
36
+ templateOpts: Ref<any>;
37
+ handleCancel: () => void;
38
+ open: typeof open;
39
+ handlePromptOk: () => void;
40
+ selectedTemplate: () => void;
41
+ formRules: {
42
+ templateNumber: {
43
+ required: boolean;
44
+ message: string;
45
+ }[];
46
+ };
47
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:visible" | "ok")[], "update:visible" | "ok", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
48
+ readonly url: {
49
+ readonly type: PropType<string>;
50
+ readonly default: "";
51
+ };
52
+ readonly businessType: {
53
+ readonly type: PropType<string>;
54
+ readonly default: "";
55
+ };
56
+ readonly elsAccount: {
57
+ readonly type: PropType<string>;
58
+ readonly default: "";
59
+ };
60
+ readonly visible: {
61
+ readonly type: PropType<boolean>;
62
+ readonly default: false;
63
+ };
64
+ readonly autoVisible: {
65
+ readonly type: PropType<boolean>;
66
+ readonly default: true;
67
+ };
68
+ readonly 'onUpdate:visible': {
69
+ type: PropType<((visible: boolean) => void) | ((visible: boolean) => void)[]>;
70
+ default: unknown;
71
+ };
72
+ readonly ok: {
73
+ type: PropType<(() => void) | (() => void)[]>;
74
+ default: unknown;
75
+ };
76
+ }>> & {
77
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
78
+ onOk?: ((...args: any[]) => any) | undefined;
79
+ }, {
80
+ readonly ok: (() => void) | (() => void)[];
81
+ readonly 'onUpdate:visible': ((visible: boolean) => void) | ((visible: boolean) => void)[];
82
+ readonly visible: boolean;
83
+ readonly businessType: string;
84
+ readonly url: string;
85
+ readonly elsAccount: string;
86
+ readonly autoVisible: boolean;
87
+ }, {}>;
88
+ export default _sfc_main;
@@ -1,5 +1,5 @@
1
- import type { FieldNames, TreeNode } from './src/tree-select-types';
2
- import type { RecordStringNumber } from '../edit-page-layout';
1
+ import type { FieldNames, TreeNode, TreeSelectPayload } from './src/tree-select-types';
2
+ import type { RecordStringNumber } from '../select-modal';
3
3
  import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
4
4
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
5
5
  import QTreeSelect from './src/tree-select.vue';
@@ -39,7 +39,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
39
39
  default: unknown;
40
40
  };
41
41
  readonly onChange: {
42
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
42
+ type: PropType<((payload: TreeSelectPayload) => void) | ((payload: TreeSelectPayload) => void)[]>;
43
43
  default: unknown;
44
44
  };
45
45
  }, {
@@ -54,12 +54,13 @@ declare const _default: SFCWithInstall<DefineComponent<{
54
54
  hasChildren: boolean;
55
55
  title: string;
56
56
  value: string;
57
+ level: number;
57
58
  children?: any[] | null | undefined;
58
59
  }[]>;
59
60
  labelProp: ComputedRef<string>;
60
61
  fieldNames: FieldNames;
61
62
  multiple: Ref<boolean>;
62
- onChange: (value: string) => void;
63
+ onChange: (value: string | string[], label: string | string[], extra: any) => void;
63
64
  searchValue: Ref<string>;
64
65
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
65
66
  readonly value: {
@@ -95,17 +96,17 @@ declare const _default: SFCWithInstall<DefineComponent<{
95
96
  default: unknown;
96
97
  };
97
98
  readonly onChange: {
98
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
99
+ type: PropType<((payload: TreeSelectPayload) => void) | ((payload: TreeSelectPayload) => void)[]>;
99
100
  default: unknown;
100
101
  };
101
102
  }>> & {
102
103
  onChange?: ((...args: any[]) => any) | undefined;
103
104
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
104
105
  }, {
106
+ readonly multiple: boolean;
105
107
  readonly params: RecordStringNumber;
106
- readonly onChange: ((value: string) => void) | ((value: string) => void)[];
108
+ readonly onChange: ((payload: TreeSelectPayload) => void) | ((payload: TreeSelectPayload) => void)[];
107
109
  readonly value: string;
108
- readonly multiple: boolean;
109
110
  readonly options: TreeNode[];
110
111
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
111
112
  readonly fieldNames: FieldNames;
@@ -6,6 +6,7 @@ export interface TreeNode {
6
6
  hasChildren: boolean;
7
7
  title: string;
8
8
  value: string;
9
+ level: number;
9
10
  children?: null | TreeNode[];
10
11
  [K: string]: unknown;
11
12
  }
@@ -14,6 +15,11 @@ export interface FieldNames {
14
15
  label: string;
15
16
  value: string;
16
17
  }
18
+ export interface TreeSelectPayload {
19
+ value: string;
20
+ label: string[];
21
+ extra: any;
22
+ }
17
23
  export declare const treeSelectProps: {
18
24
  readonly value: {
19
25
  readonly type: StringConstructor;
@@ -48,7 +54,7 @@ export declare const treeSelectProps: {
48
54
  default: unknown;
49
55
  };
50
56
  readonly onChange: {
51
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
57
+ type: PropType<((payload: TreeSelectPayload) => void) | ((payload: TreeSelectPayload) => void)[]>;
52
58
  default: unknown;
53
59
  };
54
60
  };
@@ -1,6 +1,6 @@
1
- import type { RecordStringNumber } from '../../edit-page-layout';
1
+ import type { RecordStringNumber } from '../../select-modal';
2
2
  import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
- import type { FieldNames, TreeNode } from './tree-select-types';
3
+ import type { FieldNames, TreeSelectPayload, TreeNode } from './tree-select-types';
4
4
  declare const _sfc_main: DefineComponent<{
5
5
  readonly value: {
6
6
  readonly type: StringConstructor;
@@ -35,7 +35,7 @@ declare const _sfc_main: DefineComponent<{
35
35
  default: unknown;
36
36
  };
37
37
  readonly onChange: {
38
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
38
+ type: PropType<((payload: TreeSelectPayload) => void) | ((payload: TreeSelectPayload) => void)[]>;
39
39
  default: unknown;
40
40
  };
41
41
  }, {
@@ -50,12 +50,13 @@ declare const _sfc_main: DefineComponent<{
50
50
  hasChildren: boolean;
51
51
  title: string;
52
52
  value: string;
53
+ level: number;
53
54
  children?: any[] | null | undefined;
54
55
  }[]>;
55
56
  labelProp: ComputedRef<string>;
56
57
  fieldNames: FieldNames;
57
58
  multiple: Ref<boolean>;
58
- onChange: (value: string) => void;
59
+ onChange: (value: string | string[], label: string | string[], extra: any) => void;
59
60
  searchValue: Ref<string>;
60
61
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
61
62
  readonly value: {
@@ -91,17 +92,17 @@ declare const _sfc_main: DefineComponent<{
91
92
  default: unknown;
92
93
  };
93
94
  readonly onChange: {
94
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
95
+ type: PropType<((payload: TreeSelectPayload) => void) | ((payload: TreeSelectPayload) => void)[]>;
95
96
  default: unknown;
96
97
  };
97
98
  }>> & {
98
99
  onChange?: ((...args: any[]) => any) | undefined;
99
100
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
100
101
  }, {
102
+ readonly multiple: boolean;
101
103
  readonly params: RecordStringNumber;
102
- readonly onChange: ((value: string) => void) | ((value: string) => void)[];
104
+ readonly onChange: ((payload: TreeSelectPayload) => void) | ((payload: TreeSelectPayload) => void)[];
103
105
  readonly value: string;
104
- readonly multiple: boolean;
105
106
  readonly options: TreeNode[];
106
107
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
107
108
  readonly fieldNames: FieldNames;
@@ -1,8 +1,9 @@
1
1
  import type { UploadFile } from 'ant-design-vue';
2
2
  import type { FileType } from 'ant-design-vue/lib/upload/interface';
3
3
  import type { validateInfos } from 'ant-design-vue/lib/form/useForm';
4
+ import type { RecordStringNumber } from '../select-modal';
4
5
  import type { Data, FileTypeList } from './src/upload-file-types';
5
- import type { UserInfo, Role, CurrentRow, RecordStringNumber } from '../edit-page-layout';
6
+ import type { UserInfo, Role, CurrentRow } from '../edit-page-layout';
6
7
  import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
7
8
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
8
9
  import QUploadFile from './src/upload-file.vue';
@@ -36,13 +37,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
36
37
  readonly type: StringConstructor;
37
38
  readonly default: "attachmentExtension";
38
39
  };
39
- readonly single: {
40
- readonly type: BooleanConstructor;
41
- readonly default: false;
42
- };
43
- readonly multiple: {
44
- readonly type: BooleanConstructor;
45
- readonly default: true;
40
+ readonly maxCount: {
41
+ readonly type: NumberConstructor;
42
+ readonly default: 1;
46
43
  };
47
44
  readonly userInfo: {
48
45
  readonly type: PropType<UserInfo>;
@@ -116,14 +113,13 @@ declare const _default: SFCWithInstall<DefineComponent<{
116
113
  validateInfos: validateInfos;
117
114
  limitSize: Ref<number>;
118
115
  accept: Ref<string>;
119
- multiple: Ref<boolean>;
120
116
  handleConfirm: () => void;
121
117
  handleCancel: () => void;
122
118
  fileData: Record<string, any>;
123
119
  itemNumberLabel: Ref<string>;
124
120
  itemNumbeValueProp: Ref<string>;
125
121
  property: Ref<string>;
126
- disabledItemNumber: Ref<boolean>;
122
+ itemInfo: Ref<RecordStringNumber[]>;
127
123
  fileTypeList: Ref<{
128
124
  [x: string]: unknown;
129
125
  title: string;
@@ -165,13 +161,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
165
161
  readonly type: StringConstructor;
166
162
  readonly default: "attachmentExtension";
167
163
  };
168
- readonly single: {
169
- readonly type: BooleanConstructor;
170
- readonly default: false;
171
- };
172
- readonly multiple: {
173
- readonly type: BooleanConstructor;
174
- readonly default: true;
164
+ readonly maxCount: {
165
+ readonly type: NumberConstructor;
166
+ readonly default: 1;
175
167
  };
176
168
  readonly userInfo: {
177
169
  readonly type: PropType<UserInfo>;
@@ -245,22 +237,22 @@ declare const _default: SFCWithInstall<DefineComponent<{
245
237
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
246
238
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
247
239
  }, {
240
+ readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
241
+ readonly visible: boolean;
242
+ readonly currentRow: CurrentRow;
243
+ readonly action: string;
244
+ readonly accept: string;
248
245
  readonly data: Data;
249
- readonly multiple: boolean;
250
246
  readonly dictCode: string;
251
247
  readonly property: string;
252
- readonly visible: boolean;
253
248
  readonly role: Role;
254
- readonly currentRow: CurrentRow;
255
249
  readonly userInfo: UserInfo;
256
- readonly single: boolean;
257
250
  readonly attrCheck: string;
258
251
  readonly limitSize: number;
259
- readonly accept: string;
260
252
  readonly acceptDictCode: string;
253
+ readonly maxCount: number;
261
254
  readonly isOss: boolean;
262
255
  readonly isGridUpload: boolean;
263
- readonly action: string;
264
256
  readonly itemNumberKey: string;
265
257
  readonly itemNumberLabel: string;
266
258
  readonly itemNumbeValueProp: string;
@@ -269,6 +261,5 @@ declare const _default: SFCWithInstall<DefineComponent<{
269
261
  readonly disabledItemNumber: boolean;
270
262
  readonly itemInfo: RecordStringNumber[];
271
263
  readonly fileTypeList: FileTypeList[];
272
- readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
273
264
  }, {}>>;
274
265
  export default _default;
@@ -5,7 +5,6 @@ export default function useFileColumn<T extends InitializeConfig>(payload: T): {
5
5
  field: string;
6
6
  title: string;
7
7
  fieldLabelI18nKey: string;
8
- width: number;
9
8
  groupCode: string;
10
9
  fieldType?: string | undefined;
11
10
  helpText?: string | undefined;
@@ -7,6 +7,7 @@ export interface InitializeConfig {
7
7
  role?: string;
8
8
  path?: string;
9
9
  operationButton?: string[];
10
+ [key: string]: unknown;
10
11
  }
11
12
  export interface Data {
12
13
  businessType: string;
@@ -23,16 +24,23 @@ export interface FileTypeList {
23
24
  value: string;
24
25
  [key: string]: unknown;
25
26
  }
27
+ export interface PayloadType {
28
+ pageData: RecordStringNumber;
29
+ row: RecordStringNumber;
30
+ rowIndex: number;
31
+ }
26
32
  export interface ColumnItemExtend {
27
33
  url?: string;
28
- single: boolean;
29
- multiple: boolean;
30
- isGridUpload: boolean;
34
+ maxCount?: number;
35
+ maxNumber?: number;
36
+ isGridUpload?: boolean;
31
37
  [key: string]: unknown;
32
38
  [key: number]: unknown;
39
+ handleBefore: (payload: PayloadType) => Promise<PayloadType>;
33
40
  }
34
41
  export interface ColumnItemWithExtend extends ColumnItem {
35
42
  extend?: ColumnItemExtend;
43
+ row: RecordStringNumber;
36
44
  idx: number;
37
45
  }
38
46
  export type VxeItemFileUpload = ColumnItemWithExtend;
@@ -61,13 +69,9 @@ export declare const uploadFilesProps: {
61
69
  readonly type: StringConstructor;
62
70
  readonly default: "attachmentExtension";
63
71
  };
64
- readonly single: {
65
- readonly type: BooleanConstructor;
66
- readonly default: false;
67
- };
68
- readonly multiple: {
69
- readonly type: BooleanConstructor;
70
- readonly default: true;
72
+ readonly maxCount: {
73
+ readonly type: NumberConstructor;
74
+ readonly default: 1;
71
75
  };
72
76
  readonly userInfo: {
73
77
  readonly type: PropType<UserInfo>;
@@ -29,13 +29,9 @@ declare const _sfc_main: DefineComponent<{
29
29
  readonly type: StringConstructor;
30
30
  readonly default: "attachmentExtension";
31
31
  };
32
- readonly single: {
33
- readonly type: BooleanConstructor;
34
- readonly default: false;
35
- };
36
- readonly multiple: {
37
- readonly type: BooleanConstructor;
38
- readonly default: true;
32
+ readonly maxCount: {
33
+ readonly type: NumberConstructor;
34
+ readonly default: 1;
39
35
  };
40
36
  readonly userInfo: {
41
37
  readonly type: PropType<UserInfo>;
@@ -109,14 +105,13 @@ declare const _sfc_main: DefineComponent<{
109
105
  validateInfos: validateInfos;
110
106
  limitSize: Ref<number>;
111
107
  accept: Ref<string>;
112
- multiple: Ref<boolean>;
113
108
  handleConfirm: () => void;
114
109
  handleCancel: () => void;
115
110
  fileData: Record<string, any>;
116
111
  itemNumberLabel: Ref<string>;
117
112
  itemNumbeValueProp: Ref<string>;
118
113
  property: Ref<string>;
119
- disabledItemNumber: Ref<boolean>;
114
+ itemInfo: Ref<RecordStringNumber[]>;
120
115
  fileTypeList: Ref<{
121
116
  [x: string]: unknown;
122
117
  title: string;
@@ -158,13 +153,9 @@ declare const _sfc_main: DefineComponent<{
158
153
  readonly type: StringConstructor;
159
154
  readonly default: "attachmentExtension";
160
155
  };
161
- readonly single: {
162
- readonly type: BooleanConstructor;
163
- readonly default: false;
164
- };
165
- readonly multiple: {
166
- readonly type: BooleanConstructor;
167
- readonly default: true;
156
+ readonly maxCount: {
157
+ readonly type: NumberConstructor;
158
+ readonly default: 1;
168
159
  };
169
160
  readonly userInfo: {
170
161
  readonly type: PropType<UserInfo>;
@@ -238,22 +229,22 @@ declare const _sfc_main: DefineComponent<{
238
229
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
239
230
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
240
231
  }, {
232
+ readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
233
+ readonly visible: boolean;
234
+ readonly currentRow: CurrentRow;
235
+ readonly action: string;
236
+ readonly accept: string;
241
237
  readonly data: Data;
242
- readonly multiple: boolean;
243
238
  readonly dictCode: string;
244
239
  readonly property: string;
245
- readonly visible: boolean;
246
240
  readonly role: Role;
247
- readonly currentRow: CurrentRow;
248
241
  readonly userInfo: UserInfo;
249
- readonly single: boolean;
250
242
  readonly attrCheck: string;
251
243
  readonly limitSize: number;
252
- readonly accept: string;
253
244
  readonly acceptDictCode: string;
245
+ readonly maxCount: number;
254
246
  readonly isOss: boolean;
255
247
  readonly isGridUpload: boolean;
256
- readonly action: string;
257
248
  readonly itemNumberKey: string;
258
249
  readonly itemNumberLabel: string;
259
250
  readonly itemNumbeValueProp: string;
@@ -262,6 +253,5 @@ declare const _sfc_main: DefineComponent<{
262
253
  readonly disabledItemNumber: boolean;
263
254
  readonly itemInfo: RecordStringNumber[];
264
255
  readonly fileTypeList: FileTypeList[];
265
- readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
266
256
  }, {}>;
267
257
  export default _sfc_main;
@@ -0,0 +1,78 @@
1
+ import type { ButtonConfig } from '../upload-file/src/hook/use-operation-column-button-hook';
2
+ import type { FileDataTypes } from './src/upload-file-vxe-types';
3
+ import type { ColumnItemWithExtend } from '../upload-file';
4
+ import type { RecordStringNumber } from '../select-modal';
5
+ import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
6
+ import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
7
+ import QuploadFileVxe from './src/upload-file-vxe.vue';
8
+ export { QuploadFileVxe };
9
+ declare const _default: SFCWithInstall<DefineComponent<{
10
+ readonly row: {
11
+ readonly type: PropType<RecordStringNumber>;
12
+ readonly default: () => {};
13
+ };
14
+ readonly rowIndex: {
15
+ readonly type: NumberConstructor;
16
+ readonly default: 0;
17
+ };
18
+ readonly columnItem: {
19
+ readonly type: PropType<ColumnItemWithExtend>;
20
+ readonly default: () => {};
21
+ };
22
+ readonly groupType: {
23
+ readonly type: StringConstructor;
24
+ readonly default: "item";
25
+ };
26
+ readonly uploadBtnStatus: {
27
+ readonly type: BooleanConstructor;
28
+ readonly default: true;
29
+ };
30
+ readonly operationBtn: {
31
+ readonly type: ArrayConstructor;
32
+ readonly default: () => string[];
33
+ };
34
+ }, {
35
+ rowData: ComputedRef<FileDataTypes[]>;
36
+ rowIndex: ComputedRef<number>;
37
+ groupType: Ref<string>;
38
+ uploadBtnStatus: Ref<boolean>;
39
+ operationBtn: Ref<unknown[]>;
40
+ handleOpenFileUpload: () => void;
41
+ handleDownload: <T extends ButtonConfig>(payload: T) => void;
42
+ handlePreview: <T_1 extends ButtonConfig>(payload: T_1) => void;
43
+ handleDelete: (file: FileDataTypes) => void;
44
+ handleSpan: ComputedRef<number>;
45
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
46
+ readonly row: {
47
+ readonly type: PropType<RecordStringNumber>;
48
+ readonly default: () => {};
49
+ };
50
+ readonly rowIndex: {
51
+ readonly type: NumberConstructor;
52
+ readonly default: 0;
53
+ };
54
+ readonly columnItem: {
55
+ readonly type: PropType<ColumnItemWithExtend>;
56
+ readonly default: () => {};
57
+ };
58
+ readonly groupType: {
59
+ readonly type: StringConstructor;
60
+ readonly default: "item";
61
+ };
62
+ readonly uploadBtnStatus: {
63
+ readonly type: BooleanConstructor;
64
+ readonly default: true;
65
+ };
66
+ readonly operationBtn: {
67
+ readonly type: ArrayConstructor;
68
+ readonly default: () => string[];
69
+ };
70
+ }>>, {
71
+ readonly row: RecordStringNumber;
72
+ readonly groupType: string;
73
+ readonly operationBtn: unknown[];
74
+ readonly rowIndex: number;
75
+ readonly columnItem: ColumnItemWithExtend;
76
+ readonly uploadBtnStatus: boolean;
77
+ }, {}>>;
78
+ export default _default;
@@ -0,0 +1,38 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import type { RecordStringNumber } from '../../edit-page-layout';
3
+ import { ColumnItemWithExtend } from '../../upload-file/src/upload-file-types';
4
+ export interface FileDataTypes {
5
+ fileName: string;
6
+ filePath: string;
7
+ id: string;
8
+ headId: string;
9
+ fileType?: string;
10
+ [key: string]: unknown;
11
+ }
12
+ export declare const uploadFileProps: {
13
+ readonly row: {
14
+ readonly type: PropType<RecordStringNumber>;
15
+ readonly default: () => {};
16
+ };
17
+ readonly rowIndex: {
18
+ readonly type: NumberConstructor;
19
+ readonly default: 0;
20
+ };
21
+ readonly columnItem: {
22
+ readonly type: PropType<ColumnItemWithExtend>;
23
+ readonly default: () => {};
24
+ };
25
+ readonly groupType: {
26
+ readonly type: StringConstructor;
27
+ readonly default: "item";
28
+ };
29
+ readonly uploadBtnStatus: {
30
+ readonly type: BooleanConstructor;
31
+ readonly default: true;
32
+ };
33
+ readonly operationBtn: {
34
+ readonly type: ArrayConstructor;
35
+ readonly default: () => string[];
36
+ };
37
+ };
38
+ export type UploadFileVxeProps = ExtractPropTypes<typeof uploadFileProps>;
@@ -0,0 +1,75 @@
1
+ import type { ButtonConfig } from '../../upload-file/src/hook/use-operation-column-button-hook';
2
+ import type { ColumnItemWithExtend } from '../../upload-file';
3
+ import type { RecordStringNumber } from '../../edit-page-layout';
4
+ import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
5
+ import { FileDataTypes } from './upload-file-vxe-types';
6
+ declare const _sfc_main: DefineComponent<{
7
+ readonly row: {
8
+ readonly type: PropType<RecordStringNumber>;
9
+ readonly default: () => {};
10
+ };
11
+ readonly rowIndex: {
12
+ readonly type: NumberConstructor;
13
+ readonly default: 0;
14
+ };
15
+ readonly columnItem: {
16
+ readonly type: PropType<ColumnItemWithExtend>;
17
+ readonly default: () => {};
18
+ };
19
+ readonly groupType: {
20
+ readonly type: StringConstructor;
21
+ readonly default: "item";
22
+ };
23
+ readonly uploadBtnStatus: {
24
+ readonly type: BooleanConstructor;
25
+ readonly default: true;
26
+ };
27
+ readonly operationBtn: {
28
+ readonly type: ArrayConstructor;
29
+ readonly default: () => string[];
30
+ };
31
+ }, {
32
+ rowData: ComputedRef<FileDataTypes[]>;
33
+ rowIndex: ComputedRef<number>;
34
+ groupType: Ref<string>;
35
+ uploadBtnStatus: Ref<boolean>;
36
+ operationBtn: Ref<unknown[]>;
37
+ handleOpenFileUpload: () => void;
38
+ handleDownload: <T extends ButtonConfig>(payload: T) => void;
39
+ handlePreview: <T_1 extends ButtonConfig>(payload: T_1) => void;
40
+ handleDelete: (file: FileDataTypes) => void;
41
+ handleSpan: ComputedRef<number>;
42
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
43
+ readonly row: {
44
+ readonly type: PropType<RecordStringNumber>;
45
+ readonly default: () => {};
46
+ };
47
+ readonly rowIndex: {
48
+ readonly type: NumberConstructor;
49
+ readonly default: 0;
50
+ };
51
+ readonly columnItem: {
52
+ readonly type: PropType<ColumnItemWithExtend>;
53
+ readonly default: () => {};
54
+ };
55
+ readonly groupType: {
56
+ readonly type: StringConstructor;
57
+ readonly default: "item";
58
+ };
59
+ readonly uploadBtnStatus: {
60
+ readonly type: BooleanConstructor;
61
+ readonly default: true;
62
+ };
63
+ readonly operationBtn: {
64
+ readonly type: ArrayConstructor;
65
+ readonly default: () => string[];
66
+ };
67
+ }>>, {
68
+ readonly row: RecordStringNumber;
69
+ readonly groupType: string;
70
+ readonly operationBtn: unknown[];
71
+ readonly rowIndex: number;
72
+ readonly columnItem: ColumnItemWithExtend;
73
+ readonly uploadBtnStatus: boolean;
74
+ }, {}>;
75
+ export default _sfc_main;
@@ -178,12 +178,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
178
178
  onChange?: ((...args: any[]) => any) | undefined;
179
179
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
180
180
  }, {
181
+ readonly disabled: boolean;
182
+ readonly accept: string;
183
+ readonly multiple: boolean;
181
184
  readonly onChange: ((value: string) => void) | ((value: string) => void)[];
182
185
  readonly value: string;
183
- readonly multiple: boolean;
184
186
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
185
- readonly disabled: boolean;
186
- readonly accept: string;
187
187
  readonly canRemove: boolean;
188
188
  readonly limit: number;
189
189
  readonly uploadImageData: Record<string, any>;