New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

穿梭框添加disable属性 Transfer disable readonly #12066

Closed
xd199153 opened this Issue Sep 5, 2018 · 2 comments

Comments

Projects
None yet
4 participants
@xd199153

xd199153 commented Sep 5, 2018

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

What problem does this feature solve?

常常在表单里使用穿梭框,有时在编辑时不希望穿梭框的表单项被修改。所以需要一个和input 一样的disable属性。显示效果也和input一样灰色。
目前只能给穿梭框的每条数据添加disable属性。

What does the proposed API look like?

<Transfer
    disable={true}
    dataSource={this.state.mockData}
    showSearch
    filterOption={this.filterOption}
    targetKeys={this.state.targetKeys}
    onChange={this.handleChange}
    render={item => item.title}
/>
@ant-design-bot

This comment has been minimized.

ant-design-bot commented Sep 5, 2018

Translation of this issue:


Shuttle box can add disable attribute Transfer disable readonly

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

What problem does this feature solve?

The shuttle box is often used in the form, and sometimes the form items that do not want the shuttle box are modified during editing. So you need a disable attribute like input. The display effect is also as gray as input.
Currently, the disable attribute can only be added to each piece of data in the shuttle box.

What does the proposed API look like?

<Transfer
    Disable={true}
    dataSource={this.state.mockData}
    showSearch
    filterOption={this.filterOption}
    targetKeys={this.state.targetKeys}
    onChange={this.handleChange}
    Render={item => item.title}
/>

@xd199153 xd199153 changed the title from 穿梭框能添加disable属性 Transfer disable readonly to 穿梭框添加disable属性 Transfer disable readonly Sep 5, 2018

@IssuehuntBot

This comment has been minimized.

IssuehuntBot commented Sep 5, 2018

@BoostIO funded this issue with $10. Visit this issue on Issuehunt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment