@dolphinweex/weex-vue-render 0.2.69 → 0.2.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +6 -3
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -5825,9 +5825,11 @@ function getImage(weex) {
|
|
|
5825
5825
|
if (!url || url === 'undefined') {
|
|
5826
5826
|
return '';
|
|
5827
5827
|
}
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5828
|
+
// 编码空格与括号,避免 CSS url() 与资源解析失败
|
|
5829
|
+
if (url.includes(' ') || url.includes('(') || url.includes(')')) {
|
|
5830
|
+
let processed = url.replace(/\s/g, match => encodeURIComponent(match));
|
|
5831
|
+
processed = processed.replace(/\(/g, '%28').replace(/\)/g, '%29');
|
|
5832
|
+
return processed
|
|
5831
5833
|
}
|
|
5832
5834
|
}catch(e){
|
|
5833
5835
|
// 静默处理错误,返回空字符串
|
|
@@ -11291,6 +11293,7 @@ var dom = {
|
|
|
11291
11293
|
var appendCss = utils$3.appendCss;
|
|
11292
11294
|
key = camelToKebab(key);
|
|
11293
11295
|
var stylesText = '';
|
|
11296
|
+
styles["fontDisplay"] = "block"
|
|
11294
11297
|
for (var k in styles) {
|
|
11295
11298
|
if (styles.hasOwnProperty(k)) {
|
|
11296
11299
|
stylesText += camelToKebab(k) + ':' + styles[k] + ';';
|
package/package.json
CHANGED