UNPKG

mui-component

Version:

some custom mui components

33 lines (32 loc) 1.28 kB
import type { ReactNode, CSSProperties } from "react"; export declare const StatusRender: { (props: StatusRenderProps): import("react/jsx-runtime").JSX.Element; displayName: string; }; export type shownType = "success" | "success2" | "warning" | "error" | "process" | "process0" | "default" | "edit"; export interface IStatusConvertRelateProps { /** 指定状态颜色 */ statusColorConvert?: (status?: string) => string; /** 指定状态-> success等显示态的对应关系 */ statusTypeConvert?: (status?: string) => shownType; /** 指定状态对应的显示文本 */ statusTextConvert?: (status?: string) => ReactNode; /** 状态转换(原始状态转化为内置的状态) */ statusConvert?: (status?: string) => string; } export interface StatusRenderProps extends IStatusConvertRelateProps { color?: string; status?: string; type?: shownType; text?: ReactNode; /** 状态文本的span的style */ textSpanStyle?: CSSProperties; /** 状态文本前的点的span的style */ dotSpanStyle?: CSSProperties; /** 当不存在status文本时显示的内容 * @default '-'' */ noStatusText?: ReactNode; /** 废弃/作废/无效/禁用是否显示删除线 */ deleteLine?: boolean; }