dfish-widget 1.0.72 → 1.0.74
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 +41 -19
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -3894,12 +3894,12 @@ const {icon} = __props;
|
|
|
3894
3894
|
error: '.f-i .f-i-alert-error'
|
|
3895
3895
|
};
|
|
3896
3896
|
|
|
3897
|
-
const save = () => {
|
|
3898
|
-
emit('save');
|
|
3897
|
+
const save = (e) => {
|
|
3898
|
+
emit('save', e);
|
|
3899
3899
|
};
|
|
3900
3900
|
|
|
3901
|
-
const close = () => {
|
|
3902
|
-
emit('close');
|
|
3901
|
+
const close = (e) => {
|
|
3902
|
+
emit('close', e);
|
|
3903
3903
|
};
|
|
3904
3904
|
|
|
3905
3905
|
const typeIcon = computed(() => {
|
|
@@ -4019,13 +4019,25 @@ var script$18 = {
|
|
|
4019
4019
|
title: $$1.loc.opertip
|
|
4020
4020
|
}
|
|
4021
4021
|
},
|
|
4022
|
-
onSave() {
|
|
4023
|
-
|
|
4024
|
-
this.
|
|
4022
|
+
async onSave(e) {
|
|
4023
|
+
let r;
|
|
4024
|
+
if (this.x.yes) {
|
|
4025
|
+
try {
|
|
4026
|
+
r = await this.x.yes(e);
|
|
4027
|
+
} catch(e) {
|
|
4028
|
+
console.error(e);
|
|
4029
|
+
}
|
|
4030
|
+
}
|
|
4031
|
+
this.resolve(r);
|
|
4025
4032
|
this.close();
|
|
4026
4033
|
},
|
|
4027
|
-
onClose() {
|
|
4028
|
-
|
|
4034
|
+
async onClose(e) {
|
|
4035
|
+
let r;
|
|
4036
|
+
if (this.x.no) {
|
|
4037
|
+
r = await this.x.no(e);
|
|
4038
|
+
}
|
|
4039
|
+
this.resolve(r);
|
|
4040
|
+
this.close();
|
|
4029
4041
|
},
|
|
4030
4042
|
html_slots_default() {
|
|
4031
4043
|
return h(
|
|
@@ -4070,12 +4082,12 @@ const {icon} = __props;
|
|
|
4070
4082
|
error: '.f-i .f-i-alert-error'
|
|
4071
4083
|
};
|
|
4072
4084
|
|
|
4073
|
-
const save = () => {
|
|
4074
|
-
emit('save');
|
|
4085
|
+
const save = (e) => {
|
|
4086
|
+
emit('save', e);
|
|
4075
4087
|
};
|
|
4076
4088
|
|
|
4077
|
-
const close = () => {
|
|
4078
|
-
emit('close');
|
|
4089
|
+
const close = (e) => {
|
|
4090
|
+
emit('close', e);
|
|
4079
4091
|
};
|
|
4080
4092
|
|
|
4081
4093
|
const typeIcon = computed(() => {
|
|
@@ -4202,13 +4214,24 @@ var script$16 = {
|
|
|
4202
4214
|
title: $$1.loc.opertip
|
|
4203
4215
|
}
|
|
4204
4216
|
},
|
|
4205
|
-
onSave() {
|
|
4206
|
-
|
|
4207
|
-
this.
|
|
4217
|
+
async onSave(e) {
|
|
4218
|
+
let r;
|
|
4219
|
+
if (this.x.yes) {
|
|
4220
|
+
try {
|
|
4221
|
+
r = await this.x.yes(e);
|
|
4222
|
+
} catch(e) {
|
|
4223
|
+
console.error(e);
|
|
4224
|
+
}
|
|
4225
|
+
}
|
|
4226
|
+
this.resolve(r);
|
|
4208
4227
|
this.close();
|
|
4209
4228
|
},
|
|
4210
|
-
onClose() {
|
|
4211
|
-
|
|
4229
|
+
async onClose(e) {
|
|
4230
|
+
let r;
|
|
4231
|
+
if (this.x.no) {
|
|
4232
|
+
r = await this.x.no(e);
|
|
4233
|
+
}
|
|
4234
|
+
this.resolve(r);
|
|
4212
4235
|
this.close();
|
|
4213
4236
|
},
|
|
4214
4237
|
html_slots_default() {
|
|
@@ -6712,7 +6735,6 @@ const props = __props;
|
|
|
6712
6735
|
const watchCurrent = async (val) => {
|
|
6713
6736
|
await nextTick();
|
|
6714
6737
|
current = val;
|
|
6715
|
-
console.log(val);
|
|
6716
6738
|
val = val && $$1.array(val);
|
|
6717
6739
|
if (!val || !val.length) return
|
|
6718
6740
|
for (let v of val) {
|