forked from opentiny/tiny-engine
fix: abaolute canvas init inlineStyle should be string (#730)
This commit is contained in:
parent
a442108e2b
commit
1ed91983b0
|
@ -716,11 +716,7 @@ export const onMouseUp = () => {
|
|||
if (absolute) {
|
||||
targetNode.node = getSchema()
|
||||
data.props = data.props || {}
|
||||
data.props.style = {
|
||||
position: 'absolute',
|
||||
top: dragState.mouse.y + 'px',
|
||||
left: dragState.mouse.x + 'px'
|
||||
}
|
||||
data.props.style = `position: absolute; top: ${dragState.mouse.y}px; left: ${dragState.mouse.x}px`
|
||||
}
|
||||
|
||||
insertNode(targetNode, position)
|
||||
|
|
Loading…
Reference in New Issue