@aplus-frontend/ui 0.4.0 → 0.4.2

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 (118) hide show
  1. package/es/src/ap-field/number/index.vue.d.ts +322 -1
  2. package/es/src/ap-field/radio/index.vue.d.ts +98 -2
  3. package/es/src/ap-field/rate/index.vue.d.ts +82 -1
  4. package/es/src/ap-field/segmented/index.vue.d.ts +1 -7
  5. package/es/src/ap-field/select/index.vue.d.ts +423 -1
  6. package/es/src/ap-field/select/index.vue.mjs +4 -3
  7. package/es/src/ap-field/slider/index.vue.d.ts +257 -1
  8. package/es/src/ap-field/text/index.vue.d.ts +1 -13
  9. package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
  10. package/es/src/ap-form/ap-form.vue.d.ts +636 -1
  11. package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  12. package/es/src/ap-form/item/index.vue.d.ts +777 -1
  13. package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
  14. package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
  15. package/es/src/ap-form/items/text/index.vue.d.ts +128 -15
  16. package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
  17. package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  18. package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  19. package/es/src/ap-form/modal-form/index.vue.mjs +77 -75
  20. package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
  21. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  22. package/es/src/ap-list/index.vue.d.ts +1 -1
  23. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  24. package/es/src/ap-scroll-bar/index.d.ts +3 -1
  25. package/es/src/ap-table/ap-table.vue.d.ts +1 -1
  26. package/es/src/ap-table/ap-table.vue2.mjs +98 -97
  27. package/es/src/ap-table/constants.d.ts +2260 -26
  28. package/es/src/ap-table/context.d.ts +1 -0
  29. package/es/src/ap-table/context.mjs +11 -10
  30. package/es/src/ap-table/utils.d.ts +1168 -8
  31. package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  32. package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
  33. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  34. package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
  35. package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  36. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  37. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
  38. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  39. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -4
  40. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  41. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
  42. package/es/src/business/ap-group-search/index.d.ts +444 -4
  43. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
  44. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +1 -0
  45. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  46. package/es/src/business/ap-table-modal/index.d.ts +22 -2
  47. package/es/src/business/ap-table-modal/interface.d.ts +2 -2
  48. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  49. package/es/src/business/batch-input-group/index.vue.d.ts +134 -3
  50. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  51. package/es/src/business/hooks/usePageListApTable.d.ts +2 -2
  52. package/es/src/business/hooks/usePageListApTable.mjs +35 -33
  53. package/es/src/editable-table/form-item.vue.d.ts +1 -1
  54. package/es/src/editable-table/index.vue.d.ts +1 -1
  55. package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  56. package/lib/src/ap-field/number/index.vue.d.ts +322 -1
  57. package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
  58. package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
  59. package/lib/src/ap-field/segmented/index.vue.d.ts +1 -7
  60. package/lib/src/ap-field/select/index.vue.d.ts +423 -1
  61. package/lib/src/ap-field/select/index.vue.js +1 -1
  62. package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
  63. package/lib/src/ap-field/text/index.vue.d.ts +1 -13
  64. package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
  65. package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
  66. package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  67. package/lib/src/ap-form/item/index.vue.d.ts +777 -1
  68. package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
  69. package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
  70. package/lib/src/ap-form/items/text/index.vue.d.ts +128 -15
  71. package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
  72. package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  73. package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  74. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  75. package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
  76. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  77. package/lib/src/ap-list/index.vue.d.ts +1 -1
  78. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  79. package/lib/src/ap-scroll-bar/index.d.ts +3 -1
  80. package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
  81. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  82. package/lib/src/ap-table/constants.d.ts +2260 -26
  83. package/lib/src/ap-table/context.d.ts +1 -0
  84. package/lib/src/ap-table/context.js +1 -1
  85. package/lib/src/ap-table/utils.d.ts +1168 -8
  86. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  87. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
  88. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  89. package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
  90. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  91. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  92. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  93. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  94. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  95. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  96. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  97. package/lib/src/business/ap-group-search/index.d.ts +444 -4
  98. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
  99. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +1 -1
  100. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  101. package/lib/src/business/ap-table-modal/index.d.ts +22 -2
  102. package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
  103. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  104. package/lib/src/business/batch-input-group/index.vue.d.ts +134 -3
  105. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  106. package/lib/src/business/hooks/usePageListApTable.d.ts +2 -2
  107. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  108. package/lib/src/editable-table/form-item.vue.d.ts +1 -1
  109. package/lib/src/editable-table/index.vue.d.ts +1 -1
  110. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  111. package/package.json +5 -5
  112. package/theme/ap-form/index.css +3 -4
  113. package/theme/ap-form/modal-form.css +3 -4
  114. package/theme/ap-form/modal-form.less +3 -4
  115. package/theme/ap-table/ap-table.css +3 -4
  116. package/theme/ap-table-modal/index.css +3 -4
  117. package/theme/editable-table/index.css +3 -4
  118. 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,417 @@ 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
