/**
* @file TitleBar。
* @description
* @author fex
* @param 参数说明:
* title 标题内容
* titleClassName 标题类名,默认为 bg-light lter b-b
* right 可以传入右侧节点, 当有右侧时自动采用 hbox 来左右布局。
*/
///
import React from 'react';
import { ClassNamesFn } from 'amis-core';
interface TitleBarProps {
className?: string;
title: React.ReactNode;
titleClassName?: string;
right?: boolean;
classPrefix: string;
classnames: ClassNamesFn;
}
export declare class TitleBar extends React.PureComponent {
static defaultProps: {
className: string;
title: string;
titleClassName: string;
right: boolean;
};
render(): JSX.Element;
}
declare const _default: {
new (props: Pick, never> & {
title?: React.ReactNode;
right?: boolean | undefined;
titleClassName?: string | undefined;
} & {
className?: string | undefined;
} & import("packages/amis-core/lib/theme").ThemeOuterProps): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, never> & {
title?: React.ReactNode;
right?: boolean | undefined;
titleClassName?: string | undefined;
} & {
className?: string | undefined;
} & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, never> & {
title?: React.ReactNode;
right?: boolean | undefined;
titleClassName?: string | undefined;
} & {
className?: string | undefined;
} & import("packages/amis-core/lib/theme").ThemeOuterProps>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, never> & {
title?: React.ReactNode;
right?: boolean | undefined;
titleClassName?: string | undefined;
} & {
className?: string | undefined;
} & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, never> & {
title?: React.ReactNode;
right?: boolean | undefined;
titleClassName?: string | undefined;
} & {
className?: string | undefined;
} & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, never> & {
title?: React.ReactNode;
right?: boolean | undefined;
titleClassName?: string | undefined;
} & {
className?: string | undefined;
} & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, never> & {
title?: React.ReactNode;
right?: boolean | undefined;
titleClassName?: string | undefined;
} & {
className?: string | undefined;
} & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, never> & {
title?: React.ReactNode;
right?: boolean | undefined;
titleClassName?: string | undefined;
} & {
className?: string | undefined;
} & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, never> & {
title?: React.ReactNode;
right?: boolean | undefined;
titleClassName?: string | undefined;
} & {
className?: string | undefined;
} & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, never> & {
title?: React.ReactNode;
right?: boolean | undefined;
titleClassName?: string | undefined;
} & {
className?: string | undefined;
} & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof TitleBar;
};
export default _default;