@aplus-frontend/ui 0.4.1 → 0.4.3

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 (128) hide show
  1. package/es/src/ap-field/date/helper.d.ts +1 -1
  2. package/es/src/ap-field/date/helper.mjs +9 -9
  3. package/es/src/ap-field/date/index.vue.mjs +33 -25
  4. package/es/src/ap-field/date-range/index.vue.mjs +44 -43
  5. package/es/src/ap-field/interface.d.ts +0 -6
  6. package/es/src/ap-field/number/index.vue.d.ts +322 -1
  7. package/es/src/ap-field/radio/index.vue.d.ts +98 -2
  8. package/es/src/ap-field/rate/index.vue.d.ts +82 -1
  9. package/es/src/ap-field/select/index.vue.d.ts +407 -1
  10. package/es/src/ap-field/select/index.vue.mjs +14 -13
  11. package/es/src/ap-field/slider/index.vue.d.ts +257 -1
  12. package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
  13. package/es/src/ap-form/ap-form.vue.d.ts +636 -1
  14. package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  15. package/es/src/ap-form/item/index.vue.d.ts +777 -1
  16. package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
  17. package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
  18. package/es/src/ap-form/items/text/index.vue.d.ts +139 -2
  19. package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
  20. package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  21. package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  22. package/es/src/ap-form/modal-form/index.vue.mjs +64 -66
  23. package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
  24. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  25. package/es/src/ap-list/index.vue.d.ts +1 -1
  26. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  27. package/es/src/ap-scroll-bar/index.d.ts +3 -1
  28. package/es/src/ap-table/ap-table.vue.d.ts +1 -1
  29. package/es/src/ap-table/ap-table.vue2.mjs +98 -97
  30. package/es/src/ap-table/constants.d.ts +2263 -13
  31. package/es/src/ap-table/context.d.ts +1 -0
  32. package/es/src/ap-table/context.mjs +11 -10
  33. package/es/src/ap-table/utils.d.ts +1180 -8
  34. package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  35. package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
  36. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  37. package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
  38. package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  39. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
  40. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +45 -55
  41. package/es/src/business/ap-batch-action/index.d.ts +5 -3
  42. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  43. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
  44. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  45. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +9 -8
  46. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  47. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
  48. package/es/src/business/ap-group-search/index.d.ts +418 -4
  49. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
  50. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -14
  51. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  52. package/es/src/business/ap-table-modal/index.d.ts +22 -2
  53. package/es/src/business/ap-table-modal/interface.d.ts +2 -2
  54. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  55. package/es/src/business/batch-input-group/index.vue.d.ts +146 -3
  56. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  57. package/es/src/business/hooks/usePageListApTable.mjs +20 -18
  58. package/es/src/editable-table/form-item.vue.d.ts +1 -1
  59. package/es/src/editable-table/index.vue.d.ts +1 -1
  60. package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  61. package/lib/src/ap-field/date/helper.d.ts +1 -1
  62. package/lib/src/ap-field/date/helper.js +1 -1
  63. package/lib/src/ap-field/date/index.vue.js +1 -1
  64. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  65. package/lib/src/ap-field/interface.d.ts +0 -6
  66. package/lib/src/ap-field/number/index.vue.d.ts +322 -1
  67. package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
  68. package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
  69. package/lib/src/ap-field/select/index.vue.d.ts +407 -1
  70. package/lib/src/ap-field/select/index.vue.js +1 -1
  71. package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
  72. package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
  73. package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
  74. package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  75. package/lib/src/ap-form/item/index.vue.d.ts +777 -1
  76. package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
  77. package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
  78. package/lib/src/ap-form/items/text/index.vue.d.ts +139 -2
  79. package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
  80. package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  81. package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  82. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  83. package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
  84. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  85. package/lib/src/ap-list/index.vue.d.ts +1 -1
  86. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  87. package/lib/src/ap-scroll-bar/index.d.ts +3 -1
  88. package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
  89. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  90. package/lib/src/ap-table/constants.d.ts +2263 -13
  91. package/lib/src/ap-table/context.d.ts +1 -0
  92. package/lib/src/ap-table/context.js +1 -1
  93. package/lib/src/ap-table/utils.d.ts +1180 -8
  94. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  95. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
  96. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  97. package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
  98. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  99. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
  100. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  101. package/lib/src/business/ap-batch-action/index.d.ts +5 -3
  102. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  103. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  104. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  105. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  106. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  107. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  108. package/lib/src/business/ap-group-search/index.d.ts +418 -4
  109. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
  110. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
  111. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  112. package/lib/src/business/ap-table-modal/index.d.ts +22 -2
  113. package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
  114. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  115. package/lib/src/business/batch-input-group/index.vue.d.ts +146 -3
  116. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  117. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  118. package/lib/src/editable-table/form-item.vue.d.ts +1 -1
  119. package/lib/src/editable-table/index.vue.d.ts +1 -1
  120. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  121. package/package.json +5 -5
  122. package/theme/ap-form/index.css +3 -4
  123. package/theme/ap-form/modal-form.css +3 -4
  124. package/theme/ap-form/modal-form.less +3 -4
  125. package/theme/ap-table/ap-table.css +3 -4
  126. package/theme/ap-table-modal/index.css +3 -4
  127. package/theme/editable-table/index.css +3 -4
  128. package/theme/index.css +3 -4
