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

feat: 💥 support tableLayout and column.ellipsis #17284

Merged
merged 11 commits into from Sep 5, 2019
3 changes: 1 addition & 2 deletions components/table/Table.tsx
Expand Up @@ -1230,8 +1230,7 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
mergedLocale.emptyText = renderEmpty('Table');
}

const classString = classNames({
[`${prefixCls}-${this.props.size}`]: true,
const classString = classNames(`${prefixCls}-${this.props.size}`, {
[`${prefixCls}-bordered`]: this.props.bordered,
[`${prefixCls}-empty`]: !data.length,
[`${prefixCls}-without-column-header`]: !showHeader,
Expand Down
Expand Up @@ -11,7 +11,7 @@ exports[`Table.rowSelection fix selection column on the left 1`] = `
class="ant-spin-container"
>
<div
class="ant-table ant-table-default ant-table-scroll-position-left"
class="ant-table ant-table-default ant-table-scroll-position-left ant-table-layout-fixed"
>
<div
class="ant-table-content"
Expand Down