|
1 | | -import{inject}from"dependency-inject" |
| 1 | +import{inject}from"dob" |
2 | 2 | import{Action}from"dob" |
3 | 3 | import*as_from"lodash" |
4 | 4 | import*asSortablefrom"sortablejs" |
@@ -327,7 +327,7 @@ export default class ViewportAction { |
327 | 327 | this.setRootInstanceKey(instanceKey) |
328 | 328 | } |
329 | 329 |
|
330 | | -this.store.instances.set(instanceKey,{...instanceInfo}) |
| 330 | +this.store.instances.set(instanceKey,{...instanceInfo}) |
331 | 331 | }) |
332 | 332 | } |
333 | 333 |
|
@@ -564,7 +564,7 @@ export default class ViewportAction { |
564 | 564 | // 如果用户传了 props,将其设置在 dataset 中 |
565 | 565 | if(typeofpropsData.props==="object"){ |
566 | 566 | if(event.item.dataset.props){ |
567 | | -propsData.props={...(propsData.props||{}), ...JSON.parse(event.item.dataset.props)} |
| 567 | +propsData.props={...(propsData.props||{}), ...JSON.parse(event.item.dataset.props)} |
568 | 568 | } |
569 | 569 | event.item.dataset.props=JSON.stringify(propsData.props) |
570 | 570 | } |
|