@qqt-product/ui 0.0.13 → 0.0.14

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 (124) hide show
  1. package/dist/index.es.js +54012 -78511
  2. package/dist/index.umd.js +24 -123
  3. package/dist/lib/components/breadcrumb/index.d.ts +1 -1
  4. package/dist/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +1 -1
  5. package/dist/lib/components/card-list-layout/index.d.ts +14 -14
  6. package/dist/lib/components/card-list-layout/src/card-content.vue.d.ts +4 -4
  7. package/dist/lib/components/card-list-layout/src/cardItem.vue.d.ts +7 -7
  8. package/dist/lib/components/card-list-layout/src/index.vue.d.ts +14 -14
  9. package/dist/lib/components/card-list-layout/src/sidebar.vue.d.ts +1 -1
  10. package/dist/lib/components/cascader/index.d.ts +6 -6
  11. package/dist/lib/components/cascader/src/cascader.vue.d.ts +6 -6
  12. package/dist/lib/components/checkbox/index.d.ts +7 -7
  13. package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +7 -7
  14. package/dist/lib/components/codeEditorModel/index.d.ts +4 -98
  15. package/dist/lib/components/codeEditorModel/src/codeEditorModel.vue.d.ts +4 -98
  16. package/dist/lib/components/collapse-transition/index.d.ts +1 -1
  17. package/dist/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +1 -1
  18. package/dist/lib/components/coutdown/index.d.ts +4 -14
  19. package/dist/lib/components/coutdown/src/coutdown.d.ts +0 -8
  20. package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +4 -22
  21. package/dist/lib/components/currency/index.d.ts +3 -3
  22. package/dist/lib/components/currency/src/currency.vue.d.ts +3 -3
  23. package/dist/lib/components/detail-form/index.d.ts +4 -4
  24. package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +4 -4
  25. package/dist/lib/components/detail-grid/index.d.ts +337 -292
  26. package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +337 -292
  27. package/dist/lib/components/detail-grid/src/hook/use-grid-config-hook.d.ts +2 -2
  28. package/dist/lib/components/detail-page-layout/index.d.ts +1 -1
  29. package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +1 -1
  30. package/dist/lib/components/edit-form/index.d.ts +4 -4
  31. package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +4 -4
  32. package/dist/lib/components/edit-grid/index.d.ts +337 -293
  33. package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +2 -2
  34. package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +337 -293
  35. package/dist/lib/components/edit-grid/src/hook/use-grid-config-hook.d.ts +2 -2
  36. package/dist/lib/components/edit-page-layout/index.d.ts +1 -1
  37. package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +8 -4
  38. package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +1 -1
  39. package/dist/lib/components/editor/index.d.ts +2 -2
  40. package/dist/lib/components/editor/src/index.vue.d.ts +2 -2
  41. package/dist/lib/components/field-select-modal/index.d.ts +9 -9
  42. package/dist/lib/components/field-select-modal/src/field-select-modal-types.d.ts +2 -2
  43. package/dist/lib/components/field-select-modal/src/field-select-modal.vue.d.ts +9 -9
  44. package/dist/lib/components/item-wrap/index.d.ts +2 -2
  45. package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +2 -2
  46. package/dist/lib/components/layout/index.d.ts +2 -2
  47. package/dist/lib/components/layout/src/header/index.vue.d.ts +11 -11
  48. package/dist/lib/components/layout/src/header/navRight/customMessage.vue.d.ts +2 -2
  49. package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +1 -1
  50. package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +9 -9
  51. package/dist/lib/components/layout/src/header/navRight/langSwitch.vue.d.ts +1 -1
  52. package/dist/lib/components/layout/src/header/navRight/rightTool.vue.d.ts +4 -4
  53. package/dist/lib/components/layout/src/header/navRight/settingDrawer.vue.d.ts +2 -2
  54. package/dist/lib/components/layout/src/index.vue.d.ts +2 -2
  55. package/dist/lib/components/layout/src/menu/deepCycleSubMenu.vue.d.ts +1 -1
  56. package/dist/lib/components/layout/src/menu/menu.vue.d.ts +2 -2
  57. package/dist/lib/components/layout/src/menu/secondLevelMenu.vue.d.ts +2 -2
  58. package/dist/lib/components/layout/src/menu/subSecondMenu.vue.d.ts +1 -1
  59. package/dist/lib/components/layout/src/sider/index.vue.d.ts +1 -1
  60. package/dist/lib/components/layout/src/sider/logo.vue.d.ts +2 -2
  61. package/dist/lib/components/layout/src/sider/search.vue.d.ts +1 -1
  62. package/dist/lib/components/layout-anchor/index.d.ts +1 -1
  63. package/dist/lib/components/layout-anchor/src/layout-auchor.vue.d.ts +1 -1
  64. package/dist/lib/components/layout-buttons/index.d.ts +3 -3
  65. package/dist/lib/components/layout-buttons/src/layout-buttons.vue.d.ts +3 -3
  66. package/dist/lib/components/layout-pattern/index.d.ts +1 -1
  67. package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +44 -6
  68. package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +1 -1
  69. package/dist/lib/components/list-page-layout/index.d.ts +7 -7
  70. package/dist/lib/components/list-page-layout/src/components/common/add-modal/add-modal.vue.d.ts +1 -1
  71. package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +23 -23
  72. package/dist/lib/components/list-page-layout/src/components/common/edit-nav-modal/edit-nav-modal.vue.d.ts +1 -1
  73. package/dist/lib/components/list-page-layout/src/components/common/help-text-modal/help-text-modal.vue.d.ts +1 -1
  74. package/dist/lib/components/list-page-layout/src/components/common/import-modal/import-modal.vue.d.ts +1 -1
  75. package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +656 -566
  76. package/dist/lib/components/list-page-layout/src/components/list-content/events-helper.d.ts +1 -1
  77. package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +10 -10
  78. package/dist/lib/components/list-page-layout/src/components/list-content-buttons/list-content-buttons.vue.d.ts +1 -1
  79. package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +1 -1
  80. package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +1 -1
  81. package/dist/lib/components/list-page-layout/src/components/list-header/module/quick-nav/index.vue.d.ts +1 -1
  82. package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +2 -2
  83. package/dist/lib/components/list-page-layout/src/components/list-header/module/tabs/index.vue.d.ts +1 -1
  84. package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +7 -7
  85. package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +3 -3
  86. package/dist/lib/components/list-page-layout/src/tokens.d.ts +2 -2
  87. package/dist/lib/components/page-layout/index.d.ts +1 -1
  88. package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +1 -1
  89. package/dist/lib/components/radio/index.d.ts +7 -7
  90. package/dist/lib/components/radio/src/radio.vue.d.ts +7 -7
  91. package/dist/lib/components/remote-select/index.d.ts +5 -5
  92. package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +5 -5
  93. package/dist/lib/components/select/index.d.ts +5 -5
  94. package/dist/lib/components/select/src/select.vue.d.ts +5 -5
  95. package/dist/lib/components/select-modal/index.d.ts +71 -67
  96. package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +71 -67
  97. package/dist/lib/components/switch/index.d.ts +2 -2
  98. package/dist/lib/components/switch/src/switch.vue.d.ts +2 -2
  99. package/dist/lib/components/tree-select/index.d.ts +5 -5
  100. package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +5 -5
  101. package/dist/lib/components/upload-file/index.d.ts +23 -15
  102. package/dist/lib/components/upload-file/src/hook/use-file-column-hook.d.ts +29 -15
  103. package/dist/lib/components/upload-file/src/hook/use-operation-column-button-hook.d.ts +1 -1
  104. package/dist/lib/components/upload-file/src/upload-file-types.d.ts +6 -19
  105. package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +22 -13
  106. package/dist/lib/components/upload-image/index.d.ts +4 -4
  107. package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +4 -4
  108. package/dist/lib/components/vxe-select/index.d.ts +6 -6
  109. package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +6 -6
  110. package/dist/lib/index.d.ts +1 -2
  111. package/dist/style.css +2 -2
  112. package/package.json +19 -19
  113. package/dist/components/ComponentsDemo.vue.d.ts +0 -13
  114. package/dist/components/EditPage.vue.d.ts +0 -6011
  115. package/dist/components/PreviewList.vue.d.ts +0 -218
  116. package/dist/components/hook/use-field-select-modal-hook.d.ts +0 -288
  117. package/dist/components/login.vue.d.ts +0 -19
  118. package/dist/components/mock.d.ts +0 -260
  119. package/dist/components/mockList.d.ts +0 -44
  120. package/dist/lib/components/upload-file/src/hook/use-operation-column-hook.d.ts +0 -15
  121. package/dist/router/index.d.ts +0 -4
  122. package/dist/stores/user.d.ts +0 -25
  123. package/dist/utils/qApiPlugin.d.ts +0 -6
  124. package/dist/views/dashboard/workspace.vue.d.ts +0 -6972
