|
@@ -1,3 +1,4 @@
|
|
|
+import { createProxyEffect } from "queenjs";
|
|
|
import { EditorModule } from "..";
|
|
|
import { EditorMode } from "../../typings";
|
|
|
import { editActions } from "./edit";
|
|
@@ -8,9 +9,11 @@ export const initActions = EditorModule.action({
|
|
|
const { historyCtrl } = this.controls;
|
|
|
historyCtrl.proxyActions(Object.keys(editActions));
|
|
|
this.controls.compUICtrl.init();
|
|
|
- // createProxyEffect(this.store, (type, paths, value) => {
|
|
|
- // historyCtrl.onChange(this.store, type, paths, value);
|
|
|
- // });
|
|
|
+
|
|
|
+ createProxyEffect(this.store, (type, paths, value) => {
|
|
|
+ console.log(type, paths, value);
|
|
|
+ historyCtrl.onChange(this.store, type, paths, value);
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
// 初始化数据
|