import React from 'react'; import type { ModalProps } from 'antd'; export type BreadcrumbType = 'breadcrumb' | 'copy' | 'info' | 'version' | 'tag'; export type NavType = 'money' | 'thousandth' | 'enumName' | 'enumCodeName' | 'date' | 'dateTime'; export interface BreadcrumbColumnType { /** * @description 类型 * @default - */ type?: BreadcrumbType; /** * @description 值类型 * @default - */ valueType?: BreadcrumbType; /** * @description 值 * @default - */ value: any; /** * @description 宽度 * @default - */ width?: string | number; /** * @description 是否显示 * @default - */ show?: boolean; /** * @description 标签 * @default - */ tag?: string | React.ReactNode | (string | React.ReactNode)[]; } export interface SubDescribeColumnType { /** * @description 描述内容 * @default - */ label?: string | React.ReactNode; /** * @description 类型 * @default - */ type?: NavType; /** * @description 值类型 * @default - */ valueType?: NavType; /** * @description 精度 * @default - */ precision?: number; /** * @description 值 * @default - */ value?: any; /** * @description 是否显示 * @default - */ show?: boolean; /** * @description 枚举代码 * @default - */ code?: string; } export interface DescribeColumnType { /** * @description 描述内容 * @default - */ label?: string | React.ReactNode; /** * @description 是否显示 * @default - */ copyable?: boolean; /** * @description 值 * @default - */ value?: string | React.ReactNode; /** * @description 是否显示 * @default - */ show?: boolean; /** * @description 链接 * @default - */ link?: string; /** * @description 多值配置 * @default - */ items?: { copyable?: boolean; value: string | React.ReactNode; link?: string; tag?: string | React.ReactNode | (string | React.ReactNode)[]; }[]; /** * @description 宽度 * @default - */ width?: string | number; /** * @description 标签 * @default - */ tag?: string | React.ReactNode | (string | React.ReactNode)[]; } export interface ProHeaderType { /** * @description 标题 * @default - */ title?: string | React.ReactNode; /** * @description 面包屑配置数据 * @deprecated 将于下个版本 4.0.0 被弃用 * @default - */ breadcrumbList?: BreadcrumbColumnType[]; /** * @description 面包屑配置数据 * @default - */ breadcrumbColumns?: BreadcrumbColumnType[]; /** * @description 是否隐藏溢出 * @default - */ bodyOverFlowHidden?: boolean; /** * @description 操作渲染 * @default - */ actionRender?: React.ReactNode | React.ReactNode[]; /** * @description 次级描述数据源配置 * @deprecated 将于下个版本 4.0.0 被弃用 * @default - */ describeList?: SubDescribeColumnType[]; /** * @description 主要描述数据源配置 * @default - */ describeColumns?: DescribeColumnType[]; /** * @description 次级描述数据源配置 * @default - */ subDescribeColumns?: SubDescribeColumnType[]; /** * @description 次级描述是否展开 * @default - */ collapsed?: boolean; /** * @description 固定悬浮顶部距离 * @default - */ fixedTop?: string | number; /** * @description 是否显示返回按钮 * @default - */ showBack?: boolean; showShadow?: boolean; /** * @description 自动返回 * @default 2 */ autoBack?: number; /** * @description 是否开启返回提示 * @default false */ isConfirmBack?: boolean; /** * @description 返回时二次确认弹框的属性 * @default - */ isConfirmBackModalProps?: ModalProps; /** * @description 层级 * @default - */ zIndex?: number; /** * @description 返回 * @default 100 */ onBack?: () => void; [key: string]: any; }