From 4a765f1d6c243896351b019e191743ec93a871fb Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Fri, 10 Jan 2020 10:40:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scss/components/_chart.scss | 1 + src/renderers/Table.tsx | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scss/components/_chart.scss b/scss/components/_chart.scss index 541683393..b0cc33d97 100644 --- a/scss/components/_chart.scss +++ b/scss/components/_chart.scss @@ -1,4 +1,5 @@ .#{$ns}Chart { + min-width: 300px; min-height: 300px; position: relative; diff --git a/src/renderers/Table.tsx b/src/renderers/Table.tsx index 97ba1d083..b5ed3ddfd 100644 --- a/src/renderers/Table.tsx +++ b/src/renderers/Table.tsx @@ -60,6 +60,7 @@ export interface TableProps extends RendererProps { draggable?: boolean; columnsTogglable?: boolean | 'auto'; affixHeader?: boolean; + affixColumns?: boolean; combineNum?: number; footable?: | boolean @@ -109,6 +110,7 @@ export default class Table extends React.Component { 'selectable', 'columnsTogglable', 'affixHeader', + 'affixColumns', 'headerClassName', 'footerClassName', 'selected', @@ -1851,6 +1853,7 @@ export default class Table extends React.Component { store, placeholder, classnames: cx, + affixColumns, data, render } = this.props; @@ -1879,7 +1882,7 @@ export default class Table extends React.Component { onMouseLeave={this.handleMouseLeave} >
- {store.leftFixedColumns.length + {affixColumns !== false && store.leftFixedColumns.length ? this.renderFixedColumns( store.leftFixedColumns, false, @@ -1888,7 +1891,7 @@ export default class Table extends React.Component { : null}
- {store.rightFixedColumns.length + {affixColumns !== false && store.rightFixedColumns.length ? this.renderFixedColumns( store.rightFixedColumns, false,