We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d67d25f commit 8f9bf29Copy full SHA for 8f9bf29
src/core/render/index.js
@@ -104,10 +104,12 @@ export function renderMixin (proto) {
104
let path = m[1]
105
106
dom.toggleClass(el, 'add', 'has-mask')
107
- if (isAbsolutePath(m[1])) {
+ if (!isAbsolutePath(m[1])) {
108
path = getPath(getBasePath(this.config.basePath), m[1])
109
}
110
el.style.backgroundImage = `url(${path})`
111
+ el.style.backgroundSize = 'cover'
112
+ el.style.backgroundPosition = 'center center'
113
114
html = html.replace(m[0], '')
115
0 commit comments