@v-c/cascader 0.0.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.
Files changed (69) hide show
  1. package/LICENSE +21 -0
  2. package/dist/Cascader.cjs +647 -0
  3. package/dist/Cascader.d.ts +90 -0
  4. package/dist/Cascader.js +639 -0
  5. package/dist/OptionList/CacheContent.cjs +38 -0
  6. package/dist/OptionList/CacheContent.d.ts +7 -0
  7. package/dist/OptionList/CacheContent.js +32 -0
  8. package/dist/OptionList/Checkbox.cjs +75 -0
  9. package/dist/OptionList/Checkbox.d.ts +12 -0
  10. package/dist/OptionList/Checkbox.js +69 -0
  11. package/dist/OptionList/Column.cjs +223 -0
  12. package/dist/OptionList/Column.d.ts +23 -0
  13. package/dist/OptionList/Column.js +215 -0
  14. package/dist/OptionList/List.cjs +195 -0
  15. package/dist/OptionList/List.d.ts +12 -0
  16. package/dist/OptionList/List.js +189 -0
  17. package/dist/OptionList/index.cjs +24 -0
  18. package/dist/OptionList/index.d.ts +2 -0
  19. package/dist/OptionList/index.js +18 -0
  20. package/dist/OptionList/useActive.cjs +19 -0
  21. package/dist/OptionList/useActive.d.ts +7 -0
  22. package/dist/OptionList/useActive.js +14 -0
  23. package/dist/OptionList/useKeyboard.cjs +108 -0
  24. package/dist/OptionList/useKeyboard.d.ts +9 -0
  25. package/dist/OptionList/useKeyboard.js +102 -0
  26. package/dist/Panel.cjs +209 -0
  27. package/dist/Panel.d.ts +5 -0
  28. package/dist/Panel.js +202 -0
  29. package/dist/_virtual/rolldown_runtime.cjs +21 -0
  30. package/dist/context.cjs +12 -0
  31. package/dist/context.d.ts +23 -0
  32. package/dist/context.js +9 -0
  33. package/dist/hooks/useDisplayValues.cjs +39 -0
  34. package/dist/hooks/useDisplayValues.d.ts +4 -0
  35. package/dist/hooks/useDisplayValues.js +34 -0
  36. package/dist/hooks/useEntities.cjs +41 -0
  37. package/dist/hooks/useEntities.d.ts +10 -0
  38. package/dist/hooks/useEntities.js +36 -0
  39. package/dist/hooks/useMissingValues.cjs +17 -0
  40. package/dist/hooks/useMissingValues.d.ts +4 -0
  41. package/dist/hooks/useMissingValues.js +13 -0
  42. package/dist/hooks/useOptions.cjs +25 -0
  43. package/dist/hooks/useOptions.d.ts +9 -0
  44. package/dist/hooks/useOptions.js +20 -0
  45. package/dist/hooks/useSearchConfig.cjs +34 -0
  46. package/dist/hooks/useSearchConfig.d.ts +4 -0
  47. package/dist/hooks/useSearchConfig.js +29 -0
  48. package/dist/hooks/useSearchOptions.cjs +46 -0
  49. package/dist/hooks/useSearchOptions.d.ts +5 -0
  50. package/dist/hooks/useSearchOptions.js +40 -0
  51. package/dist/hooks/useSelect.cjs +36 -0
  52. package/dist/hooks/useSelect.d.ts +4 -0
  53. package/dist/hooks/useSelect.js +31 -0
  54. package/dist/hooks/useValues.cjs +25 -0
  55. package/dist/hooks/useValues.d.ts +9 -0
  56. package/dist/hooks/useValues.js +20 -0
  57. package/dist/index.cjs +16 -0
  58. package/dist/index.d.ts +12 -0
  59. package/dist/index.js +9 -0
  60. package/dist/utils/commonUtil.cjs +56 -0
  61. package/dist/utils/commonUtil.d.ts +18 -0
  62. package/dist/utils/commonUtil.js +45 -0
  63. package/dist/utils/treeUtil.cjs +34 -0
  64. package/dist/utils/treeUtil.d.ts +8 -0
  65. package/dist/utils/treeUtil.js +32 -0
  66. package/dist/utils/warningPropsUtil.cjs +19 -0
  67. package/dist/utils/warningPropsUtil.d.ts +2 -0
  68. package/dist/utils/warningPropsUtil.js +17 -0
  69. package/package.json +38 -0
