Commit 24f7bed2 authored by 郭志伟's avatar 郭志伟

fix(bgsize): 修复bgsize兼容问题

parent fd08b2bb
...@@ -9,7 +9,8 @@ export default class TransformStyleMixin extends Vue { ...@@ -9,7 +9,8 @@ export default class TransformStyleMixin extends Vue {
transformStyle(styleObj, point = {}, name) { transformStyle(styleObj, point = {}, name) {
const style = { const style = {
backgroundRepeat: 'no-repeat', backgroundRepeat: 'no-repeat',
backgroundSize: '100% auto' backgroundSize: 'cover',
backgroundPosition: 'center'
}; };
if (!styleObj) { return style; } if (!styleObj) { return style; }
for (const key of Object.keys(styleObj)) { for (const key of Object.keys(styleObj)) {
......
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