fix: wGroup rotation error

This commit is contained in:
ShawnPhang 2024-11-12 13:47:43 +08:00
parent af25d7ef0c
commit e07a5cefe1

View File

@ -3,7 +3,7 @@
* @Date: 2021-08-02 09:41:41 * @Date: 2021-08-02 09:41:41
* @Description: * @Description:
* @LastEditors: ShawnPhang <https://m.palxp.cn> * @LastEditors: ShawnPhang <https://m.palxp.cn>
* @LastEditTime: 2024-08-12 09:25:33 * @LastEditTime: 2024-11-12 13:47:21
--> -->
<template> <template>
<div <div
@ -85,7 +85,9 @@ onMounted(async () => {
document.addEventListener('mousedown', touchstart, false) document.addEventListener('mousedown', touchstart, false)
document.addEventListener('mouseup', touchend, false) document.addEventListener('mouseup', touchend, false)
if (props.params?.rotate && widget.value) { if (props.params?.rotate && widget.value) {
(widget.value.style.transform += `rotate(${props.params.rotate})`) // TODO:
widget.value.style.transformOrigin = 'left top'
widget.value.style.transform += `rotate(${props.params.rotate})`
} }
}) })