@@ -1,6 +1,12 @@
1
1
  import { SelectProps } from '@aplus-frontend/antdv';
2
- import { SelectValue } from '@aplus-frontend/antdv/es/select';
3
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { SelectValue, DefaultOptionType, LabeledValue } from '@aplus-frontend/antdv/es/select';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, CSSProperties, GlobalComponents, GlobalDirectives } from 'vue';
4
+ import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
5
+ import { ButtonSize } from '@aplus-frontend/antdv/es/button';
6
+ import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
7
+ import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
8
+ import { RenderDOMFunc, DropdownRender, CustomTagProps } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
9
+ import { AlignType } from '@aplus-frontend/antdv/es/vc-trigger/interface';
4
10
  type __VLS_Props = Omit<SelectProps, 'mode' | 'suffixIcon'> & {
5
11
  __parentRef: HTMLElement;
6
12
  };
@@ -10,5 +16,409 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
10
16
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
11
17
  onSubmit?: ((value: SelectValue) => any) | undefined;
12
18
  "onOpen-change"?: ((value: boolean) => any) | undefined;
13
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
20
+ selectRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
21
+ value: {
22
+ type: PropType<SelectValue>;
23
+ default: SelectValue;
24
+ };
25
+ defaultValue: {
26
+ type: PropType<SelectValue>;
27
+ default: SelectValue;
28
+ };
29
+ notFoundContent: VueTypeValidableDef<any>;
30
+ suffixIcon: VueTypeValidableDef<any>;
31
+ itemIcon: VueTypeValidableDef<any>;
32
+ size: {
33
+ type: PropType<ButtonSize>;
34
+ default: ButtonSize;
35
+ };
36
+ mode: {
37
+ type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
38
+ default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
39
+ };
40
+ bordered: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ transitionName: StringConstructor;
45
+ choiceTransitionName: {
46
+ type: PropType<"">;
47
+ default: "";
48
+ };
49
+ popupClassName: StringConstructor;
50
+ dropdownClassName: StringConstructor;
51
+ placement: {
52
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
53
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
54
+ };
55
+ status: {
56
+ type: PropType<"" | "error" | "warning">;
57
+ default: "" | "error" | "warning";
58
+ };
59
+ 'onUpdate:value': {
60
+ type: PropType<(val: SelectValue) => void>;
61
+ default: (val: SelectValue) => void;
62
+ };
63
+ children: PropType< VueNode[]>;
64
+ listHeight: NumberConstructor;
65
+ onMouseenter: PropType<(e: MouseEvent) => void>;
66
+ onMouseleave: PropType<(e: MouseEvent) => void>;
67
+ tabindex: NumberConstructor;
68
+ onClick: PropType<(e: MouseEvent) => void>;
69
+ onFocus: {
70
+ type: PropType<(e: FocusEvent) => void>;
71
+ };
72
+ onBlur: {
73
+ type: PropType<(e: FocusEvent) => void>;
74
+ };
75
+ onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
76
+ onKeydown: PropType<(e: KeyboardEvent) => void>;
77
+ onKeyup: PropType<(e: KeyboardEvent) => void>;
78
+ onMousedown: PropType<(e: MouseEvent) => void>;
79
+ onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
80
+ open: {
81
+ type: BooleanConstructor;
82
+ default: any;
83
+ };
84
+ animation: StringConstructor;
85
+ direction: {
86
+ type: PropType<"rtl" | "ltr">;
87
+ };
88
+ disabled: {
89
+ type: BooleanConstructor;
90
+ default: any;
91
+ };
92
+ prefixCls: StringConstructor;
93
+ id: StringConstructor;
94
+ autofocus: BooleanConstructor;
95
+ getPopupContainer: {
96
+ type: PropType<RenderDOMFunc>;
97
+ };
98
+ virtual: {
99
+ type: BooleanConstructor;
100
+ default: any;
101
+ };
102
+ dropdownMatchSelectWidth: {
103
+ type: PropType<number | boolean>;
104
+ default: any;
105
+ };
106
+ options: PropType< DefaultOptionType[]>;
107
+ showAction: {
108
+ type: PropType<("click" | "focus")[]>;
109
+ };
110
+ onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
111
+ loading: {
112
+ type: BooleanConstructor;
113
+ default: any;
114
+ };
115
+ placeholder: VueTypeValidableDef<any>;
116
+ clearIcon: VueTypeValidableDef<any>;
117
+ allowClear: {
118
+ type: BooleanConstructor;
119
+ default: any;
120
+ };
121
+ onSearch: PropType<(value: string) => void>;
122
+ fieldNames: PropType<FieldNames>;
123
+ dropdownStyle: {
124
+ type: PropType<CSSProperties>;
125
+ };
126
+ dropdownRender: {
127
+ type: PropType<DropdownRender>;
128
+ };
129
+ dropdownAlign: PropType<AlignType>;
130
+ showSearch: {
131
+ type: BooleanConstructor;
132
+ default: any;
133
+ };
134
+ searchValue: StringConstructor;
135
+ onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
136
+ removeIcon: VueTypeValidableDef<any>;
137
+ maxTagCount: {
138
+ type: PropType<number | "responsive">;
139
+ };
140
+ maxTagTextLength: NumberConstructor;
141
+ maxTagPlaceholder: VueTypeValidableDef<any>;
142
+ tokenSeparators: {
143
+ type: PropType<string[]>;
144
+ };
145
+ tagRender: {
146
+ type: PropType<(props: CustomTagProps) => any>;
147
+ };
148
+ optionLabelRender: {
149
+ type: PropType<(option: Record<string, any>) => any>;
150
+ };
151
+ onClear: PropType<() => void>;
152
+ defaultOpen: {
153
+ type: BooleanConstructor;
154
+ default: any;
155
+ };
156
+ onDropdownVisibleChange: {
157
+ type: PropType<(open: boolean) => void>;
158
+ };
159
+ showArrow: {
160
+ type: BooleanConstructor;
161
+ default: any;
162
+ };
163
+ onPopupScroll: PropType<(e: UIEvent) => void>;
164
+ menuItemSelectedIcon: VueTypeValidableDef<any>;
165
+ listItemHeight: NumberConstructor;
166
+ inputValue: StringConstructor;
167
+ autoClearSearchValue: {
168
+ type: BooleanConstructor;
169
+ default: any;
170
+ };
171
+ filterOption: {
172
+ type: PropType<boolean | FilterFunc<DefaultOptionType>>;
173
+ default: any;
174
+ };
175
+ filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
176
+ optionFilterProp: StringConstructor;
177
+ optionLabelProp: StringConstructor;
178
+ defaultActiveFirstOption: {
179
+ type: BooleanConstructor;
180
+ default: any;
181
+ };
182
+ onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
183
+ labelInValue: {
184
+ type: BooleanConstructor;
185
+ default: any;
186
+ };
187
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
188
+ size: ButtonSize;
189
+ value: SelectValue;
190
+ mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
191
+ open: boolean;
192
+ disabled: boolean;
193
+ autofocus: boolean;
194
+ virtual: boolean;
195
+ dropdownMatchSelectWidth: number | boolean;
196
+ status: "" | "error" | "warning";
197
+ defaultValue: SelectValue;
198
+ 'onUpdate:value': (val: SelectValue) => void;
199
+ placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
200
+ loading: boolean;
201
+ bordered: boolean;
202
+ allowClear: boolean;
203
+ showSearch: boolean;
204
+ choiceTransitionName: "";
205
+ defaultOpen: boolean;
206
+ showArrow: boolean;
207
+ autoClearSearchValue: boolean;
208
+ filterOption: boolean | FilterFunc<DefaultOptionType>;
209
+ defaultActiveFirstOption: boolean;
210
+ labelInValue: boolean;
211
+ }, true, {}, CustomSlotsType<{
212
+ notFoundContent: any;
213
+ suffixIcon: any;
214
+ itemIcon: any;
215
+ removeIcon: any;
216
+ clearIcon: any;
217
+ dropdownRender: any;
218
+ option: any;
219
+ placeholder: any;
220
+ tagRender: any;
221
+ maxTagPlaceholder: any;
222
+ optionLabel: any;
223
+ default: any;
224
+ }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
225
+ P: {};
226
+ B: {};
227
+ D: {};
228
+ C: {};
229
+ M: {};
230
+ Defaults: {};
231
+ }, Readonly< ExtractPropTypes<{
232
+ value: {
233
+ type: PropType<SelectValue>;
234
+ default: SelectValue;
235
+ };
236
+ defaultValue: {
237
+ type: PropType<SelectValue>;
238
+ default: SelectValue;
239
+ };
240
+ notFoundContent: VueTypeValidableDef<any>;
241
+ suffixIcon: VueTypeValidableDef<any>;
242
+ itemIcon: VueTypeValidableDef<any>;
243
+ size: {
244
+ type: PropType<ButtonSize>;
245
+ default: ButtonSize;
246
+ };
247
+ mode: {
248
+ type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
249
+ default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
250
+ };
251
+ bordered: {
252
+ type: BooleanConstructor;
253
+ default: boolean;
254
+ };
255
+ transitionName: StringConstructor;
256
+ choiceTransitionName: {
257
+ type: PropType<"">;
258
+ default: "";
259
+ };
260
+ popupClassName: StringConstructor;
261
+ dropdownClassName: StringConstructor;
262
+ placement: {
263
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
264
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
265
+ };
266
+ status: {
267
+ type: PropType<"" | "error" | "warning">;
268
+ default: "" | "error" | "warning";
269
+ };
270
+ 'onUpdate:value': {
271
+ type: PropType<(val: SelectValue) => void>;
272
+ default: (val: SelectValue) => void;
273
+ };
274
+ children: PropType< VueNode[]>;
275
+ listHeight: NumberConstructor;
276
+ onMouseenter: PropType<(e: MouseEvent) => void>;
277
+ onMouseleave: PropType<(e: MouseEvent) => void>;
278
+ tabindex: NumberConstructor;
279
+ onClick: PropType<(e: MouseEvent) => void>;
280
+ onFocus: {
281
+ type: PropType<(e: FocusEvent) => void>;
282
+ };
283
+ onBlur: {
284
+ type: PropType<(e: FocusEvent) => void>;
285
+ };
286
+ onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
287
+ onKeydown: PropType<(e: KeyboardEvent) => void>;
288
+ onKeyup: PropType<(e: KeyboardEvent) => void>;
289
+ onMousedown: PropType<(e: MouseEvent) => void>;
290
+ onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
291
+ open: {
292
+ type: BooleanConstructor;
293
+ default: any;
294
+ };
295
+ animation: StringConstructor;
296
+ direction: {
297
+ type: PropType<"rtl" | "ltr">;
298
+ };
299
+ disabled: {
300
+ type: BooleanConstructor;
301
+ default: any;
302
+ };
303
+ prefixCls: StringConstructor;
304
+ id: StringConstructor;
305
+ autofocus: BooleanConstructor;
306
+ getPopupContainer: {
307
+ type: PropType<RenderDOMFunc>;
308
+ };
309
+ virtual: {
310
+ type: BooleanConstructor;
311
+ default: any;
312
+ };
313
+ dropdownMatchSelectWidth: {
314
+ type: PropType<number | boolean>;
315
+ default: any;
316
+ };
317
+ options: PropType< DefaultOptionType[]>;
318
+ showAction: {
319
+ type: PropType<("click" | "focus")[]>;
320
+ };
321
+ onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
322
+ loading: {
323
+ type: BooleanConstructor;
324
+ default: any;
325
+ };
326
+ placeholder: VueTypeValidableDef<any>;
327
+ clearIcon: VueTypeValidableDef<any>;
328
+ allowClear: {
329
+ type: BooleanConstructor;
330
+ default: any;
331
+ };
332
+ onSearch: PropType<(value: string) => void>;
333
+ fieldNames: PropType<FieldNames>;
334
+ dropdownStyle: {
335
+ type: PropType<CSSProperties>;
336
+ };
337
+ dropdownRender: {
338
+ type: PropType<DropdownRender>;
339
+ };
340
+ dropdownAlign: PropType<AlignType>;
341
+ showSearch: {
342
+ type: BooleanConstructor;
343
+ default: any;
344
+ };
345
+ searchValue: StringConstructor;
346
+ onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
347
+ removeIcon: VueTypeValidableDef<any>;
348
+ maxTagCount: {
349
+ type: PropType<number | "responsive">;
350
+ };
351
+ maxTagTextLength: NumberConstructor;
352
+ maxTagPlaceholder: VueTypeValidableDef<any>;
353
+ tokenSeparators: {
354
+ type: PropType<string[]>;
355
+ };
356
+ tagRender: {
357
+ type: PropType<(props: CustomTagProps) => any>;
358
+ };
359
+ optionLabelRender: {
360
+ type: PropType<(option: Record<string, any>) => any>;
361
+ };
362
+ onClear: PropType<() => void>;
363
+ defaultOpen: {
364
+ type: BooleanConstructor;
365
+ default: any;
366
+ };
367
+ onDropdownVisibleChange: {
368
+ type: PropType<(open: boolean) => void>;
369
+ };
370
+ showArrow: {
371
+ type: BooleanConstructor;
372
+ default: any;
373
+ };
374
+ onPopupScroll: PropType<(e: UIEvent) => void>;
375
+ menuItemSelectedIcon: VueTypeValidableDef<any>;
376
+ listItemHeight: NumberConstructor;
377
+ inputValue: StringConstructor;
378
+ autoClearSearchValue: {
379
+ type: BooleanConstructor;
380
+ default: any;
381
+ };
382
+ filterOption: {
383
+ type: PropType<boolean | FilterFunc<DefaultOptionType>>;
384
+ default: any;
385
+ };
386
+ filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
387
+ optionFilterProp: StringConstructor;
388
+ optionLabelProp: StringConstructor;
389
+ defaultActiveFirstOption: {
390
+ type: BooleanConstructor;
391
+ default: any;
392
+ };
393
+ onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
394
+ labelInValue: {
395
+ type: BooleanConstructor;
396
+ default: any;
397
+ };
398
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
399
+ size: ButtonSize;
400
+ value: SelectValue;
401
+ mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
402
+ open: boolean;
403
+ disabled: boolean;
404
+ autofocus: boolean;
405
+ virtual: boolean;
406
+ dropdownMatchSelectWidth: number | boolean;
407
+ status: "" | "error" | "warning";
408
+ defaultValue: SelectValue;
409
+ 'onUpdate:value': (val: SelectValue) => void;
410
+ placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
411
+ loading: boolean;
412
+ bordered: boolean;
413
+ allowClear: boolean;
414
+ showSearch: boolean;
415
+ choiceTransitionName: "";
416
+ defaultOpen: boolean;
417
+ showArrow: boolean;
418
+ autoClearSearchValue: boolean;
419
+ filterOption: boolean | FilterFunc<DefaultOptionType>;
420
+ defaultActiveFirstOption: boolean;
421
+ labelInValue: boolean;
422
+ }> | null;
423
+ }, HTMLDivElement>;
14
424
  export default _default;
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as u, watchEffect as R, openBlock as L, createElementBlock as M, normalizeClass as p, unref as e, createVNode as a, withCtx as n, createElementVNode as s, mergeProps as O, createTextVNode as d, toDisplayString as m } from "vue";
1
+ import { defineComponent as P, ref as u, watchEffect as O, openBlock as R, createElementBlock as L, normalizeClass as p, unref as e, createVNode as a, withCtx as n, createElementVNode as s, mergeProps as M, createTextVNode as d, toDisplayString as m } from "vue";
2
2
  import { Popover as T, Select as z, Button as f, Space as G } from "@aplus-frontend/antdv";
