提交 08e04e0b 编写于 作者: A afc163

Hide selection component in children data

上级 7668473f
......@@ -78,7 +78,7 @@ const data = [{
}];
ReactDOM.render(
<Table columns={columns} dataSource={data} indentSize={30} />,
<Table columns={columns} dataSource={data} indentSize={20} />,
mountNode
);
````
......@@ -584,6 +584,7 @@ let AntTable = React.createClass({
data={data}
columns={columns}
className={classString}
expandIconColumnIndex={columns[0].key === 'selection-column' ? 1 : 0}
expandIconAsCell={expandIconAsCell} />
{emptyText}
</div>
......
......@@ -318,6 +318,15 @@
content: '.';
}
}
// Hide selection component in children data
&[class*="@{table-prefix-cls}-row-level-"] .@{table-prefix-cls}-selection-column > span {
display: none;
}
&[class*="@{table-prefix-cls}-row-level-0"] .@{table-prefix-cls}-selection-column > span {
display: inline-block;
}
}
tr&-expanded-row {
&,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册