@qqt-product/ui 0.0.13 → 0.0.15

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 (193) hide show
  1. package/dist/index.es.js +123349 -77525
  2. package/dist/index.umd.js +254 -15296
  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/breadcrumb/index.d.ts +1 -1
  15. package/dist/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +1 -1
  16. package/dist/lib/components/card-list-layout/index.d.ts +8 -18
  17. package/dist/lib/components/card-list-layout/src/card-content.vue.d.ts +3 -3
  18. package/dist/lib/components/card-list-layout/src/cardItem.vue.d.ts +5 -5
  19. package/dist/lib/components/card-list-layout/src/index.vue.d.ts +8 -18
  20. package/dist/lib/components/card-list-layout/src/sidebar.vue.d.ts +1 -1
  21. package/dist/lib/components/cascader/index.d.ts +12 -10
  22. package/dist/lib/components/cascader/src/cascader.vue.d.ts +12 -10
  23. package/dist/lib/components/checkbox/index.d.ts +6 -6
  24. package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +6 -6
  25. package/dist/lib/components/code-editor-model/src/code-editor-model.vue.d.ts +121 -0
  26. package/dist/lib/components/collapse-transition/index.d.ts +1 -1
  27. package/dist/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +1 -1
  28. package/dist/lib/components/countdown/index.d.ts +122 -0
  29. package/dist/lib/components/countdown/src/countdown-types.d.ts +87 -0
  30. package/dist/lib/components/countdown/src/countdown.d.ts +118 -0
  31. package/dist/lib/components/countdown/src/use-countdown.d.ts +2 -0
  32. package/dist/lib/components/coutdown/index.d.ts +4 -14
  33. package/dist/lib/components/coutdown/src/coutdown.d.ts +0 -8
  34. package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +4 -22
  35. package/dist/lib/components/currency/index.d.ts +2 -2
  36. package/dist/lib/components/currency/src/currency.vue.d.ts +2 -2
  37. package/dist/lib/components/detail-form/index.d.ts +27 -6
  38. package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +27 -7
  39. package/dist/lib/components/detail-grid/index.d.ts +337 -288
  40. package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +336 -288
  41. package/dist/lib/components/detail-grid/src/hook/use-grid-config-hook.d.ts +2 -2
  42. package/dist/lib/components/detail-page-layout/index.d.ts +21 -4
  43. package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +20 -4
  44. package/dist/lib/components/edit-form/index.d.ts +31 -6
  45. package/dist/lib/components/edit-form/src/edit-form-types.d.ts +4 -0
  46. package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +30 -6
  47. package/dist/lib/components/edit-form/src/hook/use-callback-hook.d.ts +7 -1
  48. package/dist/lib/components/edit-grid/index.d.ts +338 -289
  49. package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +2 -2
  50. package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +337 -289
  51. package/dist/lib/components/edit-grid/src/hook/use-grid-config-hook.d.ts +4 -4
  52. package/dist/lib/components/edit-page-layout/index.d.ts +20 -4
  53. package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +151 -26
  54. package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +20 -4
  55. package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -1
  56. package/dist/lib/components/editor/index.d.ts +23 -9
  57. package/dist/lib/components/editor/src/index.vue.d.ts +23 -9
  58. package/dist/lib/components/field-select-modal/index.d.ts +29 -13
  59. package/dist/lib/components/field-select-modal/src/field-select-modal-types.d.ts +11 -4
  60. package/dist/lib/components/field-select-modal/src/field-select-modal.vue.d.ts +29 -13
  61. package/dist/lib/components/flow-view/index.d.ts +121 -0
  62. package/dist/lib/components/flow-view/src/flow-view-modal-types.d.ts +60 -0
  63. package/dist/lib/components/flow-view/src/flow-view.d.ts +118 -0
  64. package/dist/lib/components/flow-view/src/use-flow-view-modal.d.ts +2 -0
  65. package/dist/lib/components/import-modal/index.d.ts +90 -0
  66. package/dist/lib/components/import-modal/src/import-modal-types.d.ts +28 -0
  67. package/dist/lib/components/import-modal/src/import-modal.vue.d.ts +86 -0
  68. package/dist/lib/components/index.d.ts +11 -2
  69. package/dist/lib/components/item-wrap/index.d.ts +4 -4
  70. package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +4 -4
  71. package/dist/lib/components/ladder-price/index.d.ts +58 -0
  72. package/dist/lib/components/ladder-price/src/LadderNotPriceModal.vue.d.ts +35 -0
  73. package/dist/lib/components/ladder-price/src/LadderPriceModal.vue.d.ts +38 -0
  74. package/dist/lib/components/ladder-price/src/ladder-not-price-modal-types.d.ts +16 -0
  75. package/dist/lib/components/ladder-price/src/ladder-price-modal-types.d.ts +15 -0
  76. package/dist/lib/components/ladder-price/src/ladder-price-types.d.ts +35 -0
  77. package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +55 -0
  78. package/dist/lib/components/ladder-price/src/use-ladder-not-price-modal.d.ts +6 -0
  79. package/dist/lib/components/ladder-price/src/use-ladder-price.d.ts +6 -0
  80. package/dist/lib/components/layout/index.d.ts +2 -2
  81. package/dist/lib/components/layout/src/header/index.vue.d.ts +11 -11
  82. package/dist/lib/components/layout/src/header/navRight/customMessage.vue.d.ts +2 -2
  83. package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +1 -1
  84. package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +9 -9
  85. package/dist/lib/components/layout/src/header/navRight/langSwitch.vue.d.ts +1 -1
  86. package/dist/lib/components/layout/src/header/navRight/rightTool.vue.d.ts +4 -4
  87. package/dist/lib/components/layout/src/header/navRight/settingDrawer.vue.d.ts +2 -2
  88. package/dist/lib/components/layout/src/index.vue.d.ts +2 -2
  89. package/dist/lib/components/layout/src/menu/deepCycleSubMenu.vue.d.ts +1 -1
  90. package/dist/lib/components/layout/src/menu/menu.vue.d.ts +2 -2
  91. package/dist/lib/components/layout/src/menu/secondLevelMenu.vue.d.ts +2 -2
  92. package/dist/lib/components/layout/src/menu/subSecondMenu.vue.d.ts +1 -1
  93. package/dist/lib/components/layout/src/sider/index.vue.d.ts +1 -1
  94. package/dist/lib/components/layout/src/sider/logo.vue.d.ts +2 -2
  95. package/dist/lib/components/layout/src/sider/search.vue.d.ts +1 -1
  96. package/dist/lib/components/layout/src/types.d.ts +1 -0
  97. package/dist/lib/components/layout-anchor/index.d.ts +3 -2
  98. package/dist/lib/components/layout-anchor/src/layout-auchor.vue.d.ts +3 -2
  99. package/dist/lib/components/layout-buttons/index.d.ts +5 -4
  100. package/dist/lib/components/layout-buttons/src/layout-buttons.vue.d.ts +3 -3
  101. package/dist/lib/components/layout-pattern/index.d.ts +13 -3
  102. package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +156 -7
  103. package/dist/lib/components/layout-pattern/src/hook/use-audit-button-hook.d.ts +46 -0
  104. package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +13 -3
  105. package/dist/lib/components/list-page-layout/index.d.ts +80 -18
  106. package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +25 -24
  107. package/dist/lib/components/list-page-layout/src/components/common/edit-nav-modal/edit-nav-modal.vue.d.ts +1 -1
  108. package/dist/lib/components/list-page-layout/src/components/common/help-text-modal/help-text-modal.vue.d.ts +1 -1
  109. package/dist/lib/components/list-page-layout/src/components/common/import-modal/import-modal.vue.d.ts +3 -1
  110. package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +646 -556
  111. package/dist/lib/components/list-page-layout/src/components/list-content/events-helper.d.ts +1 -3
  112. package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +14 -12
  113. package/dist/lib/components/list-page-layout/src/components/list-content-buttons/list-content-buttons.vue.d.ts +1 -1
  114. package/dist/lib/components/list-page-layout/src/components/list-header/hooks/use-callback-hook.d.ts +3 -0
  115. package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +5 -3
  116. package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +9 -3
  117. package/dist/lib/components/list-page-layout/src/components/list-header/module/quick-nav/index.vue.d.ts +2 -1
  118. package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +14 -6
  119. package/dist/lib/components/list-page-layout/src/components/list-header/module/tabs/index.vue.d.ts +1 -1
  120. package/dist/lib/components/list-page-layout/src/hooks/auth-button.d.ts +4 -0
  121. package/dist/lib/components/list-page-layout/src/hooks/get-columns-hook.d.ts +1 -1
  122. package/dist/lib/components/list-page-layout/src/hooks/list-slot-hook.d.ts +10 -4
  123. package/dist/lib/components/list-page-layout/src/hooks/use-button-function-hook.d.ts +8 -0
  124. package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +78 -17
  125. package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +62 -10
  126. package/dist/lib/components/list-page-layout/src/tokens.d.ts +2 -2
  127. package/dist/lib/components/list-page-layout/src/utils/gridConfig.d.ts +6 -21
  128. package/dist/lib/components/list-page-layout/src/utils/index.d.ts +2 -0
  129. package/dist/lib/components/page-layout/index.d.ts +3 -2
  130. package/dist/lib/components/page-layout/src/constant/buttons.d.ts +28 -2
  131. package/dist/lib/components/page-layout/src/constant/symbol.d.ts +35 -0
  132. package/dist/lib/components/page-layout/src/hook/use-merge-defaultValues-hook.d.ts +1 -1
  133. package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +19 -9
  134. package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +1 -1
  135. package/dist/lib/components/radio/index.d.ts +6 -6
  136. package/dist/lib/components/radio/src/radio.vue.d.ts +6 -6
  137. package/dist/lib/components/relation-graph/src/relation-graph-types.d.ts +23 -0
  138. package/dist/lib/components/remote-select/index.d.ts +31 -72
  139. package/dist/lib/components/remote-select/src/remote-select-types.d.ts +44 -28
  140. package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +32 -73
  141. package/dist/lib/components/sale-template/index.d.ts +99 -0
  142. package/dist/lib/components/sale-template/src/sale-template-types.d.ts +41 -0
  143. package/dist/lib/components/sale-template/src/sale-template.vue.d.ts +95 -0
  144. package/dist/lib/components/sale-template/src/use-sale-template.d.ts +2 -0
  145. package/dist/lib/components/select/index.d.ts +9 -9
  146. package/dist/lib/components/select/src/select-types.d.ts +5 -1
  147. package/dist/lib/components/select/src/select.vue.d.ts +9 -9
  148. package/dist/lib/components/select-modal/index.d.ts +118 -76
  149. package/dist/lib/components/select-modal/src/select-modal-types.d.ts +24 -4
  150. package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +118 -76
  151. package/dist/lib/components/select-template/index.d.ts +92 -0
  152. package/dist/lib/components/select-template/src/select-template-type.d.ts +32 -0
  153. package/dist/lib/components/select-template/src/select-template.vue.d.ts +88 -0
  154. package/dist/lib/components/switch/index.d.ts +2 -2
  155. package/dist/lib/components/switch/src/switch.vue.d.ts +2 -2
  156. package/dist/lib/components/tree-select/index.d.ts +10 -9
  157. package/dist/lib/components/tree-select/src/tree-select-types.d.ts +7 -1
  158. package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +10 -9
  159. package/dist/lib/components/upload-file/index.d.ts +30 -31
  160. package/dist/lib/components/upload-file/src/hook/use-file-column-hook.d.ts +29 -16
  161. package/dist/lib/components/upload-file/src/hook/use-operation-column-button-hook.d.ts +1 -1
  162. package/dist/lib/components/upload-file/src/upload-file-types.d.ts +19 -28
  163. package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +28 -29
  164. package/dist/lib/components/upload-file-vxe/index.d.ts +78 -0
  165. package/dist/lib/components/upload-file-vxe/src/upload-file-vxe-types.d.ts +38 -0
  166. package/dist/lib/components/upload-file-vxe/src/upload-file-vxe.vue.d.ts +75 -0
  167. package/dist/lib/components/upload-image/index.d.ts +3 -3
  168. package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +3 -3
  169. package/dist/lib/components/useChart/index.d.ts +11 -0
  170. package/dist/lib/components/useChart/lib.d.ts +2 -0
  171. package/dist/lib/components/useChart/types.d.ts +21 -0
  172. package/dist/lib/components/vxe-select/index.d.ts +24 -6
  173. package/dist/lib/components/vxe-select/src/vxe-select-types.d.ts +7 -1
  174. package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +24 -6
  175. package/dist/lib/index.d.ts +5 -3
  176. package/dist/lib/utils/event.d.ts +35 -2
  177. package/dist/style.css +1 -6
  178. package/package.json +35 -29
  179. package/dist/components/ComponentsDemo.vue.d.ts +0 -13
  180. package/dist/components/EditPage.vue.d.ts +0 -6011
  181. package/dist/components/PreviewList.vue.d.ts +0 -218
  182. package/dist/components/hook/use-field-select-modal-hook.d.ts +0 -288
  183. package/dist/components/login.vue.d.ts +0 -19
  184. package/dist/components/mock.d.ts +0 -260
  185. package/dist/components/mockList.d.ts +0 -44
  186. package/dist/lib/components/codeEditorModel/index.d.ts +0 -187
  187. package/dist/lib/components/codeEditorModel/src/codeEditorModel.vue.d.ts +0 -184
  188. package/dist/lib/components/list-page-layout/src/components/common/add-modal/add-modal.vue.d.ts +0 -21
  189. package/dist/lib/components/upload-file/src/hook/use-operation-column-hook.d.ts +0 -15
  190. package/dist/router/index.d.ts +0 -4
  191. package/dist/stores/user.d.ts +0 -25
  192. package/dist/utils/qApiPlugin.d.ts +0 -6
  193. package/dist/views/dashboard/workspace.vue.d.ts +0 -6972
