@whitesev/pops 1.9.5 → 1.9.6

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.amd.js CHANGED
@@ -9603,6 +9603,12 @@ define((function () { 'use strict';
9603
9603
  this.$data.guid = guid;
9604
9604
  this.$el.$shadowContainer = ShadowInfo.$shadowContainer;
9605
9605
  this.$el.$shadowRoot = ShadowInfo.$shadowRoot;
9606
+ this.show = this.show.bind(this);
9607
+ this.close = this.close.bind(this);
9608
+ this.toolTipAnimationFinishEvent =
9609
+ this.toolTipAnimationFinishEvent.bind(this);
9610
+ this.toolTipMouseEnterEvent = this.toolTipMouseEnterEvent.bind(this);
9611
+ this.toolTipMouseLeaveEvent = this.toolTipMouseLeaveEvent.bind(this);
9606
9612
  this.init();
9607
9613
  }
9608
9614
  init() {
@@ -9857,13 +9863,13 @@ define((function () { 'use strict';
9857
9863
  * 绑定 显示事件
9858
9864
  */
9859
9865
  onShowEvent() {
9860
- popsDOMUtils.on(this.$data.config.target, this.$data.config.triggerShowEventName, this.show.bind(this), this.$data.config.eventOption);
9866
+ popsDOMUtils.on(this.$data.config.target, this.$data.config.triggerShowEventName, this.show, this.$data.config.eventOption);
9861
9867
  }
9862
9868
  /**
9863
9869
  * 取消绑定 显示事件
9864
9870
  */
9865
9871
  offShowEvent() {
9866
- popsDOMUtils.off(this.$data.config.target, this.$data.config.triggerShowEventName, this.show.bind(this), {
9872
+ popsDOMUtils.off(this.$data.config.target, this.$data.config.triggerShowEventName, this.show, {
9867
9873
  capture: true,
9868
9874
  });
9869
9875
  }
@@ -9913,13 +9919,13 @@ define((function () { 'use strict';
9913
9919
  * 绑定 关闭事件
9914
9920
  */
9915
9921
  onCloseEvent() {
9916
- popsDOMUtils.on(this.$data.config.target, this.$data.config.triggerCloseEventName, this.close.bind(this), this.$data.config.eventOption);
9922
+ popsDOMUtils.on(this.$data.config.target, this.$data.config.triggerCloseEventName, this.close, this.$data.config.eventOption);
9917
9923
  }
9918
9924
  /**
9919
9925
  * 取消绑定 关闭事件
9920
9926
  */
9921
9927
  offCloseEvent() {
9922
- popsDOMUtils.off(this.$data.config.target, this.$data.config.triggerCloseEventName, this.close.bind(this), {
9928
+ popsDOMUtils.off(this.$data.config.target, this.$data.config.triggerCloseEventName, this.close, {
9923
9929
  capture: true,
9924
9930
  });
9925
9931
  }
@@ -9953,13 +9959,13 @@ define((function () { 'use strict';
9953
9959
  * 监听tooltip的动画结束
9954
9960
  */
9955
9961
  onToolTipAnimationFinishEvent() {
9956
- popsDOMUtils.on(this.$el.$toolTip, popsDOMUtils.getAnimationEndNameList(), this.toolTipAnimationFinishEvent.bind(this));
9962
+ popsDOMUtils.on(this.$el.$toolTip, popsDOMUtils.getAnimationEndNameList(), this.toolTipAnimationFinishEvent);
9957
9963
  }
9958
9964
  /**
9959
9965
  * 取消tooltip监听动画结束
9960
9966
  */
9961
9967
  offToolTipAnimationFinishEvent() {
9962
- popsDOMUtils.off(this.$el.$toolTip, popsDOMUtils.getAnimationEndNameList(), this.toolTipAnimationFinishEvent.bind(this));
9968
+ popsDOMUtils.off(this.$el.$toolTip, popsDOMUtils.getAnimationEndNameList(), this.toolTipAnimationFinishEvent);
9963
9969
  }
9964
9970
  /**
9965
9971
  * 鼠标|触摸进入事件
@@ -9979,13 +9985,13 @@ define((function () { 'use strict';
9979
9985
  onToolTipMouseEnterEvent() {
9980
9986
  this.clearCloseTimeoutId("MouseEvent");
9981
9987
  this.clearCloseTimeoutId("TouchEvent");
9982
- popsDOMUtils.on(this.$el.$toolTip, "mouseenter touchstart", this.toolTipMouseEnterEvent.bind(this), this.$data.config.eventOption);
9988
+ popsDOMUtils.on(this.$el.$toolTip, "mouseenter touchstart", this.toolTipMouseEnterEvent, this.$data.config.eventOption);
9983
9989
  }
9984
9990
  /**
9985
9991
  * 取消监听鼠标|触摸事件
9986
9992
  */
9987
9993
  offToolTipMouseEnterEvent() {
9988
- popsDOMUtils.off(this.$el.$toolTip, "mouseenter touchstart", this.toolTipMouseEnterEvent.bind(this), this.$data.config.eventOption);
9994
+ popsDOMUtils.off(this.$el.$toolTip, "mouseenter touchstart", this.toolTipMouseEnterEvent, this.$data.config.eventOption);
9989
9995
  }
9990
9996
  /**
9991
9997
  * 鼠标|触摸离开事件
@@ -9998,13 +10004,13 @@ define((function () { 'use strict';
9998
10004
  * 监听鼠标|触摸离开事件
9999
10005
  */
10000
10006
  onToolTipMouseLeaveEvent() {
10001
- popsDOMUtils.on(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent.bind(this), this.$data.config.eventOption);
10007
+ popsDOMUtils.on(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent, this.$data.config.eventOption);
10002
10008
  }
10003
10009
  /**
10004
10010
  * 取消监听鼠标|触摸离开事件
10005
10011
  */
10006
10012
  offToolTipMouseLeaveEvent() {
10007
- popsDOMUtils.off(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent.bind(this), this.$data.config.eventOption);
10013
+ popsDOMUtils.off(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent, this.$data.config.eventOption);
10008
10014
  }
10009
10015
  }
10010
10016
  class PopsTooltip {