mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 解决缩放大于100%的问题
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
// 锚点位置
|
||||
|
||||
Reference in New Issue
Block a user