@@ -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,20 +92,20 @@ 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
  }, {
101
- readonly dictCode: string;
102
- readonly options: TreeNode[];
103
102
  readonly multiple: boolean;
104
103
  readonly params: RecordStringNumber;
104
+ readonly onChange: ((payload: TreeSelectPayload) => void) | ((payload: TreeSelectPayload) => void)[];
105
105
  readonly value: string;
106
- readonly onChange: ((value: string) => void) | ((value: string) => void)[];
106
+ readonly options: TreeNode[];
107
107
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
108
108
  readonly fieldNames: FieldNames;
109
- }>;
109
+ readonly dictCode: string;
110
+ }, {}>;
110
111
  export default _sfc_main;
@@ -1,16 +1,16 @@
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 { Data, ItemInfo, FileTypeList } from './src/upload-file-types';
5
- import type { UserInfo, CurrentRow } from '../edit-page-layout';
4
+ import type { RecordStringNumber } from '../select-modal';
5
+ import type { Data, FileTypeList } from './src/upload-file-types';
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';
9
10
  export * from './src/upload-file-types';
10
11
  import useFileColumnHook from './src/hook/use-file-column-hook';
11
- import useOperationColumnHook from './src/hook/use-operation-column-hook';
12
12
  import useOperationColumnButtonHook from './src/hook/use-operation-column-button-hook';
