UNPKG

655 BJavaScriptView Raw
1import { __extends } from "tslib";
2import StateAction from './state';
3/**
4 * 元素 active 的 Action,允许多个元素同时 active
5 * @class
6 * @ignore
7 */
8var ElementActive = /** @class */ (function (_super) {
9 __extends(ElementActive, _super);
10 function ElementActive() {
11 var _this = _super !== null && _super.apply(this, arguments) || this;
12 _this.stateName = 'active';
13 return _this;
14 }
15 /**
16 * Active Element
17 */
18 ElementActive.prototype.active = function () {
19 this.setState();
20 };
21 return ElementActive;
22}(StateAction));
23export default ElementActive;
24//# sourceMappingURL=active.js.map
\No newline at end of file