dfish-widget 1.0.83 → 1.0.84
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 +34 -19
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -7144,6 +7144,19 @@ var script$A = {
|
|
|
7144
7144
|
let t = this.x.label || (this.pubParent && this.pubParent.x.label);
|
|
7145
7145
|
return t ? (t.text || t) : ''
|
|
7146
7146
|
},
|
|
7147
|
+
onCloseDrop() {
|
|
7148
|
+
this.showDrop = false;
|
|
7149
|
+
},
|
|
7150
|
+
mergeDropProps(dropProps) {
|
|
7151
|
+
if (this.x.dropProps) dropProps = mergeProps(dropProps, this.x.dropProps);
|
|
7152
|
+
dropProps.onClose = () => {
|
|
7153
|
+
this.onCloseDrop();
|
|
7154
|
+
if (this.x.dropProps && this.x.dropProps.onClose) {
|
|
7155
|
+
this.x.dropProps.onClose();
|
|
7156
|
+
}
|
|
7157
|
+
};
|
|
7158
|
+
return dropProps
|
|
7159
|
+
},
|
|
7147
7160
|
oninput(e) {
|
|
7148
7161
|
this.val(e.target.value);
|
|
7149
7162
|
this.baseValid('change');
|
|
@@ -11326,7 +11339,8 @@ var script$a = {
|
|
|
11326
11339
|
onkeyup() {
|
|
11327
11340
|
this.showDrop = true;
|
|
11328
11341
|
},
|
|
11329
|
-
|
|
11342
|
+
// implement
|
|
11343
|
+
onCloseDrop() {
|
|
11330
11344
|
this.showDrop = false;
|
|
11331
11345
|
this.currentDate = null;
|
|
11332
11346
|
this.doAutoFix();
|
|
@@ -11433,10 +11447,9 @@ var script$a = {
|
|
|
11433
11447
|
autoHide: true,
|
|
11434
11448
|
snap: () => this.snapElem(),
|
|
11435
11449
|
position: 'v',
|
|
11436
|
-
indent: 1
|
|
11437
|
-
onClose: this.onclose
|
|
11450
|
+
indent: 1
|
|
11438
11451
|
};
|
|
11439
|
-
|
|
11452
|
+
dropProps = this.mergeDropProps(dropProps);
|
|
11440
11453
|
r.push(h(script$1a, dropProps, {
|
|
11441
11454
|
default: () => h(script$r, {
|
|
11442
11455
|
height: '*',
|
|
@@ -11534,7 +11547,7 @@ var script$9 = {
|
|
|
11534
11547
|
}
|
|
11535
11548
|
},
|
|
11536
11549
|
props: ['multiple', 'cancelable', 'clearable', 'dropProps'],
|
|
11537
|
-
emits: ['
|
|
11550
|
+
emits: ['clear'],
|
|
11538
11551
|
data() {
|
|
11539
11552
|
return {
|
|
11540
11553
|
hasBorder: true,
|
|
@@ -11596,11 +11609,9 @@ var script$9 = {
|
|
|
11596
11609
|
position: m ? null : 'v',
|
|
11597
11610
|
indent: 1,
|
|
11598
11611
|
scrollY: true,
|
|
11599
|
-
scrollView: '.z-on'
|
|
11600
|
-
onShow: () => this.$emit('drop'),
|
|
11601
|
-
onClose: () => this.showDrop = false
|
|
11612
|
+
scrollView: '.z-on'
|
|
11602
11613
|
};
|
|
11603
|
-
|
|
11614
|
+
dropProps = this.mergeDropProps(dropProps);
|
|
11604
11615
|
r.push(h(script$1a, dropProps, this.$slots));
|
|
11605
11616
|
}
|
|
11606
11617
|
return r
|
|
@@ -11799,7 +11810,7 @@ var script$5 = {
|
|
|
11799
11810
|
name: 'w-combobox',
|
|
11800
11811
|
mixins: [script$A],
|
|
11801
11812
|
props: ['multiple', 'dropper', 'picker', 'dropProps', 'br', 'inputValue', 'clearable'],
|
|
11802
|
-
emits: ['input', 'click:item', 'blur', 'focus', 'update:inputValue', 'clear'
|
|
11813
|
+
emits: ['input', 'click:item', 'blur', 'focus', 'update:inputValue', 'clear'],
|
|
11803
11814
|
data() {
|
|
11804
11815
|
return {
|
|
11805
11816
|
hasBorder: true,
|
|
@@ -11924,6 +11935,10 @@ var script$5 = {
|
|
|
11924
11935
|
e.preventDefault();
|
|
11925
11936
|
}
|
|
11926
11937
|
},
|
|
11938
|
+
// implement
|
|
11939
|
+
onCloseDrop() {
|
|
11940
|
+
this.showSuggest = false;
|
|
11941
|
+
},
|
|
11927
11942
|
clickItem(e, item) {
|
|
11928
11943
|
e.runType = 'click:item';
|
|
11929
11944
|
e.value = item;
|
|
@@ -12016,11 +12031,9 @@ var script$5 = {
|
|
|
12016
12031
|
snap:() => this.el('form'),
|
|
12017
12032
|
position: 'v',
|
|
12018
12033
|
indent: 1,
|
|
12019
|
-
scrollY: true
|
|
12020
|
-
onShow: () => this.$emit('drop'),
|
|
12021
|
-
onClose: () => this.showSuggest = false
|
|
12034
|
+
scrollY: true
|
|
12022
12035
|
};
|
|
12023
|
-
|
|
12036
|
+
dropProps = this.mergeDropProps(dropProps);
|
|
12024
12037
|
r.push(h(script$1a, dropProps, this.$slots));
|
|
12025
12038
|
}
|
|
12026
12039
|
return [
|
|
@@ -12105,7 +12118,7 @@ var script$4 = {
|
|
|
12105
12118
|
name: 'w-linkbox',
|
|
12106
12119
|
mixins: [script$A],
|
|
12107
12120
|
props: ['multiple', 'picker', 'dropProps', 'separator', 'strict', 'br', 'clearable'],
|
|
12108
|
-
emits: ['input', 'dblclick:item', 'clear'
|
|
12121
|
+
emits: ['input', 'dblclick:item', 'clear'],
|
|
12109
12122
|
created() {
|
|
12110
12123
|
this.$watch(() => this.x.modelValue, (v) => {
|
|
12111
12124
|
if (!this.isFocus) {
|
|
@@ -12428,6 +12441,10 @@ var script$4 = {
|
|
|
12428
12441
|
}
|
|
12429
12442
|
}
|
|
12430
12443
|
},
|
|
12444
|
+
// implement
|
|
12445
|
+
onCloseDrop() {
|
|
12446
|
+
this.showSuggest = false;
|
|
12447
|
+
},
|
|
12431
12448
|
formText() {
|
|
12432
12449
|
return this.input_title
|
|
12433
12450
|
},
|
|
@@ -12477,11 +12494,9 @@ var script$4 = {
|
|
|
12477
12494
|
snap: () => this.el('form'),
|
|
12478
12495
|
position: 'v',
|
|
12479
12496
|
indent: 1,
|
|
12480
|
-
scrollY: true
|
|
12481
|
-
onShow: () => this.$emit('drop'),
|
|
12482
|
-
onClose: () => this.showSuggest = false
|
|
12497
|
+
scrollY: true
|
|
12483
12498
|
};
|
|
12484
|
-
|
|
12499
|
+
dropProps = this.mergeDropProps(dropProps);
|
|
12485
12500
|
r.push(h(script$1a, dropProps, this.$slots));
|
|
12486
12501
|
}
|
|
12487
12502
|
return [
|