Browse Source

Fix table fixed header align, close #2227

pull/2274/head
afc163 9 years ago
parent
commit
b42f5efea3
  1. 2
      components/table/demo/fixed-columns-header.md
  2. 3
      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() { function App() {
return <Table columns={columns} dataSource={data} scroll={{ x: 1300, y: 300 }} />; return <Table columns={columns} dataSource={data} scroll={{ x: 1500, y: 300 }} />;
} }
ReactDOM.render(<App />, mountNode); ReactDOM.render(<App />, mountNode);

3
components/table/style/index.less

@ -403,8 +403,7 @@
} }
&-fixed-header &-scroll &-header { &-fixed-header &-scroll &-header {
overflow-x: scroll; overflow: scroll;
overflow-y: hidden;
padding-bottom: 20px; padding-bottom: 20px;
margin-bottom: -20px; margin-bottom: -20px;
} }

Loading…
Cancel
Save