style(背景图组件): 优化并删除冗余代码
This commit is contained in:
parent
1638266d93
commit
5fe8687e4d
@ -26,26 +26,13 @@ const props = defineProps({
|
|||||||
// 层级样式
|
// 层级样式
|
||||||
layerStyle: {
|
layerStyle: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => ({
|
default: () => ({}),
|
||||||
width: '100vw',
|
|
||||||
minHeight: '100vh',
|
|
||||||
position: 'absolute',
|
|
||||||
top: '0',
|
|
||||||
left: '0',
|
|
||||||
zIndex: 0,
|
|
||||||
pointerEvents: 'none',
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 图片样式
|
// 图片样式
|
||||||
imageStyle: {
|
imageStyle: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => ({
|
default: () => ({}),
|
||||||
width: '100vw',
|
|
||||||
objectFit: 'cover',
|
|
||||||
objectPosition: 'center top',
|
|
||||||
display: 'block',
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 图片类名
|
// 图片类名
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user