Skip to content

AutoComplete 在使用自定义列表时出现问题 #option报错 #6704

@xiaozan888

Description

@xiaozan888
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.0.0-rc.5

Environment

vue 最新版本 node18以上

Reproduction link 未找到4.0.0-rc.5 sorry

Edit on CodeSandbox

Steps to reproduce

<a-auto-complete
v-if="useStore().sidebarOpened"
v-model:value="word"
class="w-100% mr-12 h-32"
:dropdown-match-select-width="108"
:options="menuList"
@select="onSelect"
@search="handleSearch"

<template #option="item">

属性“option”在类型“Readonly<{ options: any; default: any; notFoundContent: any; dataSource: any; }>
#option 报错

What is expected?

报错消失

What is actually happening?

这种错误导致无法验证通过,不能build

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions