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