fix: 解决缩放大于100%的问题

This commit is contained in:
MTrun
2022-03-10 20:54:02 +08:00
parent d1c0cae68e
commit d15e551743
5 changed files with 17 additions and 7 deletions
@@ -12,11 +12,10 @@ export const useComponentStyle = (attr: AttrType, index: number) => {
}
export const useSizeStyle = (attr: AttrType, scale?: number) => {
const sizeStyle = {
return {
width: `${scale ? scale * attr.w : attr.w}px`,
height: `${scale ? scale * attr.h : attr.h}px`
}
return sizeStyle
}
// 锚点位置