3
3
  import "../../../config-provider/index.mjs";
4
4
  import A from "../images/icon-line-select.vue.mjs";
@@ -81,35 +81,36 @@ const Y = /* @__PURE__ */ P({
81
81
  optionFilterProp: {},
82
82
  optionLabelProp: {},
83
83
  defaultActiveFirstOption: { type: Boolean },
84
+ onClickOption: {},
84
85
  labelInValue: { type: Boolean },
85
86
  __parentRef: {}
86
87
  },
87
88
  emits: ["submit", "open-change"],
88
89
  setup(S, { emit: w }) {
89
- const { t: r } = F(), h = E("uiMode", "aplus"), c = S, v = w, t = u([]), i = u(!1), g = u();
90
- R(() => {
91
- t.value = c.value;
90
+ const { t: r } = F(), h = E("uiMode", "aplus"), i = S, v = w, t = u([]), c = u(!1), g = u();
91
+ O(() => {
92
+ t.value = i.value;
92
93
  });
93
- const B = (o) => c.__parentRef || o, b = (o) => {
94
- i.value = o, v("open-change", o);
94
+ const B = (o) => i.__parentRef || o, b = (o) => {
95
+ c.value = o, v("open-change", o);
95
96
  }, C = () => {
96
- i.value = !1;
97
+ c.value = !1;
97
98
  }, _ = () => {
98
99
  t.value = [];
99
- }, x = (o) => {
100
+ }, k = (o) => {
100
101
  t.value = o;
101
- }, k = async () => {
102
+ }, x = async () => {
102
103
  var o;
103
104
  (o = g.value) == null || o.blur(), C(), await D(150), v("submit", t.value);
104
105
  }, { b: V, e: I, em: l } = K("ap-popover-select");
105
- return (o, y) => (L(), M("div", {
106
+ return (o, y) => (R(), L("div", {
106
107
  class: p(e(V)())
107
108
  }, [
108
109
  a(e(T), {
109
110
  "overlay-class-name": e(I)("popover"),
110
111
  "get-popup-container": B,
111
112
  trigger: "click",
112
- open: i.value,
113
+ open: c.value,
113
114
  placement: "bottomLeft",
114
115
  onOpenChange: b
115
116
  }, {
@@ -118,7 +119,7 @@ const Y = /* @__PURE__ */ P({
118
119
  s("div", {
119
120
  class: p(e(l)("popover", "content"))
120
121
  }, [
121
- a(e(z), O({ ...c }, {
122
+ a(e(z), M({ ...i }, {
122
123
  ref_key: "selectRef",
123
124
  ref: g,
124
125
  mode: "tags",
@@ -129,7 +130,7 @@ const Y = /* @__PURE__ */ P({
129
130
  `, "\r"],
130
131
  "max-tag-count": 200,
131
132
  open: !1,
132
- onChange: y[0] || (y[0] = (N) => x(N))
133
+ onChange: y[0] || (y[0] = (N) => k(N))
133
134
  }), null, 16, ["value", "placeholder"])
134
135
  ], 2),
135
136
  s("div", {
@@ -160,7 +161,7 @@ const Y = /* @__PURE__ */ P({
160
161
  a(e(f), {
161
162
  size: "small",
162
163
  type: "primary",
163
- onClick: k
164
+ onClick: x
164
165
  }, {
165
166
  default: n(() => [
166
167
  d(m(e(r)("ap.apGroupSearch.confirm")), 1)
@@ -5,7 +5,7 @@ declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaite
5
5
  readonly onOnSelect?: ((value: T) => any) | undefined;
6
6
  readonly onAfterEnter?: ((el: Element) => any) | undefined;
7
7
  readonly onAfterLeave?: ((el: Element) => any) | undefined;
8
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onAfterEnter" | "onAfterLeave" | "onOnSelect"> & Partial<{}> & ApSelectLayoutProps<T>> & PublicProps;
8
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onAfterEnter" | "onAfterLeave" | "onOnSelect"> & ApSelectLayoutProps<T> & Partial<{}>> & PublicProps;
9
9
  expose(exposed: ShallowUnwrapRef<{}>): void;
10
10
  attrs: any;
11
11
  slots: {
@@ -1,6 +1,6 @@
1
1
  import { useTableModal } from './hooks/use-table-modal';
2
2
  import { useTableSelectModal } from './hooks/use-table-select-modal';
3
- import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
3
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ShallowUnwrapRef, ComputedRef, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
4
4
  import { ApTableModalProps, OpenOptions, OpenReturnType } from './interface';
5
5
  import { Recordable } from '../../type';
6
6
  import { TableColumnsType } from '@aplus-frontend/antdv';
@@ -51,7 +51,27 @@ declare const ApTableModal: {
51
51
  focusTriggerAfterClose: boolean;
52
52
  maxCount: number;
53
53
  isRenderModalTitleSuffix: boolean;
54
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
54
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
55
+ apTableRef: ShallowUnwrapRef<{
56
+ submit: () => void;
57
+ reset: () => void;
58
+ refresh: () => void;
59
+ setSearchFormValues: (fields: any) => void;
60
+ getSearchFormValues: (transform?: boolean) => Partial<any> | undefined;
61
+ getShownColumns: () => TableColumnsType<any>;
62
+ dataSource: ComputedRef<any[]>;
63
+ rowSelection: {
64
+ select: (item: any) => void;
65
+ unSelect: (item: any) => void;
66
+ isSelected: (item: any) => boolean;
67
+ selectAll: () => void;
68
+ unSelectAll: () => void;
69
+ clearAll: () => void;
70
+ toggleSelect: (item: any) => void;
71
+ selectedRows: ComputedRef<any[]>;
72
+ };
73
+ }> | null;
74
+ }, any, ComponentProvideOptions, {
55
75
  P: {};
56
76
  B: {};
57
77
  D: {};
@@ -1,9 +1,9 @@
1
1
  import { VNode, VNodeChild } from 'vue';
2
- import { ApColumnType, ApTableProps } from '../../index';
2
+ import { ApTableProps } from '../../index';
3
3
  import { ModalProps, TableProps } from '@aplus-frontend/antdv';
4
4
  /** table-modal的props类型 */
5
5
  export interface ApTableModalProps<TableRowType = any> extends Omit<ModalProps, 'onOk' | 'open' | 'close' | 'visible'> {
6
- columns: ApColumnType[];
6
+ columns: ApTableProps['columns'];
7
7
  getRowKey?: (record: TableRowType) => string | number;
8
8
  api?: (params: any) => Promise<{
9
9
  records: TableRowType[];
@@ -1,5 +1,5 @@
1
1
  import { OpenOptions, OpenReturnType, ApTableModalProps } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ShallowUnwrapRef, ComputedRef } from 'vue';
3
3
  import { Recordable } from '../../type';
4
4
  import { TableColumnsType } from '@aplus-frontend/antdv';
5
5
  type __VLS_Props = ApTableModalProps;
@@ -46,5 +46,25 @@ declare const _default: DefineComponent<__VLS_Props, {
46
46
  focusTriggerAfterClose: boolean;
47
47
  maxCount: number;
48
48
  isRenderModalTitleSuffix: boolean;
49
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
49
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
50
+ apTableRef: ShallowUnwrapRef<{
51
+ submit: () => void;
52
+ reset: () => void;
53
+ refresh: () => void;
54
+ setSearchFormValues: (fields: any) => void;
55
+ getSearchFormValues: (transform?: boolean) => Partial<any> | undefined;
56
+ getShownColumns: () => TableColumnsType<any>;
57
+ dataSource: ComputedRef<any[]>;
58
+ rowSelection: {
59
+ select: (item: any) => void;
60
+ unSelect: (item: any) => void;
61
+ isSelected: (item: any) => boolean;
62
+ selectAll: () => void;
63
+ unSelectAll: () => void;
64
+ clearAll: () => void;
65
+ toggleSelect: (item: any) => void;
66
+ selectedRows: ComputedRef<any[]>;
67
+ };
68
+ }> | null;
69
+ }, any>;
50
70
  export default _default;