Skip to content
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 · 3 comments
Closed

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

xd199153 opened this issue Sep 5, 2018 · 3 comments

Comments

@xd199153
Copy link

@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
Copy link
Contributor

@ant-design-bot 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 穿梭框能添加disable属性 Transfer disable readonly 穿梭框添加disable属性 Transfer disable readonly Sep 5, 2018
@IssueHuntBot
Copy link

@IssueHuntBot IssueHuntBot commented Sep 5, 2018

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

@IssueHuntBot
Copy link

@IssueHuntBot IssueHuntBot commented Feb 25, 2019

@zombieJ has rewarded $7.00 to @zombieJ. See it on IssueHunt

  • 💰 Total deposit: $10.00
  • 🎉 Repository reward(20%): $2.00
  • 🔧 Service fee(10%): $1.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants