We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
options
1 parent b51f25f commit 5fe1fccCopy full SHA for 5fe1fcc
components/auto-complete/index.tsx
@@ -94,7 +94,10 @@ const AutoComplete = defineComponent({
94
[`${prefixCls}-show-search`]: true,
95
[`${prefixCls}-auto-complete`]: true,
96
};
97
- const childArray = getSlot(this, 'dataSource');
+ let childArray = getSlot(this, 'dataSource');
98
+ if ('options' in this.$slots) {
99
+ childArray = getSlot(this, 'options');
100
+ }
101
if (childArray.length && isSelectOptionOrSelectOptGroup(childArray[0])) {
102
optionChildren = childArray;
103
} else {
0 commit comments