From b27525860b242995c1e1d8c0c8b7634da256eaf2 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Wed, 1 Apr 2020 10:54:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scss/components/form/_location.scss | 1 + src/components/LocationPicker.tsx | 1 + src/renderers/Table.tsx | 9 ++++++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/scss/components/form/_location.scss b/scss/components/form/_location.scss index 2ce51774..0c67aa27 100644 --- a/scss/components/form/_location.scss +++ b/scss/components/form/_location.scss @@ -72,6 +72,7 @@ .#{$ns}LocationControl { position: relative; + width: 100%; } .#{$ns}LocationControl:not(.is-inline) > .#{$ns}LocationPicker { diff --git a/src/components/LocationPicker.tsx b/src/components/LocationPicker.tsx index 4ad2649e..7296873e 100644 --- a/src/components/LocationPicker.tsx +++ b/src/components/LocationPicker.tsx @@ -186,6 +186,7 @@ export class LocationPicker extends React.Component< onHide={this.close} overlay onClick={this.handlePopOverClick} + style={{width: this.getTarget()?.offsetWidth}} > {vendor === 'baidu' ? ( diff --git a/src/renderers/Table.tsx b/src/renderers/Table.tsx index af9a4557..b7efb3a9 100644 --- a/src/renderers/Table.tsx +++ b/src/renderers/Table.tsx @@ -52,6 +52,7 @@ export interface TableProps extends RendererProps { footerClassName?: string; store: ITableStore; columns?: Array; + headingClassName?: string; tableClassName?: string; source?: string; selectable?: boolean; @@ -109,6 +110,7 @@ export default class Table extends React.Component { 'expandConfig', 'placeholder', 'tableClassName', + 'headingClassName', 'source', 'selectable', 'columnsTogglable', @@ -939,7 +941,8 @@ export default class Table extends React.Component { hideQuickSaveBtn, data, classnames: cx, - saveImmediately + saveImmediately, + headingClassName } = this.props; if ( @@ -948,7 +951,7 @@ export default class Table extends React.Component { store.moved ) { return ( -
+
{!saveImmediately && store.modified && !hideQuickSaveBtn ? ( {`当前有 ${ @@ -1888,7 +1891,6 @@ export default class Table extends React.Component { 'Table--unsaved': !!store.modified || !!store.moved })} > - {this.renderAffixHeader(tableClassName)} {heading} {header}
{ {this.renderTableContent()} {~store.hoverIndex ? this.renderItemActions() : null}
+ {this.renderAffixHeader(tableClassName)} {footer}
);