@dolphinweex/weex-vue-render 0.2.67 → 0.2.68
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 +34 -8
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -5820,17 +5820,40 @@ function getImage(weex) {
|
|
|
5820
5820
|
}
|
|
5821
5821
|
return url
|
|
5822
5822
|
},
|
|
5823
|
+
|
|
5824
|
+
harmonyTouchStart(event){
|
|
5825
|
+
if (this.$listeners && this.$listeners.harmony_touchstart) {
|
|
5826
|
+
setTimeout(() => {
|
|
5827
|
+
this.$listeners.harmony_touchstart(event)
|
|
5828
|
+
}, 0);
|
|
5829
|
+
}
|
|
5830
|
+
},
|
|
5831
|
+
harmonyTouchMove(event){
|
|
5832
|
+
if (this.$listeners && this.$listeners.harmony_touchmove) {
|
|
5833
|
+
setTimeout(() => {
|
|
5834
|
+
this.$listeners.harmony_touchmove(event)
|
|
5835
|
+
}, 0);
|
|
5836
|
+
}
|
|
5837
|
+
},
|
|
5838
|
+
harmonyTouchEnd(event){
|
|
5839
|
+
if (this.$listeners && this.$listeners.harmony_touchend) {
|
|
5840
|
+
setTimeout(() => {
|
|
5841
|
+
this.$listeners.harmony_touchend(event)
|
|
5842
|
+
}, 0);
|
|
5843
|
+
}
|
|
5844
|
+
},
|
|
5823
5845
|
},
|
|
5824
5846
|
|
|
5825
5847
|
render: function render(createElement) {
|
|
5826
5848
|
return createElement("figure", {
|
|
5827
5849
|
attrs: {
|
|
5828
|
-
...this.$attrs,
|
|
5829
5850
|
"weex-type": "img",
|
|
5830
5851
|
src: this.checkTrim(this.src),
|
|
5831
5852
|
},
|
|
5832
5853
|
on: {
|
|
5833
|
-
|
|
5854
|
+
harmony_touchstart: this.harmonyTouchStart,
|
|
5855
|
+
harmony_touchmove: this.harmonyTouchMove,
|
|
5856
|
+
harmony_touchend: this.harmonyTouchEnd,
|
|
5834
5857
|
weex$tap: this.handleClick,
|
|
5835
5858
|
},
|
|
5836
5859
|
staticClass: "weex-image weex-el",
|
|
@@ -7970,12 +7993,15 @@ var slideMixin = {
|
|
|
7970
7993
|
}
|
|
7971
7994
|
},
|
|
7972
7995
|
_getWrapperSize: function _getWrapperSize () {
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7996
|
+
try{
|
|
7997
|
+
var wrapper = this.$refs.wrapper;
|
|
7998
|
+
if (wrapper) {
|
|
7999
|
+
var rect = wrapper.getBoundingClientRect();
|
|
8000
|
+
this._wrapperWidth = rect.width;
|
|
8001
|
+
this._wrapperHeight = rect.height;
|
|
8002
|
+
this.maxHeight = react.height;
|
|
8003
|
+
}
|
|
8004
|
+
}catch(e){
|
|
7979
8005
|
}
|
|
7980
8006
|
},
|
|
7981
8007
|
|
package/package.json
CHANGED