UNPKG

zent

Version:

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

20 lines (19 loc) 889 B
import { __assign, __extends, __rest } from "tslib"; import { jsx as _jsx } from "react/jsx-runtime"; import { Component } from 'react'; var BreadcrumbItem = (function (_super) { __extends(BreadcrumbItem, _super); function BreadcrumbItem() { return _super !== null && _super.apply(this, arguments) || this; } BreadcrumbItem.prototype.render = function () { var _a = this.props, href = _a.href, name = _a.name, others = __rest(_a, ["href", "name"]); if (this.props.children) { return this.props.children; } return href ? (_jsx("a", __assign({}, others, { href: href, "data-zv": '10.0.17' }, { children: name }), void 0)) : (_jsx("span", __assign({}, others, { "data-zv": '10.0.17' }, { children: name }), void 0)); }; return BreadcrumbItem; }(Component)); export { BreadcrumbItem }; export default BreadcrumbItem;