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

为antd的editable-card类型的TabPane增加不可删除属性 #50

Closed
wants to merge 2 commits into from

Conversation

lixiaoyang1992
Copy link
Contributor

部分 TabPane 可以删除,部分不可以并且不显示删除按钮,需要和antd的PR一起实现

部分 TabPane 可以删除,部分不可以并且不显示删除按钮,需要和antd的PR一起实现
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 75.114% when pulling cf642d3 on lixiaoyang1992:master into 3434c67 on react-component:master.

@@ -36,6 +36,9 @@ export default {
onClick: this.onTabClick.bind(this, key),
};
}
if (child.props.closeable === false) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!child.props.closeable

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 75.342% when pulling b2448b4 on lixiaoyang1992:master into 3434c67 on react-component:master.

@ddcat1115
Copy link
Contributor

@afc163 这个没问题的话,合了发布下吧~

@afc163
Copy link
Member

afc163 commented Feb 10, 2017

rc-tabs 没有 closeable 属性,加到这里不合适。应该把这个 className 加到这里去:https://github.com/ant-design/ant-design/pull/4807/files#diff-890204a57095a79c1c4b0bf626932b30L104

@afc163 afc163 closed this Feb 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants