We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
options
1 parent 8d8f940 commit 2e06d38Copy full SHA for 2e06d38
components/auto-complete/index.tsx
@@ -100,7 +100,10 @@ const AutoComplete = defineComponent({
100
[`${prefixCls}-show-search`]: true,
101
[`${prefixCls}-auto-complete`]: true,
102
};
103
- const childArray = getSlot(this, 'dataSource');
+ let childArray = getSlot(this, 'dataSource');
104
+ if ('options' in this.$slots) {
105
+ childArray = getSlot(this, 'options');
106
+ }
107
if (childArray.length && isSelectOptionOrSelectOptGroup(childArray[0])) {
108
optionChildren = childArray;
109
} else {
0 commit comments