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
1 task done
imindzzz opened this issue Sep 5, 2018 · 3 comments
Closed
1 task done

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

imindzzz opened this issue Sep 5, 2018 · 3 comments

Comments

@imindzzz
Copy link

imindzzz 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

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}
/>

@imindzzz imindzzz changed the title 穿梭框能添加disable属性 Transfer disable readonly 穿梭框添加disable属性 Transfer disable readonly Sep 5, 2018
@IssueHuntBot
Copy link

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

@IssueHuntBot
Copy link

@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
Development

No branches or pull requests

4 participants