@flatbiz/antd
Version:
23 lines (20 loc) • 473 B
TypeScript
import { SpaceProps } from 'antd';
import { FC } from 'react';
export type TagGroupDataItem = {
label: string;
value: string | number;
color?: string;
};
export type TagGroupProps = {
dataList: TagGroupDataItem[];
/**
* 颜色配置数据,例如:{ 1:'red', 2: 'blue'} key值与 dataList中value相同
*/
colorMap?: Record<string, string>;
spaceProps?: SpaceProps;
};
/**
* Tag 列表显示
*/
export declare const TagGroup: FC<TagGroupProps>;
export {};