import React from 'react'; import { BreadcrumbItem } from '../breadcrumb'; interface attributesOptionProps { finishEditFunc?: Function; onClick?: Function; onChange?: Function; } export interface propTypes { /** header一级标题*/ title?: string; /** header右侧按钮区 */ buttons?: []; /** header标准内容 */ attributes?: []; /**header标准内容处理事件参考info【onclick,onchange,finishEditFunc】 */ attributesOption?: attributesOptionProps; /** header自定义内容区 */ children?: React.ReactNode | null; /** 面包屑 三级标题以上自动出现返回箭头,可用goback覆盖*/ breadcrumb?: BreadcrumbItem[]; /** 面包屑回调的方法 */ push?: () => {}; /** header子标题 */ subTitle?: string; /** header状态 'succeed','warning','error'*/ status?: 'succeed' | 'warning' | 'error'; /** header状态文字 */ statusText?: any; /** header选项卡 */ tabs?: []; /** 是否出现返回箭头 */ hasBackArrow?: boolean; /** 返回箭头回调函数 */ goBackFunc?: Function; /** header标题介绍性文字最大行数 */ instructionLine?: number; /** header标题介绍性文字 */ instructionText?: string; /** 是否去除祖佑边距 */ isNest?: boolean; /** 是否显示title后的冒号 */ needTitleColon?: boolean; statusClass?: string; statusStyle?: Object | undefined; /** 内置样式 */ style?: object; /** 样式类 */ className?: string; } interface defaultType { title: string; children?: null; instructionLine: number; needTitleColon?: boolean; } declare class Header extends React.Component { static defaultProps: defaultType; renderTitle: (title: any, subTitle: any, status: any, statusText: any, statusStyle: any, breadcrumbLength: any, hasBackArrow: any, goBackFunc: any, statusClass: any) => React.ReactNode[] | null; renderBreadcrumb: (breadcrumb: any, push: any) => false | JSX.Element; renderButtons: (buttons: any) => any; renderInstructionText: (instructionLine: any, instructionText: any) => JSX.Element | null; renderTabs: (tabs: any, attributes: any, attributesOption: any) => any; render(): JSX.Element; } export default Header;