mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
commit
da4aa7d8ea
@ -1346,6 +1346,7 @@ export default class Form extends React.Component<FormProps, object> {
|
|||||||
panelClassName,
|
panelClassName,
|
||||||
headerClassName,
|
headerClassName,
|
||||||
footerClassName,
|
footerClassName,
|
||||||
|
footerWrapClassName,
|
||||||
actionsClassName,
|
actionsClassName,
|
||||||
bodyClassName,
|
bodyClassName,
|
||||||
classnames: cx,
|
classnames: cx,
|
||||||
@ -1378,6 +1379,7 @@ export default class Form extends React.Component<FormProps, object> {
|
|||||||
headerClassName,
|
headerClassName,
|
||||||
footer,
|
footer,
|
||||||
footerClassName,
|
footerClassName,
|
||||||
|
footerWrapClassName,
|
||||||
actionsClassName,
|
actionsClassName,
|
||||||
bodyClassName,
|
bodyClassName,
|
||||||
affixFooter
|
affixFooter
|
||||||
|
@ -52,6 +52,11 @@ export interface PanelSchema extends BaseSchema {
|
|||||||
*/
|
*/
|
||||||
footerClassName?: SchemaClassName;
|
footerClassName?: SchemaClassName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* footer 和 actions 外层 div 类名。
|
||||||
|
*/
|
||||||
|
footerWrapClassName?: SchemaClassName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 头部内容, 和 title 二选一。
|
* 头部内容, 和 title 二选一。
|
||||||
*/
|
*/
|
||||||
@ -80,6 +85,7 @@ export default class Panel extends React.Component<PanelProps> {
|
|||||||
'header',
|
'header',
|
||||||
'headerClassName',
|
'headerClassName',
|
||||||
'footerClassName',
|
'footerClassName',
|
||||||
|
'footerWrapClassName',
|
||||||
'actionsClassName',
|
'actionsClassName',
|
||||||
'bodyClassName'
|
'bodyClassName'
|
||||||
];
|
];
|
||||||
@ -210,6 +216,7 @@ export default class Panel extends React.Component<PanelProps> {
|
|||||||
headerClassName,
|
headerClassName,
|
||||||
actionsClassName,
|
actionsClassName,
|
||||||
footerClassName,
|
footerClassName,
|
||||||
|
footerWrapClassName,
|
||||||
children,
|
children,
|
||||||
title,
|
title,
|
||||||
footer,
|
footer,
|
||||||
@ -244,7 +251,12 @@ export default class Panel extends React.Component<PanelProps> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
let footerDom = footerDoms.length ? (
|
let footerDom = footerDoms.length ? (
|
||||||
<div ref={this.footerDom}>{footerDoms}</div>
|
<div
|
||||||
|
className={cx('Panel-footerWrap', footerWrapClassName)}
|
||||||
|
ref={this.footerDom}
|
||||||
|
>
|
||||||
|
{footerDoms}
|
||||||
|
</div>
|
||||||
) : null;
|
) : null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -268,7 +280,13 @@ export default class Panel extends React.Component<PanelProps> {
|
|||||||
{footerDom}
|
{footerDom}
|
||||||
|
|
||||||
{affixFooter && footerDoms.length ? (
|
{affixFooter && footerDoms.length ? (
|
||||||
<div ref={this.affixDom} className={cx('Panel-fixedBottom')}>
|
<div
|
||||||
|
ref={this.affixDom}
|
||||||
|
className={cx(
|
||||||
|
'Panel-fixedBottom Panel-footerWrap',
|
||||||
|
footerWrapClassName
|
||||||
|
)}
|
||||||
|
>
|
||||||
{footerDoms}
|
{footerDoms}
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
Loading…
Reference in New Issue
Block a user