import { ICascaderItem } from '../types'; import Icon from '../../icon'; import { getPathLabel } from '../path-fns'; export interface ICascaderTagProps { path: ICascaderItem[]; onRemove(e: React.MouseEvent): void; renderValue?: (path: ICascaderItem[]) => React.ReactNode; } function CascaderTag(props: ICascaderTagProps) { const { path, renderValue, onRemove } = props; return (
{renderValue(path)}
); } export default CascaderTag;