Skip to content

table组件内循环formItem,表单用不了,input不能正常输入 #1312

@wzy4072

Description

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

Version

1.4.1

Environment

PC: window7; chrome:76.0.3809.100(正式版本) (64 位),vue:2.6.10

Reproduction link

https://github.com/wzy4072/antdDemo

Steps to reproduce

<a-form :form="form">
<a-table :columns="columns" :dataSource="dataSource" rowKey="id">
<span slot="age" slot-scope="value, record">
<a-form-item>
<a-input
v-decorator="[ record.id   '.age', { rules: [{ required: true, message: 'Please input your age!' }] }]"
/>
</a-form-item>
</span>
<span slot="handle" slot-scope="value, record, index">
<a-button type="primary" @click="add" v-show="index === 0">add</a-button>
<a-button type="danger" @click="remove(index)" v-show="index !== 0">remove</a-button>
</span>
</a-table>
</a-form>

What is expected?

then form can work; i can input;

What is actually happening?

i can input nothing; no warning;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions