diff --git a/components/auto-complete/index.tsx b/components/auto-complete/index.tsx index 8844b6b53..4519e2753 100644 --- a/components/auto-complete/index.tsx +++ b/components/auto-complete/index.tsx @@ -100,7 +100,10 @@ const AutoComplete = defineComponent({ [`${prefixCls}-show-search`]: true, [`${prefixCls}-auto-complete`]: true, }; - const childArray = getSlot(this, 'dataSource'); + let childArray = getSlot(this, 'dataSource'); + if ('options' in this.$slots) { + childArray = getSlot(this, 'options'); + } if (childArray.length && isSelectOptionOrSelectOptGroup(childArray[0])) { optionChildren = childArray; } else {