UNPKG

fastlion-amis

Version:

一种MIS页面生成工具

32 lines (31 loc) 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DrawerAction = void 0; var tslib_1 = require("tslib"); var Action_1 = require("./Action"); /** * 打开抽屉动作 * * @export * @class DrawerAction * @implements {Action} */ var DrawerAction = /** @class */ (function () { function DrawerAction() { } DrawerAction.prototype.run = function (action, renderer, event) { return (0, tslib_1.__awaiter)(this, void 0, void 0, function () { var store; return (0, tslib_1.__generator)(this, function (_a) { store = renderer.props.store; store.setCurrentAction(action); store.openDrawer(action.args); return [2 /*return*/]; }); }); }; return DrawerAction; }()); exports.DrawerAction = DrawerAction; (0, Action_1.registerAction)('drawer', new DrawerAction()); //# sourceMappingURL=./actions/DrawerAction.js.map