import { HtmlHTMLAttributes, ReactNode } from 'react';
import { TagProps, BadgeProps, SpaceProps } from 'antd';
type AliasType = {
alias?: ReactNode;
};
type EnumItem = {
label?: ReactNode;
value?: ValueType;
badge?: Omit & AliasType & {
status?: string;
};
tag?: TagProps & AliasType;
text?: HtmlHTMLAttributes & AliasType;
[key: string]: any;
};
export type EnumData = EnumItem[];
export type FieldNamesType = {
label?: string;
value?: string;
[key: string]: any;
};
export interface BizDictionaryProps extends SpaceProps {
valueEnum: EnumData;
value?: ValueType | ValueType[];
defaultLabel?: ReactNode;
type?: 'text' | 'tag' | 'badge';
propsName?: string;
fieldNames?: FieldNamesType;
match?: (itemValue: ValueType, currentValue: ValueType) => boolean;
}
export {};