forked from p96170835/amis
样式优化
This commit is contained in:
parent
f6c8cb368d
commit
b27525860b
|
@ -72,6 +72,7 @@
|
||||||
|
|
||||||
.#{$ns}LocationControl {
|
.#{$ns}LocationControl {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.#{$ns}LocationControl:not(.is-inline) > .#{$ns}LocationPicker {
|
.#{$ns}LocationControl:not(.is-inline) > .#{$ns}LocationPicker {
|
||||||
|
|
|
@ -186,6 +186,7 @@ export class LocationPicker extends React.Component<
|
||||||
onHide={this.close}
|
onHide={this.close}
|
||||||
overlay
|
overlay
|
||||||
onClick={this.handlePopOverClick}
|
onClick={this.handlePopOverClick}
|
||||||
|
style={{width: this.getTarget()?.offsetWidth}}
|
||||||
>
|
>
|
||||||
{vendor === 'baidu' ? (
|
{vendor === 'baidu' ? (
|
||||||
<BaiduMapPicker ak={ak} value={value} onChange={this.handleChange} />
|
<BaiduMapPicker ak={ak} value={value} onChange={this.handleChange} />
|
||||||
|
|
|
@ -52,6 +52,7 @@ export interface TableProps extends RendererProps {
|
||||||
footerClassName?: string;
|
footerClassName?: string;
|
||||||
store: ITableStore;
|
store: ITableStore;
|
||||||
columns?: Array<Column>;
|
columns?: Array<Column>;
|
||||||
|
headingClassName?: string;
|
||||||
tableClassName?: string;
|
tableClassName?: string;
|
||||||
source?: string;
|
source?: string;
|
||||||
selectable?: boolean;
|
selectable?: boolean;
|
||||||
|
@ -109,6 +110,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||||
'expandConfig',
|
'expandConfig',
|
||||||
'placeholder',
|
'placeholder',
|
||||||
'tableClassName',
|
'tableClassName',
|
||||||
|
'headingClassName',
|
||||||
'source',
|
'source',
|
||||||
'selectable',
|
'selectable',
|
||||||
'columnsTogglable',
|
'columnsTogglable',
|
||||||
|
@ -939,7 +941,8 @@ export default class Table extends React.Component<TableProps, object> {
|
||||||
hideQuickSaveBtn,
|
hideQuickSaveBtn,
|
||||||
data,
|
data,
|
||||||
classnames: cx,
|
classnames: cx,
|
||||||
saveImmediately
|
saveImmediately,
|
||||||
|
headingClassName
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
@ -948,7 +951,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||||
store.moved
|
store.moved
|
||||||
) {
|
) {
|
||||||
return (
|
return (
|
||||||
<div className={cx('Table-heading')} key="heading">
|
<div className={cx('Table-heading', headingClassName)} key="heading">
|
||||||
{!saveImmediately && store.modified && !hideQuickSaveBtn ? (
|
{!saveImmediately && store.modified && !hideQuickSaveBtn ? (
|
||||||
<span>
|
<span>
|
||||||
{`当前有 ${
|
{`当前有 ${
|
||||||
|
@ -1888,7 +1891,6 @@ export default class Table extends React.Component<TableProps, object> {
|
||||||
'Table--unsaved': !!store.modified || !!store.moved
|
'Table--unsaved': !!store.modified || !!store.moved
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
{this.renderAffixHeader(tableClassName)}
|
|
||||||
{heading}
|
{heading}
|
||||||
{header}
|
{header}
|
||||||
<div
|
<div
|
||||||
|
@ -1916,6 +1918,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||||
{this.renderTableContent()}
|
{this.renderTableContent()}
|
||||||
{~store.hoverIndex ? this.renderItemActions() : null}
|
{~store.hoverIndex ? this.renderItemActions() : null}
|
||||||
</div>
|
</div>
|
||||||
|
{this.renderAffixHeader(tableClassName)}
|
||||||
{footer}
|
{footer}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue