mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 新增图表外层
This commit is contained in:
@@ -10,8 +10,13 @@ export const useComponentStyle = (attr: AttrType, index: number) => {
|
||||
zIndex: index,
|
||||
left: `${attr.x}px`,
|
||||
top: `${attr.y}px`,
|
||||
width: `${attr.w}px`,
|
||||
height: `${attr.h}px`
|
||||
}
|
||||
return componentStyle
|
||||
}
|
||||
export const useSizeStyle = (attr: AttrType) => {
|
||||
const sizeStyle = {
|
||||
width: `${attr.w}px`,
|
||||
height: `${attr.h}px`
|
||||
}
|
||||
return sizeStyle
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user