@dolphinweex/weex-vue-render 0.2.75 → 0.2.77
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 +3 -2
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -5827,6 +5827,7 @@ function getImage(weex) {
|
|
|
5827
5827
|
if (!url || url === 'undefined') {
|
|
5828
5828
|
return '';
|
|
5829
5829
|
}
|
|
5830
|
+
url = url.replace(/\s+/g, '')
|
|
5830
5831
|
// 编码空格与括号,避免 CSS url() 与资源解析失败
|
|
5831
5832
|
if (url.includes(' ') || url.includes('(') || url.includes(')')) {
|
|
5832
5833
|
let processed = url.replace(/\s/g, match => encodeURIComponent(match));
|
|
@@ -6087,7 +6088,7 @@ function getThrottledScroll (context) {
|
|
|
6087
6088
|
var evtObj = {
|
|
6088
6089
|
contentSize: { width: rect.width, height: rect.height },
|
|
6089
6090
|
contentOffset: {
|
|
6090
|
-
x: wrapper.scrollLeft,
|
|
6091
|
+
x: -wrapper.scrollLeft * rate,
|
|
6091
6092
|
/**
|
|
6092
6093
|
* positive direciton for y-axis is down.
|
|
6093
6094
|
* so should use negative operation on scrollTop.
|
|
@@ -11009,7 +11010,7 @@ function transitionOnce (vnode, config, callback) {
|
|
|
11009
11010
|
vnode = vnode[0];
|
|
11010
11011
|
}
|
|
11011
11012
|
|
|
11012
|
-
var duration = config.duration ||
|
|
11013
|
+
var duration = config.duration || 0; // ms
|
|
11013
11014
|
var timing = config.timingFunction || 'linear';
|
|
11014
11015
|
var delay = config.delay || 0; // ms
|
|
11015
11016
|
|
package/package.json
CHANGED