提交 6b46f260 编写于 作者: Q qiang

fix: addStylesClient 去除 flags s

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