forked from p96170835/amis
小调整
This commit is contained in:
parent
cd3fdfbabd
commit
27ca55e932
|
@ -1,4 +1,5 @@
|
||||||
.#{$ns}Chart {
|
.#{$ns}Chart {
|
||||||
|
min-width: 300px;
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,7 @@ export interface TableProps extends RendererProps {
|
||||||
draggable?: boolean;
|
draggable?: boolean;
|
||||||
columnsTogglable?: boolean | 'auto';
|
columnsTogglable?: boolean | 'auto';
|
||||||
affixHeader?: boolean;
|
affixHeader?: boolean;
|
||||||
|
affixColumns?: boolean;
|
||||||
combineNum?: number;
|
combineNum?: number;
|
||||||
footable?:
|
footable?:
|
||||||
| boolean
|
| boolean
|
||||||
|
@ -109,6 +110,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||||
'selectable',
|
'selectable',
|
||||||
'columnsTogglable',
|
'columnsTogglable',
|
||||||
'affixHeader',
|
'affixHeader',
|
||||||
|
'affixColumns',
|
||||||
'headerClassName',
|
'headerClassName',
|
||||||
'footerClassName',
|
'footerClassName',
|
||||||
'selected',
|
'selected',
|
||||||
|
@ -1851,6 +1853,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||||
store,
|
store,
|
||||||
placeholder,
|
placeholder,
|
||||||
classnames: cx,
|
classnames: cx,
|
||||||
|
affixColumns,
|
||||||
data,
|
data,
|
||||||
render
|
render
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
@ -1879,7 +1882,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||||
onMouseLeave={this.handleMouseLeave}
|
onMouseLeave={this.handleMouseLeave}
|
||||||
>
|
>
|
||||||
<div className={cx('Table-fixedLeft')}>
|
<div className={cx('Table-fixedLeft')}>
|
||||||
{store.leftFixedColumns.length
|
{affixColumns !== false && store.leftFixedColumns.length
|
||||||
? this.renderFixedColumns(
|
? this.renderFixedColumns(
|
||||||
store.leftFixedColumns,
|
store.leftFixedColumns,
|
||||||
false,
|
false,
|
||||||
|
@ -1888,7 +1891,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||||
: null}
|
: null}
|
||||||
</div>
|
</div>
|
||||||
<div className={cx('Table-fixedRight')}>
|
<div className={cx('Table-fixedRight')}>
|
||||||
{store.rightFixedColumns.length
|
{affixColumns !== false && store.rightFixedColumns.length
|
||||||
? this.renderFixedColumns(
|
? this.renderFixedColumns(
|
||||||
store.rightFixedColumns,
|
store.rightFixedColumns,
|
||||||
false,
|
false,
|
||||||
|
|
Loading…
Reference in New Issue