UNPKG

714 BJavaScriptView Raw
1import { __extends } from "tslib";
2import ElementSingleState from './single-state';
3/**
4 * @ignore
5 * 仅允许单个 Element Active 的 Action
6 */
7var ElementSingleActive = /** @class */ (function (_super) {
8 __extends(ElementSingleActive, _super);
9 function ElementSingleActive() {
10 var _this = _super !== null && _super.apply(this, arguments) || this;
11 _this.stateName = 'active';
12 return _this;
13 }
14 /**
15 * 当前事件相关的 Element Active
16 */
17 ElementSingleActive.prototype.active = function () {
18 this.setState();
19 };
20 return ElementSingleActive;
21}(ElementSingleState));
22export default ElementSingleActive;
23//# sourceMappingURL=single-active.js.map
\No newline at end of file