Browse Source

remove nowrap in fixed Table, close #2130

pull/2135/head
afc163 9 years ago
parent
commit
2be285d236
  1. 2
      components/table/demo/fixed-columns-header.md
  2. 2
      components/table/demo/fixed-columns.md
  3. 9
      components/table/style/index.less

2
components/table/demo/fixed-columns-header.md

@ -43,7 +43,7 @@ for (let i = 0; i < 100; i++) {
}
function App() {
return <Table columns={columns} dataSource={data} scroll={{ x: true, y: 300 }} />;
return <Table columns={columns} dataSource={data} scroll={{ x: 1300, y: 300 }} />;
}
ReactDOM.render(<App />, mountNode);

2
components/table/demo/fixed-columns.md

@ -45,7 +45,7 @@ const data = [{
}];
function App() {
return <Table columns={columns} dataSource={data} scroll={{ x: true }} />;
return <Table columns={columns} dataSource={data} scroll={{ x: 1300 }} />;
}
ReactDOM.render(<App />, mountNode);

9
components/table/style/index.less

@ -423,15 +423,6 @@
}
}
&-fixed-left,
&-fixed-right,
&-scroll {
th,
td {
white-space: nowrap;
}
}
&-fixed-left &-fixed,
&-fixed-right &-fixed {
border-radius: 0;

Loading…
Cancel
Save