|
|
|
@ -16,7 +16,7 @@
|
|
|
|
|
widget: { |
|
|
|
|
name: "触发arr和dims变化", |
|
|
|
|
arr: [], |
|
|
|
|
dims: {}, |
|
|
|
|
dims: [], |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -84,11 +84,12 @@
|
|
|
|
|
addArrFirst: function () { |
|
|
|
|
// 修改arr在前,先触发arr的watch 再触发widget.**的监听 |
|
|
|
|
this.model.widget.arr.push(BI.UUID()); |
|
|
|
|
Fix.set(this.model.widget.dims, BI.UUID(), {}); |
|
|
|
|
this.model.widget.dims.push(BI.UUID()); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
addDimFirst: function () { |
|
|
|
|
// 修改dim在前先执行 widget.** 再出发arr的watch |
|
|
|
|
Fix.set(this.model.widget.dims, BI.UUID(), {}); |
|
|
|
|
this.model.widget.dims.push(BI.UUID()); |
|
|
|
|
this.model.widget.arr.push(BI.UUID()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|