Commit 2346ab17 authored by 郭志伟's avatar 郭志伟

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

parent b42f895c
......@@ -8,7 +8,8 @@ export default class TransformStyleMixin extends Vue {
// console.log('transformStyle', styleObj, element);
let style = {
backgroundRepeat: 'no-repeat',
backgroundSize: '100% auto'
backgroundSize: 'cover',
backgroundPosition: 'center'
};
if (!styleObj) { return style; }
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