Commit 6d2e9737 by 李嘉林

新增背景填充方式

parent f025467f
...@@ -4,10 +4,16 @@ ...@@ -4,10 +4,16 @@
class="ThemeDataPlant" class="ThemeDataPlant"
:style="{ :style="{
'background-color': pageSettingData.backgroundColor, 'background-color': pageSettingData.backgroundColor,
'background-image':bacImage, 'background-image': `url(${pageSettingData.backgroundImage})`,
'background-repeat':pageSettingData.backgroundFit == 'repeat' ? 'repeat' : 'no-repeat', 'background-size': pageSettingData.backgroundFit!='equiratioFill'?'100% auto':'',
'position':pageSettingData.backgroundImageLock ? 'fixed' : 'absolute', 'background-repeat':
'background-size' : '100% auto' pageSettingData.backgroundFit == 'repeat'
? 'repeat'
: 'no-repeat',
'background-position':pageSettingData.backgroundFit == 'equiratioFill'?'center':'',
'background-attachment': pageSettingData.backgroundImageLock
? 'fixed'
: 'local',
}" }"
> >
</div> </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