dfish-widget 1.0.81 → 1.0.83
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/css/style.css +1 -1
- package/lib/index.esm.js +177 -121
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import lodash from 'lodash';
|
|
|
2
2
|
import jquery from 'jquery';
|
|
3
3
|
import http from 'axios';
|
|
4
4
|
import Qs from 'qs';
|
|
5
|
-
import { nextTick, h, mergeProps, toRaw, resolveComponent, openBlock, createElementBlock, createStaticVNode, createElementVNode, createBlock, withCtx, Fragment, createVNode, renderList, toDisplayString, createTextVNode, createCommentVNode, Teleport, computed, resolveDirective, withDirectives, unref,
|
|
5
|
+
import { nextTick, h, mergeProps, toRaw, resolveComponent, openBlock, createElementBlock, createStaticVNode, createElementVNode, createBlock, withCtx, Fragment, createVNode, renderList, toDisplayString, createTextVNode, createCommentVNode, inject, provide, renderSlot, Teleport, computed, resolveDirective, withDirectives, unref, ref, onMounted, watch, normalizeClass, normalizeStyle, TransitionGroup, getCurrentInstance, createSlots, resolveDynamicComponent, withModifiers } from 'vue';
|
|
6
6
|
import ResizeObserver$1 from 'resize-observer-polyfill';
|
|
7
7
|
|
|
8
8
|
let u = navigator.userAgent.toLowerCase();
|
|
@@ -1834,7 +1834,7 @@ function directive(Vue) {
|
|
|
1834
1834
|
|
|
1835
1835
|
const bindCache = {};
|
|
1836
1836
|
|
|
1837
|
-
var script$
|
|
1837
|
+
var script$1o = {
|
|
1838
1838
|
props: ['data', 'width', 'height', 'colspan', 'rowspan', 'ownproperty', 'orientUid'],
|
|
1839
1839
|
data() {
|
|
1840
1840
|
return {
|
|
@@ -2096,9 +2096,9 @@ const bindCache = {};
|
|
|
2096
2096
|
}
|
|
2097
2097
|
};
|
|
2098
2098
|
|
|
2099
|
-
script$
|
|
2099
|
+
script$1o.__file = "src/widgets/WidgetAbs.vue";
|
|
2100
2100
|
|
|
2101
|
-
var script$
|
|
2101
|
+
var script$1n = {
|
|
2102
2102
|
props: ['src', 'children', 'parentItem'],
|
|
2103
2103
|
data() {
|
|
2104
2104
|
return {
|
|
@@ -2132,11 +2132,11 @@ var script$1m = {
|
|
|
2132
2132
|
}
|
|
2133
2133
|
};
|
|
2134
2134
|
|
|
2135
|
-
script$
|
|
2135
|
+
script$1n.__file = "src/widgets/SrcParent.vue";
|
|
2136
2136
|
|
|
2137
|
-
var script$
|
|
2137
|
+
var script$1m = {
|
|
2138
2138
|
name: 'w-view',
|
|
2139
|
-
mixins: [script$
|
|
2139
|
+
mixins: [script$1n],
|
|
2140
2140
|
provide() {
|
|
2141
2141
|
return {
|
|
2142
2142
|
provideView: this
|
|
@@ -2342,9 +2342,9 @@ var script$1l = {
|
|
|
2342
2342
|
}
|
|
2343
2343
|
};
|
|
2344
2344
|
|
|
2345
|
-
script$
|
|
2345
|
+
script$1m.__file = "src/widgets/ViewAbs.vue";
|
|
2346
2346
|
|
|
2347
|
-
var script$
|
|
2347
|
+
var script$1l = {
|
|
2348
2348
|
name: 'w-svg-loading'
|
|
2349
2349
|
};
|
|
2350
2350
|
|
|
@@ -2374,10 +2374,10 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2374
2374
|
return (openBlock(), createElementBlock("svg", _hoisted_1$b, _hoisted_6$3))
|
|
2375
2375
|
}
|
|
2376
2376
|
|
|
2377
|
-
script$
|
|
2378
|
-
script$
|
|
2377
|
+
script$1l.render = render$8;
|
|
2378
|
+
script$1l.__file = "src/assets/SVGIcon.vue";
|
|
2379
2379
|
|
|
2380
|
-
var script$
|
|
2380
|
+
var script$1k = {
|
|
2381
2381
|
props: ['data'],
|
|
2382
2382
|
data() {
|
|
2383
2383
|
return {
|
|
@@ -2491,10 +2491,10 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2491
2491
|
}))
|
|
2492
2492
|
}
|
|
2493
2493
|
|
|
2494
|
-
script$
|
|
2495
|
-
script$
|
|
2494
|
+
script$1k.render = render$7;
|
|
2495
|
+
script$1k.__file = "src/template/TemplatePreviewMedia.vue";
|
|
2496
2496
|
|
|
2497
|
-
var script$
|
|
2497
|
+
var script$1j = {
|
|
2498
2498
|
props: ['data'],
|
|
2499
2499
|
data() {
|
|
2500
2500
|
let f = this.data.format || 'yyyy-MM-dd';
|
|
@@ -2995,12 +2995,12 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2995
2995
|
}))
|
|
2996
2996
|
}
|
|
2997
2997
|
|
|
2998
|
-
script$
|
|
2999
|
-
script$
|
|
2998
|
+
script$1j.render = render$6;
|
|
2999
|
+
script$1j.__file = "src/template/TemplateDateSheet.vue";
|
|
3000
3000
|
|
|
3001
|
-
var script$
|
|
3001
|
+
var script$1i = {
|
|
3002
3002
|
name: 'w-docview',
|
|
3003
|
-
mixins: [script$
|
|
3003
|
+
mixins: [script$1o, script$1m],
|
|
3004
3004
|
provide() {
|
|
3005
3005
|
return {
|
|
3006
3006
|
providePubParent: null,
|
|
@@ -3022,15 +3022,15 @@ var script$1h = {
|
|
|
3022
3022
|
return null
|
|
3023
3023
|
},
|
|
3024
3024
|
previewVideo(src) {
|
|
3025
|
-
this.pop(script$
|
|
3025
|
+
this.pop(script$1k, {data: {type: 'video', src}});
|
|
3026
3026
|
},
|
|
3027
3027
|
previewImage(imgs, options) {
|
|
3028
|
-
this.pop(script$
|
|
3028
|
+
this.pop(script$1k, {data: {type: 'image', imgs, options}});
|
|
3029
3029
|
},
|
|
3030
3030
|
//dateOptions: {value, format, minValue, maxValue, success}
|
|
3031
3031
|
dateSheet(dateOptions, dialogOptions) {
|
|
3032
|
-
this.pop(script$
|
|
3033
|
-
template: script$
|
|
3032
|
+
this.pop(script$1j, {
|
|
3033
|
+
template: script$1j,
|
|
3034
3034
|
width: '100%',
|
|
3035
3035
|
height: '55%',
|
|
3036
3036
|
position: 'b',
|
|
@@ -3046,20 +3046,20 @@ var script$1h = {
|
|
|
3046
3046
|
return [
|
|
3047
3047
|
this.$slots.default && this.$slots.default(),
|
|
3048
3048
|
this.html_pops(),
|
|
3049
|
-
h(script$
|
|
3049
|
+
h(script$1l),
|
|
3050
3050
|
]
|
|
3051
3051
|
}
|
|
3052
3052
|
}
|
|
3053
3053
|
};
|
|
3054
3054
|
|
|
3055
|
-
script$
|
|
3055
|
+
script$1i.__file = "src/widgets/DocView.vue";
|
|
3056
3056
|
|
|
3057
|
-
var script$
|
|
3058
|
-
mixins: [script$
|
|
3057
|
+
var script$1h = {
|
|
3058
|
+
mixins: [script$1o],
|
|
3059
3059
|
inject: ['provideView']
|
|
3060
3060
|
};
|
|
3061
3061
|
|
|
3062
|
-
script$
|
|
3062
|
+
script$1h.__file = "src/widgets/WidgetBase.vue";
|
|
3063
3063
|
|
|
3064
3064
|
const onScroll = function(e) {
|
|
3065
3065
|
if (this.wScrollPercentX) {
|
|
@@ -3100,8 +3100,8 @@ const onScroll = function(e) {
|
|
|
3100
3100
|
}, dnEv);
|
|
3101
3101
|
};
|
|
3102
3102
|
|
|
3103
|
-
var script$
|
|
3104
|
-
mixins: [script$
|
|
3103
|
+
var script$1g = {
|
|
3104
|
+
mixins: [script$1h],
|
|
3105
3105
|
props: ['scrollX', 'scrollY', 'scrollView', 'scrollFlex'],
|
|
3106
3106
|
data() {
|
|
3107
3107
|
return {
|
|
@@ -3330,7 +3330,7 @@ const onScroll = function(e) {
|
|
|
3330
3330
|
}
|
|
3331
3331
|
},
|
|
3332
3332
|
scroll_observe(ob) {
|
|
3333
|
-
if (this.isDeactivated) return
|
|
3333
|
+
if (this.isDeactivated) return
|
|
3334
3334
|
this.initScroll();
|
|
3335
3335
|
this.onScrollResize(ob);
|
|
3336
3336
|
this.$refs.wScrollOverflow && this.$refs.wScrollOverflow.dispatchEvent(new Event('scroll'));
|
|
@@ -3387,9 +3387,9 @@ const onScroll = function(e) {
|
|
|
3387
3387
|
}
|
|
3388
3388
|
};
|
|
3389
3389
|
|
|
3390
|
-
script$
|
|
3390
|
+
script$1g.__file = "src/widgets/Scroll.vue";
|
|
3391
3391
|
|
|
3392
|
-
var script$
|
|
3392
|
+
var script$1f = {
|
|
3393
3393
|
props: ['align', 'valign', 'gap'],
|
|
3394
3394
|
computed: {
|
|
3395
3395
|
dir() {
|
|
@@ -3404,11 +3404,11 @@ var script$1e = {
|
|
|
3404
3404
|
}
|
|
3405
3405
|
};
|
|
3406
3406
|
|
|
3407
|
-
script$
|
|
3407
|
+
script$1f.__file = "src/widgets/AlignParent.vue";
|
|
3408
3408
|
|
|
3409
|
-
var script$
|
|
3409
|
+
var script$1e = {
|
|
3410
3410
|
name: 'w-horizontal',
|
|
3411
|
-
mixins: [script$
|
|
3411
|
+
mixins: [script$1g, script$1f],
|
|
3412
3412
|
props: ['br', 'reverse'],
|
|
3413
3413
|
provide() {
|
|
3414
3414
|
return {
|
|
@@ -3460,11 +3460,11 @@ var script$1d = {
|
|
|
3460
3460
|
}
|
|
3461
3461
|
};
|
|
3462
3462
|
|
|
3463
|
-
script$
|
|
3463
|
+
script$1e.__file = "src/widgets/Horizontal.vue";
|
|
3464
3464
|
|
|
3465
|
-
var script$
|
|
3465
|
+
var script$1d = {
|
|
3466
3466
|
name: 'w-vertical',
|
|
3467
|
-
mixins: [script$
|
|
3467
|
+
mixins: [script$1e],
|
|
3468
3468
|
computed: {
|
|
3469
3469
|
dir() {
|
|
3470
3470
|
return 'v'
|
|
@@ -3472,11 +3472,11 @@ var script$1c = {
|
|
|
3472
3472
|
}
|
|
3473
3473
|
};
|
|
3474
3474
|
|
|
3475
|
-
script$
|
|
3475
|
+
script$1d.__file = "src/widgets/Vertical.vue";
|
|
3476
3476
|
|
|
3477
|
-
var script$
|
|
3477
|
+
var script$1c = {
|
|
3478
3478
|
name: 'w-view',
|
|
3479
|
-
mixins: [script$
|
|
3479
|
+
mixins: [script$1d, script$1m],
|
|
3480
3480
|
inject: ['provideView'],
|
|
3481
3481
|
methods: {
|
|
3482
3482
|
html_slots() {
|
|
@@ -3493,7 +3493,24 @@ var script$1b = {
|
|
|
3493
3493
|
}
|
|
3494
3494
|
};
|
|
3495
3495
|
|
|
3496
|
-
script$
|
|
3496
|
+
script$1c.__file = "src/widgets/View.vue";
|
|
3497
|
+
|
|
3498
|
+
var script$1b = {
|
|
3499
|
+
__name: 'DialogTarget',
|
|
3500
|
+
setup(__props) {
|
|
3501
|
+
|
|
3502
|
+
const dialogView = inject('provideView', null);
|
|
3503
|
+
const provideView = dialogView && dialogView.provideView;
|
|
3504
|
+
provide('provideView', provideView);
|
|
3505
|
+
|
|
3506
|
+
return (_ctx, _cache) => {
|
|
3507
|
+
return renderSlot(_ctx.$slots, "default")
|
|
3508
|
+
}
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
};
|
|
3512
|
+
|
|
3513
|
+
script$1b.__file = "src/widgets/DialogTarget.vue";
|
|
3497
3514
|
|
|
3498
3515
|
const O = {},
|
|
3499
3516
|
T = true,
|
|
@@ -3512,12 +3529,12 @@ const O = {},
|
|
|
3512
3529
|
|
|
3513
3530
|
var script$1a = {
|
|
3514
3531
|
name: 'w-dialog',
|
|
3515
|
-
mixins: [script$
|
|
3532
|
+
mixins: [script$1c],
|
|
3516
3533
|
props: ['title', 'autoHide', 'context', 'prong', 'independent', 'timeout',
|
|
3517
3534
|
'cover', 'position', 'snap', 'indent', 'offsetRange', 'local', 'fullScreen', 'hoverShowDrop', 'visible',
|
|
3518
3535
|
...boundary
|
|
3519
3536
|
],
|
|
3520
|
-
emits: ['close', 'click:cover', 'update:visible'],
|
|
3537
|
+
emits: ['show', 'close', 'click:cover', 'update:visible'],
|
|
3521
3538
|
data() {
|
|
3522
3539
|
return {
|
|
3523
3540
|
isDialog: true,
|
|
@@ -3715,6 +3732,10 @@ const O = {},
|
|
|
3715
3732
|
this.getTargetElem().removeAttribute('w-pop-visible');
|
|
3716
3733
|
}
|
|
3717
3734
|
}
|
|
3735
|
+
this.setVisibleSub(a);
|
|
3736
|
+
},
|
|
3737
|
+
setVisibleSub(a) {
|
|
3738
|
+
// implement
|
|
3718
3739
|
},
|
|
3719
3740
|
getTargetElem() {
|
|
3720
3741
|
return !this.$el ? null : this.$el.nodeType === 3 ? this.$el.nextElementSibling : this.$el
|
|
@@ -3769,7 +3790,7 @@ const O = {},
|
|
|
3769
3790
|
}) : null;
|
|
3770
3791
|
let s = [cover, this.html_self(true)];
|
|
3771
3792
|
let r = to ? h(Teleport, {to}, s) : s;
|
|
3772
|
-
return this.slotTarget ? [this.slotTarget()
|
|
3793
|
+
return this.slotTarget ? [r, h(script$1b, null, {default: () => [this.slotTarget()]})] : r
|
|
3773
3794
|
}
|
|
3774
3795
|
},
|
|
3775
3796
|
computed: {
|
|
@@ -3803,7 +3824,7 @@ const O = {},
|
|
|
3803
3824
|
html_class() {
|
|
3804
3825
|
const r = this._pos || O;
|
|
3805
3826
|
const p = this.x.position;
|
|
3806
|
-
return ['w-vertical', this.html_align_class, {
|
|
3827
|
+
return ['w-vertical', this.html_align_class, this.html_scroll_class, {
|
|
3807
3828
|
'z-hide': this.isDeactivated || (this.x.visible != null ? !this.x.visible : !!this.slotTarget),
|
|
3808
3829
|
'z-full': this.x.fullScreen,
|
|
3809
3830
|
['z-face-' + this.x.face]: this.x.face,
|
|
@@ -3855,7 +3876,10 @@ const O = {},
|
|
|
3855
3876
|
this.axis();
|
|
3856
3877
|
}
|
|
3857
3878
|
}, {immediate: true});
|
|
3858
|
-
setTimeout(
|
|
3879
|
+
setTimeout(() => {
|
|
3880
|
+
this.axis();
|
|
3881
|
+
this.$nextTick(() => this.trigger('show'));
|
|
3882
|
+
});
|
|
3859
3883
|
if (this.slotTarget) {
|
|
3860
3884
|
let el = this.getTargetElem();
|
|
3861
3885
|
if (el) {
|
|
@@ -4356,7 +4380,7 @@ script$14.__file = "src/widgets/Tip.vue";
|
|
|
4356
4380
|
var script$13 = {
|
|
4357
4381
|
name: 'w-img',
|
|
4358
4382
|
pubParentName: 'w-album',
|
|
4359
|
-
mixins: [script$
|
|
4383
|
+
mixins: [script$1h],
|
|
4360
4384
|
inject: ['providePubParent'],
|
|
4361
4385
|
props: ['src', 'text', 'square', 'imgWidth', 'imgHeight', 'dataUrl', 'vertical', 'disabled'],
|
|
4362
4386
|
data() {
|
|
@@ -4402,7 +4426,7 @@ var script$13 = {
|
|
|
4402
4426
|
class: 'w-img-cover f-abs-full'
|
|
4403
4427
|
}, this.$slots.cover())
|
|
4404
4428
|
]),
|
|
4405
|
-
cont && h(script$
|
|
4429
|
+
cont && h(script$1d, {
|
|
4406
4430
|
class: 'w-img-description'
|
|
4407
4431
|
}, cont)
|
|
4408
4432
|
]
|
|
@@ -4440,7 +4464,7 @@ script$13.__file = "src/widgets/Img.vue";
|
|
|
4440
4464
|
|
|
4441
4465
|
var script$12 = {
|
|
4442
4466
|
pubParentName: 'w-buttonbar',
|
|
4443
|
-
mixins: [script$
|
|
4467
|
+
mixins: [script$1h],
|
|
4444
4468
|
props: ['text', 'icon', 'focusIcon', 'face', 'target', 'closable', 'loading', 'disabled', 'vertical', 'hoverShowDrop', 'dropProps', 'dropIcon', 'showDropIcon'],
|
|
4445
4469
|
inject: ['providePubParent', 'provideMenu_w'],
|
|
4446
4470
|
emits: ['click:close', 'dropClose'],
|
|
@@ -4590,7 +4614,7 @@ var script$12 = {
|
|
|
4590
4614
|
return !!(this.hasChild && this.x.showDropIcon && this.getOn('click'))
|
|
4591
4615
|
},
|
|
4592
4616
|
isDisabled() {
|
|
4593
|
-
return this.x.disabled || this.x.loading
|
|
4617
|
+
return !!this.x.disabled || !!this.x.loading
|
|
4594
4618
|
},
|
|
4595
4619
|
html_props() {
|
|
4596
4620
|
return {
|
|
@@ -4600,10 +4624,10 @@ var script$12 = {
|
|
|
4600
4624
|
'z-combo': this.isCombo,
|
|
4601
4625
|
'z-more': this.isMore,
|
|
4602
4626
|
'z-on': this.isCurrent,
|
|
4603
|
-
'z-ds': this.x.disabled,
|
|
4604
|
-
'z-loading': this.x.loading,
|
|
4605
|
-
'z-vertical': this.x.vertical,
|
|
4606
|
-
'z-closable': this.x.closable,
|
|
4627
|
+
'z-ds': !!this.x.disabled,
|
|
4628
|
+
'z-loading': !!this.x.loading,
|
|
4629
|
+
'z-vertical': !!this.x.vertical,
|
|
4630
|
+
'z-closable': !!this.x.closable,
|
|
4607
4631
|
'z-drop': this.showDrop
|
|
4608
4632
|
},
|
|
4609
4633
|
onclick: this.onclick,
|
|
@@ -4629,7 +4653,7 @@ var script$11 = {
|
|
|
4629
4653
|
if (this.showDrop) return
|
|
4630
4654
|
this.closeSub();
|
|
4631
4655
|
this.showDrop = true;
|
|
4632
|
-
this.parentMenu.
|
|
4656
|
+
this.parentMenu.currentMenuButton = this;
|
|
4633
4657
|
},
|
|
4634
4658
|
onclick(e) {
|
|
4635
4659
|
if (this.isMore) return
|
|
@@ -4645,9 +4669,9 @@ var script$11 = {
|
|
|
4645
4669
|
}
|
|
4646
4670
|
},
|
|
4647
4671
|
closeSub() {
|
|
4648
|
-
if (this.parentMenu.
|
|
4649
|
-
this.parentMenu.
|
|
4650
|
-
this.parentMenu.
|
|
4672
|
+
if (this.parentMenu.currentMenuButton) {
|
|
4673
|
+
this.parentMenu.currentMenuButton.showDrop = false;
|
|
4674
|
+
this.parentMenu.currentMenuButton = null;
|
|
4651
4675
|
}
|
|
4652
4676
|
},
|
|
4653
4677
|
clickClose(e) {
|
|
@@ -4713,14 +4737,15 @@ var script$11 = {
|
|
|
4713
4737
|
return p
|
|
4714
4738
|
},
|
|
4715
4739
|
ownerView() { // 因为业务会调用 $.vm(event), 所以返回commander的view
|
|
4716
|
-
|
|
4740
|
+
const cmd = this.parentMenu.rootCommander;
|
|
4741
|
+
return cmd ? cmd.ownerView : this.parentMenu.root.provideView
|
|
4717
4742
|
},
|
|
4718
4743
|
html_props() {
|
|
4719
4744
|
return {
|
|
4720
|
-
disabled: this.x.disabled,
|
|
4745
|
+
disabled: !!this.x.disabled,
|
|
4721
4746
|
class: {
|
|
4722
4747
|
'z-on': this.isCurrent,
|
|
4723
|
-
'z-ds': this.x.disabled,
|
|
4748
|
+
'z-ds': !!this.x.disabled,
|
|
4724
4749
|
'z-drop': this.showDrop,
|
|
4725
4750
|
},
|
|
4726
4751
|
onmouseenter: this.onmouseenter,
|
|
@@ -4803,6 +4828,13 @@ let inst = null;
|
|
|
4803
4828
|
return c
|
|
4804
4829
|
},
|
|
4805
4830
|
// implement
|
|
4831
|
+
setVisibleSub(a) {
|
|
4832
|
+
if (a === false && this.currentMenuButton) {
|
|
4833
|
+
this.currentMenuButton.showDrop = false;
|
|
4834
|
+
// this.subMenu.setVisibleSub(a)
|
|
4835
|
+
}
|
|
4836
|
+
},
|
|
4837
|
+
// implement
|
|
4806
4838
|
checkOutScreen() {
|
|
4807
4839
|
let c = this._pos;
|
|
4808
4840
|
if (c.mag_l || c.mag_r) {
|
|
@@ -4840,7 +4872,7 @@ let inst = null;
|
|
|
4840
4872
|
}, h('i', {
|
|
4841
4873
|
class: 'f-i f-i-caret-up'
|
|
4842
4874
|
})),
|
|
4843
|
-
h(script$
|
|
4875
|
+
h(script$1d, {
|
|
4844
4876
|
class: 'w-menu-bbr',
|
|
4845
4877
|
height: '*',
|
|
4846
4878
|
ref: 'bbr',
|
|
@@ -4925,7 +4957,7 @@ script$_.__file = "src/widgets/Loading.vue";
|
|
|
4925
4957
|
|
|
4926
4958
|
var script$Z = {
|
|
4927
4959
|
name: 'w-table',
|
|
4928
|
-
mixins: [script$
|
|
4960
|
+
mixins: [script$1h],
|
|
4929
4961
|
props: ['face', 'scroll-x', 'scroll-y'],
|
|
4930
4962
|
provide() {
|
|
4931
4963
|
return {
|
|
@@ -5062,7 +5094,7 @@ script$V.__file = "src/widgets/SlotDefault.vue";
|
|
|
5062
5094
|
|
|
5063
5095
|
var script$U = {
|
|
5064
5096
|
name: 'w-thead',
|
|
5065
|
-
mixins: [script$
|
|
5097
|
+
mixins: [script$1h, script$W],
|
|
5066
5098
|
props: ['br', 'sort'],
|
|
5067
5099
|
inject: ['_provideTable'],
|
|
5068
5100
|
provide() {
|
|
@@ -5159,7 +5191,7 @@ script$U.__file = "src/widgets/TableTHead.vue";
|
|
|
5159
5191
|
|
|
5160
5192
|
var script$T = {
|
|
5161
5193
|
name: 'w-tbody',
|
|
5162
|
-
mixins: [script$U, script$
|
|
5194
|
+
mixins: [script$U, script$1g],
|
|
5163
5195
|
inject: ['_provideTable'],
|
|
5164
5196
|
props: ['children'],
|
|
5165
5197
|
provide() {
|
|
@@ -5232,7 +5264,7 @@ script$T.__file = "src/widgets/TableTBody.vue";
|
|
|
5232
5264
|
var script$S = {
|
|
5233
5265
|
name: 'w-tr',
|
|
5234
5266
|
pubParentName: 'w-tbody,w-thead',
|
|
5235
|
-
mixins: [script$
|
|
5267
|
+
mixins: [script$1h, script$1n],
|
|
5236
5268
|
props: ['rowIndex', 'expanded', 'children'],
|
|
5237
5269
|
inject: ['_provideTable', 'providePubParent', 'provideInBody', '_provideTBody', 'provideLevel', 'provideParentTR'],
|
|
5238
5270
|
provide() {
|
|
@@ -5403,7 +5435,7 @@ script$R.__file = "src/widgets/TableTD.vue";
|
|
|
5403
5435
|
|
|
5404
5436
|
var script$Q = {
|
|
5405
5437
|
name: 'w-th',
|
|
5406
|
-
mixins: [script$R, script$
|
|
5438
|
+
mixins: [script$R, script$1h],
|
|
5407
5439
|
props: ['sortable', 'sortOrders', 'sortOrderDefault'],
|
|
5408
5440
|
inject: ['_provideThead'],
|
|
5409
5441
|
emits: ['click:sort'],
|
|
@@ -5438,7 +5470,7 @@ var script$Q = {
|
|
|
5438
5470
|
this.$emit('click:sort', e, o);
|
|
5439
5471
|
},
|
|
5440
5472
|
html_slots() {
|
|
5441
|
-
return h(script$
|
|
5473
|
+
return h(script$1e, {class: 'w-th-wrap', valign: 'middle', align: this.align || this.col.align}, {default: () => [
|
|
5442
5474
|
h('div', {class: 'w-th-title'}, this.$slots),
|
|
5443
5475
|
this.x.sortable ? h('div', {class: 'w-th-sort f-flex-column f-flex-center f-oh'}, [
|
|
5444
5476
|
h('i', {class: 'f-i f-i-caret-up f-oh w-th-sort-up', onClick: e => this.clickSort(e, 'asc')}),
|
|
@@ -5466,7 +5498,7 @@ var script$Q = {
|
|
|
5466
5498
|
script$Q.__file = "src/widgets/TableTH.vue";
|
|
5467
5499
|
|
|
5468
5500
|
var script$P = {
|
|
5469
|
-
mixins: [script$
|
|
5501
|
+
mixins: [script$1d],
|
|
5470
5502
|
emits: ['scroll'],
|
|
5471
5503
|
methods: {
|
|
5472
5504
|
onScroll(e) {
|
|
@@ -5917,7 +5949,7 @@ script$O.__file = "src/widgets/TableV2.vue";
|
|
|
5917
5949
|
|
|
5918
5950
|
var script$N = {
|
|
5919
5951
|
name: 'w-grid',
|
|
5920
|
-
mixins: [script$
|
|
5952
|
+
mixins: [script$1g],
|
|
5921
5953
|
props: ['columns', 'rows', 'gap', 'defaultColspan', 'face', 'labelWidth'],
|
|
5922
5954
|
methods: {
|
|
5923
5955
|
x_default() {
|
|
@@ -5965,7 +5997,7 @@ var script$M = {
|
|
|
5965
5997
|
name: 'w-swiper-item',
|
|
5966
5998
|
pubParentName: 'w-swiper',
|
|
5967
5999
|
inject: ['providePubParent'],
|
|
5968
|
-
mixins: [script$
|
|
6000
|
+
mixins: [script$1h],
|
|
5969
6001
|
props: ['lazy'],
|
|
5970
6002
|
data() {
|
|
5971
6003
|
return {
|
|
@@ -6002,7 +6034,7 @@ script$M.__file = "src/widgets/SwiperItem.vue";
|
|
|
6002
6034
|
|
|
6003
6035
|
var script$L = {
|
|
6004
6036
|
name: 'w-swiper',
|
|
6005
|
-
mixins: [script$
|
|
6037
|
+
mixins: [script$1h, script$W],
|
|
6006
6038
|
props: ['arrow', 'indicatorDots', 'duration'],
|
|
6007
6039
|
data() {
|
|
6008
6040
|
return {
|
|
@@ -6091,7 +6123,7 @@ script$L.__file = "src/widgets/Swiper.vue";
|
|
|
6091
6123
|
|
|
6092
6124
|
var script$K = {
|
|
6093
6125
|
name: 'w-buttonbar',
|
|
6094
|
-
mixins: [script$
|
|
6126
|
+
mixins: [script$1e, script$W],
|
|
6095
6127
|
props: ['vertical'],
|
|
6096
6128
|
emits: ['click:item'],
|
|
6097
6129
|
methods: {
|
|
@@ -6204,7 +6236,7 @@ var script$J = {
|
|
|
6204
6236
|
},
|
|
6205
6237
|
html_slots() {
|
|
6206
6238
|
let group = h(TransitionGroup, {name: 'w-tabbar', onBeforeEnter: this.onBeforeEnter, onAfterEnter: this.onAfterEnter, onBeforeLeave: this.onBeforeLeave, onAfterLeave: this.onAfterLeave}, {default: () => this.buttons});
|
|
6207
|
-
let gut = [h(this.x.vertical ? script$
|
|
6239
|
+
let gut = [h(this.x.vertical ? script$1d : script$1e, {ref: 'gut', width: '*', class: 'w-tabbar-gut', gap: this.x.gap, align: this.x.align, valign: this.x.valign}, {default: () => group})];
|
|
6208
6240
|
if (this.x.arrow) {
|
|
6209
6241
|
gut.unshift(h('div', {class: 'w-tabbar-arrow-start', onClick: () => this.clickArrow(-1)}, h('i', {class: 'f-i f-i-caret-left'})));
|
|
6210
6242
|
gut.push(h('div', {class: 'w-tabbar-arrow-end', onClick: () => this.clickArrow(1)}, h('i', {class: 'f-i f-i-caret-right'})));
|
|
@@ -6315,7 +6347,10 @@ var script$J = {
|
|
|
6315
6347
|
if (len) {
|
|
6316
6348
|
this.$nextTick(() => {
|
|
6317
6349
|
unwatch();
|
|
6318
|
-
setTimeout(() =>
|
|
6350
|
+
setTimeout(() => {
|
|
6351
|
+
const el = this.el();
|
|
6352
|
+
el && el.setAttribute('w-tabbar-flex-all', '');
|
|
6353
|
+
}, 150);
|
|
6319
6354
|
});
|
|
6320
6355
|
}
|
|
6321
6356
|
}, {immediate: true});
|
|
@@ -6352,7 +6387,7 @@ script$I.__file = "src/widgets/TabButton.vue";
|
|
|
6352
6387
|
|
|
6353
6388
|
var script$H = {
|
|
6354
6389
|
name: 'w-tabs',
|
|
6355
|
-
mixins: [script$
|
|
6390
|
+
mixins: [script$1h],
|
|
6356
6391
|
props: ['current', 'position', 'gap', 'face', 'quickCloseButton', 'flexSize'],
|
|
6357
6392
|
emits: ['click:quickCloseButton'],
|
|
6358
6393
|
methods: {
|
|
@@ -6400,6 +6435,9 @@ var script$H = {
|
|
|
6400
6435
|
}
|
|
6401
6436
|
},
|
|
6402
6437
|
computed: {
|
|
6438
|
+
tabBar() {
|
|
6439
|
+
return this.$refs.tabBar
|
|
6440
|
+
},
|
|
6403
6441
|
html_class() {
|
|
6404
6442
|
let pos = this.x.position;
|
|
6405
6443
|
return 'f-oh f-flex' + (pos == 'top' || pos == 'bottom' ? '-column' : '') + ' z-pos-' + pos + ' z-face-' + this.x.face
|
|
@@ -6417,7 +6455,7 @@ script$G.__file = "src/widgets/Tab.vue";
|
|
|
6417
6455
|
|
|
6418
6456
|
var script$F = {
|
|
6419
6457
|
name: 'w-album',
|
|
6420
|
-
mixins: [script$
|
|
6458
|
+
mixins: [script$1e, script$W],
|
|
6421
6459
|
methods: {
|
|
6422
6460
|
x_default() {
|
|
6423
6461
|
return {
|
|
@@ -6438,7 +6476,7 @@ script$F.__file = "src/widgets/Album.vue";
|
|
|
6438
6476
|
|
|
6439
6477
|
var script$E = {
|
|
6440
6478
|
name: 'w-html',
|
|
6441
|
-
mixins: [script$
|
|
6479
|
+
mixins: [script$1h, script$1f],
|
|
6442
6480
|
props: ['line'],
|
|
6443
6481
|
computed: {
|
|
6444
6482
|
html_props() {
|
|
@@ -6461,7 +6499,7 @@ script$E.__file = "src/widgets/Html.vue";
|
|
|
6461
6499
|
|
|
6462
6500
|
var script$D = {
|
|
6463
6501
|
name: 'w-tree',
|
|
6464
|
-
mixins: [script$
|
|
6502
|
+
mixins: [script$1g, script$W, script$1n],
|
|
6465
6503
|
emits: ['click:item'],
|
|
6466
6504
|
provide() {
|
|
6467
6505
|
return {
|
|
@@ -6914,7 +6952,7 @@ script$C.__file = "src/widgets/TreeV2.vue";
|
|
|
6914
6952
|
|
|
6915
6953
|
var script$B = {
|
|
6916
6954
|
name: 'w-label',
|
|
6917
|
-
mixins: [script$
|
|
6955
|
+
mixins: [script$1h, script$1f],
|
|
6918
6956
|
props: ['text', 'suffix', 'vertical'],
|
|
6919
6957
|
methods: {
|
|
6920
6958
|
html_slots() {
|
|
@@ -6939,7 +6977,7 @@ var script$B = {
|
|
|
6939
6977
|
script$B.__file = "src/widgets/Label.vue";
|
|
6940
6978
|
|
|
6941
6979
|
var script$A = {
|
|
6942
|
-
mixins: [script$
|
|
6980
|
+
mixins: [script$1h, script$1f],
|
|
6943
6981
|
props: ['name', 'value', 'modelValue', 'placeholder', 'label', 'readonly', 'readonlyValidate', 'disabled', 'required',
|
|
6944
6982
|
'validateDefault', 'validateHandler', 'inputWidth', 'inputHeight' ],
|
|
6945
6983
|
emits: ['update:modelValue', 'change', 'blur', 'focus'],
|
|
@@ -7200,7 +7238,7 @@ var script$A = {
|
|
|
7200
7238
|
ref: 'v',
|
|
7201
7239
|
name: this.input_name,
|
|
7202
7240
|
value: this.input_value,
|
|
7203
|
-
disabled: this.
|
|
7241
|
+
disabled: this.isDisabled,
|
|
7204
7242
|
class: 'f-hide'
|
|
7205
7243
|
}) : []
|
|
7206
7244
|
},
|
|
@@ -7339,10 +7377,10 @@ var script$A = {
|
|
|
7339
7377
|
return !this.isReadonly && !this.isDisabled
|
|
7340
7378
|
},
|
|
7341
7379
|
isDisabled() {
|
|
7342
|
-
return this.x.disabled
|
|
7380
|
+
return !!this.x.disabled
|
|
7343
7381
|
},
|
|
7344
7382
|
isReadonly() {
|
|
7345
|
-
return this.x.readonly
|
|
7383
|
+
return !!this.x.readonly
|
|
7346
7384
|
},
|
|
7347
7385
|
errorTipTarget() {
|
|
7348
7386
|
return this
|
|
@@ -7540,7 +7578,7 @@ const {leafSymbol: leafSymbol$1} = $$1.symbol;
|
|
|
7540
7578
|
}, this.html_input())
|
|
7541
7579
|
},
|
|
7542
7580
|
html_target() {
|
|
7543
|
-
return this.$slots.default ? h(script$
|
|
7581
|
+
return this.$slots.default ? h(script$1e, {
|
|
7544
7582
|
class: this.$options.name + '-target',
|
|
7545
7583
|
ref: 'target'
|
|
7546
7584
|
}, this.$slots) : []
|
|
@@ -7565,7 +7603,7 @@ const {leafSymbol: leafSymbol$1} = $$1.symbol;
|
|
|
7565
7603
|
},
|
|
7566
7604
|
rules() {
|
|
7567
7605
|
return {
|
|
7568
|
-
required: this.x.required != null ? this.x.required : (this.pubParent && this.pubParent.x.required),
|
|
7606
|
+
required: this.x.required != null ? !!this.x.required : !!(this.pubParent && this.pubParent.x.required),
|
|
7569
7607
|
minSize: this.x.minSize != null ? this.x.minSize : (this.pubParent && this.pubParent.x.minSize),
|
|
7570
7608
|
maxSize: this.x.maxSize != null ? this.x.maxSize : (this.pubParent && this.pubParent.x.maxSize),
|
|
7571
7609
|
}
|
|
@@ -7600,10 +7638,10 @@ const {leafSymbol: leafSymbol$1} = $$1.symbol;
|
|
|
7600
7638
|
return $$1.idsAny(this.x.modelValue, this.checkValue)
|
|
7601
7639
|
},
|
|
7602
7640
|
isDisabled() {
|
|
7603
|
-
return this.x.disabled != null ? this.x.disabled : (this.pubParent && this.pubParent.disabled)
|
|
7641
|
+
return this.x.disabled != null ? !!this.x.disabled : (this.pubParent && this.pubParent.disabled)
|
|
7604
7642
|
},
|
|
7605
7643
|
isReadonly() {
|
|
7606
|
-
return this.x.readonly != null ? this.x.readonly : (this.pubParent && this.pubParent.readonly)
|
|
7644
|
+
return this.x.readonly != null ? !!this.x.readonly : (this.pubParent && this.pubParent.readonly)
|
|
7607
7645
|
},
|
|
7608
7646
|
html_class() {
|
|
7609
7647
|
return {
|
|
@@ -7779,7 +7817,7 @@ script$y.__file = "src/widgets/TripleBox.vue";
|
|
|
7779
7817
|
var script$x = {
|
|
7780
7818
|
name: 'w-leaf',
|
|
7781
7819
|
pubParentName: 'w-tree',
|
|
7782
|
-
mixins: [script$
|
|
7820
|
+
mixins: [script$1h, script$1n],
|
|
7783
7821
|
props: ['text', 'expanded', 'expandedIcon', 'collapsedIcon', 'icon', 'boxSync', 'src', 'disabled'],
|
|
7784
7822
|
inject: ['providePubParent', 'provideLevel', 'provideParentLeaf', 'provideParentTR'],
|
|
7785
7823
|
provide() {
|
|
@@ -7947,7 +7985,7 @@ var script$x = {
|
|
|
7947
7985
|
html_props() {
|
|
7948
7986
|
let exp = this.isExpanded();
|
|
7949
7987
|
let fd = this.isFolder();
|
|
7950
|
-
let ds = this.x.disabled;
|
|
7988
|
+
let ds = !!this.x.disabled;
|
|
7951
7989
|
let prop = {
|
|
7952
7990
|
class: {
|
|
7953
7991
|
'z-on': this.isCurrent,
|
|
@@ -8158,7 +8196,7 @@ script$w.__file = "src/widgets/PageBar.vue";
|
|
|
8158
8196
|
|
|
8159
8197
|
var script$v = {
|
|
8160
8198
|
name: 'w-split',
|
|
8161
|
-
mixins: [script$
|
|
8199
|
+
mixins: [script$1h],
|
|
8162
8200
|
props: ['collapsedIcon', 'expandedIcon', 'movable', 'range', 'toNext', 'expanded'],
|
|
8163
8201
|
inject: ['provideLayout'],
|
|
8164
8202
|
created() {
|
|
@@ -8259,7 +8297,7 @@ script$v.__file = "src/widgets/Split.vue";
|
|
|
8259
8297
|
|
|
8260
8298
|
var script$u = {
|
|
8261
8299
|
name: 'w-toggle',
|
|
8262
|
-
mixins: [script$
|
|
8300
|
+
mixins: [script$1h, script$1f],
|
|
8263
8301
|
props: ['collapsedIcon', 'expandedIcon', 'expanded', 'align', 'valign'],
|
|
8264
8302
|
methods: {
|
|
8265
8303
|
x_default() {
|
|
@@ -8307,7 +8345,7 @@ script$u.__file = "src/widgets/Toggle.vue";
|
|
|
8307
8345
|
|
|
8308
8346
|
var script$t = {
|
|
8309
8347
|
name: 'w-video',
|
|
8310
|
-
mixins: [script$
|
|
8348
|
+
mixins: [script$1h],
|
|
8311
8349
|
props: ['src', 'poster'],
|
|
8312
8350
|
data() {
|
|
8313
8351
|
return {
|
|
@@ -8359,7 +8397,7 @@ script$t.__file = "src/widgets/Video.vue";
|
|
|
8359
8397
|
|
|
8360
8398
|
var script$s = {
|
|
8361
8399
|
name: 'w-progress',
|
|
8362
|
-
mixins: [script$
|
|
8400
|
+
mixins: [script$1h],
|
|
8363
8401
|
props: ['percent', 'range', 'text'],
|
|
8364
8402
|
methods: {
|
|
8365
8403
|
html_slots() {
|
|
@@ -8404,7 +8442,7 @@ script$s.__file = "src/widgets/Progress.vue";
|
|
|
8404
8442
|
|
|
8405
8443
|
var script$r = {
|
|
8406
8444
|
name: 'w-calendar',
|
|
8407
|
-
mixins: [script$
|
|
8445
|
+
mixins: [script$1h],
|
|
8408
8446
|
emits: ['click:item', 'change'],
|
|
8409
8447
|
props: ['value', 'minValue', 'maxValue', 'current', 'pad', 'face', 'format', 'success', 'cg', 'start',
|
|
8410
8448
|
'enableHour', 'enableMinute', 'enableSecond', 'defaultHour', 'defaultMinute', 'defaultSecond'
|
|
@@ -9176,7 +9214,7 @@ script$r.__file = "src/widgets/Calendar.vue";
|
|
|
9176
9214
|
|
|
9177
9215
|
var script$q = {
|
|
9178
9216
|
name: 'w-timeline',
|
|
9179
|
-
mixins: [script$
|
|
9217
|
+
mixins: [script$1g, script$W],
|
|
9180
9218
|
props: ['face', 'vertical'],
|
|
9181
9219
|
methods: {
|
|
9182
9220
|
indent() {
|
|
@@ -9331,7 +9369,7 @@ script$q.__file = "src/widgets/Timeline.vue";
|
|
|
9331
9369
|
var script$p = {
|
|
9332
9370
|
name: 'w-timeline-item',
|
|
9333
9371
|
pubParentName: 'w-timeline',
|
|
9334
|
-
mixins: [script$
|
|
9372
|
+
mixins: [script$1h],
|
|
9335
9373
|
inject: ['providePubParent'],
|
|
9336
9374
|
props: ['position', 'index', 'align', 'lineColor'],
|
|
9337
9375
|
watch: {
|
|
@@ -9374,7 +9412,7 @@ script$p.__file = "src/widgets/TimelineItem.vue";
|
|
|
9374
9412
|
|
|
9375
9413
|
var script$o = {
|
|
9376
9414
|
name: 'w-slidepicker',
|
|
9377
|
-
mixins: [script$
|
|
9415
|
+
mixins: [script$1h],
|
|
9378
9416
|
provide() {
|
|
9379
9417
|
return {
|
|
9380
9418
|
provideOptionParent: this,
|
|
@@ -9630,6 +9668,7 @@ var script$m = {
|
|
|
9630
9668
|
name: 'w-text',
|
|
9631
9669
|
mixins: [script$A],
|
|
9632
9670
|
props: ['minLength', 'maxLength', 'pattern', 'clearable', 'showCount'],
|
|
9671
|
+
emits: ['clear'],
|
|
9633
9672
|
data() {
|
|
9634
9673
|
return {
|
|
9635
9674
|
hasBorder: true
|
|
@@ -9641,6 +9680,7 @@ var script$m = {
|
|
|
9641
9680
|
if (this.hasVal) {
|
|
9642
9681
|
this.val('');
|
|
9643
9682
|
this.focus();
|
|
9683
|
+
this.$emit('clear', e);
|
|
9644
9684
|
}
|
|
9645
9685
|
},
|
|
9646
9686
|
html_button() {
|
|
@@ -9696,11 +9736,15 @@ var script$l = {
|
|
|
9696
9736
|
let counter = '';
|
|
9697
9737
|
if (this.x.showCount && this.x.maxLength) {
|
|
9698
9738
|
let v = this.x.modelValue || '';
|
|
9699
|
-
|
|
9739
|
+
let cnt = $$1.strLen(v);
|
|
9740
|
+
if (cnt > this.x.maxLength) {
|
|
9741
|
+
cnt = `<em class=w-textarea-show-count-exceed>超出${cnt-this.x.maxLength}字节</em>`;
|
|
9742
|
+
}
|
|
9743
|
+
counter = `${cnt} / ${this.x.maxLength}`;
|
|
9700
9744
|
}
|
|
9701
9745
|
return h('div', {class: 'w-textarea-down'}, [
|
|
9702
9746
|
h('div', {class: 'w-textarea-down-left'}, down),
|
|
9703
|
-
h('div', {class: 'w-textarea-down-right w-textarea-show-count'
|
|
9747
|
+
h('div', {class: 'w-textarea-down-right w-textarea-show-count', innerHTML: counter})
|
|
9704
9748
|
])
|
|
9705
9749
|
}
|
|
9706
9750
|
return down
|
|
@@ -10935,7 +10979,7 @@ var script$e = {
|
|
|
10935
10979
|
])
|
|
10936
10980
|
},
|
|
10937
10981
|
html_input() {
|
|
10938
|
-
return this.html_input_form().concat(h(script$
|
|
10982
|
+
return this.html_input_form().concat(h(script$1e, {
|
|
10939
10983
|
width: '*',
|
|
10940
10984
|
class: 'w-mediaupload-list',
|
|
10941
10985
|
align: this.x.align,
|
|
@@ -10981,7 +11025,7 @@ script$d.__file = "src/widgets/ImageUpload.vue";
|
|
|
10981
11025
|
|
|
10982
11026
|
var script$c = {
|
|
10983
11027
|
name: 'w-option',
|
|
10984
|
-
mixins: [script$
|
|
11028
|
+
mixins: [script$1h],
|
|
10985
11029
|
props: ['value', 'text', 'disabled'],
|
|
10986
11030
|
inject: ['provideOptionParent'],
|
|
10987
11031
|
methods: {
|
|
@@ -11033,7 +11077,7 @@ var script$b = {
|
|
|
11033
11077
|
name: 'w-spinner',
|
|
11034
11078
|
mixins: [script$m],
|
|
11035
11079
|
inject: ['provideRangeParent'],
|
|
11036
|
-
props: ['decimal', 'format', 'showButton', 'buttonPosition', 'step', 'autoFix', 'compare', 'minValue', 'maxValue'
|
|
11080
|
+
props: ['decimal', 'format', 'showButton', 'buttonPosition', 'step', 'autoFix', 'compare', 'minValue', 'maxValue'],
|
|
11037
11081
|
mounted() {
|
|
11038
11082
|
this.x.format && this.doFormat();
|
|
11039
11083
|
},
|
|
@@ -11146,14 +11190,14 @@ var script$b = {
|
|
|
11146
11190
|
h('button', {
|
|
11147
11191
|
ref: 'buttonPlus',
|
|
11148
11192
|
class: 'w-spinner-step-up f-rel',
|
|
11149
|
-
disabled: this.x.disabled,
|
|
11193
|
+
disabled: !!this.x.disabled,
|
|
11150
11194
|
onclick: e => this.stepBy(1),
|
|
11151
11195
|
innerHTML: '<i class="f-abs-center f-i f-i-caret-up"></i>'
|
|
11152
11196
|
}),
|
|
11153
11197
|
h('button', {
|
|
11154
11198
|
ref: 'buttonMinus',
|
|
11155
11199
|
class: 'w-spinner-step-down f-rel',
|
|
11156
|
-
disabled: this.x.disabled,
|
|
11200
|
+
disabled: !!this.x.disabled,
|
|
11157
11201
|
onclick: e => this.stepBy(-1),
|
|
11158
11202
|
innerHTML: '<i class="f-abs-center f-i f-i-caret-down"></i>'
|
|
11159
11203
|
}),
|
|
@@ -11162,14 +11206,14 @@ var script$b = {
|
|
|
11162
11206
|
r.push(h('button', {
|
|
11163
11207
|
ref: 'buttonMinus',
|
|
11164
11208
|
class: 'w-spinner-step-minus f-rel',
|
|
11165
|
-
disabled: this.x.disabled,
|
|
11209
|
+
disabled: !!this.x.disabled,
|
|
11166
11210
|
onclick: e => this.stepBy(-1),
|
|
11167
11211
|
innerHTML: '<i class="f-abs-center f-i f-i-minus"></i>'
|
|
11168
11212
|
}),
|
|
11169
11213
|
h('button', {
|
|
11170
11214
|
ref: 'buttonPlus',
|
|
11171
11215
|
class: 'w-spinner-step-plus f-rel',
|
|
11172
|
-
disabled: this.x.disabled,
|
|
11216
|
+
disabled: !!this.x.disabled,
|
|
11173
11217
|
onclick: e => this.stepBy(1),
|
|
11174
11218
|
innerHTML: '<i class="f-abs-center f-i f-i-plus"></i>'
|
|
11175
11219
|
}));
|
|
@@ -11232,7 +11276,7 @@ var script$b = {
|
|
|
11232
11276
|
html_class() {
|
|
11233
11277
|
return ['z-buttonposition-' + this.x.buttonPosition, {
|
|
11234
11278
|
'z-val': this.hasVal,
|
|
11235
|
-
'z-clearable': this.x.clearable,
|
|
11279
|
+
'z-clearable': !!this.x.clearable,
|
|
11236
11280
|
}]
|
|
11237
11281
|
}
|
|
11238
11282
|
}
|
|
@@ -11245,7 +11289,7 @@ var script$a = {
|
|
|
11245
11289
|
mixins: [script$m],
|
|
11246
11290
|
inject: ['provideRangeParent'],
|
|
11247
11291
|
props: ['showButton', 'multiple', 'format', 'autoFix', 'compare', 'minValue', 'maxValue', 'dropProps', 'enableHour', 'enableMinute', 'enableSecond',
|
|
11248
|
-
'defaultHour', 'defaultMinute', 'defaultSecond'
|
|
11292
|
+
'defaultHour', 'defaultMinute', 'defaultSecond'],
|
|
11249
11293
|
data() {
|
|
11250
11294
|
return {
|
|
11251
11295
|
showDrop: false,
|
|
@@ -11291,6 +11335,7 @@ var script$a = {
|
|
|
11291
11335
|
e.stopPropagation();
|
|
11292
11336
|
if (this.hasVal) {
|
|
11293
11337
|
this.val('');
|
|
11338
|
+
this.$emit('clear', e);
|
|
11294
11339
|
}
|
|
11295
11340
|
},
|
|
11296
11341
|
doAutoFix() {
|
|
@@ -11489,7 +11534,7 @@ var script$9 = {
|
|
|
11489
11534
|
}
|
|
11490
11535
|
},
|
|
11491
11536
|
props: ['multiple', 'cancelable', 'clearable', 'dropProps'],
|
|
11492
|
-
emits: ['clear'],
|
|
11537
|
+
emits: ['drop', 'clear'],
|
|
11493
11538
|
data() {
|
|
11494
11539
|
return {
|
|
11495
11540
|
hasBorder: true,
|
|
@@ -11522,6 +11567,7 @@ var script$9 = {
|
|
|
11522
11567
|
if (this.x.clearable && this.hasVal) {
|
|
11523
11568
|
e.stopPropagation();
|
|
11524
11569
|
this.val('');
|
|
11570
|
+
this.$emit('clear', e);
|
|
11525
11571
|
}
|
|
11526
11572
|
},
|
|
11527
11573
|
formText() {
|
|
@@ -11549,10 +11595,13 @@ var script$9 = {
|
|
|
11549
11595
|
snap: m ? null : () => this.el('form'),
|
|
11550
11596
|
position: m ? null : 'v',
|
|
11551
11597
|
indent: 1,
|
|
11598
|
+
scrollY: true,
|
|
11599
|
+
scrollView: '.z-on',
|
|
11600
|
+
onShow: () => this.$emit('drop'),
|
|
11552
11601
|
onClose: () => this.showDrop = false
|
|
11553
11602
|
};
|
|
11554
11603
|
if (this.x.dropProps) dropProps = mergeProps(dropProps, this.x.dropProps);
|
|
11555
|
-
r.push(h(script$1a, dropProps,
|
|
11604
|
+
r.push(h(script$1a, dropProps, this.$slots));
|
|
11556
11605
|
}
|
|
11557
11606
|
return r
|
|
11558
11607
|
},
|
|
@@ -11600,7 +11649,7 @@ script$9.__file = "src/widgets/DropBox.vue";
|
|
|
11600
11649
|
var script$8 = {
|
|
11601
11650
|
name: 'w-pickbox',
|
|
11602
11651
|
mixins: [script$9],
|
|
11603
|
-
props: ['picker'
|
|
11652
|
+
props: ['picker'],
|
|
11604
11653
|
methods: {
|
|
11605
11654
|
// implement
|
|
11606
11655
|
getInputValue(mv) {
|
|
@@ -11750,7 +11799,7 @@ var script$5 = {
|
|
|
11750
11799
|
name: 'w-combobox',
|
|
11751
11800
|
mixins: [script$A],
|
|
11752
11801
|
props: ['multiple', 'dropper', 'picker', 'dropProps', 'br', 'inputValue', 'clearable'],
|
|
11753
|
-
emits: ['input', 'click:item', 'blur', 'focus', 'update:inputValue'],
|
|
11802
|
+
emits: ['input', 'click:item', 'blur', 'focus', 'update:inputValue', 'clear', 'drop'],
|
|
11754
11803
|
data() {
|
|
11755
11804
|
return {
|
|
11756
11805
|
hasBorder: true,
|
|
@@ -11891,6 +11940,7 @@ var script$5 = {
|
|
|
11891
11940
|
},
|
|
11892
11941
|
clickButtonPicker(e) {
|
|
11893
11942
|
e.stopPropagation();
|
|
11943
|
+
this.warn(false);
|
|
11894
11944
|
let c = this.x.picker;
|
|
11895
11945
|
if (typeof c === 'function') c(this);
|
|
11896
11946
|
},
|
|
@@ -11900,6 +11950,7 @@ var script$5 = {
|
|
|
11900
11950
|
this.clear();
|
|
11901
11951
|
this.suggest(false);
|
|
11902
11952
|
this.focus();
|
|
11953
|
+
this.$emit('clear', e);
|
|
11903
11954
|
},
|
|
11904
11955
|
formText() {
|
|
11905
11956
|
return this.input_title
|
|
@@ -11965,10 +12016,12 @@ var script$5 = {
|
|
|
11965
12016
|
snap:() => this.el('form'),
|
|
11966
12017
|
position: 'v',
|
|
11967
12018
|
indent: 1,
|
|
12019
|
+
scrollY: true,
|
|
12020
|
+
onShow: () => this.$emit('drop'),
|
|
11968
12021
|
onClose: () => this.showSuggest = false
|
|
11969
12022
|
};
|
|
11970
12023
|
if (this.x.dropProps) dropProps = mergeProps(dropProps, this.x.dropProps);
|
|
11971
|
-
r.push(h(script$1a, dropProps,
|
|
12024
|
+
r.push(h(script$1a, dropProps, this.$slots));
|
|
11972
12025
|
}
|
|
11973
12026
|
return [
|
|
11974
12027
|
this.html_input_hidden(),
|
|
@@ -12051,8 +12104,8 @@ script$5.__file = "src/widgets/ComboBox.vue";
|
|
|
12051
12104
|
var script$4 = {
|
|
12052
12105
|
name: 'w-linkbox',
|
|
12053
12106
|
mixins: [script$A],
|
|
12054
|
-
emits: ['input', 'dblclick:item'],
|
|
12055
12107
|
props: ['multiple', 'picker', 'dropProps', 'separator', 'strict', 'br', 'clearable'],
|
|
12108
|
+
emits: ['input', 'dblclick:item', 'clear', 'drop'],
|
|
12056
12109
|
created() {
|
|
12057
12110
|
this.$watch(() => this.x.modelValue, (v) => {
|
|
12058
12111
|
if (!this.isFocus) {
|
|
@@ -12299,6 +12352,7 @@ var script$4 = {
|
|
|
12299
12352
|
if (this.x.clearable && this.hasVal) {
|
|
12300
12353
|
this.val([]);
|
|
12301
12354
|
this.$nextTick(this.focus);
|
|
12355
|
+
this.$emit('clear', e);
|
|
12302
12356
|
}
|
|
12303
12357
|
},
|
|
12304
12358
|
addStore(m) {
|
|
@@ -12423,10 +12477,12 @@ var script$4 = {
|
|
|
12423
12477
|
snap: () => this.el('form'),
|
|
12424
12478
|
position: 'v',
|
|
12425
12479
|
indent: 1,
|
|
12480
|
+
scrollY: true,
|
|
12481
|
+
onShow: () => this.$emit('drop'),
|
|
12426
12482
|
onClose: () => this.showSuggest = false
|
|
12427
12483
|
};
|
|
12428
12484
|
if (this.x.dropProps) dropProps = mergeProps(dropProps, this.x.dropProps);
|
|
12429
|
-
r.push(h(script$1a, dropProps,
|
|
12485
|
+
r.push(h(script$1a, dropProps, this.$slots));
|
|
12430
12486
|
}
|
|
12431
12487
|
return [
|
|
12432
12488
|
this.html_input_hidden(),
|
|
@@ -12724,7 +12780,7 @@ const init_text = $$1.loc.form.jigsaw_drag_right;
|
|
|
12724
12780
|
class: ['w-jigsaw-thumb w-input-button f-i', this.isSuccess ? 'f-i-check' :
|
|
12725
12781
|
'f-i-long-arrow-right'
|
|
12726
12782
|
],
|
|
12727
|
-
disabled: this.x.disabled,
|
|
12783
|
+
disabled: !!this.x.disabled,
|
|
12728
12784
|
onmousedown: this.dragstart,
|
|
12729
12785
|
onmouseenter: this.mouseenter,
|
|
12730
12786
|
ondrop: this.drop,
|
|
@@ -12889,8 +12945,8 @@ var script = {
|
|
|
12889
12945
|
script.__file = "src/widgets/Rate.vue";
|
|
12890
12946
|
|
|
12891
12947
|
const components = [
|
|
12892
|
-
script$
|
|
12893
|
-
script$N, script$
|
|
12948
|
+
script$1i, script$1c, script$1a, script$18, script$16, script$14, script$$, script$_,
|
|
12949
|
+
script$N, script$1d, script$1e, script$Z, script$Y, script$X, script$T, script$U, script$S, script$R, script$Q, script$O, script$L, script$M, script$H, script$G,
|
|
12894
12950
|
script$F, script$13, script$K, script$10, script$11, script$E, script$D, script$x, script$C, script$w, script$v, script$u, script$t, script$s, script$r, script$q, script$p, script$o,
|
|
12895
12951
|
script$B, script$n, script$m, script$l, script$k, script$z, script$j, script$i, script$y, script$h, script$g, script$e, script$d, script$c,
|
|
12896
12952
|
script$b, script$a, script$9, script$8, script$7, script$6, script$5, script$4, script$2, script$1, script
|