Commit 0a572ed2 authored by 郭志伟's avatar 郭志伟

Merge branch 'fix/bgsize' into 'master'

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

See merge request !41
parents 43b13382 24f7bed2
......@@ -9,7 +9,8 @@ export default class TransformStyleMixin extends Vue {
transformStyle(styleObj, point = {}, name) {
const style = {
backgroundRepeat: 'no-repeat',
backgroundSize: 'cover'
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