-
-
Notifications
You must be signed in to change notification settings - Fork 50.5k
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
Table的loading可以使用Spin的属性 #4824
Table的loading可以使用Spin的属性 #4824
Conversation
@lixiaoyang1992, thanks for your PR! By analyzing the history of the files in this pull request, we identified @yiminghe, @benjycui and @afc163 to be potential reviewers. |
@lixiaoyang1992 写下测试吧 |
components/table/demo/ajax.md
Outdated
loading = {{ | ||
spinning: this.state.loading, | ||
delay: 500 | ||
}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 赞赞赞 |
@@ -872,10 +876,16 @@ export default class Table<T> extends React.Component<TableProps<T>, any> { | |||
const paginationPatchClass = (this.hasPagination() && data && data.length !== 0) | |||
? `${prefixCls}-with-pagination` | |||
: `${prefixCls}-without-pagination`; | |||
let loading = this.props.loading; | |||
if (typeof (loading) === 'boolean') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
其实不懂这里为什么有括号。。
Close: #4544