@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
@@ -91,12 +91,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
91
91
  onChange?: ((...args: any[]) => any) | undefined;
92
92
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
93
93
  }, {
94
+ readonly busAccount: string;
94
95
  readonly onChange: ((value: string) => void) | ((value: string) => void)[];
95
96
  readonly value: string;
96
97
  readonly options: Option[];
97
98
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
98
99
  readonly required: "0" | "1";
99
- readonly busAccount: string;
100
100
  readonly dictCode: string;
101
101
  readonly isLayout: boolean;
102
102
  readonly colSpan: string;
@@ -87,12 +87,12 @@ declare const _sfc_main: DefineComponent<{
87
87
  onChange?: ((...args: any[]) => any) | undefined;
88
88
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
89
89
  }, {
90
+ readonly busAccount: string;
90
91
  readonly onChange: ((value: string) => void) | ((value: string) => void)[];
91
92
  readonly value: string;
92
93
  readonly options: Option[];
93
94
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
94
95
  readonly required: "0" | "1";
95
- readonly busAccount: string;
96
96
  readonly dictCode: string;
97
97
  readonly isLayout: boolean;
98
98
  readonly colSpan: string;
@@ -0,0 +1,23 @@
1
+ import type { PropType, ExtractPropTypes } from 'vue';
2
+ import type { RecordStringNumber } from './../../edit-page-layout';
3
+ export declare const relationGraphProps: {
4
+ readonly visible: {
5
+ readonly type: BooleanConstructor;
6
+ readonly default: false;
7
+ };
8
+ readonly documentId: {
9
+ readonly require: true;
10
+ readonly type: StringConstructor;
11
+ readonly default: "";
12
+ };
13
+ readonly id: {
14
+ readonly require: true;
15
+ readonly type: StringConstructor;
16
+ readonly default: "";
17
+ };
18
+ readonly onChange: {
19
+ type: PropType<((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[]>;
20
+ default: unknown;
21
+ };
22
+ };
23
+ export type RelationGraphProps = ExtractPropTypes<typeof relationGraphProps>;
@@ -1,4 +1,5 @@
1
- import type { RequestMethod } from './src/remote-select-types';
1
+ import type { MessageType } from 'ant-design-vue/lib/message';
2
+ import type { Config, RecordStringNumber } from './src/remote-select-types';
2
3
  import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
4
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
4
5
  import QRemoteSelect from './src/remote-select.vue';
@@ -10,37 +11,19 @@ declare const _default: SFCWithInstall<DefineComponent<{
10
11
  default: string;
11
12
  };
12
13
  config: {
13
- type: ObjectConstructor;
14
- default(): {
15
- bindFunction: () => void;
16
- };
14
+ type: PropType<Config>;
15
+ default: () => {};
17
16
  };
18
- placeholder: {
19
- type: StringConstructor;
20
- default: string;
17
+ row: {
18
+ type: PropType<Record<string | number, unknown>>;
19
+ default: () => {};
21
20
  };
22
- disabled: {
23
- type: BooleanConstructor;
24
- default: boolean;
25
- };
26
- apiUrls: {
27
- type: StringConstructor;
28
- default: string;
29
- };
30
- requestMethod: {
31
- type: PropType<RequestMethod>;
32
- default: string;
33
- };
34
- 'onUpdate:value': {
35
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
36
- default: unknown;
21
+ idx: {
22
+ type: NumberConstructor;
23
+ default: number;
37
24
  };
38
25
  onChange: {
39
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
40
- default: unknown;
41
- };
42
- clear: {
43
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
26
+ type: PropType<((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[]>;
44
27
  default: unknown;
45
28
  };
46
29
  }, {
@@ -48,7 +31,8 @@ declare const _default: SFCWithInstall<DefineComponent<{
48
31
  [x: string]: boolean;
49
32
  }>;
50
33
  value: Ref<string>;
51
- config: Ref<Record<string, any>>;
34
+ valueKey: Ref<any>;
35
+ config: Ref<Config>;
52
36
  data: {
53
37
  modalLoading: boolean;
54
38
  url: string;
@@ -58,65 +42,40 @@ declare const _default: SFCWithInstall<DefineComponent<{
58
42
  keyWord: string;
59
43
  };
60
44
  dataSource: {
45
+ [x: string]: string;
61
46
  id: string;
62
47
  }[];
63
48
  };
64
- placeholder: Ref<string>;
65
- disabled: Ref<boolean>;
66
- requestMethod: Ref<RequestMethod>;
67
- formatTitle: (item: Record<string, unknown>) => any;
68
- handleSearch: (val?: string) => void;
49
+ formatTitle: (item: Record<string, unknown>) => string;
69
50
  handleFocus: () => void;
70
- handleChange: (changeValue: string) => void;
71
- clearInputValue: () => void;
51
+ handleSearch: (val?: string) => void;
52
+ handleChange: (changeValue: string) => void | MessageType;
72
53
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
73
54
  value: {
74
55
  type: StringConstructor;
75
56
  default: string;
76
57
  };
77
58
  config: {
78
- type: ObjectConstructor;
79
- default(): {
80
- bindFunction: () => void;
81
- };
59
+ type: PropType<Config>;
60
+ default: () => {};
82
61
  };
83
- placeholder: {
84
- type: StringConstructor;
85
- default: string;
62
+ row: {
63
+ type: PropType<Record<string | number, unknown>>;
64
+ default: () => {};
86
65
  };
87
- disabled: {
88
- type: BooleanConstructor;
89
- default: boolean;
90
- };
91
- apiUrls: {
92
- type: StringConstructor;
93
- default: string;
94
- };
95
- requestMethod: {
96
- type: PropType<RequestMethod>;
97
- default: string;
98
- };
99
- 'onUpdate:value': {
100
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
101
- default: unknown;
66
+ idx: {
67
+ type: NumberConstructor;
68
+ default: number;
102
69
  };
103
70
  onChange: {
104
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
105
- default: unknown;
106
- };
107
- clear: {
108
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
71
+ type: PropType<((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[]>;
109
72
  default: unknown;
110
73
  };
111
74
  }>>, {
112
- apiUrls: string;
113
- onChange: ((value: string) => void) | ((value: string) => void)[];
75
+ row: Record<string | number, unknown>;
76
+ onChange: ((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[];
114
77
  value: string;
115
- 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
116
- disabled: boolean;
117
- placeholder: string;
118
- requestMethod: RequestMethod;
119
- config: Record<string, any>;
120
- clear: ((value: string) => void) | ((value: string) => void)[];
78
+ config: Config;
79
+ idx: number;
121
80
  }, {}>>;
122
81
  export default _default;
@@ -1,49 +1,65 @@
1
1
  import type { ComputedRef, ExtractPropTypes, PropType } from 'vue';
2
+ import type { FormFieldsItem, RecordStringNumber } from './../../edit-page-layout';
2
3
  import type { VxeTableProps } from 'vxe-table';
4
+ export { RecordStringNumber };
3
5
  export type TableConfig = VxeTableProps;
4
6
  export type RequestMethod = 'get' | 'post';
7
+ export interface Columns {
8
+ type?: string;
9
+ field: string;
10
+ title?: string;
11
+ align?: string;
12
+ fieldLabelI18nKey?: string;
13
+ width?: number;
14
+ }
15
+ export interface ExtendFunImport {
16
+ pageData: RecordStringNumber;
17
+ userInfo: RecordStringNumber;
18
+ row?: RecordStringNumber;
19
+ idx?: number;
20
+ }
21
+ export type HandleBefore = (value?: ExtendFunImport) => Promise<string | boolean | void>;
22
+ export type HandleAfter = (value?: ExtendFunImport) => void;
23
+ export type ModalParams = Record<number | string, unknown> | ((value?: ExtendFunImport) => Record<number | string, unknown>);
24
+ export interface Extend {
25
+ valueKey?: string;
26
+ current?: number;
27
+ modalColumns: Columns[];
28
+ modalUrl: string;
29
+ modalConfigs?: unknown[];
30
+ modalParams?: ModalParams;
31
+ params?: ModalParams;
32
+ requestMethod: RequestMethod;
33
+ handleBefore?: HandleBefore;
34
+ handleAfter?: HandleAfter;
35
+ }
36
+ export interface Config extends FormFieldsItem {
37
+ extend: Extend;
38
+ }
5
39
  export declare const remoteSelectProps: {
6
40
  value: {
7
41
  type: StringConstructor;
8
42
  default: string;
9
43
  };
10
44
  config: {
11
- type: ObjectConstructor;
12
- default(): {
13
- bindFunction: () => void;
14
- };
45
+ type: PropType<Config>;
46
+ default: () => {};
15
47
  };
16
- placeholder: {
17
- type: StringConstructor;
18
- default: string;
48
+ row: {
49
+ type: PropType<Record<string | number, unknown>>;
50
+ default: () => {};
19
51
  };
20
- disabled: {
21
- type: BooleanConstructor;
22
- default: boolean;
23
- };
24
- apiUrls: {
25
- type: StringConstructor;
26
- default: string;
27
- };
28
- requestMethod: {
29
- type: PropType<RequestMethod>;
30
- default: string;
31
- };
32
- 'onUpdate:value': {
33
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
34
- default: unknown;
52
+ idx: {
53
+ type: NumberConstructor;
54
+ default: number;
35
55
  };
36
56
  onChange: {
37
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
38
- default: unknown;
39
- };
40
- clear: {
41
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
57
+ type: PropType<((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[]>;
42
58
  default: unknown;
43
59
  };
44
60
  };
45
61
  export type RemoteSelectProps = ExtractPropTypes<typeof remoteSelectProps>;
46
- export interface UseSelectModalType {
62
+ export interface UseRemoteSelectType {
47
63
  classes: ComputedRef<{
48
64
  [key: string]: string | boolean;
49
65
  }>;
@@ -1,42 +1,25 @@
1
- import type { RequestMethod } from './remote-select-types';
2
- import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
1
+ import type { MessageType } from 'ant-design-vue/lib/message';
2
+ import type { Config, RecordStringNumber } from './remote-select-types';
3
+ import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Ref, ComputedRef } from 'vue';
3
4
  declare const _sfc_main: DefineComponent<{
4
5
  value: {
5
6
  type: StringConstructor;
6
7
  default: string;
7
8
  };
8
9
  config: {
9
- type: ObjectConstructor;
10
- default(): {
11
- bindFunction: () => void;
12
- };
10
+ type: PropType<Config>;
11
+ default: () => {};
13
12
  };
14
- placeholder: {
15
- type: StringConstructor;
16
- default: string;
13
+ row: {
14
+ type: PropType<Record<string | number, unknown>>;
15
+ default: () => {};
17
16
  };
18
- disabled: {
19
- type: BooleanConstructor;
20
- default: boolean;
21
- };
22
- apiUrls: {
23
- type: StringConstructor;
24
- default: string;
25
- };
26
- requestMethod: {
27
- type: PropType<RequestMethod>;
28
- default: string;
29
- };
30
- 'onUpdate:value': {
31
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
32
- default: unknown;
17
+ idx: {
18
+ type: NumberConstructor;
19
+ default: number;
33
20
  };
34
21
  onChange: {
35
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
36
- default: unknown;
37
- };
38
- clear: {
39
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
22
+ type: PropType<((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[]>;
40
23
  default: unknown;
41
24
  };
42
25
  }, {
@@ -44,7 +27,8 @@ declare const _sfc_main: DefineComponent<{
44
27
  [x: string]: boolean;
45
28
  }>;
46
29
  value: Ref<string>;
47
- config: Ref<Record<string, any>>;
30
+ valueKey: Ref<any>;
31
+ config: Ref<Config>;
48
32
  data: {
49
33
  modalLoading: boolean;
50
34
  url: string;
@@ -54,65 +38,40 @@ declare const _sfc_main: DefineComponent<{
54
38
  keyWord: string;
55
39
  };
56
40
  dataSource: {
41
+ [x: string]: string;
57
42
  id: string;
58
43
  }[];
59
44
  };
60
- placeholder: Ref<string>;
61
- disabled: Ref<boolean>;
62
- requestMethod: Ref<RequestMethod>;
63
- formatTitle: (item: Record<string, unknown>) => any;
64
- handleSearch: (val?: string) => void;
45
+ formatTitle: (item: Record<string, unknown>) => string;
65
46
  handleFocus: () => void;
66
- handleChange: (changeValue: string) => void;
67
- clearInputValue: () => void;
47
+ handleSearch: (val?: string) => void;
48
+ handleChange: (changeValue: string) => void | MessageType;
68
49
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
69
50
  value: {
70
51
  type: StringConstructor;
71
52
  default: string;
72
53
  };
73
54
  config: {
74
- type: ObjectConstructor;
75
- default(): {
76
- bindFunction: () => void;
77
- };
55
+ type: PropType<Config>;
56
+ default: () => {};
78
57
  };
79
- placeholder: {
80
- type: StringConstructor;
81
- default: string;
58
+ row: {
59
+ type: PropType<Record<string | number, unknown>>;
60
+ default: () => {};
82
61
  };
83
- disabled: {
84
- type: BooleanConstructor;
85
- default: boolean;
86
- };
87
- apiUrls: {
88
- type: StringConstructor;
89
- default: string;
90
- };
91
- requestMethod: {
92
- type: PropType<RequestMethod>;
93
- default: string;
94
- };
95
- 'onUpdate:value': {
96
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
97
- default: unknown;
62
+ idx: {
63
+ type: NumberConstructor;
64
+ default: number;
98
65
  };
99
66
  onChange: {
100
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
101
- default: unknown;
102
- };
103
- clear: {
104
- type: PropType<((value: string) => void) | ((value: string) => void)[]>;
67
+ type: PropType<((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[]>;
105
68
  default: unknown;
106
69
  };
107
70
  }>>, {
108
- apiUrls: string;
109
- onChange: ((value: string) => void) | ((value: string) => void)[];
71
+ row: Record<string | number, unknown>;
72
+ onChange: ((value: RecordStringNumber[]) => void) | ((value: RecordStringNumber[]) => void)[];
110
73
  value: string;
111
- 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
112
- disabled: boolean;
113
- placeholder: string;
114
- requestMethod: RequestMethod;
115
- config: Record<string, any>;
116
- clear: ((value: string) => void) | ((value: string) => void)[];
74
+ config: Config;
75
+ idx: number;
117
76
  }, {}>;
118
77
  export default _sfc_main;
@@ -0,0 +1,99 @@
1
+ import type { CurrentRow } from '../edit-page-layout';
2
+ import type { RuleObject, FormInstance } from 'ant-design-vue/es/form';
3
+ import type { Payload } from './src/sale-template-types';
4
+ import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
5
+ import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
6
+ import QSaleTemplate from './src/sale-template.vue';
7
+ export * from './src/sale-template-types';
8
+ export { QSaleTemplate };
9
+ declare const _default: SFCWithInstall<DefineComponent<{
10
+ readonly url: {
11
+ readonly type: PropType<string>;
12
+ readonly default: "";
13
+ };
14
+ readonly businessType: {
15
+ readonly type: PropType<string>;
16
+ readonly default: "";
17
+ };
18
+ readonly elsAccount: {
19
+ readonly type: PropType<string>;
20
+ readonly default: "";
21
+ };
22
+ readonly modelValue: {
23
+ readonly type: PropType<boolean>;
24
+ readonly default: false;
25
+ };
26
+ readonly 'onUpdate:modelValue': {
27
+ type: PropType<((modelValue: boolean) => void) | ((modelValue: boolean) => void)[]>;
28
+ default: unknown;
29
+ };
30
+ readonly success: {
31
+ type: PropType<((payload: Payload) => void) | ((payload: Payload) => void)[]>;
32
+ default: unknown;
33
+ };
34
+ readonly ok: {
35
+ type: PropType<(() => void) | (() => void)[]>;
36
+ default: unknown;
37
+ };
38
+ }, {
39
+ classes: ComputedRef<{
40
+ [key: string]: string | boolean;
41
+ }>;
42
+ modelValue: Ref<boolean>;
43
+ title: string;
44
+ rules: Record<string, RuleObject[]>;
45
+ formState: {
46
+ purchaseName: string;
47
+ elsAccount: string;
48
+ id: string;
49
+ };
50
+ options: Ref<CurrentRow[]>;
51
+ tempOptions: Ref<CurrentRow[]>;
52
+ formRef: Ref<FormInstance | undefined>;
53
+ srmI18n: (i18nKey: string, defaultValue: string, account?: string | number | undefined) => string;
54
+ handleAccountChange: (value: string) => void;
55
+ handleCancel: () => void;
56
+ handleOk: () => void;
57
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("ok" | "success" | "update:modelValue")[], "ok" | "success" | "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
58
+ readonly url: {
59
+ readonly type: PropType<string>;
60
+ readonly default: "";
61
+ };
62
+ readonly businessType: {
63
+ readonly type: PropType<string>;
64
+ readonly default: "";
65
+ };
66
+ readonly elsAccount: {
67
+ readonly type: PropType<string>;
68
+ readonly default: "";
69
+ };
70
+ readonly modelValue: {
71
+ readonly type: PropType<boolean>;
72
+ readonly default: false;
73
+ };
74
+ readonly 'onUpdate:modelValue': {
75
+ type: PropType<((modelValue: boolean) => void) | ((modelValue: boolean) => void)[]>;
76
+ default: unknown;
77
+ };
78
+ readonly success: {
79
+ type: PropType<((payload: Payload) => void) | ((payload: Payload) => void)[]>;
80
+ default: unknown;
81
+ };
82
+ readonly ok: {
83
+ type: PropType<(() => void) | (() => void)[]>;
84
+ default: unknown;
85
+ };
86
+ }>> & {
87
+ onOk?: ((...args: any[]) => any) | undefined;
88
+ onSuccess?: ((...args: any[]) => any) | undefined;
89
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
90
+ }, {
91
+ readonly ok: (() => void) | (() => void)[];
92
+ readonly businessType: string;
93
+ readonly url: string;
94
+ readonly elsAccount: string;
95
+ readonly success: ((payload: Payload) => void) | ((payload: Payload) => void)[];
96
+ readonly 'onUpdate:modelValue': ((modelValue: boolean) => void) | ((modelValue: boolean) => void)[];
97
+ readonly modelValue: boolean;
98
+ }, {}>>;
99
+ export default _default;
@@ -0,0 +1,41 @@
1
+ import type { ComputedRef, PropType, ExtractPropTypes } from 'vue';
2
+ import type { CurrentRow } from '../../edit-page-layout';
3
+ export interface Payload {
4
+ rows: CurrentRow[];
5
+ }
6
+ export declare const saleTemplateProps: {
7
+ readonly url: {
8
+ readonly type: PropType<string>;
9
+ readonly default: "";
10
+ };
11
+ readonly businessType: {
12
+ readonly type: PropType<string>;
13
+ readonly default: "";
14
+ };
15
+ readonly elsAccount: {
16
+ readonly type: PropType<string>;
17
+ readonly default: "";
18
+ };
19
+ readonly modelValue: {
20
+ readonly type: PropType<boolean>;
21
+ readonly default: false;
22
+ };
23
+ readonly 'onUpdate:modelValue': {
24
+ type: PropType<((modelValue: boolean) => void) | ((modelValue: boolean) => void)[]>;
25
+ default: unknown;
26
+ };
27
+ readonly success: {
28
+ type: PropType<((payload: Payload) => void) | ((payload: Payload) => void)[]>;
29
+ default: unknown;
30
+ };
31
+ readonly ok: {
32
+ type: PropType<(() => void) | (() => void)[]>;
33
+ default: unknown;
34
+ };
35
+ };
36
+ export type SaleTemplateProps = ExtractPropTypes<typeof saleTemplateProps>;
37
+ export interface UseSaleTemplateReturnType {
38
+ classes: ComputedRef<{
39
+ [key: string]: string | boolean;
40
+ }>;
41
+ }
@@ -0,0 +1,95 @@
1
+ import type { Payload } from './sale-template-types';
2
+ import type { DefineComponent, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Ref } from 'vue';
3
+ import type { RuleObject, FormInstance } from 'ant-design-vue/es/form';
4
+ import type { CurrentRow } from '../../edit-page-layout';
5
+ declare const _sfc_main: DefineComponent<{
6
+ readonly url: {
7
+ readonly type: PropType<string>;
8
+ readonly default: "";
9
+ };
10
+ readonly businessType: {
11
+ readonly type: PropType<string>;
12
+ readonly default: "";
13
+ };
14
+ readonly elsAccount: {
15
+ readonly type: PropType<string>;
16
+ readonly default: "";
17
+ };
18
+ readonly modelValue: {
19
+ readonly type: PropType<boolean>;
20
+ readonly default: false;
21
+ };
22
+ readonly 'onUpdate:modelValue': {
23
+ type: PropType<((modelValue: boolean) => void) | ((modelValue: boolean) => void)[]>;
24
+ default: unknown;
25
+ };
26
+ readonly success: {
27
+ type: PropType<((payload: Payload) => void) | ((payload: Payload) => void)[]>;
28
+ default: unknown;
29
+ };
30
+ readonly ok: {
31
+ type: PropType<(() => void) | (() => void)[]>;
32
+ default: unknown;
33
+ };
34
+ }, {
35
+ classes: ComputedRef<{
36
+ [key: string]: string | boolean;
37
+ }>;
38
+ modelValue: Ref<boolean>;
39
+ title: string;
40
+ rules: Record<string, RuleObject[]>;
41
+ formState: {
42
+ purchaseName: string;
43
+ elsAccount: string;
44
+ id: string;
45
+ };
46
+ options: Ref<CurrentRow[]>;
47
+ tempOptions: Ref<CurrentRow[]>;
48
+ formRef: Ref<FormInstance | undefined>;
49
+ srmI18n: (i18nKey: string, defaultValue: string, account?: string | number) => string;
50
+ handleAccountChange: (value: string) => void;
51
+ handleCancel: () => void;
52
+ handleOk: () => void;
53
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("ok" | "success" | "update:modelValue")[], "ok" | "success" | "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
54
+ readonly url: {
55
+ readonly type: PropType<string>;
56
+ readonly default: "";
57
+ };
58
+ readonly businessType: {
59
+ readonly type: PropType<string>;
60
+ readonly default: "";
61
+ };
62
+ readonly elsAccount: {
63
+ readonly type: PropType<string>;
64
+ readonly default: "";
65
+ };
66
+ readonly modelValue: {
67
+ readonly type: PropType<boolean>;
68
+ readonly default: false;
69
+ };
70
+ readonly 'onUpdate:modelValue': {
71
+ type: PropType<((modelValue: boolean) => void) | ((modelValue: boolean) => void)[]>;
72
+ default: unknown;
73
+ };
74
+ readonly success: {
75
+ type: PropType<((payload: Payload) => void) | ((payload: Payload) => void)[]>;
76
+ default: unknown;
77
+ };
78
+ readonly ok: {
79
+ type: PropType<(() => void) | (() => void)[]>;
80
+ default: unknown;
81
+ };
82
+ }>> & {
83
+ onOk?: ((...args: any[]) => any) | undefined;
84
+ onSuccess?: ((...args: any[]) => any) | undefined;
85
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
86
+ }, {
87
+ readonly ok: (() => void) | (() => void)[];
88
+ readonly businessType: string;
89
+ readonly url: string;
90
+ readonly elsAccount: string;
91
+ readonly success: ((payload: Payload) => void) | ((payload: Payload) => void)[];
92
+ readonly 'onUpdate:modelValue': ((modelValue: boolean) => void) | ((modelValue: boolean) => void)[];
93
+ readonly modelValue: boolean;
94
+ }, {}>;
95
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ import { UseSaleTemplateReturnType } from './sale-template-types';
2
+ export default function useSelect(): UseSaleTemplateReturnType;