mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat:新增图片组件,修改文件组件
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
// 全局样式
|
||||
|
||||
Reference in New Issue
Block a user