@@ -0,0 +1,90 @@
1
+ import { BaseSelectPropsWithoutPrivate, BaseSelectRef, BaseSelectSemanticName, Placement } from '@v-c/select';
2
+ import { BuildInPlacements } from '../../trigger/src';
3
+ import { VueNode } from '../../util/src';
4
+ import { CSSProperties } from 'vue';
5
+ import { SHOW_CHILD, SHOW_PARENT } from './utils/commonUtil';
6
+ export interface BaseOptionType {
7
+ disabled?: boolean;
8
+ disableCheckbox?: boolean;
9
+ label?: VueNode;
10
+ value?: string | number | null;
11
+ children?: DefaultOptionType[];
12
+ isLeaf?: boolean;
13
+ }
14
+ export type DefaultOptionType = BaseOptionType & Record<string, any>;
15
+ export interface SearchConfig<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType> {
16
+ filter?: (inputValue: string, options: OptionType[], fieldNames: FieldNames<OptionType, ValueField>) => boolean;
17
+ render?: (inputValue: string, path: OptionType[], prefixCls: string, fieldNames: FieldNames<OptionType, ValueField>) => VueNode;
18
+ sort?: (a: OptionType[], b: OptionType[], inputValue: string, fieldNames: FieldNames<OptionType, ValueField>) => number;
19
+ matchInputWidth?: boolean;
20
+ limit?: number | false;
21
+ searchValue?: string;
22
+ onSearch?: (value: string) => void;
23
+ autoClearSearchValue?: boolean;
24
+ }
25
+ export type ShowCheckedStrategy = typeof SHOW_PARENT | typeof SHOW_CHILD;
26
+ interface BaseCascaderProps<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType> extends Omit<BaseSelectPropsWithoutPrivate, 'tokenSeparators' | 'labelInValue' | 'mode' | 'showSearch'> {
27
+ id?: string;
28
+ prefixCls?: string;
29
+ fieldNames?: FieldNames<OptionType, ValueField>;
30
+ optionRender?: (option: OptionType) => VueNode;
31
+ changeOnSelect?: boolean;
32
+ displayRender?: (label: string[], selectedOptions?: OptionType[]) => VueNode;
33
+ checkable?: boolean | VueNode;
34
+ showCheckedStrategy?: ShowCheckedStrategy;
35
+ /** @deprecated please use showSearch.autoClearSearchValue */
36
+ autoClearSearchValue?: boolean;
37
+ showSearch?: boolean | SearchConfig<OptionType>;
38
+ /** @deprecated please use showSearch.searchValue */
39
+ searchValue?: string;
40
+ /** @deprecated please use showSearch.onSearch */
41
+ onSearch?: (value: string) => void;
42
+ expandTrigger?: 'hover' | 'click';
43
+ options?: OptionType[];
44
+ /** @private Internal usage. Do not use in your production. */
45
+ popupPrefixCls?: string;
46
+ loadData?: (selectOptions: OptionType[]) => void;
47
+ popupClassName?: string;
48
+ popupMenuColumnStyle?: CSSProperties;
49
+ placement?: Placement;
50
+ builtinPlacements?: BuildInPlacements;
51
+ onPopupVisibleChange?: (open: boolean) => void;
52
+ expandIcon?: VueNode;
53
+ loadingIcon?: VueNode;
54
+ }
55
+ export interface FieldNames<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType> {
56
+ label?: keyof OptionType;
57
+ value?: keyof OptionType | ValueField;
58
+ children?: keyof OptionType;
59
+ }
60
+ export type ValueType<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType> = keyof OptionType extends ValueField ? unknown extends OptionType['value'] ? OptionType[ValueField] : OptionType['value'] : OptionType[ValueField];
61
+ export type GetValueType<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType, Multiple extends boolean | VueNode = false> = false extends Multiple ? ValueType<Required<OptionType>, ValueField>[] : ValueType<Required<OptionType>, ValueField>[][];
62
+ export type GetOptionType<OptionType extends DefaultOptionType = DefaultOptionType, Multiple extends boolean | VueNode = false> = false extends Multiple ? OptionType[] : OptionType[][];
63
+ export type SemanticName = BaseSelectSemanticName;
64
+ export type PopupSemantic = 'list' | 'listItem';
65
+ export interface CascaderProps<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType, Multiple extends boolean | VueNode = false> extends BaseCascaderProps<OptionType, ValueField> {
66
+ styles?: Partial<Record<SemanticName, CSSProperties>> & {
67
+ popup?: Partial<Record<PopupSemantic, CSSProperties>>;
68
+ };
69
+ classNames?: Partial<Record<SemanticName, string>> & {
70
+ popup?: Partial<Record<PopupSemantic, string>>;
71
+ };
72
+ checkable?: Multiple;
73
+ value?: GetValueType<OptionType, ValueField, Multiple>;
74
+ defaultValue?: GetValueType<OptionType, ValueField, Multiple>;
75
+ onChange?: (value: GetValueType<OptionType, ValueField, Multiple>, selectOptions: GetOptionType<OptionType, Multiple>) => void;
76
+ }
77
+ export type SingleValueType = (string | number)[];
78
+ export type LegacyKey = string | number;
79
+ export type InternalValueType = SingleValueType | SingleValueType[];
80
+ export interface InternalFieldNames extends Required<FieldNames> {
81
+ key: string;
82
+ }
83
+ export type InternalCascaderProps = Omit<CascaderProps, 'onChange' | 'value' | 'defaultValue'> & {
84
+ value?: InternalValueType;
85
+ defaultValue?: InternalValueType;
86
+ onChange?: (value: InternalValueType, selectOptions: BaseOptionType[] | BaseOptionType[][]) => void;
87
+ };
88
+ export type CascaderRef = Omit<BaseSelectRef, 'scrollTo'>;
89
+ declare const Cascader: import('vue').DefineSetupFnComponent<CascaderProps<DefaultOptionType, string, false>, {}, {}, CascaderProps<DefaultOptionType, string, false> & {}, import('vue').PublicProps>;
90
+ export default Cascader;
@@ -0,0 +1,639 @@
1
+ import { useCascaderProvider } from "./context.js";
2
+ import useSearchOptions_default from "./hooks/useSearchOptions.js";
3
+ import { SHOW_PARENT, fillFieldNames, toPathKeys, toRawValues } from "./utils/commonUtil.js";
4
+ import { formatStrategyValues, toPathOptions } from "./utils/treeUtil.js";
5
+ import useDisplayValues_default from "./hooks/useDisplayValues.js";
6
+ import useMissingValues from "./hooks/useMissingValues.js";
7
+ import useOptions from "./hooks/useOptions.js";
8
+ import useSearchConfig from "./hooks/useSearchConfig.js";
9
+ import useSelect from "./hooks/useSelect.js";
10
+ import useValues from "./hooks/useValues.js";
11
+ import OptionList_default from "./OptionList/index.js";
12
+ import { warningNullOptions } from "./utils/warningPropsUtil.js";
13
+ import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef, watch } from "vue";
14
+ import { BaseSelect } from "@v-c/select";
15
+ import { useId, useMergedState } from "@v-c/util";
16
+ import useEvent from "@v-c/util/dist/hooks/useEvent";
17
+ import omit from "@v-c/util/dist/omit";
18
+ var cascaderDefaults = {
19
+ prefixCls: "vc-cascader",
20
+ expandIcon: ">",
21
+ showCheckedStrategy: SHOW_PARENT,
22
+ popupMatchSelectWidth: false
23
+ };
24
+ var omitKeyList = [
25
+ "id",
26
+ "prefixCls",
27
+ "fieldNames",
28
+ "optionRender",
29
+ "value",
30
+ "defaultValue",
31
+ "onChange",
32
+ "changeOnSelect",
33
+ "displayRender",
34
+ "checkable",
35
+ "showCheckedStrategy",
36
+ "showSearch",
37
+ "searchValue",
38
+ "onSearch",
39
+ "autoClearSearchValue",
40
+ "expandTrigger",
41
+ "options",
42
+ "popupPrefixCls",
43
+ "loadData",
44
+ "popupMenuColumnStyle",
45
+ "popupClassName",
46
+ "popupStyle",
47
+ "open",
48
+ "placement",
49
+ "builtinPlacements",
50
+ "onPopupVisibleChange",
51
+ "popupMatchSelectWidth",
52
+ "expandIcon",
53
+ "loadingIcon",
54
+ "classNames",
55
+ "styles"
56
+ ];
57
+ var Cascader_default = /* @__PURE__ */ defineComponent((props, { attrs, slots, expose }) => {
58
+ const baseSelectRef = shallowRef(null);
59
+ expose({
60
+ focus: (options) => baseSelectRef.value?.focus(options),
61
+ blur: () => baseSelectRef.value?.blur(),
62
+ nativeElement: computed(() => baseSelectRef.value?.nativeElement)
63
+ });
64
+ const mergedId = useId(props.id);
65
+ const multiple = computed(() => !!props.checkable);
66
+ const internalRawValues = shallowRef(props?.value ?? props?.defaultValue);
67
+ watch(() => props.value, () => {
68
+ internalRawValues.value = props?.value;
69
+ });
70
+ const setRawValues = (values) => {
71
+ internalRawValues.value = values;
72
+ };
73
+ const rawValues = computed(() => toRawValues(internalRawValues.value));
74
+ const mergedFieldNames = computed(() => fillFieldNames(props.fieldNames));
75
+ const [mergedOptions, getPathKeyEntities, getValueByKeyPath] = useOptions(mergedFieldNames, computed(() => props.options));
76
+ const [mergedShowSearch, searchConfig] = useSearchConfig(computed(() => props.showSearch), computed(() => ({
77
+ autoClearSearchValue: props.autoClearSearchValue,
78
+ searchValue: props.searchValue,
79
+ onSearch: props.onSearch
80
+ })));
81
+ const mergedAutoClearSearchValue = computed(() => searchConfig.value.autoClearSearchValue !== false);
82
+ const mergedShowCheckedStrategy = computed(() => props.showCheckedStrategy ?? cascaderDefaults.showCheckedStrategy);
83
+ const [internalSearchValue, setSearchValue] = useMergedState("", { value: computed(() => searchConfig.value.searchValue) });
84
+ const mergedSearchValue = computed(() => internalSearchValue.value || "");
85
+ const onInternalSearch = (searchText, info) => {
86
+ setSearchValue(searchText);
87
+ if (info.source !== "blur") searchConfig.value.onSearch?.(searchText);
88
+ };
89
+ const searchOptions = useSearchOptions_default(mergedSearchValue, mergedOptions, mergedFieldNames, computed(() => props.popupPrefixCls || props.prefixCls || cascaderDefaults.prefixCls), searchConfig, computed(() => !!props.changeOnSelect || multiple.value));
90
+ const valuesInfo = useValues(multiple, rawValues, getPathKeyEntities, getValueByKeyPath, useMissingValues(mergedOptions, mergedFieldNames));
91
+ const checkedValues = computed(() => valuesInfo.value[0]);
92
+ const halfCheckedValues = computed(() => valuesInfo.value[1]);
93
+ const missingCheckedValues = computed(() => valuesInfo.value[2]);
94
+ const displayValues = useDisplayValues_default(computed(() => {
95
+ const deduplicateKeys = formatStrategyValues(toPathKeys(checkedValues.value), getPathKeyEntities, mergedShowCheckedStrategy.value);
96
+ return [...missingCheckedValues.value, ...getValueByKeyPath(deduplicateKeys)];
97
+ }), mergedOptions, mergedFieldNames, multiple, computed(() => props.displayRender));
98
+ const triggerChange = useEvent((nextValues) => {
99
+ setRawValues(nextValues);
100
+ if (props.onChange) {
101
+ const nextRawValues = toRawValues(nextValues);
102
+ const valueOptions = nextRawValues.map((valueCells) => toPathOptions(valueCells, mergedOptions.value, mergedFieldNames.value).map((valueOpt) => valueOpt.option));
103
+ const triggerValues = multiple.value ? nextRawValues : nextRawValues[0];
104
+ const triggerOptions = multiple.value ? valueOptions : valueOptions[0];
105
+ props.onChange(triggerValues, triggerOptions);
106
+ }
107
+ });
108
+ const handleSelection = useSelect(multiple, triggerChange, checkedValues, halfCheckedValues, missingCheckedValues, getPathKeyEntities, getValueByKeyPath, mergedShowCheckedStrategy);
109
+ const onInternalSelect = useEvent((valuePath) => {
110
+ if (!multiple.value || mergedAutoClearSearchValue.value) setSearchValue("");
111
+ handleSelection(valuePath);
112
+ });
113
+ const onDisplayValuesChange = (_, info) => {
114
+ if (info.type === "clear") {
115
+ triggerChange([]);
116
+ return;
117
+ }
118
+ const { valueCells } = info.values[0];
119
+ onInternalSelect(valueCells);
120
+ };
121
+ const onInternalPopupVisibleChange = (nextVisible) => {
122
+ props.onPopupVisibleChange?.(nextVisible);
123
+ };
124
+ if (process.env.NODE_ENV !== "production") warningNullOptions(mergedOptions.value, mergedFieldNames.value);
125
+ useCascaderProvider(computed(() => ({
126
+ classNames: props.classNames,
127
+ styles: props.styles,
128
+ options: mergedOptions.value,
129
+ fieldNames: mergedFieldNames.value,
130
+ values: checkedValues.value,
131
+ halfValues: halfCheckedValues.value,
132
+ changeOnSelect: props.changeOnSelect,
133
+ onSelect: onInternalSelect,
134
+ checkable: props.checkable,
135
+ searchOptions: searchOptions.value,
136
+ popupPrefixCls: props.popupPrefixCls,
137
+ loadData: props.loadData,
138
+ expandTrigger: props.expandTrigger,
139
+ expandIcon: props.expandIcon !== void 0 ? props.expandIcon : cascaderDefaults.expandIcon,
140
+ loadingIcon: props.loadingIcon,
141
+ popupMenuColumnStyle: props.popupMenuColumnStyle,
142
+ optionRender: props.optionRender
143
+ })));
144
+ const emptyOptions = computed(() => {
145
+ return !(mergedSearchValue.value ? searchOptions.value : mergedOptions.value).length;
146
+ });
147
+ const popupStyle = computed(() => mergedSearchValue.value && searchConfig.value.matchInputWidth || emptyOptions.value ? {} : { minWidth: "auto" });
148
+ return () => {
149
+ const restProps = omit(props, omitKeyList);
150
+ const rawInputElement = slots.default ? () => slots.default?.()[0] : void 0;
151
+ return createVNode(BaseSelect, mergeProps(attrs, restProps, {
152
+ "ref": (el) => {
153
+ baseSelectRef.value = el;
154
+ },
155
+ "id": mergedId,
156
+ "prefixCls": props.prefixCls ?? cascaderDefaults.prefixCls,
157
+ "autoClearSearchValue": mergedAutoClearSearchValue.value,
158
+ "popupMatchSelectWidth": props.popupMatchSelectWidth ?? cascaderDefaults.popupMatchSelectWidth,
159
+ "classNames": props.classNames,
160
+ "styles": props.styles,
161
+ "popupStyle": {
162
+ ...popupStyle.value,
163
+ ...props.popupStyle
164
+ },
165
+ "displayValues": displayValues.value,
166
+ "onDisplayValuesChange": onDisplayValuesChange,
167
+ "mode": multiple.value ? "multiple" : void 0,
168
+ "searchValue": mergedSearchValue.value,
169
+ "onSearch": onInternalSearch,
170
+ "showSearch": mergedShowSearch.value,
171
+ "OptionList": OptionList_default,
172
+ "emptyOptions": emptyOptions.value,
173
+ "open": props.open,
174
+ "popupClassName": props.popupClassName,
175
+ "placement": props.placement,
176
+ "builtinPlacements": props.builtinPlacements,
177
+ "onPopupVisibleChange": onInternalPopupVisibleChange,
178
+ "getRawInputElement": rawInputElement
179
+ }), null);
180
+ };
181
+ }, { props: /* @__PURE__ */ mergeDefaults({
182
+ styles: {
183
+ type: Object,
184
+ required: false,
185
+ default: void 0
186
+ },
187
+ classNames: {
188
+ type: Object,
189
+ required: false,
190
+ default: void 0
191
+ },
192
+ checkable: {
193
+ required: false,
194
+ default: void 0
195
+ },
196
+ value: {
197
+ required: false,
198
+ default: void 0
199
+ },
200
+ defaultValue: {
201
+ required: false,
202
+ default: void 0
203
+ },
204
+ onChange: {
205
+ type: Function,
206
+ required: false,
207
+ default: void 0
208
+ },
209
+ id: {
210
+ type: String,
211
+ required: false,
212
+ default: void 0
213
+ },
214
+ prefixCls: {
215
+ type: String,
216
+ required: false,
217
+ default: void 0
218
+ },
219
+ fieldNames: {
220
+ type: Object,
221
+ required: false,
222
+ default: void 0
223
+ },
224
+ optionRender: {
225
+ type: Function,
226
+ required: false,
227
+ default: void 0
228
+ },
229
+ changeOnSelect: {
230
+ type: Boolean,
231
+ required: false,
232
+ default: void 0
233
+ },
234
+ displayRender: {
235
+ type: Function,
236
+ required: false,
237
+ default: void 0
238
+ },
239
+ showCheckedStrategy: {
240
+ required: false,
241
+ default: void 0
242
+ },
243
+ autoClearSearchValue: {
244
+ type: Boolean,
245
+ required: false,
246
+ default: void 0
247
+ },
248
+ showSearch: {
249
+ type: [Boolean, Object],
250
+ required: false,
251
+ default: void 0
252
+ },
253
+ searchValue: {
254
+ type: String,
255
+ required: false,
256
+ default: void 0
257
+ },
258
+ onSearch: {
259
+ type: Function,
260
+ required: false,
261
+ default: void 0
262
+ },
263
+ expandTrigger: {
264
+ type: String,
265
+ required: false,
266
+ default: void 0
267
+ },
268
+ options: {
269
+ type: Array,
270
+ required: false,
271
+ default: void 0
272
+ },
273
+ popupPrefixCls: {
274
+ type: String,
275
+ required: false,
276
+ default: void 0
277
+ },
278
+ loadData: {
279
+ type: Function,
280
+ required: false,
281
+ default: void 0
282
+ },
283
+ popupClassName: {
284
+ type: String,
285
+ required: false,
286
+ default: void 0
287
+ },
288
+ popupMenuColumnStyle: {
289
+ type: Object,
290
+ required: false,
291
+ default: void 0
292
+ },
293
+ placement: {
294
+ type: String,
295
+ required: false,
296
+ default: void 0
297
+ },
298
+ builtinPlacements: {
299
+ type: Object,
300
+ required: false,
301
+ default: void 0
302
+ },
303
+ onPopupVisibleChange: {
304
+ type: Function,
305
+ required: false,
306
+ default: void 0
307
+ },
308
+ expandIcon: {
309
+ type: [
310
+ Object,
311
+ Function,
312
+ String,
313
+ Number,
314
+ null,
315
+ Boolean,
316
+ Array
317
+ ],
318
+ required: false,
319
+ default: void 0
320
+ },
321
+ loadingIcon: {
322
+ type: [
323
+ Object,
324
+ Function,
325
+ String,
326
+ Number,
327
+ null,
328
+ Boolean,
329
+ Array
330
+ ],
331
+ required: false,
332
+ default: void 0
333
+ },
334
+ className: {
335
+ type: String,
336
+ required: false,
337
+ default: void 0
338
+ },
339
+ style: {
340
+ type: Object,
341
+ required: false,
342
+ default: void 0
343
+ },
344
+ tagRender: {
345
+ type: Function,
346
+ required: false,
347
+ default: void 0
348
+ },
349
+ direction: {
350
+ type: String,
351
+ required: false,
352
+ default: void 0
353
+ },
354
+ autoFocus: {
355
+ type: Boolean,
356
+ required: false,
357
+ default: void 0
358
+ },
359
+ placeholder: {
360
+ type: [
361
+ Object,
362
+ Function,
363
+ String,
364
+ Number,
365
+ null,
366
+ Boolean,
367
+ Array
368
+ ],
369
+ required: false,
370
+ default: void 0
371
+ },
372
+ maxCount: {
373
+ type: Number,
374
+ required: false,
375
+ default: void 0
376
+ },
377
+ title: {
378
+ type: String,
379
+ required: false,
380
+ default: void 0
381
+ },
382
+ tabIndex: {
383
+ type: Number,
384
+ required: false,
385
+ default: void 0
386
+ },
387
+ notFoundContent: {
388
+ type: [
389
+ Object,
390
+ Function,
391
+ String,
392
+ Number,
393
+ null,
394
+ Boolean,
395
+ Array
396
+ ],
397
+ required: false,
398
+ default: void 0
399
+ },
400
+ onClear: {
401
+ type: Function,
402
+ required: false,
403
+ default: void 0
404
+ },
405
+ maxLength: {
406
+ type: Number,
407
+ required: false,
408
+ default: void 0
409
+ },
410
+ showScrollBar: {
411
+ type: [Boolean, String],
412
+ required: false,
413
+ default: void 0
414
+ },
415
+ choiceTransitionName: {
416
+ type: String,
417
+ required: false,
418
+ default: void 0
419
+ },
420
+ disabled: {
421
+ type: Boolean,
422
+ required: false,
423
+ default: void 0
424
+ },
425
+ loading: {
426
+ type: Boolean,
427
+ required: false,
428
+ default: void 0
429
+ },
430
+ open: {
431
+ type: Boolean,
432
+ required: false,
433
+ default: void 0
434
+ },
435
+ defaultOpen: {
436
+ type: Boolean,
437
+ required: false,
438
+ default: void 0
439
+ },
440
+ getInputElement: {
441
+ type: Function,
442
+ required: false,
443
+ default: void 0
444
+ },
445
+ getRawInputElement: {
446
+ type: Function,
447
+ required: false,
448
+ default: void 0
449
+ },
450
+ maxTagTextLength: {
451
+ type: Number,
452
+ required: false,
453
+ default: void 0
454
+ },
455
+ maxTagCount: {
456
+ type: [Number, String],
457
+ required: false,
458
+ default: void 0
459
+ },
460
+ maxTagPlaceholder: {
461
+ type: [
462
+ Object,
463
+ Function,
464
+ String,
465
+ Number,
466
+ null,
467
+ Boolean,
468
+ Array
469
+ ],
470
+ required: false,
471
+ default: void 0
472
+ },
473
+ allowClear: {
474
+ type: [Boolean, Object],
475
+ required: false,
476
+ default: void 0
477
+ },
478
+ prefix: {
479
+ type: [
480
+ Object,
481
+ Function,
482
+ String,
483
+ Number,
484
+ null,
485
+ Boolean,
486
+ Array
487
+ ],
488
+ required: false,
489
+ default: void 0
490
+ },
491
+ suffixIcon: {
492
+ type: [
493
+ Object,
494
+ Function,
495
+ String,
496
+ Number,
497
+ null,
498
+ Boolean,
499
+ Array
500
+ ],
501
+ required: false,
502
+ default: void 0
503
+ },
504
+ suffix: {
505
+ type: [
506
+ Object,
507
+ Function,
508
+ String,
509
+ Number,
510
+ null,
511
+ Boolean,
512
+ Array
513
+ ],
514
+ required: false,
515
+ default: void 0
516
+ },
517
+ clearIcon: {
518
+ type: [
519
+ Object,
520
+ Function,
521
+ String,
522
+ Number,
523
+ null,
524
+ Boolean,
525
+ Array
526
+ ],
527
+ required: false,
528
+ default: void 0
529
+ },
530
+ removeIcon: {
531
+ type: [
532
+ Object,
533
+ Function,
534
+ String,
535
+ Number,
536
+ null,
537
+ Boolean,
538
+ Array
539
+ ],
540
+ required: false,
541
+ default: void 0
542
+ },
543
+ animation: {
544
+ type: String,
545
+ required: false,
546
+ default: void 0
547
+ },
548
+ transitionName: {
549
+ type: String,
550
+ required: false,
551
+ default: void 0
552
+ },
553
+ popupStyle: {
554
+ type: Object,
555
+ required: false,
556
+ default: void 0
557
+ },
558
+ popupMatchSelectWidth: {
559
+ type: [Boolean, Number],
560
+ required: false,
561
+ default: void 0
562
+ },
563
+ popupRender: {
564
+ type: Function,
565
+ required: false,
566
+ default: void 0
567
+ },
568
+ popupAlign: {
569
+ type: Object,
570
+ required: false,
571
+ default: void 0
572
+ },
573
+ getPopupContainer: {
574
+ type: Function,
575
+ required: false,
576
+ default: void 0
577
+ },
578
+ showAction: {
579
+ type: Array,
580
+ required: false,
581
+ default: void 0
582
+ },
583
+ onBlur: {
584
+ type: Function,
585
+ required: false,
586
+ default: void 0
587
+ },
588
+ onFocus: {
589
+ type: Function,
590
+ required: false,
591
+ default: void 0
592
+ },
593
+ onKeyUp: {
594
+ type: Function,
595
+ required: false,
596
+ default: void 0
597
+ },
598
+ onKeyDown: {
599
+ type: Function,
600
+ required: false,
601
+ default: void 0
602
+ },
603
+ onMouseDown: {
604
+ type: Function,
605
+ required: false,
606
+ default: void 0
607
+ },
608
+ onPopupScroll: {
609
+ type: Function,
610
+ required: false,
611
+ default: void 0
612
+ },
613
+ onInputKeyDown: {
614
+ type: Function,
615
+ required: false,
616
+ default: void 0
617
+ },
618
+ onMouseEnter: {
619
+ type: Function,
620
+ required: false,
621
+ default: void 0
622
+ },
623
+ onMouseLeave: {
624
+ type: Function,
625
+ required: false,
626
+ default: void 0
627
+ },
628
+ onClick: {
629
+ type: Function,
630
+ required: false,
631
+ default: void 0
632
+ },
633
+ components: {
634
+ type: Object,
635
+ required: false,
636
+ default: void 0
637
+ }
638
+ }, cascaderDefaults) });
639
+ export { Cascader_default as default };