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