13
- export { useFileColumnHook, useOperationColumnHook, useOperationColumnButtonHook };
13
+ export { useFileColumnHook, useOperationColumnButtonHook };
14
14
  export { QUploadFile };
15
15
  declare const _default: SFCWithInstall<DefineComponent<{
16
16
  readonly visible: {
@@ -37,13 +37,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
37
37
  readonly type: StringConstructor;
38
38
  readonly default: "attachmentExtension";
39
39
  };
40
- readonly single: {
41
- readonly type: BooleanConstructor;
42
- readonly default: false;
43
- };
44
- readonly multiple: {
45
- readonly type: BooleanConstructor;
46
- readonly default: true;
40
+ readonly maxCount: {
41
+ readonly type: NumberConstructor;
42
+ readonly default: 1;
47
43
  };
48
44
  readonly userInfo: {
49
45
  readonly type: PropType<UserInfo>;
@@ -61,6 +57,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
61
57
  readonly type: BooleanConstructor;
62
58
  readonly default: false;
63
59
  };
60
+ readonly role: {
61
+ readonly type: PropType<Role>;
62
+ readonly default: "purchase";
63
+ };
64
64
  readonly action: {
65
65
  readonly type: StringConstructor;
66
66
  readonly default: "/attachment/purchaseAttachment/upload";
@@ -98,7 +98,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
98
98
  readonly default: false;
99
99
  };
100
100
  readonly itemInfo: {
101
- readonly type: PropType<ItemInfo[]>;
101
+ readonly type: PropType<RecordStringNumber[]>;
102
102
  readonly default: () => never[];
103
103
  };
104
104
  readonly fileTypeList: {
@@ -113,14 +113,13 @@ declare const _default: SFCWithInstall<DefineComponent<{
113
113
  validateInfos: validateInfos;
114
114
  limitSize: Ref<number>;
115
115
  accept: Ref<string>;
116
- multiple: Ref<boolean>;
117
116
  handleConfirm: () => void;
118
117
  handleCancel: () => void;
119
118
  fileData: Record<string, any>;
120
119
  itemNumberLabel: Ref<string>;
121
120
  itemNumbeValueProp: Ref<string>;
122
121
  property: Ref<string>;
123
- disabledItemNumber: Ref<boolean>;
122
+ itemInfo: Ref<RecordStringNumber[]>;
124
123
  fileTypeList: Ref<{
125
124
  [x: string]: unknown;
126
125
  title: string;
@@ -162,13 +161,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
162
161
  readonly type: StringConstructor;
163
162
  readonly default: "attachmentExtension";
164
163
  };
165
- readonly single: {
166
- readonly type: BooleanConstructor;
167
- readonly default: false;
168
- };
169
- readonly multiple: {
170
- readonly type: BooleanConstructor;
171
- readonly default: true;
164
+ readonly maxCount: {
165
+ readonly type: NumberConstructor;
166
+ readonly default: 1;
172
167
  };
173
168
  readonly userInfo: {
174
169
  readonly type: PropType<UserInfo>;
@@ -186,6 +181,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
186
181
  readonly type: BooleanConstructor;
187
182
  readonly default: false;
188
183
  };
184
+ readonly role: {
185
+ readonly type: PropType<Role>;
186
+ readonly default: "purchase";
187
+ };
189
188
  readonly action: {
190
189
  readonly type: StringConstructor;
191
190
  readonly default: "/attachment/purchaseAttachment/upload";
@@ -223,7 +222,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
223
222
  readonly default: false;
224
223
  };
225
224
  readonly itemInfo: {
226
- readonly type: PropType<ItemInfo[]>;
225
+ readonly type: PropType<RecordStringNumber[]>;
227
226
  readonly default: () => never[];
228
227
  };
229
228
  readonly fileTypeList: {
@@ -238,20 +237,20 @@ declare const _default: SFCWithInstall<DefineComponent<{
238
237
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
239
238
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
240
239
  }, {
240
+ readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
241
241
  readonly visible: boolean;
242
242
  readonly currentRow: CurrentRow;
243
- readonly userInfo: UserInfo;
244
- readonly dictCode: string;
245
- readonly single: boolean;
246
- readonly multiple: boolean;
247
- readonly data: Data;
248
- readonly property: string;
249
243
  readonly action: string;
250
244
  readonly accept: string;
251
- readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
245
+ readonly data: Data;
246
+ readonly dictCode: string;
247
+ readonly property: string;
248
+ readonly role: Role;
249
+ readonly userInfo: UserInfo;
252
250
  readonly attrCheck: string;
253
251
  readonly limitSize: number;
254
252
  readonly acceptDictCode: string;
253
+ readonly maxCount: number;
255
254
  readonly isOss: boolean;
256
255
  readonly isGridUpload: boolean;
257
256
  readonly itemNumberKey: string;
@@ -260,7 +259,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
260
259
  readonly itemNumberDefaultValue: string;
261
260
  readonly itemNumberSelectIndex: boolean;
262
261
  readonly disabledItemNumber: boolean;
263
- readonly itemInfo: ItemInfo[];
262
+ readonly itemInfo: RecordStringNumber[];
264
263
  readonly fileTypeList: FileTypeList[];
265
- }>>;
264
+ }, {}>>;
266
265
  export default _default;
@@ -1,20 +1,33 @@
1
- import type { RecordStringNumber } from '../../../edit-page-layout';
1
+ import type { VxePayload } from '../../../edit-page-layout';
2
+ import type { Slot } from 'vue';
2
3
  import { InitializeConfig } from '../upload-file-types';
3
- export default function useInitializeFileColumns<T extends InitializeConfig>(payload: T): ({
4
- groupCode: string;
4
+ export default function useFileColumn<T extends InitializeConfig>(payload: T): {
5
5
  field: string;
6
6
  title: string;
7
- width: number;
8
- align: string;
9
- slots: {
10
- default({ row, $rowIndex }: {
11
- row: RecordStringNumber;
12
- $rowIndex: number;
13
- }): JSX.Element[];
14
- };
15
- } | {
7
+ fieldLabelI18nKey: string;
16
8
  groupCode: string;
17
- field: string;
18
- title: string;
19
- width: number;
20
- })[];
9
+ fieldType?: string | undefined;
10
+ helpText?: string | undefined;
11
+ required?: "0" | "1" | undefined;
12
+ regex?: string | RegExp | undefined;
13
+ alertMsg?: string | undefined;
14
+ callback?: ((ctx: {
15
+ attrs: {
16
+ [x: string]: unknown;
17
+ };
18
+ slots: Readonly<{
19
+ [name: string]: Slot<any> | undefined;
20
+ }>;
21
+ emit: (event: string, ...args: any[]) => void;
22
+ expose: (exposed?: Record<string, any> | undefined) => void;
23
+ } | {
24
+ attrs: {
25
+ [x: string]: unknown;
26
+ };
27
+ slots: Readonly<{
28
+ [name: string]: Slot<any> | undefined;
29
+ }>;
30
+ emit: (event: string, ...args: any[]) => void;
31
+ expose: (exposed?: Record<string, any> | undefined) => void;
32
+ }, payload: VxePayload) => void) | undefined;
33
+ }[];
@@ -4,7 +4,7 @@ export interface ButtonConfig extends InitializeConfig {
4
4
  row: RecordStringNumber;
5
5
  rowIndex: number;
6
6
  }
7
- export default function useInitializeButton(): {
7
+ export default function useOperationColumnButton(): {
8
8
  handleDelete: <T extends ButtonConfig>(payload: T) => void;
9
9
  handleDownload: <T_1 extends ButtonConfig>(payload: T_1) => void;
10
10
  handlePreview: <T_2 extends ButtonConfig>(payload: T_2) => void;
@@ -1,6 +1,5 @@
1
1
  import { ExtractPropTypes, PropType, Ref } from 'vue';
2
- import type { UserInfo, CurrentRow, ColumnItem } from '../../edit-page-layout';
3
- import type { LayoutConfig, RecordStringNumber } from '../../edit-page-layout';
2
+ import type { Role, UserInfo, CurrentRow, ColumnItem, LayoutConfig, RecordStringNumber } from '../../edit-page-layout';
4
3
  export interface InitializeConfig {
5
4
  groupCode: string;
6
5
  pageData?: Ref<RecordStringNumber>;
@@ -8,6 +7,7 @@ export interface InitializeConfig {
8
7
  role?: string;
9
8
  path?: string;
10
9
  operationButton?: string[];
10
+ [key: string]: unknown;
11
11
  }
12
12
  export interface Data {
13
13
  businessType: string;
@@ -24,35 +24,26 @@ export interface FileTypeList {
24
24
  value: string;
25
25
  [key: string]: unknown;
26
26
  }
27
- export interface ItemInfo {
28
- [key: string]: unknown;
29
- [key: number]: unknown;
27
+ export interface PayloadType {
28
+ pageData: RecordStringNumber;
29
+ row: RecordStringNumber;
30
+ rowIndex: number;
30
31
  }
31
32
  export interface ColumnItemExtend {
32
33
  url?: string;
33
- single: boolean;
34
- multiple: boolean;
35
- isGridUpload: boolean;
34
+ maxCount?: number;
35
+ maxNumber?: number;
36
+ isGridUpload?: boolean;
36
37
  [key: string]: unknown;
37
38
  [key: number]: unknown;
39
+ handleBefore: (payload: PayloadType) => Promise<PayloadType>;
38
40
  }
39
41
  export interface ColumnItemWithExtend extends ColumnItem {
40
42
  extend?: ColumnItemExtend;
43
+ row: RecordStringNumber;
41
44
  idx: number;
42
45
  }
43
46
  export type VxeItemFileUpload = ColumnItemWithExtend;
44
- export declare const uploadFileProps: {
45
- limitSize: number;
46
- accept: string;
47
- single: boolean;
48
- multiple: boolean;
49
- userInfo: {};
50
- data: {};
51
- isOss: boolean;
52
- itemNumberKey: string;
53
- action: string;
54
- currentRow: {};
55
- };
56
47
  export declare const uploadFilesProps: {
57
48
  readonly visible: {
58
49
  readonly type: BooleanConstructor;
@@ -78,13 +69,9 @@ export declare const uploadFilesProps: {
78
69
  readonly type: StringConstructor;
79
70
  readonly default: "attachmentExtension";
80
71
  };
81
- readonly single: {
82
- readonly type: BooleanConstructor;
83
- readonly default: false;
84
- };
85
- readonly multiple: {
86
- readonly type: BooleanConstructor;
87
- readonly default: true;
72
+ readonly maxCount: {
73
+ readonly type: NumberConstructor;
74
+ readonly default: 1;
88
75
  };
89
76
  readonly userInfo: {
90
77
  readonly type: PropType<UserInfo>;
@@ -102,6 +89,10 @@ export declare const uploadFilesProps: {
102
89
  readonly type: BooleanConstructor;
103
90
  readonly default: false;
104
91
  };
92
+ readonly role: {
93
+ readonly type: PropType<Role>;
94
+ readonly default: "purchase";
95
+ };
105
96
  readonly action: {
106
97
  readonly type: StringConstructor;
107
98
  readonly default: "/attachment/purchaseAttachment/upload";
@@ -139,7 +130,7 @@ export declare const uploadFilesProps: {
139
130
  readonly default: false;
140
131
  };
141
132
  readonly itemInfo: {
142
- readonly type: PropType<ItemInfo[]>;
133
+ readonly type: PropType<RecordStringNumber[]>;
143
134
  readonly default: () => never[];
144
135
  };
145
136
  readonly fileTypeList: {
@@ -1,9 +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 { UserInfo, CurrentRow } from '../../edit-page-layout';
4
+ import type { UserInfo, Role, CurrentRow, RecordStringNumber } from '../../edit-page-layout';
5
5
  import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
6
- import type { Data, ItemInfo, FileTypeList } from './upload-file-types';
6
+ import type { Data, FileTypeList } from './upload-file-types';
7
7
  declare const _sfc_main: DefineComponent<{
8
8
  readonly visible: {
9
9
  readonly type: BooleanConstructor;
@@ -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>;
@@ -53,6 +49,10 @@ declare const _sfc_main: DefineComponent<{
53
49
  readonly type: BooleanConstructor;
54
50
  readonly default: false;
55
51
  };
52
+ readonly role: {
53
+ readonly type: PropType<Role>;
54
+ readonly default: "purchase";
55
+ };
56
56
  readonly action: {
57
57
  readonly type: StringConstructor;
58
58
  readonly default: "/attachment/purchaseAttachment/upload";
@@ -90,7 +90,7 @@ declare const _sfc_main: DefineComponent<{
90
90
  readonly default: false;
91
91
  };
92
92
  readonly itemInfo: {
93
- readonly type: PropType<ItemInfo[]>;
93
+ readonly type: PropType<RecordStringNumber[]>;
94
94
  readonly default: () => never[];
95
95
  };
96
96
  readonly fileTypeList: {
@@ -105,14 +105,13 @@ declare const _sfc_main: DefineComponent<{
105
105
  validateInfos: validateInfos;
106
106
  limitSize: Ref<number>;
107
107
  accept: Ref<string>;
108
- multiple: Ref<boolean>;
109
108
  handleConfirm: () => void;
110
109
  handleCancel: () => void;
111
110
  fileData: Record<string, any>;
112
111
  itemNumberLabel: Ref<string>;
113
112
  itemNumbeValueProp: Ref<string>;
114
113
  property: Ref<string>;
115
- disabledItemNumber: Ref<boolean>;
114
+ itemInfo: Ref<RecordStringNumber[]>;
116
115
  fileTypeList: Ref<{
117
116
  [x: string]: unknown;
118
117
  title: string;
@@ -154,13 +153,9 @@ declare const _sfc_main: DefineComponent<{
154
153
  readonly type: StringConstructor;
155
154
  readonly default: "attachmentExtension";
156
155
  };
157
- readonly single: {
158
- readonly type: BooleanConstructor;
159
- readonly default: false;
160
- };
161
- readonly multiple: {
162
- readonly type: BooleanConstructor;
163
- readonly default: true;
156
+ readonly maxCount: {
157
+ readonly type: NumberConstructor;
158
+ readonly default: 1;
164
159
  };
165
160
  readonly userInfo: {
166
161
  readonly type: PropType<UserInfo>;
@@ -178,6 +173,10 @@ declare const _sfc_main: DefineComponent<{
178
173
  readonly type: BooleanConstructor;
179
174
  readonly default: false;
180
175
  };
176
+ readonly role: {
177
+ readonly type: PropType<Role>;
178
+ readonly default: "purchase";
179
+ };
181
180
  readonly action: {
182
181
  readonly type: StringConstructor;
183
182
  readonly default: "/attachment/purchaseAttachment/upload";
@@ -215,7 +214,7 @@ declare const _sfc_main: DefineComponent<{
215
214
  readonly default: false;
216
215
  };
217
216
  readonly itemInfo: {
218
- readonly type: PropType<ItemInfo[]>;
217
+ readonly type: PropType<RecordStringNumber[]>;
219
218
  readonly default: () => never[];
220
219
  };
221
220
  readonly fileTypeList: {
@@ -230,20 +229,20 @@ declare const _sfc_main: DefineComponent<{
230
229
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
231
230
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
232
231
  }, {
232
+ readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
233
233
  readonly visible: boolean;
234
234
  readonly currentRow: CurrentRow;
235
- readonly userInfo: UserInfo;
236
- readonly dictCode: string;
237
- readonly single: boolean;
238
- readonly multiple: boolean;
239
- readonly data: Data;
240
- readonly property: string;
241
235
  readonly action: string;
242
236
  readonly accept: string;
243
- readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
237
+ readonly data: Data;
238
+ readonly dictCode: string;
239
+ readonly property: string;
240
+ readonly role: Role;
241
+ readonly userInfo: UserInfo;
244
242
  readonly attrCheck: string;
245
243
  readonly limitSize: number;
246
244
  readonly acceptDictCode: string;
245
+ readonly maxCount: number;
247
246
  readonly isOss: boolean;
248
247
  readonly isGridUpload: boolean;
249
248
  readonly itemNumberKey: string;
@@ -252,7 +251,7 @@ declare const _sfc_main: DefineComponent<{
252
251
  readonly itemNumberDefaultValue: string;
253
252
  readonly itemNumberSelectIndex: boolean;
254
253
  readonly disabledItemNumber: boolean;
255
- readonly itemInfo: ItemInfo[];
254
+ readonly itemInfo: RecordStringNumber[];
256
255
  readonly fileTypeList: FileTypeList[];
257
- }>;
256
+ }, {}>;
258
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>;