样式优化

This commit is contained in:
2betop 2020-04-01 10:54:21 +08:00
parent f6c8cb368d
commit b27525860b
3 changed files with 8 additions and 3 deletions

View File

@ -72,6 +72,7 @@
.#{$ns}LocationControl {
position: relative;
width: 100%;
}
.#{$ns}LocationControl:not(.is-inline) > .#{$ns}LocationPicker {

View File

@ -186,6 +186,7 @@ export class LocationPicker extends React.Component<
onHide={this.close}
overlay
onClick={this.handlePopOverClick}
style={{width: this.getTarget()?.offsetWidth}}
>
{vendor === 'baidu' ? (
<BaiduMapPicker ak={ak} value={value} onChange={this.handleChange} />

View File

@ -52,6 +52,7 @@ export interface TableProps extends RendererProps {
footerClassName?: string;
store: ITableStore;
columns?: Array<Column>;
headingClassName?: string;
tableClassName?: string;
source?: string;
selectable?: boolean;
@ -109,6 +110,7 @@ export default class Table extends React.Component<TableProps, object> {
'expandConfig',
'placeholder',
'tableClassName',
'headingClassName',
'source',
'selectable',
'columnsTogglable',
@ -939,7 +941,8 @@ export default class Table extends React.Component<TableProps, object> {
hideQuickSaveBtn,
data,
classnames: cx,
saveImmediately
saveImmediately,
headingClassName
} = this.props;
if (
@ -948,7 +951,7 @@ export default class Table extends React.Component<TableProps, object> {
store.moved
) {
return (
<div className={cx('Table-heading')} key="heading">
<div className={cx('Table-heading', headingClassName)} key="heading">
{!saveImmediately && store.modified && !hideQuickSaveBtn ? (
<span>
{`当前有 ${
@ -1888,7 +1891,6 @@ export default class Table extends React.Component<TableProps, object> {
'Table--unsaved': !!store.modified || !!store.moved
})}
>
{this.renderAffixHeader(tableClassName)}
{heading}
{header}
<div
@ -1916,6 +1918,7 @@ export default class Table extends React.Component<TableProps, object> {
{this.renderTableContent()}
{~store.hoverIndex ? this.renderItemActions() : null}
</div>
{this.renderAffixHeader(tableClassName)}
{footer}
</div>
);