feat: 增加视图和组件判断

This commit is contained in:
fit2cloud-chenyw 2021-03-31 16:35:10 +08:00
parent 8bbb8c7e9b
commit e3c6b951dc

View File

@ -245,18 +245,10 @@ export default {
component.propValue = propValue
}
})
} else {
component = deepCopy(ApplicationContext.getService(componentInfo.id))
}
debugger
//
// componentList.forEach(componentTemp => {
// if (componentInfo.id === componentTemp.id) {
// component = deepCopy(componentTemp)
// }
// })
component = deepCopy(ApplicationContext.getService(componentInfo.id))
component.style.top = e.offsetY
component.style.left = e.offsetX
component.id = newComponentId