feat:新增图片组件,修改文件组件

This commit is contained in:
奔跑的面条
2022-05-01 17:36:23 +08:00
parent bacdcd1760
commit 3bcef87d6c
9 changed files with 162 additions and 40 deletions
+2 -3
View File
@@ -16,11 +16,10 @@ export const getComponentAttrStyle = (attr: AttrType, index: number) => {
// 设置大小
export const getSizeStyle = (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
})
}
// 全局样式