Commit 6d2e9737 by 李嘉林

新增背景填充方式

parent f025467f
......@@ -4,10 +4,16 @@
class="ThemeDataPlant"
:style="{
'background-color': pageSettingData.backgroundColor,
'background-image':bacImage,
'background-repeat':pageSettingData.backgroundFit == 'repeat' ? 'repeat' : 'no-repeat',
'position':pageSettingData.backgroundImageLock ? 'fixed' : 'absolute',
'background-size' : '100% auto'
'background-image': `url(${pageSettingData.backgroundImage})`,
'background-size': pageSettingData.backgroundFit!='equiratioFill'?'100% auto':'',
'background-repeat':
pageSettingData.backgroundFit == 'repeat'
? 'repeat'
: 'no-repeat',
'background-position':pageSettingData.backgroundFit == 'equiratioFill'?'center':'',
'background-attachment': pageSettingData.backgroundImageLock
? 'fixed'
: 'local',
}"
>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment