@aplus-frontend/ui 0.4.1 → 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.
- package/es/src/ap-field/number/index.vue.d.ts +322 -1
- package/es/src/ap-field/radio/index.vue.d.ts +98 -2
- package/es/src/ap-field/rate/index.vue.d.ts +82 -1
- package/es/src/ap-field/segmented/index.vue.d.ts +1 -7
- package/es/src/ap-field/select/index.vue.d.ts +423 -1
- package/es/src/ap-field/select/index.vue.mjs +4 -3
- package/es/src/ap-field/slider/index.vue.d.ts +257 -1
- package/es/src/ap-field/text/index.vue.d.ts +1 -13
- package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/es/src/ap-form/ap-form.vue.d.ts +636 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/es/src/ap-form/item/index.vue.d.ts +777 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +128 -15
- package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/es/src/ap-form/modal-form/index.vue.mjs +64 -66
- package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/es/src/ap-list/index.vue.d.ts +1 -1
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/es/src/ap-scroll-bar/index.d.ts +3 -1
- package/es/src/ap-table/ap-table.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +98 -97
- package/es/src/ap-table/constants.d.ts +2260 -26
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +11 -10
- package/es/src/ap-table/utils.d.ts +1168 -8
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -4
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
- package/es/src/business/ap-group-search/index.d.ts +444 -4
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +1 -0
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +22 -2
- package/es/src/business/ap-table-modal/interface.d.ts +2 -2
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +134 -3
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/es/src/business/hooks/usePageListApTable.mjs +20 -18
- package/es/src/editable-table/form-item.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/lib/src/ap-field/number/index.vue.d.ts +322 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
- package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
- package/lib/src/ap-field/segmented/index.vue.d.ts +1 -7
- package/lib/src/ap-field/select/index.vue.d.ts +423 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -13
- package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/lib/src/ap-form/item/index.vue.d.ts +777 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +128 -15
- package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/lib/src/ap-list/index.vue.d.ts +1 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/lib/src/ap-scroll-bar/index.d.ts +3 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2260 -26
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +1168 -8
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +444 -4
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +22 -2
- package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/lib/src/business/batch-input-group/index.vue.d.ts +134 -3
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/package.json +5 -5
- package/theme/ap-form/index.css +3 -4
- package/theme/ap-form/modal-form.css +3 -4
- package/theme/ap-form/modal-form.less +3 -4
- package/theme/ap-table/ap-table.css +3 -4
- package/theme/ap-table-modal/index.css +3 -4
- package/theme/editable-table/index.css +3 -4
- 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, {
|
|
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;
|
|
@@ -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"> &
|
|
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, {
|
|
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 {
|
|
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:
|
|
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, {
|
|
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;
|