@dolphinweex/weex-vue-render 0.2.66 → 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.
@@ -5820,6 +5820,28 @@ 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) {
@@ -5829,6 +5851,9 @@ function getImage(weex) {
5829
5851
  src: this.checkTrim(this.src),
5830
5852
  },
5831
5853
  on: {
5854
+ harmony_touchstart: this.harmonyTouchStart,
5855
+ harmony_touchmove: this.harmonyTouchMove,
5856
+ harmony_touchend: this.harmonyTouchEnd,
5832
5857
  weex$tap: this.handleClick,
5833
5858
  },
5834
5859
  staticClass: "weex-image weex-el",
@@ -7968,12 +7993,15 @@ var slideMixin = {
7968
7993
  }
7969
7994
  },
7970
7995
  _getWrapperSize: function _getWrapperSize () {
7971
- var wrapper = this.$refs.wrapper;
7972
- if (wrapper) {
7973
- var rect = wrapper.getBoundingClientRect();
7974
- this._wrapperWidth = rect.width;
7975
- this._wrapperHeight = rect.height;
7976
- this.maxHeight = react.height;
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){
7977
8005
  }
7978
8006
  },
7979
8007
 
package/package.json CHANGED
@@ -49,5 +49,5 @@
49
49
  "type": "git",
50
50
  "url": "git+ssh://git@github.com/weexteam/weex-vue-render.git"
51
51
  },
52
- "version": "0.2.66"
52
+ "version": "0.2.68"
53
53
  }