dfish-widget 1.0.124 → 1.0.125
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 +12 -8
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -3619,7 +3619,9 @@ const O = {},
|
|
|
3619
3619
|
axis() {
|
|
3620
3620
|
let f = this.x.position || this.defaultSnapPosition;
|
|
3621
3621
|
let r = f;
|
|
3622
|
-
if (
|
|
3622
|
+
if (this.slotTarget && !this.x.visible) {
|
|
3623
|
+
r = {top: 0, left: 0};
|
|
3624
|
+
} else if (typeof f === 'string' || !f) {
|
|
3623
3625
|
let el = this.el();
|
|
3624
3626
|
if (!el || this.x.fullScreen) return;
|
|
3625
3627
|
let c = this.x.local;
|
|
@@ -3677,8 +3679,8 @@ const O = {},
|
|
|
3677
3679
|
closeRelease() {
|
|
3678
3680
|
this.x.autoHide && this.listenHide(F);
|
|
3679
3681
|
let f = this.x.position;
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
+
let lc = this._pos;
|
|
3683
|
+
if (f && typeof f === 'string' && lc && this.el()) { // 当前窗口关闭后,有相同position的dialog依次移动补空位
|
|
3682
3684
|
let ps = $$1.q(`~[w-dialog-position="${lc.type}"]`, this.el());
|
|
3683
3685
|
ps.each((i, el) => {
|
|
3684
3686
|
const g = $$1(el);
|
|
@@ -3905,8 +3907,8 @@ const O = {},
|
|
|
3905
3907
|
this.$watch(() => this.x.visible, (vis) => {
|
|
3906
3908
|
if (vis !== false) {
|
|
3907
3909
|
this.x.autoHide && this.listenHide(T);
|
|
3908
|
-
this.axis();
|
|
3909
3910
|
}
|
|
3911
|
+
this.axis();
|
|
3910
3912
|
}, {immediate: true});
|
|
3911
3913
|
setTimeout(() => {
|
|
3912
3914
|
this.axis();
|
|
@@ -4623,7 +4625,7 @@ var script$14 = {
|
|
|
4623
4625
|
const title = this.pubParent && this.pubParent.x.flexSize && t;
|
|
4624
4626
|
r.push(h('div', {
|
|
4625
4627
|
class: 'w-button-text'
|
|
4626
|
-
}, h('span', {class: 'w-button-text-line f-line-1', title}, t)));
|
|
4628
|
+
}, h('span', {class: 'w-button-text-line f-line-1', title: title || ''}, t)));
|
|
4627
4629
|
}
|
|
4628
4630
|
if (this.isMore && this.x.showArrowIcon) {
|
|
4629
4631
|
r.push(h(script$15, {
|
|
@@ -12144,9 +12146,11 @@ var script$7 = {
|
|
|
12144
12146
|
onblur(e) {
|
|
12145
12147
|
this.trigger('blur');
|
|
12146
12148
|
setTimeout(() => {
|
|
12147
|
-
if (!this.$.isUnmounted && !this.$.isDeactivated)
|
|
12148
|
-
|
|
12149
|
-
this.
|
|
12149
|
+
if (!this.$.isUnmounted && !this.$.isDeactivated) {
|
|
12150
|
+
this.valid('blur');
|
|
12151
|
+
if (!this.$refs.list.contains(document.activeElement)) {
|
|
12152
|
+
this.isFocus = false;
|
|
12153
|
+
}
|
|
12150
12154
|
}
|
|
12151
12155
|
}, 100);
|
|
12152
12156
|
},
|