feat: 新增图表外层

This commit is contained in:
MTrun
2022-01-27 20:47:22 +08:00
parent be28b2990f
commit f44d119f16
4 changed files with 40 additions and 15 deletions
@@ -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
}