+ onBeforeSelect: {
64
+ type: PropType<(nextVal: SelectValue) => boolean | Promise<boolean>>;
65
+ default: (nextVal: SelectValue) => boolean | Promise<boolean>;
66
+ };
67
+ children: PropType< VueNode[]>;
68
+ listHeight: NumberConstructor;
69
+ onMouseenter: PropType<(e: MouseEvent) => void>;
70
+ onMouseleave: PropType<(e: MouseEvent) => void>;
71
+ tabindex: NumberConstructor;
72
+ onClick: PropType<(e: MouseEvent) => void>;
73
+ onFocus: {
74
+ type: PropType<(e: FocusEvent) => void>;
75
+ };
76
+ onBlur: {
77
+ type: PropType<(e: FocusEvent) => void>;
78
+ };
79
+ onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
80
+ onKeydown: PropType<(e: KeyboardEvent) => void>;
81
+ onKeyup: PropType<(e: KeyboardEvent) => void>;
82
+ onMousedown: PropType<(e: MouseEvent) => void>;
83
+ onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
84
+ open: {
85
+ type: BooleanConstructor;
86
+ default: any;
87
+ };
88
+ animation: StringConstructor;
89
+ direction: {
90
+ type: PropType<"rtl" | "ltr">;
91
+ };
92
+ disabled: {
93
+ type: BooleanConstructor;
94
+ default: any;
95
+ };
96
+ prefixCls: StringConstructor;
97
+ id: StringConstructor;
98
+ autofocus: BooleanConstructor;
99
+ getPopupContainer: {
100
+ type: PropType<RenderDOMFunc>;
101
+ };
102
+ virtual: {
103
+ type: BooleanConstructor;
104
+ default: any;
105
+ };
106
+ dropdownMatchSelectWidth: {
107
+ type: PropType<number | boolean>;
108
+ default: any;
109
+ };
110
+ options: PropType< DefaultOptionType[]>;
111
+ showAction: {
112
+ type: PropType<("click" | "focus")[]>;
113
+ };
114
+ onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
115
+ loading: {
116
+ type: BooleanConstructor;
117
+ default: any;
118
+ };
119
+ placeholder: VueTypeValidableDef<any>;
120
+ clearIcon: VueTypeValidableDef<any>;
121
+ allowClear: {
122
+ type: BooleanConstructor;
123
+ default: any;
124
+ };
125
+ onSearch: PropType<(value: string) => void>;
126
+ fieldNames: PropType<FieldNames>;
127
+ dropdownStyle: {
128
+ type: PropType<CSSProperties>;
129
+ };
130
+ dropdownRender: {
131
+ type: PropType<DropdownRender>;
132
+ };
133
+ dropdownAlign: PropType<AlignType>;
134
+ showSearch: {
135
+ type: BooleanConstructor;
136
+ default: any;
137
+ };
138
+ searchValue: StringConstructor;
139
+ onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
140
+ removeIcon: VueTypeValidableDef<any>;
141
+ maxTagCount: {
142
+ type: PropType<number | "responsive">;
143
+ };
144
+ maxTagTextLength: NumberConstructor;
145
+ maxTagPlaceholder: VueTypeValidableDef<any>;
146
+ tokenSeparators: {
147
+ type: PropType<string[]>;
148
+ };
149
+ tagRender: {
150
+ type: PropType<(props: CustomTagProps) => any>;
151
+ };
152
+ optionLabelRender: {
153
+ type: PropType<(option: Record<string, any>) => any>;
154
+ };
155
+ onClear: PropType<() => void>;
156
+ defaultOpen: {
157
+ type: BooleanConstructor;
158
+ default: any;
159
+ };
160
+ onDropdownVisibleChange: {
161
+ type: PropType<(open: boolean) => void>;
162
+ };
163
+ showArrow: {
164
+ type: BooleanConstructor;
165
+ default: any;
166
+ };
167
+ onPopupScroll: PropType<(e: UIEvent) => void>;
168
+ menuItemSelectedIcon: VueTypeValidableDef<any>;
169
+ listItemHeight: NumberConstructor;
170
+ inputValue: StringConstructor;
171
+ autoClearSearchValue: {
172
+ type: BooleanConstructor;
173
+ default: any;
174
+ };
175
+ filterOption: {
176
+ type: PropType<boolean | FilterFunc<DefaultOptionType>>;
177
+ default: any;
178
+ };
179
+ filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
180
+ optionFilterProp: StringConstructor;
181
+ optionLabelProp: StringConstructor;
182
+ defaultActiveFirstOption: {
183
+ type: BooleanConstructor;
184
+ default: any;
185
+ };
186
+ labelInValue: {
187
+ type: BooleanConstructor;
188
+ default: any;
189
+ };
190
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
191
+ size: ButtonSize;
192
+ value: SelectValue;
193
+ mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
194
+ open: boolean;
195
+ disabled: boolean;
196
+ autofocus: boolean;
197
+ virtual: boolean;
198
+ dropdownMatchSelectWidth: number | boolean;
199
+ status: "" | "error" | "warning";
200
+ defaultValue: SelectValue;
201
+ 'onUpdate:value': (val: SelectValue) => void;
202
+ placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
203
+ loading: boolean;
204
+ bordered: boolean;
205
+ allowClear: boolean;
206
+ showSearch: boolean;
207
+ choiceTransitionName: "";
208
+ defaultOpen: boolean;
209
+ showArrow: boolean;
210
+ autoClearSearchValue: boolean;
211
+ filterOption: boolean | FilterFunc<DefaultOptionType>;
212
+ defaultActiveFirstOption: boolean;
213
+ labelInValue: boolean;
214
+ onBeforeSelect: (nextVal: SelectValue) => boolean | Promise<boolean>;
215
+ }, true, {}, CustomSlotsType<{
216
+ notFoundContent: any;
217
+ suffixIcon: any;
218
+ itemIcon: any;
219
+ removeIcon: any;
220
+ clearIcon: any;
221
+ dropdownRender: any;
222
+ option: any;
223
+ placeholder: any;
224
+ tagRender: any;
225
+ maxTagPlaceholder: any;
226
+ optionLabel: any;
227
+ default: any;
228
+ }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
229
+ P: {};
230
+ B: {};
231
+ D: {};
232
+ C: {};
233
+ M: {};
234
+ Defaults: {};
235
+ }, Readonly< ExtractPropTypes<{
236
+ value: {
237
+ type: PropType<SelectValue>;
238
+ default: SelectValue;
239
+ };
240
+ defaultValue: {
241
+ type: PropType<SelectValue>;
242
+ default: SelectValue;
243
+ };
244
+ notFoundContent: VueTypeValidableDef<any>;
245
+ suffixIcon: VueTypeValidableDef<any>;
246
+ itemIcon: VueTypeValidableDef<any>;
247
+ size: {
248
+ type: PropType<ButtonSize>;
249
+ default: ButtonSize;
250
+ };
251
+ mode: {
252
+ type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
253
+ default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
254
+ };
255
+ bordered: {
256
+ type: BooleanConstructor;
257
+ default: boolean;
258
+ };
259
+ transitionName: StringConstructor;
260
+ choiceTransitionName: {
261
+ type: PropType<"">;
262
+ default: "";
263
+ };
264
+ popupClassName: StringConstructor;
265
+ dropdownClassName: StringConstructor;
266
+ placement: {
267
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
268
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
269
+ };
270
+ status: {
271
+ type: PropType<"" | "error" | "warning">;
272
+ default: "" | "error" | "warning";
273
+ };
274
+ 'onUpdate:value': {
275
+ type: PropType<(val: SelectValue) => void>;
276
+ default: (val: SelectValue) => void;
277
+ };
278
+ onBeforeSelect: {
279
+ type: PropType<(nextVal: SelectValue) => boolean | Promise<boolean>>;
280
+ default: (nextVal: SelectValue) => boolean | Promise<boolean>;
281
+ };
282
+ children: PropType< VueNode[]>;
283
+ listHeight: NumberConstructor;
284
+ onMouseenter: PropType<(e: MouseEvent) => void>;
285
+ onMouseleave: PropType<(e: MouseEvent) => void>;
286
+ tabindex: NumberConstructor;
287
+ onClick: PropType<(e: MouseEvent) => void>;
288
+ onFocus: {
289
+ type: PropType<(e: FocusEvent) => void>;
290
+ };
291
+ onBlur: {
292
+ type: PropType<(e: FocusEvent) => void>;
293
+ };
294
+ onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
295
+ onKeydown: PropType<(e: KeyboardEvent) => void>;
296
+ onKeyup: PropType<(e: KeyboardEvent) => void>;
297
+ onMousedown: PropType<(e: MouseEvent) => void>;
298
+ onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
299
+ open: {
300
+ type: BooleanConstructor;
301
+ default: any;
302
+ };
303
+ animation: StringConstructor;
304
+ direction: {
305
+ type: PropType<"rtl" | "ltr">;
306
+ };
307
+ disabled: {
308
+ type: BooleanConstructor;
309
+ default: any;
310
+ };
311
+ prefixCls: StringConstructor;
312
+ id: StringConstructor;
313
+ autofocus: BooleanConstructor;
314
+ getPopupContainer: {
315
+ type: PropType<RenderDOMFunc>;
316
+ };
317
+ virtual: {
318
+ type: BooleanConstructor;
319
+ default: any;
320
+ };
321
+ dropdownMatchSelectWidth: {
322
+ type: PropType<number | boolean>;
323
+ default: any;
324
+ };
325
+ options: PropType< DefaultOptionType[]>;
326
+ showAction: {
327
+ type: PropType<("click" | "focus")[]>;
328
+ };
329
+ onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
330
+ loading: {
331
+ type: BooleanConstructor;
332
+ default: any;
333
+ };
334
+ placeholder: VueTypeValidableDef<any>;
335
+ clearIcon: VueTypeValidableDef<any>;
336
+ allowClear: {
337
+ type: BooleanConstructor;
338
+ default: any;
339
+ };
340
+ onSearch: PropType<(value: string) => void>;
341
+ fieldNames: PropType<FieldNames>;
342
+ dropdownStyle: {
343
+ type: PropType<CSSProperties>;
344
+ };
345
+ dropdownRender: {
346
+ type: PropType<DropdownRender>;
347
+ };
348
+ dropdownAlign: PropType<AlignType>;
349
+ showSearch: {
350
+ type: BooleanConstructor;
351
+ default: any;
352
+ };
353
+ searchValue: StringConstructor;
354
+ onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
355
+ removeIcon: VueTypeValidableDef<any>;
356
+ maxTagCount: {
357
+ type: PropType<number | "responsive">;
358
+ };
359
+ maxTagTextLength: NumberConstructor;
360
+ maxTagPlaceholder: VueTypeValidableDef<any>;
361
+ tokenSeparators: {
362
+ type: PropType<string[]>;
363
+ };
364
+ tagRender: {
365
+ type: PropType<(props: CustomTagProps) => any>;
366
+ };
367
+ optionLabelRender: {
368
+ type: PropType<(option: Record<string, any>) => any>;
369
+ };
370
+ onClear: PropType<() => void>;
371
+ defaultOpen: {
372
+ type: BooleanConstructor;
373
+ default: any;
374
+ };
375
+ onDropdownVisibleChange: {
376
+ type: PropType<(open: boolean) => void>;
377
+ };
378
+ showArrow: {
379
+ type: BooleanConstructor;
380
+ default: any;
381
+ };
382
+ onPopupScroll: PropType<(e: UIEvent) => void>;
383
+ menuItemSelectedIcon: VueTypeValidableDef<any>;
384
+ listItemHeight: NumberConstructor;
385
+ inputValue: StringConstructor;
386
+ autoClearSearchValue: {
387
+ type: BooleanConstructor;
388
+ default: any;
389
+ };
390
+ filterOption: {
391
+ type: PropType<boolean | FilterFunc<DefaultOptionType>>;
392
+ default: any;
393
+ };
394
+ filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
395
+ optionFilterProp: StringConstructor;
396
+ optionLabelProp: StringConstructor;
397
+ defaultActiveFirstOption: {
398
+ type: BooleanConstructor;
399
+ default: any;
400
+ };
401
+ labelInValue: {
402
+ type: BooleanConstructor;
403
+ default: any;
404
+ };
405
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
406
+ size: ButtonSize;
407
+ value: SelectValue;
408
+ mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
409
+ open: boolean;
410
+ disabled: boolean;
411
+ autofocus: boolean;
412
+ virtual: boolean;
413
+ dropdownMatchSelectWidth: number | boolean;
414
+ status: "" | "error" | "warning";
415
+ defaultValue: SelectValue;
416
+ 'onUpdate:value': (val: SelectValue) => void;
417
+ placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
418
+ loading: boolean;
419
+ bordered: boolean;
420
+ allowClear: boolean;
421
+ showSearch: boolean;
422
+ choiceTransitionName: "";
423
+ defaultOpen: boolean;
424
+ showArrow: boolean;
425
+ autoClearSearchValue: boolean;
426
+ filterOption: boolean | FilterFunc<DefaultOptionType>;
427
+ defaultActiveFirstOption: boolean;
428
+ labelInValue: boolean;
429
+ onBeforeSelect: (nextVal: SelectValue) => boolean | Promise<boolean>;
430
+ }> | null;
431
+ }, HTMLDivElement>;
14
432
  export default _default;
@@ -22,6 +22,7 @@ const Y = /* @__PURE__ */ P({
22
22
  placement: {},
23
23
  status: {},
24
24
  "onUpdate:value": {},
25
+ onBeforeSelect: {},
25
26
  children: {},
26
27
  listHeight: {},
27
28
  onMouseenter: {},
@@ -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;