x-next 1.9.0 → 1.10.1
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/AI_USAGE.md +69 -7
- package/CHANGELOG.md +36 -0
- package/dist/_utils/chart/scale.d.ts +1 -1
- package/dist/components/_components/chart/axis-labels.d.ts +8 -0
- package/dist/components/_components/select-view/select-view.d.ts +9 -0
- package/dist/components/form-select/Select.d.ts +18 -5
- package/dist/components/form-select/SelectOptionGroup.vue.d.ts +1 -0
- package/dist/components/form-select/hooks/use-options.d.ts +1 -1
- package/dist/components/form-select/hooks/use-select.d.ts +1 -1
- package/dist/components/form-select/index.d.ts +42 -11
- package/dist/components/form-select/interface.d.ts +8 -0
- package/dist/components/link/Link.vue.d.ts +1 -1
- package/dist/components/link/index.d.ts +3 -3
- package/dist/components/pagination/page-options.vue.d.ts +60 -32
- package/dist/components/trigger/interface.d.ts +2 -0
- package/dist/components/virtual-list-v2/interface.d.ts +3 -0
- package/dist/components/virtual-list-v2/virtual-list.vue.d.ts +336 -1
- package/dist/es/_hooks/use-component-ref.js +9 -9
- package/dist/es/_utils/chart/scale.js +44 -39
- package/dist/es/components/_components/chart/ChartAxis.js +61 -36
- package/dist/es/components/_components/chart/axis-labels.js +26 -0
- package/dist/es/components/_components/select-view/select-view.js +89 -78
- package/dist/es/components/button/Button.js +23 -23
- package/dist/es/components/form-input-tag/InputTag.js +1 -1
- package/dist/es/components/form-select/Select.js +367 -318
- package/dist/es/components/form-select/SelectOption.vue.js +5 -3
- package/dist/es/components/form-select/SelectOption.vue2.js +54 -49
- package/dist/es/components/form-select/SelectOptionGroup.vue.js +17 -13
- package/dist/es/components/form-select/SelectOptionGroup.vue2.js +8 -5
- package/dist/es/components/form-select/hooks/use-options.js +40 -40
- package/dist/es/components/form-select/hooks/use-select.js +76 -71
- package/dist/es/components/trigger/Trigger.js +174 -183
- package/dist/es/components/virtual-list-v2/virtual-list.vue.js +22 -23
- package/dist/es/components/virtual-list-v2/virtual-list.vue2.js +67 -53
- package/dist/es/icons/icon.js +37 -36
- package/dist/es/icons/index.js +6 -8
- package/dist/es/icons/public/lucide-names.js +167 -0
- package/dist/es/icons/public/lucide.js +75 -188
- package/dist/es/index.js +152 -148
- package/dist/es/style.css +1 -1
- package/dist/icons/index.d.ts +3 -3
- package/dist/icons/names.d.ts +2 -2
- package/dist/icons/public/lucide-names.d.ts +32 -0
- package/dist/icons/public/lucide.d.ts +2 -2
- package/dist/index.cjs +3 -62
- package/dist/index.umd.js +3 -62
- package/dist/style/base.css +1 -1
- package/dist/style/button.css +1 -1
- package/dist/style/form-select.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -2
|
@@ -27,7 +27,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
27
|
value: number;
|
|
28
28
|
label: string;
|
|
29
29
|
}[]>;
|
|
30
|
-
handleChange: (value: string | number | boolean | Record<string, unknown> | (string | number | boolean | Record<string, unknown>)[]) => void;
|
|
30
|
+
handleChange: (value: string | undefined | number | boolean | Record<string, unknown> | (string | number | boolean | Record<string, unknown>)[]) => void;
|
|
31
31
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
32
32
|
sizeOptions: {
|
|
33
33
|
type: ArrayConstructor;
|
|
@@ -128,11 +128,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
128
128
|
default: boolean;
|
|
129
129
|
};
|
|
130
130
|
filterOption: {
|
|
131
|
-
type: PropType<boolean | ((inputValue: string, option: import('../form-select
|
|
131
|
+
type: PropType<boolean | ((inputValue: string, option: import('../form-select').SelectOptionData) => boolean)>;
|
|
132
132
|
default: boolean;
|
|
133
133
|
};
|
|
134
134
|
options: {
|
|
135
|
-
type: PropType<(string | number | boolean | import('../form-select
|
|
135
|
+
type: PropType<(string | number | boolean | import('../form-select').SelectOptionData | import('../form-select').SelectOptionGroupData)[]>;
|
|
136
136
|
default: () => never[];
|
|
137
137
|
};
|
|
138
138
|
virtualListProps: {
|
|
@@ -142,10 +142,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
142
142
|
type: PropType<import('../index.ts').TriggerProps>;
|
|
143
143
|
};
|
|
144
144
|
formatLabel: {
|
|
145
|
-
type: PropType<(data: import('../form-select
|
|
145
|
+
type: PropType<(data: import('../form-select').SelectOptionData) => string>;
|
|
146
146
|
};
|
|
147
147
|
fallbackOption: {
|
|
148
|
-
type: PropType<boolean | ((value: string | number | boolean | Record<string, unknown>) => import('../form-select
|
|
148
|
+
type: PropType<boolean | ((value: string | number | boolean | Record<string, unknown>) => import('../form-select').SelectOptionData)>;
|
|
149
149
|
default: boolean;
|
|
150
150
|
};
|
|
151
151
|
showExtraOptions: {
|
|
@@ -184,11 +184,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
184
184
|
default: boolean;
|
|
185
185
|
};
|
|
186
186
|
}>> & Readonly<{
|
|
187
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
|
187
188
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
188
189
|
onClear?: ((ev: Event) => any) | undefined;
|
|
189
190
|
onRemove?: ((removed: string | number | boolean | Record<string, any> | undefined) => any) | undefined;
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
192
|
+
onChange?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[] | undefined) => any) | undefined;
|
|
193
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[] | undefined) => any) | undefined;
|
|
192
194
|
"onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
|
|
193
195
|
onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
194
196
|
"onUpdate:inputValue"?: ((inputValue: string) => any) | undefined;
|
|
@@ -197,10 +199,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
197
199
|
onDropdownReachBottom?: ((ev: Event) => any) | undefined;
|
|
198
200
|
onExceedLimit?: ((value: string | number | boolean | Record<string, any> | undefined, ev: Event) => any) | undefined;
|
|
199
201
|
}>, () => VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
200
|
-
|
|
202
|
+
focus: (ev: FocusEvent) => true;
|
|
203
|
+
blur: (ev: FocusEvent) => true;
|
|
204
|
+
'update:modelValue': (value: string | undefined | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => true;
|
|
201
205
|
'update:inputValue': (inputValue: string) => true;
|
|
202
206
|
'update:popupVisible': (visible: boolean) => true;
|
|
203
|
-
change: (value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => true;
|
|
207
|
+
change: (value: string | undefined | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => true;
|
|
204
208
|
inputValueChange: (inputValue: string) => true;
|
|
205
209
|
popupVisibleChange: (visible: boolean) => true;
|
|
206
210
|
clear: (ev: Event) => true;
|
|
@@ -221,13 +225,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
221
225
|
defaultPopupVisible: boolean;
|
|
222
226
|
unmountOnClose: boolean;
|
|
223
227
|
allowClear: boolean;
|
|
224
|
-
options: (string | number | boolean | import('../form-select
|
|
228
|
+
options: (string | number | boolean | import('../form-select').SelectOptionData | import('../form-select').SelectOptionGroupData)[];
|
|
225
229
|
bordered: boolean;
|
|
226
230
|
defaultInputValue: string;
|
|
227
231
|
maxTagCount: number;
|
|
228
232
|
tagNowrap: boolean;
|
|
229
233
|
valueKey: string;
|
|
230
|
-
filterOption: boolean | ((inputValue: string, option: import('../form-select
|
|
234
|
+
filterOption: boolean | ((inputValue: string, option: import('../form-select').SelectOptionData) => boolean);
|
|
231
235
|
allowCreate: boolean;
|
|
232
236
|
allowSearch: boolean | {
|
|
233
237
|
retainInputValue?: boolean;
|
|
@@ -236,7 +240,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
236
240
|
showFooterOnEmpty: boolean;
|
|
237
241
|
showExtraOptions: boolean;
|
|
238
242
|
defaultActiveFirstOption: boolean;
|
|
239
|
-
fallbackOption: boolean | ((value: string | number | boolean | Record<string, unknown>) => import('../form-select
|
|
243
|
+
fallbackOption: boolean | ((value: string | number | boolean | Record<string, unknown>) => import('../form-select').SelectOptionData);
|
|
240
244
|
searchDelay: number;
|
|
241
245
|
limit: number;
|
|
242
246
|
}, true, {}, {}, {
|
|
@@ -845,6 +849,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
845
849
|
type: BooleanConstructor;
|
|
846
850
|
default: boolean;
|
|
847
851
|
};
|
|
852
|
+
clearable: {
|
|
853
|
+
type: BooleanConstructor;
|
|
854
|
+
default: undefined;
|
|
855
|
+
};
|
|
848
856
|
allowCreate: {
|
|
849
857
|
type: BooleanConstructor;
|
|
850
858
|
default: boolean;
|
|
@@ -919,6 +927,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
919
927
|
type: BooleanConstructor;
|
|
920
928
|
default: boolean;
|
|
921
929
|
};
|
|
930
|
+
clearable: {
|
|
931
|
+
type: BooleanConstructor;
|
|
932
|
+
default: undefined;
|
|
933
|
+
};
|
|
922
934
|
allowCreate: {
|
|
923
935
|
type: BooleanConstructor;
|
|
924
936
|
default: boolean;
|
|
@@ -958,6 +970,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
958
970
|
maxTagCount: number;
|
|
959
971
|
retainInputValue: boolean;
|
|
960
972
|
tagNowrap: boolean;
|
|
973
|
+
clearable: boolean;
|
|
961
974
|
allowCreate: boolean;
|
|
962
975
|
allowSearch: boolean;
|
|
963
976
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1046,11 +1059,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1046
1059
|
default: boolean;
|
|
1047
1060
|
};
|
|
1048
1061
|
filterOption: {
|
|
1049
|
-
type: PropType<boolean | ((inputValue: string, option: import('../form-select
|
|
1062
|
+
type: PropType<boolean | ((inputValue: string, option: import('../form-select').SelectOptionData) => boolean)>;
|
|
1050
1063
|
default: boolean;
|
|
1051
1064
|
};
|
|
1052
1065
|
options: {
|
|
1053
|
-
type: PropType<(string | number | boolean | import('../form-select
|
|
1066
|
+
type: PropType<(string | number | boolean | import('../form-select').SelectOptionData | import('../form-select').SelectOptionGroupData)[]>;
|
|
1054
1067
|
default: () => never[];
|
|
1055
1068
|
};
|
|
1056
1069
|
virtualListProps: {
|
|
@@ -1060,10 +1073,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1060
1073
|
type: PropType<import('../index.ts').TriggerProps>;
|
|
1061
1074
|
};
|
|
1062
1075
|
formatLabel: {
|
|
1063
|
-
type: PropType<(data: import('../form-select
|
|
1076
|
+
type: PropType<(data: import('../form-select').SelectOptionData) => string>;
|
|
1064
1077
|
};
|
|
1065
1078
|
fallbackOption: {
|
|
1066
|
-
type: PropType<boolean | ((value: string | number | boolean | Record<string, unknown>) => import('../form-select
|
|
1079
|
+
type: PropType<boolean | ((value: string | number | boolean | Record<string, unknown>) => import('../form-select').SelectOptionData)>;
|
|
1067
1080
|
default: boolean;
|
|
1068
1081
|
};
|
|
1069
1082
|
showExtraOptions: {
|
|
@@ -1102,11 +1115,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1102
1115
|
default: boolean;
|
|
1103
1116
|
};
|
|
1104
1117
|
}>> & Readonly<{
|
|
1118
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
|
1105
1119
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1106
1120
|
onClear?: ((ev: Event) => any) | undefined;
|
|
1107
1121
|
onRemove?: ((removed: string | number | boolean | Record<string, any> | undefined) => any) | undefined;
|
|
1108
|
-
|
|
1109
|
-
|
|
1122
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
1123
|
+
onChange?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[] | undefined) => any) | undefined;
|
|
1124
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[] | undefined) => any) | undefined;
|
|
1110
1125
|
"onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
|
|
1111
1126
|
onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
1112
1127
|
"onUpdate:inputValue"?: ((inputValue: string) => any) | undefined;
|
|
@@ -1126,13 +1141,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1126
1141
|
defaultPopupVisible: boolean;
|
|
1127
1142
|
unmountOnClose: boolean;
|
|
1128
1143
|
allowClear: boolean;
|
|
1129
|
-
options: (string | number | boolean | import('../form-select
|
|
1144
|
+
options: (string | number | boolean | import('../form-select').SelectOptionData | import('../form-select').SelectOptionGroupData)[];
|
|
1130
1145
|
bordered: boolean;
|
|
1131
1146
|
defaultInputValue: string;
|
|
1132
1147
|
maxTagCount: number;
|
|
1133
1148
|
tagNowrap: boolean;
|
|
1134
1149
|
valueKey: string;
|
|
1135
|
-
filterOption: boolean | ((inputValue: string, option: import('../form-select
|
|
1150
|
+
filterOption: boolean | ((inputValue: string, option: import('../form-select').SelectOptionData) => boolean);
|
|
1136
1151
|
allowCreate: boolean;
|
|
1137
1152
|
allowSearch: boolean | {
|
|
1138
1153
|
retainInputValue?: boolean;
|
|
@@ -1141,7 +1156,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1141
1156
|
showFooterOnEmpty: boolean;
|
|
1142
1157
|
showExtraOptions: boolean;
|
|
1143
1158
|
defaultActiveFirstOption: boolean;
|
|
1144
|
-
fallbackOption: boolean | ((value: string | number | boolean | Record<string, unknown>) => import('../form-select
|
|
1159
|
+
fallbackOption: boolean | ((value: string | number | boolean | Record<string, unknown>) => import('../form-select').SelectOptionData);
|
|
1145
1160
|
searchDelay: number;
|
|
1146
1161
|
limit: number;
|
|
1147
1162
|
}>;
|
|
@@ -1226,11 +1241,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1226
1241
|
default: boolean;
|
|
1227
1242
|
};
|
|
1228
1243
|
filterOption: {
|
|
1229
|
-
type: PropType<boolean | ((inputValue: string, option: import('../form-select
|
|
1244
|
+
type: PropType<boolean | ((inputValue: string, option: import('../form-select').SelectOptionData) => boolean)>;
|
|
1230
1245
|
default: boolean;
|
|
1231
1246
|
};
|
|
1232
1247
|
options: {
|
|
1233
|
-
type: PropType<(string | number | boolean | import('../form-select
|
|
1248
|
+
type: PropType<(string | number | boolean | import('../form-select').SelectOptionData | import('../form-select').SelectOptionGroupData)[]>;
|
|
1234
1249
|
default: () => never[];
|
|
1235
1250
|
};
|
|
1236
1251
|
virtualListProps: {
|
|
@@ -1240,10 +1255,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1240
1255
|
type: PropType<import('../index.ts').TriggerProps>;
|
|
1241
1256
|
};
|
|
1242
1257
|
formatLabel: {
|
|
1243
|
-
type: PropType<(data: import('../form-select
|
|
1258
|
+
type: PropType<(data: import('../form-select').SelectOptionData) => string>;
|
|
1244
1259
|
};
|
|
1245
1260
|
fallbackOption: {
|
|
1246
|
-
type: PropType<boolean | ((value: string | number | boolean | Record<string, unknown>) => import('../form-select
|
|
1261
|
+
type: PropType<boolean | ((value: string | number | boolean | Record<string, unknown>) => import('../form-select').SelectOptionData)>;
|
|
1247
1262
|
default: boolean;
|
|
1248
1263
|
};
|
|
1249
1264
|
showExtraOptions: {
|
|
@@ -1282,11 +1297,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1282
1297
|
default: boolean;
|
|
1283
1298
|
};
|
|
1284
1299
|
}>> & Readonly<{
|
|
1300
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
|
1285
1301
|
onSearch?: ((inputValue: string) => any) | undefined;
|
|
1286
1302
|
onClear?: ((ev: Event) => any) | undefined;
|
|
1287
1303
|
onRemove?: ((removed: string | number | boolean | Record<string, any> | undefined) => any) | undefined;
|
|
1288
|
-
|
|
1289
|
-
|
|
1304
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
1305
|
+
onChange?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[] | undefined) => any) | undefined;
|
|
1306
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[] | undefined) => any) | undefined;
|
|
1290
1307
|
"onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
|
|
1291
1308
|
onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
1292
1309
|
"onUpdate:inputValue"?: ((inputValue: string) => any) | undefined;
|
|
@@ -1295,10 +1312,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1295
1312
|
onDropdownReachBottom?: ((ev: Event) => any) | undefined;
|
|
1296
1313
|
onExceedLimit?: ((value: string | number | boolean | Record<string, any> | undefined, ev: Event) => any) | undefined;
|
|
1297
1314
|
}>, () => VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1298
|
-
|
|
1315
|
+
focus: (ev: FocusEvent) => true;
|
|
1316
|
+
blur: (ev: FocusEvent) => true;
|
|
1317
|
+
'update:modelValue': (value: string | undefined | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => true;
|
|
1299
1318
|
'update:inputValue': (inputValue: string) => true;
|
|
1300
1319
|
'update:popupVisible': (visible: boolean) => true;
|
|
1301
|
-
change: (value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => true;
|
|
1320
|
+
change: (value: string | undefined | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]) => true;
|
|
1302
1321
|
inputValueChange: (inputValue: string) => true;
|
|
1303
1322
|
popupVisibleChange: (visible: boolean) => true;
|
|
1304
1323
|
clear: (ev: Event) => true;
|
|
@@ -1319,13 +1338,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1319
1338
|
defaultPopupVisible: boolean;
|
|
1320
1339
|
unmountOnClose: boolean;
|
|
1321
1340
|
allowClear: boolean;
|
|
1322
|
-
options: (string | number | boolean | import('../form-select
|
|
1341
|
+
options: (string | number | boolean | import('../form-select').SelectOptionData | import('../form-select').SelectOptionGroupData)[];
|
|
1323
1342
|
bordered: boolean;
|
|
1324
1343
|
defaultInputValue: string;
|
|
1325
1344
|
maxTagCount: number;
|
|
1326
1345
|
tagNowrap: boolean;
|
|
1327
1346
|
valueKey: string;
|
|
1328
|
-
filterOption: boolean | ((inputValue: string, option: import('../form-select
|
|
1347
|
+
filterOption: boolean | ((inputValue: string, option: import('../form-select').SelectOptionData) => boolean);
|
|
1329
1348
|
allowCreate: boolean;
|
|
1330
1349
|
allowSearch: boolean | {
|
|
1331
1350
|
retainInputValue?: boolean;
|
|
@@ -1334,7 +1353,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1334
1353
|
showFooterOnEmpty: boolean;
|
|
1335
1354
|
showExtraOptions: boolean;
|
|
1336
1355
|
defaultActiveFirstOption: boolean;
|
|
1337
|
-
fallbackOption: boolean | ((value: string | number | boolean | Record<string, unknown>) => import('../form-select
|
|
1356
|
+
fallbackOption: boolean | ((value: string | number | boolean | Record<string, unknown>) => import('../form-select').SelectOptionData);
|
|
1338
1357
|
searchDelay: number;
|
|
1339
1358
|
limit: number;
|
|
1340
1359
|
}, {}, string, {}, {
|
|
@@ -1943,6 +1962,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1943
1962
|
type: BooleanConstructor;
|
|
1944
1963
|
default: boolean;
|
|
1945
1964
|
};
|
|
1965
|
+
clearable: {
|
|
1966
|
+
type: BooleanConstructor;
|
|
1967
|
+
default: undefined;
|
|
1968
|
+
};
|
|
1946
1969
|
allowCreate: {
|
|
1947
1970
|
type: BooleanConstructor;
|
|
1948
1971
|
default: boolean;
|
|
@@ -2017,6 +2040,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2017
2040
|
type: BooleanConstructor;
|
|
2018
2041
|
default: boolean;
|
|
2019
2042
|
};
|
|
2043
|
+
clearable: {
|
|
2044
|
+
type: BooleanConstructor;
|
|
2045
|
+
default: undefined;
|
|
2046
|
+
};
|
|
2020
2047
|
allowCreate: {
|
|
2021
2048
|
type: BooleanConstructor;
|
|
2022
2049
|
default: boolean;
|
|
@@ -2056,6 +2083,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2056
2083
|
maxTagCount: number;
|
|
2057
2084
|
retainInputValue: boolean;
|
|
2058
2085
|
tagNowrap: boolean;
|
|
2086
|
+
clearable: boolean;
|
|
2059
2087
|
allowCreate: boolean;
|
|
2060
2088
|
allowSearch: boolean;
|
|
2061
2089
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -17,6 +17,8 @@ export interface TriggerProps {
|
|
|
17
17
|
blurToClose?: boolean;
|
|
18
18
|
clickToClose?: boolean;
|
|
19
19
|
clickOutsideToClose?: boolean;
|
|
20
|
+
scrollToClose?: boolean;
|
|
21
|
+
scrollToCloseDistance?: number;
|
|
20
22
|
unmountOnClose?: boolean;
|
|
21
23
|
contentClass?: any;
|
|
22
24
|
contentStyle?: CSSProperties;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
+
import { ScrollbarProps } from '../scrollbar-v2';
|
|
2
3
|
export type VirtualItemKey = string | number;
|
|
3
4
|
export interface InternalDataItem {
|
|
4
5
|
key: VirtualItemKey;
|
|
@@ -52,6 +53,8 @@ export interface VirtualListProps {
|
|
|
52
53
|
data?: unknown[];
|
|
53
54
|
itemKey?: string;
|
|
54
55
|
component?: keyof HTMLElementTagNameMap;
|
|
56
|
+
/** 使用库内滚动条;独立 VirtualList 默认 false,Select 会传入自己的配置。 */
|
|
57
|
+
scrollbar?: boolean | ScrollbarProps;
|
|
55
58
|
}
|
|
56
59
|
export type ScrollOptions = number | {
|
|
57
60
|
index?: number;
|