@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 +16 -10
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +16 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +16 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +16 -10
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +16 -10
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +16 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/handler/PopsHandler.d.ts +1 -10
- package/package.json +1 -1
- package/src/Pops.ts +1 -1
- package/src/components/drawer/index.ts +1 -5
- package/src/components/tooltip/index.ts +16 -11
- package/src/handler/PopsHandler.ts +1 -10
package/dist/index.system.js
CHANGED
|
@@ -9606,6 +9606,12 @@ System.register('pops', [], (function (exports) {
|
|
|
9606
9606
|
this.$data.guid = guid;
|
|
9607
9607
|
this.$el.$shadowContainer = ShadowInfo.$shadowContainer;
|
|
9608
9608
|
this.$el.$shadowRoot = ShadowInfo.$shadowRoot;
|
|
9609
|
+
this.show = this.show.bind(this);
|
|
9610
|
+
this.close = this.close.bind(this);
|
|
9611
|
+
this.toolTipAnimationFinishEvent =
|
|
9612
|
+
this.toolTipAnimationFinishEvent.bind(this);
|
|
9613
|
+
this.toolTipMouseEnterEvent = this.toolTipMouseEnterEvent.bind(this);
|
|
9614
|
+
this.toolTipMouseLeaveEvent = this.toolTipMouseLeaveEvent.bind(this);
|
|
9609
9615
|
this.init();
|
|
9610
9616
|
}
|
|
9611
9617
|
init() {
|
|
@@ -9860,13 +9866,13 @@ System.register('pops', [], (function (exports) {
|
|
|
9860
9866
|
* 绑定 显示事件
|
|
9861
9867
|
*/
|
|
9862
9868
|
onShowEvent() {
|
|
9863
|
-
popsDOMUtils.on(this.$data.config.target, this.$data.config.triggerShowEventName, this.show
|
|
9869
|
+
popsDOMUtils.on(this.$data.config.target, this.$data.config.triggerShowEventName, this.show, this.$data.config.eventOption);
|
|
9864
9870
|
}
|
|
9865
9871
|
/**
|
|
9866
9872
|
* 取消绑定 显示事件
|
|
9867
9873
|
*/
|
|
9868
9874
|
offShowEvent() {
|
|
9869
|
-
popsDOMUtils.off(this.$data.config.target, this.$data.config.triggerShowEventName, this.show
|
|
9875
|
+
popsDOMUtils.off(this.$data.config.target, this.$data.config.triggerShowEventName, this.show, {
|
|
9870
9876
|
capture: true,
|
|
9871
9877
|
});
|
|
9872
9878
|
}
|
|
@@ -9916,13 +9922,13 @@ System.register('pops', [], (function (exports) {
|
|
|
9916
9922
|
* 绑定 关闭事件
|
|
9917
9923
|
*/
|
|
9918
9924
|
onCloseEvent() {
|
|
9919
|
-
popsDOMUtils.on(this.$data.config.target, this.$data.config.triggerCloseEventName, this.close
|
|
9925
|
+
popsDOMUtils.on(this.$data.config.target, this.$data.config.triggerCloseEventName, this.close, this.$data.config.eventOption);
|
|
9920
9926
|
}
|
|
9921
9927
|
/**
|
|
9922
9928
|
* 取消绑定 关闭事件
|
|
9923
9929
|
*/
|
|
9924
9930
|
offCloseEvent() {
|
|
9925
|
-
popsDOMUtils.off(this.$data.config.target, this.$data.config.triggerCloseEventName, this.close
|
|
9931
|
+
popsDOMUtils.off(this.$data.config.target, this.$data.config.triggerCloseEventName, this.close, {
|
|
9926
9932
|
capture: true,
|
|
9927
9933
|
});
|
|
9928
9934
|
}
|
|
@@ -9956,13 +9962,13 @@ System.register('pops', [], (function (exports) {
|
|
|
9956
9962
|
* 监听tooltip的动画结束
|
|
9957
9963
|
*/
|
|
9958
9964
|
onToolTipAnimationFinishEvent() {
|
|
9959
|
-
popsDOMUtils.on(this.$el.$toolTip, popsDOMUtils.getAnimationEndNameList(), this.toolTipAnimationFinishEvent
|
|
9965
|
+
popsDOMUtils.on(this.$el.$toolTip, popsDOMUtils.getAnimationEndNameList(), this.toolTipAnimationFinishEvent);
|
|
9960
9966
|
}
|
|
9961
9967
|
/**
|
|
9962
9968
|
* 取消tooltip监听动画结束
|
|
9963
9969
|
*/
|
|
9964
9970
|
offToolTipAnimationFinishEvent() {
|
|
9965
|
-
popsDOMUtils.off(this.$el.$toolTip, popsDOMUtils.getAnimationEndNameList(), this.toolTipAnimationFinishEvent
|
|
9971
|
+
popsDOMUtils.off(this.$el.$toolTip, popsDOMUtils.getAnimationEndNameList(), this.toolTipAnimationFinishEvent);
|
|
9966
9972
|
}
|
|
9967
9973
|
/**
|
|
9968
9974
|
* 鼠标|触摸进入事件
|
|
@@ -9982,13 +9988,13 @@ System.register('pops', [], (function (exports) {
|
|
|
9982
9988
|
onToolTipMouseEnterEvent() {
|
|
9983
9989
|
this.clearCloseTimeoutId("MouseEvent");
|
|
9984
9990
|
this.clearCloseTimeoutId("TouchEvent");
|
|
9985
|
-
popsDOMUtils.on(this.$el.$toolTip, "mouseenter touchstart", this.toolTipMouseEnterEvent
|
|
9991
|
+
popsDOMUtils.on(this.$el.$toolTip, "mouseenter touchstart", this.toolTipMouseEnterEvent, this.$data.config.eventOption);
|
|
9986
9992
|
}
|
|
9987
9993
|
/**
|
|
9988
9994
|
* 取消监听鼠标|触摸事件
|
|
9989
9995
|
*/
|
|
9990
9996
|
offToolTipMouseEnterEvent() {
|
|
9991
|
-
popsDOMUtils.off(this.$el.$toolTip, "mouseenter touchstart", this.toolTipMouseEnterEvent
|
|
9997
|
+
popsDOMUtils.off(this.$el.$toolTip, "mouseenter touchstart", this.toolTipMouseEnterEvent, this.$data.config.eventOption);
|
|
9992
9998
|
}
|
|
9993
9999
|
/**
|
|
9994
10000
|
* 鼠标|触摸离开事件
|
|
@@ -10001,13 +10007,13 @@ System.register('pops', [], (function (exports) {
|
|
|
10001
10007
|
* 监听鼠标|触摸离开事件
|
|
10002
10008
|
*/
|
|
10003
10009
|
onToolTipMouseLeaveEvent() {
|
|
10004
|
-
popsDOMUtils.on(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent
|
|
10010
|
+
popsDOMUtils.on(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent, this.$data.config.eventOption);
|
|
10005
10011
|
}
|
|
10006
10012
|
/**
|
|
10007
10013
|
* 取消监听鼠标|触摸离开事件
|
|
10008
10014
|
*/
|
|
10009
10015
|
offToolTipMouseLeaveEvent() {
|
|
10010
|
-
popsDOMUtils.off(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent
|
|
10016
|
+
popsDOMUtils.off(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent, this.$data.config.eventOption);
|
|
10011
10017
|
}
|
|
10012
10018
|
}
|
|
10013
10019
|
class PopsTooltip {
|