mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 19:08:45 +08:00
样式优化
This commit is contained in:
parent
40b57ab6ce
commit
8887c582ad
@ -72,6 +72,7 @@
|
||||
|
||||
.#{$ns}LocationControl {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.#{$ns}LocationControl:not(.is-inline) > .#{$ns}LocationPicker {
|
||||
|
@ -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} />
|
||||
|
@ -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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user