/** * text组件,用于只需要显示,不需要输入的字段场景 * todo 支持样式设置 */ import React from 'react'; import type { ConfigType } from 'dayjs'; import type { Dayjs } from 'dayjs'; import './style.less'; /** @deprecated 命名保留兼容;实际返回 dayjs 实例(antd 5)。 */ export declare const momentFormatter: (value: ConfigType | null) => Dayjs | null; export declare const Text: ({ value, addonBefore, addonAfter, prefix, suffix, ...rest }: { [x: string]: any; value: any; addonBefore: any; addonAfter: any; prefix: any; suffix: any; }) => React.JSX.Element; export declare const TextAreaDetail: ({ value }: { value: any; }) => React.JSX.Element; export declare const PasswordDetail: ({ value }: { value: any; }) => "--" | "******"; /** * optiontext组件,显示组件,与text相似,适用于select,radio这样的组件的结果展示使用 */ export declare const OptionText: ({ options, value, labelInValue }: { options: any; value: any; labelInValue: any; }) => string; export declare const MomentText: (defaultFormat: any) => ({ value, format }: { value: any; format: any; }) => string; export declare const RangeText: (defaultFormat: any) => (props: any) => string; export declare const DateText: ({ value, format }: { value: any; format: any; }) => string; export declare const TimeText: ({ value, format }: { value: any; format: any; }) => string; export declare const DateTimeText: ({ value, format }: { value: any; format: any; }) => string; export declare const RangeDateText: (props: any) => string; export declare const RateText: ({ value }: { value: any; }) => React.JSX.Element | "--"; export declare const CheckText: ({ value, label, ...props }: { [x: string]: any; value: any; label: any; }) => React.JSX.Element; export declare const SwitchText: ({ value }: { value: any; }) => React.JSX.Element | "--";