You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| dropdownMatchSelectWidth | Determine whether the dropdown menu and the select input are the same width. Default set `min-width` same as input. Will ignore when value less than select width. `false` will disable virtual scroll | boolean \| number | true ||
33
33
| filterOption | If true, filter options by input, if function, filter options against it. The function will receive two arguments, `inputValue` and `option`, if the function returns `true`, the option will be included in the filtered set; Otherwise, it will be excluded. | boolean or function(inputValue, option) | true ||
34
-
| optionLabelProp | Which prop value of option will render as content of select. | string |`children`||
| defaultOpen | Initial open state of dropdown | boolean | - ||
@@ -54,3 +53,31 @@ When there is a need for autocomplete functionality.
54
53
| ------- | ------------ | ------- |
55
54
| blur() | remove focus ||
56
55
| focus() | get focus ||
56
+
57
+
## FAQ
58
+
59
+
### Part of the api in v2 are not available in v3?
60
+
61
+
AutoComplete is an Input component that supports auto complete tips. As such, it should not support props like `labelInValue` that affect value display. In v2, the AutoComplete implementation can not handle the case where the `value` and `label` are identical. v3 not longer support `label` as the value input.
62
+
63
+
Besides, to unify the API, `dataSource` is replaced with `options`. You can migrate with the following change:
Copy file name to clipboardExpand all lines: site/src/vueDocs/migration-v3.en-US.md
+5
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,11 @@ Major updates after the 3.0 version refactoring include `Tree` `TreeSelect` `Dat
41
41
- Added virtual scrolling, discarded using `a-tree-node``a-tree-select-node` to build nodes, using `treeData` property instead to improve component performance.
42
42
- Deprecated `scopedSlots``slots` custom rendering node, and replace it with `v-slot:title` to improve ease of use, avoid slot configuration expansion, and also avoid slot conflicts.
43
43
44
+
-`AutoComplete`
45
+
46
+
- no longer support `optionLabelProp`. Please set Option `value` directly.
47
+
- options definition align with Select. Please use `options` instead of `dataSource`.
48
+
44
49
-`Table`
45
50
46
51
- Removed the `rowSelection.hideDefaultSelections` property of Table, please use `SELECTION_ALL` and `SELECTION_INVERT` in `rowSelection.selections` instead, [custom options](/components/table/#components-table-demo- row-selection-custom).
0 commit comments