dfish-widget 1.0.85 → 1.0.86
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 +31 -37
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -3530,8 +3530,8 @@ const O = {},
|
|
|
3530
3530
|
var script$1a = {
|
|
3531
3531
|
name: 'w-dialog',
|
|
3532
3532
|
mixins: [script$1c],
|
|
3533
|
-
props: ['title', 'autoHide', 'context', 'prong', 'independent', 'timeout',
|
|
3534
|
-
'
|
|
3533
|
+
props: ['title', 'autoHide', 'context', 'prong', 'independent', 'timeout', 'cover', 'coverProps',
|
|
3534
|
+
'position', 'snap', 'indent', 'offsetRange', 'local', 'fullScreen', 'hoverShowDrop', 'visible',
|
|
3535
3535
|
...boundary
|
|
3536
3536
|
],
|
|
3537
3537
|
emits: ['show', 'close', 'click:cover', 'update:visible'],
|
|
@@ -3783,11 +3783,17 @@ const O = {},
|
|
|
3783
3783
|
},
|
|
3784
3784
|
html() {
|
|
3785
3785
|
let to = this.x.local ? this.getLocalElem() : '#w-dfish-pops';
|
|
3786
|
-
let cover =
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3786
|
+
let cover = null;
|
|
3787
|
+
if (this.x.cover && this.x.visible !== false && !this.isDeactivated) {
|
|
3788
|
+
let coverProps = {
|
|
3789
|
+
ref: 'cover',
|
|
3790
|
+
class: 'w-dialog-cover f-abs-full'
|
|
3791
|
+
};
|
|
3792
|
+
if (this.x.coverProps) {
|
|
3793
|
+
coverProps = mergeProps(coverProps, this.x.coverProps);
|
|
3794
|
+
}
|
|
3795
|
+
cover = h('div', coverProps);
|
|
3796
|
+
}
|
|
3791
3797
|
let s = [cover, this.html_self(true)];
|
|
3792
3798
|
let r = to ? h(Teleport, {to}, s) : s;
|
|
3793
3799
|
return this.slotTarget ? [r, h(script$1b, null, {default: () => [this.slotTarget()]})] : r
|
|
@@ -4475,7 +4481,7 @@ var script$12 = {
|
|
|
4475
4481
|
mouses: {
|
|
4476
4482
|
onmouseenter: e => {
|
|
4477
4483
|
if (!this.showDrop) {
|
|
4478
|
-
if (this.pubParent && menuRelate(this.pubParent) && !menuRelate(
|
|
4484
|
+
if (this.pubParent && menuRelate(this.pubParent) && !menuRelate()) ;
|
|
4479
4485
|
if(this.x.hoverShowDrop) {
|
|
4480
4486
|
this.drop();
|
|
4481
4487
|
this.$nextTick(() => e.currentTarget.classList.add('z-hv'));
|
|
@@ -4502,12 +4508,10 @@ var script$12 = {
|
|
|
4502
4508
|
drop() {
|
|
4503
4509
|
if (this.hasChild) {
|
|
4504
4510
|
this.showDrop = true;
|
|
4505
|
-
} else {
|
|
4506
|
-
closeMenu();
|
|
4507
4511
|
}
|
|
4508
4512
|
},
|
|
4509
4513
|
closeDrop() {
|
|
4510
|
-
|
|
4514
|
+
this.showDrop = false;
|
|
4511
4515
|
},
|
|
4512
4516
|
onclick(e) {
|
|
4513
4517
|
if (this.isMore) {
|
|
@@ -4783,15 +4787,8 @@ script$10.__file = "src/widgets/Button.vue";
|
|
|
4783
4787
|
|
|
4784
4788
|
let inst = null;
|
|
4785
4789
|
|
|
4786
|
-
function closeMenu() {
|
|
4787
|
-
if (inst) {
|
|
4788
|
-
$$1.close(inst);
|
|
4789
|
-
inst = null;
|
|
4790
|
-
}
|
|
4791
|
-
}
|
|
4792
|
-
|
|
4793
4790
|
function menuRelate(ctx) {
|
|
4794
|
-
return inst
|
|
4791
|
+
return inst
|
|
4795
4792
|
}
|
|
4796
4793
|
|
|
4797
4794
|
var script$$ = {
|
|
@@ -4830,6 +4827,7 @@ let inst = null;
|
|
|
4830
4827
|
// implement
|
|
4831
4828
|
setVisibleSub(a) {
|
|
4832
4829
|
if (a === false && this.currentMenuButton) {
|
|
4830
|
+
console.log('setVisibleSub');
|
|
4833
4831
|
this.currentMenuButton.showDrop = false;
|
|
4834
4832
|
// this.subMenu.setVisibleSub(a)
|
|
4835
4833
|
}
|
|
@@ -4918,12 +4916,12 @@ let inst = null;
|
|
|
4918
4916
|
}
|
|
4919
4917
|
},
|
|
4920
4918
|
mounted() {
|
|
4921
|
-
if (!this.context || (this.context.$options && this.context.$options.name !== 'w-menubutton')) {
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
}
|
|
4919
|
+
// if (!this.context || (this.context.$options && this.context.$options.name !== 'w-menubutton')) {
|
|
4920
|
+
// if (inst) {
|
|
4921
|
+
// $.close(inst)
|
|
4922
|
+
// }
|
|
4923
|
+
// inst = this
|
|
4924
|
+
// }
|
|
4927
4925
|
}
|
|
4928
4926
|
};
|
|
4929
4927
|
|
|
@@ -10430,9 +10428,8 @@ const suffixHooks = {
|
|
|
10430
10428
|
name: 'w-fileupload',
|
|
10431
10429
|
mixins: [script$A],
|
|
10432
10430
|
props: ['uploadSrc', 'thumbnailSrc', 'downloadSrc', 'uploadLimit', 'sizeLimit', 'maxFileSize', 'minFileSize',
|
|
10433
|
-
'fileTypes', 'filter', 'success', 'error', 'itemWidth', '
|
|
10431
|
+
'fileTypes', 'filter', 'success', 'error', 'itemWidth', 'align', 'vertical', 'gap'
|
|
10434
10432
|
],
|
|
10435
|
-
emits: ['click:item'],
|
|
10436
10433
|
data() {
|
|
10437
10434
|
return {
|
|
10438
10435
|
list: [],
|
|
@@ -10589,13 +10586,11 @@ const suffixHooks = {
|
|
|
10589
10586
|
this.$emit('update:modelValue', v);
|
|
10590
10587
|
this.trigger('change', v);
|
|
10591
10588
|
},
|
|
10592
|
-
clickItem(e, item
|
|
10593
|
-
if (!item.value) return
|
|
10594
|
-
if (this.
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
this.trigger(e, item.value, ctx);
|
|
10598
|
-
} else if (this.x.downloadSrc) {
|
|
10589
|
+
clickItem(e, item) {
|
|
10590
|
+
if (!item.value || !this.x.downloadSrc) return
|
|
10591
|
+
if (typeof this.x.downloadSrc === 'function') {
|
|
10592
|
+
this.x.downloadSrc(item.value);
|
|
10593
|
+
} else {
|
|
10599
10594
|
$$1.download($$1.urlServer(this.x.downloadSrc, item.value, this.x.data));
|
|
10600
10595
|
}
|
|
10601
10596
|
},
|
|
@@ -10646,14 +10641,14 @@ const suffixHooks = {
|
|
|
10646
10641
|
}, [
|
|
10647
10642
|
h('i', {
|
|
10648
10643
|
class: ['w-fileupload-value-icon f-i', 'f-i-file-' + getSuffix(name)],
|
|
10649
|
-
onclick: e => this.clickItem(e, item
|
|
10644
|
+
onclick: e => this.clickItem(e, item)
|
|
10650
10645
|
}),
|
|
10651
10646
|
item.error && h('div', {
|
|
10652
10647
|
class: 'w-fileupload-value-error'
|
|
10653
10648
|
}, $$1.loc.form.upload_error),
|
|
10654
10649
|
h('div', {
|
|
10655
10650
|
class: 'w-fileupload-value-text f-line-1',
|
|
10656
|
-
onclick: e => this.clickItem(e, item
|
|
10651
|
+
onclick: e => this.clickItem(e, item)
|
|
10657
10652
|
}, name),
|
|
10658
10653
|
button
|
|
10659
10654
|
])
|
|
@@ -12023,7 +12018,6 @@ var script$5 = {
|
|
|
12023
12018
|
onkeydown: this.onkeydown,
|
|
12024
12019
|
onblur: this.onblur,
|
|
12025
12020
|
onfocus: this.onfocus,
|
|
12026
|
-
|
|
12027
12021
|
})
|
|
12028
12022
|
])
|
|
12029
12023
|
},
|