提交 db716ce5 编写于 作者: Q qiang

Merge branch 'dev' into alpha

......@@ -242,7 +242,9 @@ function processCss(css) {
.replace(VAR_WINDOW_TOP, offset.top + 'px')
.replace(VAR_WINDOW_BOTTOM, offset.bottom + 'px')
}
return css.replace(/\{.+?\}/gs, css => css.replace(UPX_RE, function (a, b) {
return uni.upx2px(b) + 'px'
}))
return css.replace(/\{.+?\}/gs, function (css) {
return css.replace(UPX_RE, function (a, b) {
return uni.upx2px(b) + 'px'
})
})
}
......@@ -250,9 +250,11 @@ function processCss(css) {
.replace(BODY_SCOPED_RE, page)
.replace(BODY_RE, '')
.replace(PAGE_SCOPED_RE, 'body.' + page + ' uni-page-body')
.replace(/\{.+?\}/gs, css => css.replace(UPX_RE, function (a, b) {
return uni.upx2px(b) + 'px'
}))
.replace(/\{.+?\}/gs, function (css) {
return css.replace(UPX_RE, function (a, b) {
return uni.upx2px(b) + 'px'
})
})
}
function getPage() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册