zent
Version:
一套前端设计语言和基于React的实现
18 lines (17 loc) • 903 B
JavaScript
import { __assign, __extends } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import BaseTab from '../base/BaseTab';
var ButtonTab = (function (_super) {
__extends(ButtonTab, _super);
function ButtonTab() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.typeName = 'button';
return _this;
}
ButtonTab.prototype.render = function () {
var _a = this.props, actived = _a.actived, disabled = _a.disabled, children = _a.children;
return (_jsx("div", __assign({ role: "tab", className: this.tabsCls, "aria-disabled": disabled, "aria-selected": actived, onClick: this.onClick, "data-zv": '10.0.17' }, { children: _jsx("div", __assign({ className: "zent-tabs-tab-inner", "data-zv": '10.0.17' }, { children: children }), void 0) }), void 0));
};
return ButtonTab;
}(BaseTab));
export default ButtonTab;