mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
Hide selection component in children data
This commit is contained in:
parent
7668473f17
commit
08e04e0b14
@ -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>
|
||||
|
@ -58,7 +58,7 @@
|
||||
"rc-slider": "~3.3.0",
|
||||
"rc-steps": "~1.4.1",
|
||||
"rc-switch": "~1.3.2",
|
||||
"rc-table": "~3.9.0",
|
||||
"rc-table": "~3.10.1",
|
||||
"rc-tabs": "~5.7.0",
|
||||
"rc-time-picker": "~1.1.0",
|
||||
"rc-tooltip": "~3.3.1",
|
||||
|
@ -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 {
|
||||
&,
|
||||
|
Loading…
Reference in New Issue
Block a user