|
@@ -71,7 +71,7 @@ export const store = EditorModule.store({
|
|
|
|
|
|
this.store.currCompId = compId;
|
|
this.store.currCompId = compId;
|
|
this.store.currStreamCardId = "";
|
|
this.store.currStreamCardId = "";
|
|
-
|
|
|
|
|
|
+
|
|
const find = (objs:string[], id:string):boolean=>{
|
|
const find = (objs:string[], id:string):boolean=>{
|
|
if (!objs || objs.length < 1) return false
|
|
if (!objs || objs.length < 1) return false
|
|
|
|
|
|
@@ -130,6 +130,10 @@ export const store = EditorModule.store({
|
|
const { pageCompIds } = this.store;
|
|
const { pageCompIds } = this.store;
|
|
const [selComp] = pageCompIds.splice(selIndex, 1);
|
|
const [selComp] = pageCompIds.splice(selIndex, 1);
|
|
pageCompIds.splice(targetIndex, 0, selComp);
|
|
pageCompIds.splice(targetIndex, 0, selComp);
|
|
|
|
+
|
|
|
|
+ // const currStreamCardId = this.store.currStreamCardId;
|
|
|
|
+ // this.store.setCurrComp("")
|
|
|
|
+ // this.store.currStreamCardId = currStreamCardId;
|
|
},
|
|
},
|
|
setTextEditingState(state: boolean) {
|
|
setTextEditingState(state: boolean) {
|
|
this.store.textEditingState = state;
|
|
this.store.textEditingState = state;
|