@@ -1,7 +1,7 @@
1
1
  import type { MessageType } from 'ant-design-vue/lib/message';
2
- import type { VxeTableProps, VxeGridInstance } from 'vxe-table';
3
- import type { ModalConfig, RequestMethod, ModalType, OpenFuncType, TablePage } from './../../field-select-modal';
4
- import type { DefineComponent, PropType, Ref, ComponentInternalInstance, ExtractPropTypes, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ComputedRef } from 'vue';
2
+ import type { VxeTableProps, VxeTableDataRow, VxeGridInstance } from 'vxe-table';
3
+ import type { RequestMethod, ModalConfig, ModalType, OpenFuncType, TablePage } from './../../field-select-modal';
4
+ import type { DefineComponent, PropType, Ref, ComponentInternalInstance, VNodeRef, VNode, RendererNode, RendererElement, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComputedRef } from 'vue';
5
5
  import type { Config, RecordStringNumber } from './select-modal-types';
6
6
  declare const _sfc_main: DefineComponent<{
7
7
  value: {
@@ -24,55 +24,59 @@ declare const _sfc_main: DefineComponent<{
24
24
  fieldSelectModal: Ref<({
25
25
  $: ComponentInternalInstance;
26
26
  $data: {};
27
- $props: Partial<{
28
- modalConfig: ModalConfig;
29
- modalTitle: string;
30
- apiUrls: string;
31
- requestMethod: RequestMethod;
32
- tableConfig: VxeTableProps<any>;
33
- placeholder: string;
34
- selectModal: ModalType;
35
- }> & Omit<Readonly<ExtractPropTypes<{
36
- modalTitle: {
37
- type: StringConstructor;
38
- default: string;
39
- };
40
- apiUrls: {
41
- type: StringConstructor;
42
- default: string;
43
- };
44
- requestMethod: {
45
- type: PropType<RequestMethod>;
46
- default: string;
47
- };
48
- modalConfig: {
49
- type: PropType<ModalConfig>;
50
- default: () => {};
51
- };
52
- tableConfig: {
53
- type: PropType<VxeTableProps<any>>;
54
- default: () => {
55
- height: number;
56
- isTree: boolean;
57
- radioConfig: {};
58
- checkboxConfig: {
59
- highlight: boolean;
60
- reserve: boolean;
61
- trigger: string;
62
- };
63
- pagerConfig: {};
64
- treeConfig: {};
65
- };
66
- };
67
- placeholder: {
68
- type: StringConstructor;
69
- default: string;
70
- };
71
- selectModal: {
72
- type: PropType<ModalType>;
73
- default: string;
74
- };
75
- }>> & VNodeProps & AllowedComponentProps & ComponentCustomProps, "modalConfig" | "modalTitle" | "apiUrls" | "requestMethod" | "tableConfig" | "placeholder" | "selectModal">;
27
+ $props: {
28
+ apiUrls?: string | undefined;
29
+ placeholder?: string | undefined;
30
+ modalTitle?: string | undefined;
31
+ requestMethod?: RequestMethod | undefined;
32
+ modalConfig?: ModalConfig | undefined;
33
+ tableConfig?: VxeTableProps<VxeTableDataRow> | undefined;
34
+ selectModal?: ModalType | undefined;
35
+ key?: string | number | symbol | undefined;
36
+ style?: unknown;
37
+ ref?: VNodeRef | undefined;
38
+ ref_for?: boolean | undefined;
39
+ ref_key?: string | undefined;
40
+ onVnodeBeforeMount?: ((vnode: VNode<RendererNode, RendererElement, {
41
+ [key: string]: any;
42
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
43
+ [key: string]: any;
44
+ }>) => void)[] | undefined;
45
+ onVnodeMounted?: ((vnode: VNode<RendererNode, RendererElement, {
46
+ [key: string]: any;
47
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
48
+ [key: string]: any;
49
+ }>) => void)[] | undefined;
50
+ onVnodeBeforeUpdate?: ((vnode: VNode<RendererNode, RendererElement, {
51
+ [key: string]: any;
52
+ }>, oldVNode: VNode<RendererNode, RendererElement, {
53
+ [key: string]: any;
54
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
55
+ [key: string]: any;
56
+ }>, oldVNode: VNode<RendererNode, RendererElement, {
57
+ [key: string]: any;
58
+ }>) => void)[] | undefined;
59
+ onVnodeUpdated?: ((vnode: VNode<RendererNode, RendererElement, {
60
+ [key: string]: any;
61
+ }>, oldVNode: VNode<RendererNode, RendererElement, {
62
+ [key: string]: any;
63
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
64
+ [key: string]: any;
65
+ }>, oldVNode: VNode<RendererNode, RendererElement, {
66
+ [key: string]: any;
67
+ }>) => void)[] | undefined;
68
+ onVnodeBeforeUnmount?: ((vnode: VNode<RendererNode, RendererElement, {
69
+ [key: string]: any;
70
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
71
+ [key: string]: any;
72
+ }>) => void)[] | undefined;
73
+ onVnodeUnmounted?: ((vnode: VNode<RendererNode, RendererElement, {
74
+ [key: string]: any;
75
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
76
+ [key: string]: any;
77
+ }>) => void)[] | undefined;
78
+ class?: unknown;
79
+ };
76
80
  $attrs: {
77
81
  [x: string]: unknown;
78
82
  };
@@ -80,10 +84,10 @@ declare const _sfc_main: DefineComponent<{
80
84
  [x: string]: unknown;
81
85
  };
82
86
  $slots: Readonly<{
83
- [name: string]: Slot | undefined;
87
+ [name: string]: Slot<any> | undefined;
84
88
  }>;
85
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
86
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
89
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
90
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
87
91
  $emit: (event: string, ...args: any[]) => void;
88
92
  $el: any;
89
93
  $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
@@ -104,7 +108,7 @@ declare const _sfc_main: DefineComponent<{
104
108
  default: () => {};
105
109
  };
106
110
  tableConfig: {
107
- type: PropType<VxeTableProps<any>>;
111
+ type: PropType<VxeTableProps<VxeTableDataRow>>;
108
112
  default: () => {
109
113
  height: number;
110
114
  isTree: boolean;
@@ -130,7 +134,7 @@ declare const _sfc_main: DefineComponent<{
130
134
  classes: ComputedRef<{
131
135
  [x: string]: boolean;
132
136
  }>;
133
- selectGrid: Ref<VxeGridInstance | null>;
137
+ selectGrid: Ref<VxeGridInstance<any> | null>;
134
138
  data: {
135
139
  url: string;
136
140
  params: {
@@ -180,14 +184,14 @@ declare const _sfc_main: DefineComponent<{
180
184
  handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
181
185
  selectedOk: () => void;
182
186
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
183
- modalConfig: ModalConfig;
184
- modalTitle: string;
185
187
  apiUrls: string;
186
- requestMethod: RequestMethod;
187
- tableConfig: VxeTableProps<any>;
188
188
  placeholder: string;
189
+ modalTitle: string;
190
+ requestMethod: RequestMethod;
191
+ modalConfig: ModalConfig;
192
+ tableConfig: VxeTableProps<VxeTableDataRow>;
189
193
  selectModal: ModalType;
190
- }, {}, string> & {
194
+ }, {}, string, {}> & {
191
195
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
192
196
  created?: ((() => void) | (() => void)[]) | undefined;
193
197
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -202,7 +206,7 @@ declare const _sfc_main: DefineComponent<{
202
206
  unmounted?: ((() => void) | (() => void)[]) | undefined;
203
207
  renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
204
208
  renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
205
- errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
209
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
206
210
  };
207
211
  $forceUpdate: () => void;
208
212
  $nextTick: typeof nextTick;
@@ -225,7 +229,7 @@ declare const _sfc_main: DefineComponent<{
225
229
  default: () => {};
226
230
  };
227
231
  tableConfig: {
228
- type: PropType<VxeTableProps<any>>;
232
+ type: PropType<VxeTableProps<VxeTableDataRow>>;
229
233
  default: () => {
230
234
  height: number;
231
235
  isTree: boolean;
@@ -251,7 +255,7 @@ declare const _sfc_main: DefineComponent<{
251
255
  classes: ComputedRef<{
252
256
  [x: string]: boolean;
253
257
  }>;
254
- selectGrid: Ref<VxeGridInstance | null>;
258
+ selectGrid: Ref<VxeGridInstance<any> | null>;
255
259
  data: {
256
260
  url: string;
257
261
  params: {
@@ -318,8 +322,8 @@ declare const _sfc_main: DefineComponent<{
318
322
  default: unknown;
319
323
  };
320
324
  }>>, {
321
- value: string;
322
325
  onChange: ((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[];
326
+ value: string;
323
327
  config: Config;
324
- }>;
328
+ }, {}>;
325
329
  export default _sfc_main;
@@ -37,8 +37,8 @@ declare const _default: SFCWithInstall<DefineComponent<{
37
37
  onChange?: ((...args: any[]) => any) | undefined;
38
38
  "onUpdate:checked"?: ((...args: any[]) => any) | undefined;
39
39
  }, {
40
- readonly checked: "0" | "1";
41
40
  readonly onChange: ((value: unknown) => void) | ((value: unknown) => void)[];
41
+ readonly checked: "0" | "1";
42
42
  readonly 'onUpdate:checked': ((value: string) => void) | ((value: string) => void)[];
43
- }>>;
43
+ }, {}>>;
44
44
  export default _default;
@@ -33,8 +33,8 @@ declare const _sfc_main: DefineComponent<{
33
33
  onChange?: ((...args: any[]) => any) | undefined;
34
34
  "onUpdate:checked"?: ((...args: any[]) => any) | undefined;
35
35
  }, {
36
- readonly checked: "0" | "1";
37
36
  readonly onChange: ((value: unknown) => void) | ((value: unknown) => void)[];
37
+ readonly checked: "0" | "1";
38
38
  readonly 'onUpdate:checked': ((value: string) => void) | ((value: string) => void)[];
39
- }>;
39
+ }, {}>;
40
40
  export default _sfc_main;
@@ -102,13 +102,13 @@ declare const _default: SFCWithInstall<DefineComponent<{
102
102
  onChange?: ((...args: any[]) => any) | undefined;
103
103
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
104
104
  }, {
105
- readonly dictCode: string;
106
- readonly options: TreeNode[];
107
- readonly multiple: boolean;
108
105
  readonly params: RecordStringNumber;
109
- readonly value: string;
110
106
  readonly onChange: ((value: string) => void) | ((value: string) => void)[];
107
+ readonly value: string;
108
+ readonly multiple: boolean;
109
+ readonly options: TreeNode[];
111
110
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
112
111
  readonly fieldNames: FieldNames;
113
- }>>;
112
+ readonly dictCode: string;
113
+ }, {}>>;
114
114
  export default _default;
@@ -98,13 +98,13 @@ declare const _sfc_main: DefineComponent<{
98
98
  onChange?: ((...args: any[]) => any) | undefined;
99
99
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
100
100
  }, {
101
- readonly dictCode: string;
102
- readonly options: TreeNode[];
103
- readonly multiple: boolean;
104
101
  readonly params: RecordStringNumber;
105
- readonly value: string;
106
102
  readonly onChange: ((value: string) => void) | ((value: string) => void)[];
103
+ readonly value: string;
104
+ readonly multiple: boolean;
105
+ readonly options: TreeNode[];
107
106
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
108
107
  readonly fieldNames: FieldNames;
109
- }>;
108
+ readonly dictCode: string;
109
+ }, {}>;
110
110
  export default _sfc_main;
@@ -1,16 +1,15 @@
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 { Data, FileTypeList } from './src/upload-file-types';
5
+ import type { UserInfo, Role, CurrentRow, RecordStringNumber } from '../edit-page-layout';
6
6
  import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
7
7
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
8
8
  import QUploadFile from './src/upload-file.vue';
9
9
  export * from './src/upload-file-types';
10
10
  import useFileColumnHook from './src/hook/use-file-column-hook';
11
- import useOperationColumnHook from './src/hook/use-operation-column-hook';
12
11
  import useOperationColumnButtonHook from './src/hook/use-operation-column-button-hook';
13
- export { useFileColumnHook, useOperationColumnHook, useOperationColumnButtonHook };
12
+ export { useFileColumnHook, useOperationColumnButtonHook };
14
13
  export { QUploadFile };
15
14
  declare const _default: SFCWithInstall<DefineComponent<{
16
15
  readonly visible: {
@@ -61,6 +60,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
61
60
  readonly type: BooleanConstructor;
62
61
  readonly default: false;
63
62
  };
63
+ readonly role: {
64
+ readonly type: PropType<Role>;
65
+ readonly default: "purchase";
66
+ };
64
67
  readonly action: {
65
68
  readonly type: StringConstructor;
66
69
  readonly default: "/attachment/purchaseAttachment/upload";
@@ -98,7 +101,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
98
101
  readonly default: false;
99
102
  };
100
103
  readonly itemInfo: {
101
- readonly type: PropType<ItemInfo[]>;
104
+ readonly type: PropType<RecordStringNumber[]>;
102
105
  readonly default: () => never[];
103
106
  };
104
107
  readonly fileTypeList: {
@@ -186,6 +189,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
186
189
  readonly type: BooleanConstructor;
187
190
  readonly default: false;
188
191
  };
192
+ readonly role: {
193
+ readonly type: PropType<Role>;
194
+ readonly default: "purchase";
195
+ };
189
196
  readonly action: {
190
197
  readonly type: StringConstructor;
191
198
  readonly default: "/attachment/purchaseAttachment/upload";
@@ -223,7 +230,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
223
230
  readonly default: false;
224
231
  };
225
232
  readonly itemInfo: {
226
- readonly type: PropType<ItemInfo[]>;
233
+ readonly type: PropType<RecordStringNumber[]>;
227
234
  readonly default: () => never[];
228
235
  };
229
236
  readonly fileTypeList: {
@@ -238,29 +245,30 @@ declare const _default: SFCWithInstall<DefineComponent<{
238
245
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
239
246
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
240
247
  }, {
248
+ readonly data: Data;
249
+ readonly multiple: boolean;
250
+ readonly dictCode: string;
251
+ readonly property: string;
241
252
  readonly visible: boolean;
253
+ readonly role: Role;
242
254
  readonly currentRow: CurrentRow;
243
255
  readonly userInfo: UserInfo;
244
- readonly dictCode: string;
245
256
  readonly single: boolean;
246
- readonly multiple: boolean;
247
- readonly data: Data;
248
- readonly property: string;
249
- readonly action: string;
250
- readonly accept: string;
251
- readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
252
257
  readonly attrCheck: string;
253
258
  readonly limitSize: number;
259
+ readonly accept: string;
254
260
  readonly acceptDictCode: string;
255
261
  readonly isOss: boolean;
256
262
  readonly isGridUpload: boolean;
263
+ readonly action: string;
257
264
  readonly itemNumberKey: string;
258
265
  readonly itemNumberLabel: string;
259
266
  readonly itemNumbeValueProp: string;
260
267
  readonly itemNumberDefaultValue: string;
261
268
  readonly itemNumberSelectIndex: boolean;
262
269
  readonly disabledItemNumber: boolean;
263
- readonly itemInfo: ItemInfo[];
270
+ readonly itemInfo: RecordStringNumber[];
264
271
  readonly fileTypeList: FileTypeList[];
265
- }>>;
272
+ readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
273
+ }, {}>>;
266
274
  export default _default;
@@ -1,20 +1,34 @@
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
+ fieldLabelI18nKey: string;
7
8
  width: number;
8
- align: string;
9
- slots: {
10
- default({ row, $rowIndex }: {
11
- row: RecordStringNumber;
12
- $rowIndex: number;
13
- }): JSX.Element[];
14
- };
15
- } | {
16
9
  groupCode: string;
17
- field: string;
18
- title: string;
19
- width: number;
20
- })[];
10
+ fieldType?: string | undefined;
11
+ helpText?: string | undefined;
12
+ required?: "0" | "1" | undefined;
13
+ regex?: string | RegExp | undefined;
14
+ alertMsg?: string | undefined;
15
+ callback?: ((ctx: {
16
+ attrs: {
17
+ [x: string]: unknown;
18
+ };
19
+ slots: Readonly<{
20
+ [name: string]: Slot<any> | undefined;
21
+ }>;
22
+ emit: (event: string, ...args: any[]) => void;
23
+ expose: (exposed?: Record<string, any> | undefined) => void;
24
+ } | {
25
+ attrs: {
26
+ [x: string]: unknown;
27
+ };
28
+ slots: Readonly<{
29
+ [name: string]: Slot<any> | undefined;
30
+ }>;
31
+ emit: (event: string, ...args: any[]) => void;
32
+ expose: (exposed?: Record<string, any> | undefined) => void;
33
+ }, payload: VxePayload) => void) | undefined;
34
+ }[];
@@ -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>;
@@ -24,10 +23,6 @@ export interface FileTypeList {
24
23
  value: string;
25
24
  [key: string]: unknown;
26
25
  }
27
- export interface ItemInfo {
28
- [key: string]: unknown;
29
- [key: number]: unknown;
30
- }
31
26
  export interface ColumnItemExtend {
32
27
  url?: string;
33
28
  single: boolean;
@@ -41,18 +36,6 @@ export interface ColumnItemWithExtend extends ColumnItem {
41
36
  idx: number;
42
37
  }
43
38
  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
39
  export declare const uploadFilesProps: {
57
40
  readonly visible: {
58
41
  readonly type: BooleanConstructor;
@@ -102,6 +85,10 @@ export declare const uploadFilesProps: {
102
85
  readonly type: BooleanConstructor;
103
86
  readonly default: false;
104
87
  };
88
+ readonly role: {
89
+ readonly type: PropType<Role>;
90
+ readonly default: "purchase";
91
+ };
105
92
  readonly action: {
106
93
  readonly type: StringConstructor;
107
94
  readonly default: "/attachment/purchaseAttachment/upload";
@@ -139,7 +126,7 @@ export declare const uploadFilesProps: {
139
126
  readonly default: false;
140
127
  };
141
128
  readonly itemInfo: {
142
- readonly type: PropType<ItemInfo[]>;
129
+ readonly type: PropType<RecordStringNumber[]>;
143
130
  readonly default: () => never[];
144
131
  };
145
132
  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;
@@ -53,6 +53,10 @@ declare const _sfc_main: DefineComponent<{
53
53
  readonly type: BooleanConstructor;
54
54
  readonly default: false;
55
55
  };
56
+ readonly role: {
57
+ readonly type: PropType<Role>;
58
+ readonly default: "purchase";
59
+ };
56
60
  readonly action: {
57
61
  readonly type: StringConstructor;
58
62
  readonly default: "/attachment/purchaseAttachment/upload";
@@ -90,7 +94,7 @@ declare const _sfc_main: DefineComponent<{
90
94
  readonly default: false;
91
95
  };
92
96
  readonly itemInfo: {
93
- readonly type: PropType<ItemInfo[]>;
97
+ readonly type: PropType<RecordStringNumber[]>;
94
98
  readonly default: () => never[];
95
99
  };
96
100
  readonly fileTypeList: {
@@ -178,6 +182,10 @@ declare const _sfc_main: DefineComponent<{
178
182
  readonly type: BooleanConstructor;
179
183
  readonly default: false;
180
184
  };
185
+ readonly role: {
186
+ readonly type: PropType<Role>;
187
+ readonly default: "purchase";
188
+ };
181
189
  readonly action: {
182
190
  readonly type: StringConstructor;
183
191
  readonly default: "/attachment/purchaseAttachment/upload";
@@ -215,7 +223,7 @@ declare const _sfc_main: DefineComponent<{
215
223
  readonly default: false;
216
224
  };
217
225
  readonly itemInfo: {
218
- readonly type: PropType<ItemInfo[]>;
226
+ readonly type: PropType<RecordStringNumber[]>;
219
227
  readonly default: () => never[];
220
228
  };
221
229
  readonly fileTypeList: {
@@ -230,29 +238,30 @@ declare const _sfc_main: DefineComponent<{
230
238
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
231
239
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
232
240
  }, {
241
+ readonly data: Data;
242
+ readonly multiple: boolean;
243
+ readonly dictCode: string;
244
+ readonly property: string;
233
245
  readonly visible: boolean;
246
+ readonly role: Role;
234
247
  readonly currentRow: CurrentRow;
235
248
  readonly userInfo: UserInfo;
236
- readonly dictCode: string;
237
249
  readonly single: boolean;
238
- readonly multiple: boolean;
239
- readonly data: Data;
240
- readonly property: string;
241
- readonly action: string;
242
- readonly accept: string;
243
- readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
244
250
  readonly attrCheck: string;
245
251
  readonly limitSize: number;
252
+ readonly accept: string;
246
253
  readonly acceptDictCode: string;
247
254
  readonly isOss: boolean;
248
255
  readonly isGridUpload: boolean;
256
+ readonly action: string;
249
257
  readonly itemNumberKey: string;
250
258
  readonly itemNumberLabel: string;
251
259
  readonly itemNumbeValueProp: string;
252
260
  readonly itemNumberDefaultValue: string;
253
261
  readonly itemNumberSelectIndex: boolean;
254
262
  readonly disabledItemNumber: boolean;
255
- readonly itemInfo: ItemInfo[];
263
+ readonly itemInfo: RecordStringNumber[];
256
264
  readonly fileTypeList: FileTypeList[];
257
- }>;
265
+ readonly 'onUpdate:visible': ((value: boolean) => void) | ((value: boolean) => void)[];
266
+ }, {}>;
258
267
  export default _sfc_main;
@@ -178,14 +178,14 @@ 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 multiple: boolean;
183
- readonly value: string;
184
181
  readonly onChange: ((value: string) => void) | ((value: string) => void)[];
182
+ readonly value: string;
183
+ readonly multiple: boolean;
185
184
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
185
+ readonly disabled: boolean;
186
186
  readonly accept: string;
187
187
  readonly canRemove: boolean;
188
188
  readonly limit: number;
189
189
  readonly uploadImageData: Record<string, any>;
190
- }>>;
190
+ }, {}>>;
191
191
  export default _default;
@@ -174,14 +174,14 @@ declare const _sfc_main: DefineComponent<{
174
174
  onChange?: ((...args: any[]) => any) | undefined;
175
175
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
176
176
  }, {
177
- readonly disabled: boolean;
178
- readonly multiple: boolean;
179
- readonly value: string;
180
177
  readonly onChange: ((value: string) => void) | ((value: string) => void)[];
178
+ readonly value: string;
179
+ readonly multiple: boolean;
181
180
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
181
+ readonly disabled: boolean;
182
182
  readonly accept: string;
183
183
  readonly canRemove: boolean;
184
184
  readonly limit: number;
185
185
  readonly uploadImageData: Record<string, any>;
186
- }>;
186
+ }, {}>;
187
187
  export default _sfc_main;
@@ -103,14 +103,14 @@ declare const _default: SFCWithInstall<DefineComponent<{
103
103
  onChange?: ((...args: any[]) => any) | undefined;
104
104
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
105
105
  }, {
106
- readonly dictCode: string;
107
- readonly busAccount: string;
108
- readonly options: SelectOption[];
106
+ readonly onChange: ((value: string) => void) | ((value: string) => void)[];
109
107
  readonly multiple: boolean;
108
+ readonly options: SelectOption[];
110
109
  readonly placeholder: string;
111
- readonly onChange: ((value: string) => void) | ((value: string) => void)[];
112
110
  readonly maxTagCount: number;
113
- readonly 'onUpdate:modelValue': ((value: string) => void) | ((value: string) => void)[];
111
+ readonly busAccount: string;
112
+ readonly dictCode: string;
114
113
  readonly modelValue: string;
115
- }>>;
114
+ readonly 'onUpdate:modelValue': ((value: string) => void) | ((value: string) => void)[];
115
+ }, {}>>;
116
116
  export default _default;