Closed daLeiStrive closed 1 month ago
const { width, height, x, y } = leafer.editor.editBox.rect 如上代码发现x y 都是 0 只能获取宽高
const { width, height, x, y } = leafer.editor.editBox.rect
可以通过editor.element.x 获取,或通过包围盒获取: https://www.leaferjs.com/ui/reference/property/bounds.html
好的,感谢感谢
const { width, height, x, y } = leafer.editor.editBox.rect
如上代码发现x y 都是 0 只能获取宽高