Skip to content

使用select组件时候的报错 #396

@Jairwin-L

Description

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

Version

1.1.7

Environment

vue:2.5.17

Reproduction link

https://vuecomponent.github.io/ant-design-vue/components/select-cn/#API

Steps to reproduce

<a-form-item
label='主员工'
fieldDecoratorId="employee_id"
:fieldDecoratorOptions="{rules: [{ required: true, message: '必须选择主员工' }]}"
>
<a-select
showSearch
placeholder="请选择主员工"
:defaultActiveFirstOption="false"
:showArrow="false"
:filterOption="false"
@search="handleSearch"
:notFoundContent="null"
>
<a-select-option v-for="item in employee_list" :key="item.id">{{item.name}}</a-select-option>
</a-select>
</a-form-item>

What is expected?

使用下拉框的时候无报错情况

What is actually happening?

[Vue warn]: Invalid prop: custom validator check failed for prop "selectedKeys".


导航菜单:https://vuecomponent.github.io/ant-design-vue/components/menu-cn/#API

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