dfish-widget 1.0.125 → 1.0.126
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/lib/index.esm.js +10 -2
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -3721,7 +3721,7 @@ const O = {},
|
|
|
3721
3721
|
let evs = $$1.br.mobile ? ['touchend'] : ['mousedown', wl];
|
|
3722
3722
|
evs.forEach(v => document[n](v, this.bind('listenHideClose', (e) => {
|
|
3723
3723
|
let c;
|
|
3724
|
-
if (this.x.visible !== false && (e.target.classList.contains('w-dialog-cover') || e.type === wl || !(this.hasBubble(e.target) || (!this.x.independent && ((c = this.getCommander()).isWidget ? c.hasBubble(e.target) : c.contains(e.target)))))) {
|
|
3724
|
+
if (this.x.visible !== false && (e.target.classList.contains('w-dialog-cover') || (this.isForceWheelHide && e.type === wl) || !(this.hasBubble(e.target) || (!this.x.independent && ((c = this.getCommander()).isWidget ? c.hasBubble(e.target) : c.contains(e.target)))))) {
|
|
3725
3725
|
if (e.target.id == this.id + 'cvr') e.stopPropagation();
|
|
3726
3726
|
this.close();
|
|
3727
3727
|
}
|
|
@@ -3837,6 +3837,9 @@ const O = {},
|
|
|
3837
3837
|
defaultSnapPosition() {
|
|
3838
3838
|
return 'cc'
|
|
3839
3839
|
},
|
|
3840
|
+
isForceWheelHide() {
|
|
3841
|
+
return false
|
|
3842
|
+
},
|
|
3840
3843
|
slotTarget() {
|
|
3841
3844
|
return this.$slots.target
|
|
3842
3845
|
},
|
|
@@ -4384,6 +4387,7 @@ let inst$1 = null;
|
|
|
4384
4387
|
escape: true,
|
|
4385
4388
|
}
|
|
4386
4389
|
},
|
|
4390
|
+
// implement
|
|
4387
4391
|
html_slots_default() {
|
|
4388
4392
|
return h(script$17, {text: this.x.text, escape: this.x.escape}, this.$slots)
|
|
4389
4393
|
},
|
|
@@ -4399,7 +4403,11 @@ let inst$1 = null;
|
|
|
4399
4403
|
},
|
|
4400
4404
|
},
|
|
4401
4405
|
computed: {
|
|
4402
|
-
|
|
4406
|
+
// 当滚鼠标轮滚动,是否强制隐藏
|
|
4407
|
+
isForceWheelHide() {
|
|
4408
|
+
return true
|
|
4409
|
+
},
|
|
4410
|
+
slotTarget() {
|
|
4403
4411
|
return this.$slots.default
|
|
4404
4412
|
},
|
|
4405
4413
|
defaultSnapTargetElem() {
|