Skip to content

In the form set select initialValue,but select show option value not text #1841

@littlebaozi

Description

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

Version

1.4.11

Environment

ant-design-vue 1.4.11,vue 2.6.11

Reproduction link

Edit on CodeSandbox

Steps to reproduce

<a-select v-decorator="['vefiry', {initialValue:0}]" placeholder="认证状态">
<a-select-option value="0" key="0">全部</a-select-option>
<a-select-option value="1" key="1">已认证</a-select-option>
<a-select-option value="2" key="2">未认证</a-select-option>
</a-select>

在表单中,使用v-decorator设置select的initialValue为0

What is expected?

select显示“全部”

What is actually happening?

select显示“0”


即使在mounted中使用setFieldsValue为“0”显示了“全部”,resetFields之后还是会显示0

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