UNPKG

zent

Version:

一套前端设计语言和基于React的实现

10 lines (9 loc) 702 B
import { __assign } from "tslib"; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import Icon from '../../icon'; import { getPathLabel } from '../path-fns'; function CascaderTag(props) { var path = props.path, renderValue = props.renderValue, onRemove = props.onRemove; return (_jsxs("div", __assign({ className: "zent-cascader-v2--tag", "data-zv": '10.0.17' }, { children: [_jsx("span", __assign({ title: getPathLabel(path), className: "zent-cascader-v2--tag-path", "data-zv": '10.0.17' }, { children: renderValue(path) }), void 0), _jsx(Icon, { type: "close", className: "zent-cascader-v2--tag-close", onClick: onRemove }, void 0)] }), void 0)); } export default CascaderTag;