parent
8d8f940552
commit
2e06d38aff
|
@ -100,7 +100,10 @@ const AutoComplete = defineComponent({
|
||||||
[`${prefixCls}-show-search`]: true,
|
[`${prefixCls}-show-search`]: true,
|
||||||
[`${prefixCls}-auto-complete`]: 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])) {
|
if (childArray.length && isSelectOptionOrSelectOptGroup(childArray[0])) {
|
||||||
optionChildren = childArray;
|
optionChildren = childArray;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue