fix: 新增图表居中拖拽

This commit is contained in:
MTrun
2022-01-27 23:16:51 +08:00
parent e8999a7fdf
commit dc7db58a8e
9 changed files with 83 additions and 34 deletions
@@ -13,6 +13,7 @@ export const useComponentStyle = (attr: AttrType, index: number) => {
}
return componentStyle
}
export const useSizeStyle = (attr: AttrType) => {
const sizeStyle = {
width: `${attr.w}px`,