12345678910111213141516171819202122232425262728 |
- import { set } from "lodash";
- import { EditorModule } from "..";
- import { DesignComp } from "../../objects/DesignTemp/DesignComp";
- import { CompObject } from "../../controllers/SelectCtrl/compObj";
- import { ICompKeys } from "../../typings";
- import { queenApi } from "queenjs";
- export const manualActions = EditorModule.action({
-
- updateCompData(comp: DesignComp, path: string, value: any) {
- const { historyCtrl } = this.controls;
- historyCtrl.historyActionDoing = true;
- historyCtrl.historyCombine = true;
- set(comp, path, value);
- // call action method
- historyCtrl.historyCombine = false;
- historyCtrl.historyActionDoing = false;
- },
- submitUpdate() {
- this.controls.historyCtrl.history.submit();
- },
- });
|