dfish-widget 1.0.81 → 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/css/style.css +1 -1
- package/lib/index.esm.js +201 -130
- 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'],
|
|
@@ -7106,6 +7144,19 @@ var script$A = {
|
|
|
7106
7144
|
let t = this.x.label || (this.pubParent && this.pubParent.x.label);
|
|
7107
7145
|
return t ? (t.text || t) : ''
|
|
7108
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
|
+
},
|
|
7109
7160
|
oninput(e) {
|
|
7110
7161
|
this.val(e.target.value);
|
|
7111
7162
|
this.baseValid('change');
|
|
@@ -7200,7 +7251,7 @@ var script$A = {
|
|
|
7200
7251
|
ref: 'v',
|
|
7201
7252
|
name: this.input_name,
|
|
7202
7253
|
value: this.input_value,
|
|
7203
|
-
disabled: this.
|
|
7254
|
+
disabled: this.isDisabled,
|
|
7204
7255
|
class: 'f-hide'
|
|
7205
7256
|
}) : []
|
|
7206
7257
|
},
|
|
@@ -7339,10 +7390,10 @@ var script$A = {
|
|
|
7339
7390
|
return !this.isReadonly && !this.isDisabled
|
|
7340
7391
|
},
|
|
7341
7392
|
isDisabled() {
|
|
7342
|
-
return this.x.disabled
|
|
7393
|
+
return !!this.x.disabled
|
|
7343
7394
|
},
|
|
7344
7395
|
isReadonly() {
|
|
7345
|
-
return this.x.readonly
|
|
7396
|
+
return !!this.x.readonly
|
|
7346
7397
|
},
|
|
7347
7398
|
errorTipTarget() {
|
|
7348
7399
|
return this
|
|
@@ -7540,7 +7591,7 @@ const {leafSymbol: leafSymbol$1} = $$1.symbol;
|
|
|
7540
7591
|
}, this.html_input())
|
|
7541
7592
|
},
|
|
7542
7593
|
html_target() {
|
|
7543
|
-
return this.$slots.default ? h(script$
|
|
7594
|
+
return this.$slots.default ? h(script$1e, {
|
|
7544
7595
|
class: this.$options.name + '-target',
|
|
7545
7596
|
ref: 'target'
|
|
7546
7597
|
}, this.$slots) : []
|
|
@@ -7565,7 +7616,7 @@ const {leafSymbol: leafSymbol$1} = $$1.symbol;
|
|
|
7565
7616
|
},
|
|
7566
7617
|
rules() {
|
|
7567
7618
|
return {
|
|
7568
|
-
required: this.x.required != null ? this.x.required : (this.pubParent && this.pubParent.x.required),
|
|
7619
|
+
required: this.x.required != null ? !!this.x.required : !!(this.pubParent && this.pubParent.x.required),
|
|
7569
7620
|
minSize: this.x.minSize != null ? this.x.minSize : (this.pubParent && this.pubParent.x.minSize),
|
|
7570
7621
|
maxSize: this.x.maxSize != null ? this.x.maxSize : (this.pubParent && this.pubParent.x.maxSize),
|
|
7571
7622
|
}
|
|
@@ -7600,10 +7651,10 @@ const {leafSymbol: leafSymbol$1} = $$1.symbol;
|
|
|
7600
7651
|
return $$1.idsAny(this.x.modelValue, this.checkValue)
|
|
7601
7652
|
},
|
|
7602
7653
|
isDisabled() {
|
|
7603
|
-
return this.x.disabled != null ? this.x.disabled : (this.pubParent && this.pubParent.disabled)
|
|
7654
|
+
return this.x.disabled != null ? !!this.x.disabled : (this.pubParent && this.pubParent.disabled)
|
|
7604
7655
|
},
|
|
7605
7656
|
isReadonly() {
|
|
7606
|
-
return this.x.readonly != null ? this.x.readonly : (this.pubParent && this.pubParent.readonly)
|
|
7657
|
+
return this.x.readonly != null ? !!this.x.readonly : (this.pubParent && this.pubParent.readonly)
|
|
7607
7658
|
},
|
|
7608
7659
|
html_class() {
|
|
7609
7660
|
return {
|
|
@@ -7779,7 +7830,7 @@ script$y.__file = "src/widgets/TripleBox.vue";
|
|
|
7779
7830
|
var script$x = {
|
|
7780
7831
|
name: 'w-leaf',
|
|
7781
7832
|
pubParentName: 'w-tree',
|
|
7782
|
-
mixins: [script$
|
|
7833
|
+
mixins: [script$1h, script$1n],
|
|
7783
7834
|
props: ['text', 'expanded', 'expandedIcon', 'collapsedIcon', 'icon', 'boxSync', 'src', 'disabled'],
|
|
7784
7835
|
inject: ['providePubParent', 'provideLevel', 'provideParentLeaf', 'provideParentTR'],
|
|
7785
7836
|
provide() {
|
|
@@ -7947,7 +7998,7 @@ var script$x = {
|
|
|
7947
7998
|
html_props() {
|
|
7948
7999
|
let exp = this.isExpanded();
|
|
7949
8000
|
let fd = this.isFolder();
|
|
7950
|
-
let ds = this.x.disabled;
|
|
8001
|
+
let ds = !!this.x.disabled;
|
|
7951
8002
|
let prop = {
|
|
7952
8003
|
class: {
|
|
7953
8004
|
'z-on': this.isCurrent,
|
|
@@ -8158,7 +8209,7 @@ script$w.__file = "src/widgets/PageBar.vue";
|
|
|
8158
8209
|
|
|
8159
8210
|
var script$v = {
|
|
8160
8211
|
name: 'w-split',
|
|
8161
|
-
mixins: [script$
|
|
8212
|
+
mixins: [script$1h],
|
|
8162
8213
|
props: ['collapsedIcon', 'expandedIcon', 'movable', 'range', 'toNext', 'expanded'],
|
|
8163
8214
|
inject: ['provideLayout'],
|
|
8164
8215
|
created() {
|
|
@@ -8259,7 +8310,7 @@ script$v.__file = "src/widgets/Split.vue";
|
|
|
8259
8310
|
|
|
8260
8311
|
var script$u = {
|
|
8261
8312
|
name: 'w-toggle',
|
|
8262
|
-
mixins: [script$
|
|
8313
|
+
mixins: [script$1h, script$1f],
|
|
8263
8314
|
props: ['collapsedIcon', 'expandedIcon', 'expanded', 'align', 'valign'],
|
|
8264
8315
|
methods: {
|
|
8265
8316
|
x_default() {
|
|
@@ -8307,7 +8358,7 @@ script$u.__file = "src/widgets/Toggle.vue";
|
|
|
8307
8358
|
|
|
8308
8359
|
var script$t = {
|
|
8309
8360
|
name: 'w-video',
|
|
8310
|
-
mixins: [script$
|
|
8361
|
+
mixins: [script$1h],
|
|
8311
8362
|
props: ['src', 'poster'],
|
|
8312
8363
|
data() {
|
|
8313
8364
|
return {
|
|
@@ -8359,7 +8410,7 @@ script$t.__file = "src/widgets/Video.vue";
|
|
|
8359
8410
|
|
|
8360
8411
|
var script$s = {
|
|
8361
8412
|
name: 'w-progress',
|
|
8362
|
-
mixins: [script$
|
|
8413
|
+
mixins: [script$1h],
|
|
8363
8414
|
props: ['percent', 'range', 'text'],
|
|
8364
8415
|
methods: {
|
|
8365
8416
|
html_slots() {
|
|
@@ -8404,7 +8455,7 @@ script$s.__file = "src/widgets/Progress.vue";
|
|
|
8404
8455
|
|
|
8405
8456
|
var script$r = {
|
|
8406
8457
|
name: 'w-calendar',
|
|
8407
|
-
mixins: [script$
|
|
8458
|
+
mixins: [script$1h],
|
|
8408
8459
|
emits: ['click:item', 'change'],
|
|
8409
8460
|
props: ['value', 'minValue', 'maxValue', 'current', 'pad', 'face', 'format', 'success', 'cg', 'start',
|
|
8410
8461
|
'enableHour', 'enableMinute', 'enableSecond', 'defaultHour', 'defaultMinute', 'defaultSecond'
|
|
@@ -9176,7 +9227,7 @@ script$r.__file = "src/widgets/Calendar.vue";
|
|
|
9176
9227
|
|
|
9177
9228
|
var script$q = {
|
|
9178
9229
|
name: 'w-timeline',
|
|
9179
|
-
mixins: [script$
|
|
9230
|
+
mixins: [script$1g, script$W],
|
|
9180
9231
|
props: ['face', 'vertical'],
|
|
9181
9232
|
methods: {
|
|
9182
9233
|
indent() {
|
|
@@ -9331,7 +9382,7 @@ script$q.__file = "src/widgets/Timeline.vue";
|
|
|
9331
9382
|
var script$p = {
|
|
9332
9383
|
name: 'w-timeline-item',
|
|
9333
9384
|
pubParentName: 'w-timeline',
|
|
9334
|
-
mixins: [script$
|
|
9385
|
+
mixins: [script$1h],
|
|
9335
9386
|
inject: ['providePubParent'],
|
|
9336
9387
|
props: ['position', 'index', 'align', 'lineColor'],
|
|
9337
9388
|
watch: {
|
|
@@ -9374,7 +9425,7 @@ script$p.__file = "src/widgets/TimelineItem.vue";
|
|
|
9374
9425
|
|
|
9375
9426
|
var script$o = {
|
|
9376
9427
|
name: 'w-slidepicker',
|
|
9377
|
-
mixins: [script$
|
|
9428
|
+
mixins: [script$1h],
|
|
9378
9429
|
provide() {
|
|
9379
9430
|
return {
|
|
9380
9431
|
provideOptionParent: this,
|
|
@@ -9630,6 +9681,7 @@ var script$m = {
|
|
|
9630
9681
|
name: 'w-text',
|
|
9631
9682
|
mixins: [script$A],
|
|
9632
9683
|
props: ['minLength', 'maxLength', 'pattern', 'clearable', 'showCount'],
|
|
9684
|
+
emits: ['clear'],
|
|
9633
9685
|
data() {
|
|
9634
9686
|
return {
|
|
9635
9687
|
hasBorder: true
|
|
@@ -9641,6 +9693,7 @@ var script$m = {
|
|
|
9641
9693
|
if (this.hasVal) {
|
|
9642
9694
|
this.val('');
|
|
9643
9695
|
this.focus();
|
|
9696
|
+
this.$emit('clear', e);
|
|
9644
9697
|
}
|
|
9645
9698
|
},
|
|
9646
9699
|
html_button() {
|
|
@@ -9696,11 +9749,15 @@ var script$l = {
|
|
|
9696
9749
|
let counter = '';
|
|
9697
9750
|
if (this.x.showCount && this.x.maxLength) {
|
|
9698
9751
|
let v = this.x.modelValue || '';
|
|
9699
|
-
|
|
9752
|
+
let cnt = $$1.strLen(v);
|
|
9753
|
+
if (cnt > this.x.maxLength) {
|
|
9754
|
+
cnt = `<em class=w-textarea-show-count-exceed>超出${cnt-this.x.maxLength}字节</em>`;
|
|
9755
|
+
}
|
|
9756
|
+
counter = `${cnt} / ${this.x.maxLength}`;
|
|
9700
9757
|
}
|
|
9701
9758
|
return h('div', {class: 'w-textarea-down'}, [
|
|
9702
9759
|
h('div', {class: 'w-textarea-down-left'}, down),
|
|
9703
|
-
h('div', {class: 'w-textarea-down-right w-textarea-show-count'
|
|
9760
|
+
h('div', {class: 'w-textarea-down-right w-textarea-show-count', innerHTML: counter})
|
|
9704
9761
|
])
|
|
9705
9762
|
}
|
|
9706
9763
|
return down
|
|
@@ -10935,7 +10992,7 @@ var script$e = {
|
|
|
10935
10992
|
])
|
|
10936
10993
|
},
|
|
10937
10994
|
html_input() {
|
|
10938
|
-
return this.html_input_form().concat(h(script$
|
|
10995
|
+
return this.html_input_form().concat(h(script$1e, {
|
|
10939
10996
|
width: '*',
|
|
10940
10997
|
class: 'w-mediaupload-list',
|
|
10941
10998
|
align: this.x.align,
|
|
@@ -10981,7 +11038,7 @@ script$d.__file = "src/widgets/ImageUpload.vue";
|
|
|
10981
11038
|
|
|
10982
11039
|
var script$c = {
|
|
10983
11040
|
name: 'w-option',
|
|
10984
|
-
mixins: [script$
|
|
11041
|
+
mixins: [script$1h],
|
|
10985
11042
|
props: ['value', 'text', 'disabled'],
|
|
10986
11043
|
inject: ['provideOptionParent'],
|
|
10987
11044
|
methods: {
|
|
@@ -11033,7 +11090,7 @@ var script$b = {
|
|
|
11033
11090
|
name: 'w-spinner',
|
|
11034
11091
|
mixins: [script$m],
|
|
11035
11092
|
inject: ['provideRangeParent'],
|
|
11036
|
-
props: ['decimal', 'format', 'showButton', 'buttonPosition', 'step', 'autoFix', 'compare', 'minValue', 'maxValue'
|
|
11093
|
+
props: ['decimal', 'format', 'showButton', 'buttonPosition', 'step', 'autoFix', 'compare', 'minValue', 'maxValue'],
|
|
11037
11094
|
mounted() {
|
|
11038
11095
|
this.x.format && this.doFormat();
|
|
11039
11096
|
},
|
|
@@ -11146,14 +11203,14 @@ var script$b = {
|
|
|
11146
11203
|
h('button', {
|
|
11147
11204
|
ref: 'buttonPlus',
|
|
11148
11205
|
class: 'w-spinner-step-up f-rel',
|
|
11149
|
-
disabled: this.x.disabled,
|
|
11206
|
+
disabled: !!this.x.disabled,
|
|
11150
11207
|
onclick: e => this.stepBy(1),
|
|
11151
11208
|
innerHTML: '<i class="f-abs-center f-i f-i-caret-up"></i>'
|
|
11152
11209
|
}),
|
|
11153
11210
|
h('button', {
|
|
11154
11211
|
ref: 'buttonMinus',
|
|
11155
11212
|
class: 'w-spinner-step-down f-rel',
|
|
11156
|
-
disabled: this.x.disabled,
|
|
11213
|
+
disabled: !!this.x.disabled,
|
|
11157
11214
|
onclick: e => this.stepBy(-1),
|
|
11158
11215
|
innerHTML: '<i class="f-abs-center f-i f-i-caret-down"></i>'
|
|
11159
11216
|
}),
|
|
@@ -11162,14 +11219,14 @@ var script$b = {
|
|
|
11162
11219
|
r.push(h('button', {
|
|
11163
11220
|
ref: 'buttonMinus',
|
|
11164
11221
|
class: 'w-spinner-step-minus f-rel',
|
|
11165
|
-
disabled: this.x.disabled,
|
|
11222
|
+
disabled: !!this.x.disabled,
|
|
11166
11223
|
onclick: e => this.stepBy(-1),
|
|
11167
11224
|
innerHTML: '<i class="f-abs-center f-i f-i-minus"></i>'
|
|
11168
11225
|
}),
|
|
11169
11226
|
h('button', {
|
|
11170
11227
|
ref: 'buttonPlus',
|
|
11171
11228
|
class: 'w-spinner-step-plus f-rel',
|
|
11172
|
-
disabled: this.x.disabled,
|
|
11229
|
+
disabled: !!this.x.disabled,
|
|
11173
11230
|
onclick: e => this.stepBy(1),
|
|
11174
11231
|
innerHTML: '<i class="f-abs-center f-i f-i-plus"></i>'
|
|
11175
11232
|
}));
|
|
@@ -11232,7 +11289,7 @@ var script$b = {
|
|
|
11232
11289
|
html_class() {
|
|
11233
11290
|
return ['z-buttonposition-' + this.x.buttonPosition, {
|
|
11234
11291
|
'z-val': this.hasVal,
|
|
11235
|
-
'z-clearable': this.x.clearable,
|
|
11292
|
+
'z-clearable': !!this.x.clearable,
|
|
11236
11293
|
}]
|
|
11237
11294
|
}
|
|
11238
11295
|
}
|
|
@@ -11245,7 +11302,7 @@ var script$a = {
|
|
|
11245
11302
|
mixins: [script$m],
|
|
11246
11303
|
inject: ['provideRangeParent'],
|
|
11247
11304
|
props: ['showButton', 'multiple', 'format', 'autoFix', 'compare', 'minValue', 'maxValue', 'dropProps', 'enableHour', 'enableMinute', 'enableSecond',
|
|
11248
|
-
'defaultHour', 'defaultMinute', 'defaultSecond'
|
|
11305
|
+
'defaultHour', 'defaultMinute', 'defaultSecond'],
|
|
11249
11306
|
data() {
|
|
11250
11307
|
return {
|
|
11251
11308
|
showDrop: false,
|
|
@@ -11282,7 +11339,8 @@ var script$a = {
|
|
|
11282
11339
|
onkeyup() {
|
|
11283
11340
|
this.showDrop = true;
|
|
11284
11341
|
},
|
|
11285
|
-
|
|
11342
|
+
// implement
|
|
11343
|
+
onCloseDrop() {
|
|
11286
11344
|
this.showDrop = false;
|
|
11287
11345
|
this.currentDate = null;
|
|
11288
11346
|
this.doAutoFix();
|
|
@@ -11291,6 +11349,7 @@ var script$a = {
|
|
|
11291
11349
|
e.stopPropagation();
|
|
11292
11350
|
if (this.hasVal) {
|
|
11293
11351
|
this.val('');
|
|
11352
|
+
this.$emit('clear', e);
|
|
11294
11353
|
}
|
|
11295
11354
|
},
|
|
11296
11355
|
doAutoFix() {
|
|
@@ -11388,10 +11447,9 @@ var script$a = {
|
|
|
11388
11447
|
autoHide: true,
|
|
11389
11448
|
snap: () => this.snapElem(),
|
|
11390
11449
|
position: 'v',
|
|
11391
|
-
indent: 1
|
|
11392
|
-
onClose: this.onclose
|
|
11450
|
+
indent: 1
|
|
11393
11451
|
};
|
|
11394
|
-
|
|
11452
|
+
dropProps = this.mergeDropProps(dropProps);
|
|
11395
11453
|
r.push(h(script$1a, dropProps, {
|
|
11396
11454
|
default: () => h(script$r, {
|
|
11397
11455
|
height: '*',
|
|
@@ -11522,6 +11580,7 @@ var script$9 = {
|
|
|
11522
11580
|
if (this.x.clearable && this.hasVal) {
|
|
11523
11581
|
e.stopPropagation();
|
|
11524
11582
|
this.val('');
|
|
11583
|
+
this.$emit('clear', e);
|
|
11525
11584
|
}
|
|
11526
11585
|
},
|
|
11527
11586
|
formText() {
|
|
@@ -11549,10 +11608,11 @@ var script$9 = {
|
|
|
11549
11608
|
snap: m ? null : () => this.el('form'),
|
|
11550
11609
|
position: m ? null : 'v',
|
|
11551
11610
|
indent: 1,
|
|
11552
|
-
|
|
11611
|
+
scrollY: true,
|
|
11612
|
+
scrollView: '.z-on'
|
|
11553
11613
|
};
|
|
11554
|
-
|
|
11555
|
-
r.push(h(script$1a, dropProps,
|
|
11614
|
+
dropProps = this.mergeDropProps(dropProps);
|
|
11615
|
+
r.push(h(script$1a, dropProps, this.$slots));
|
|
11556
11616
|
}
|
|
11557
11617
|
return r
|
|
11558
11618
|
},
|
|
@@ -11600,7 +11660,7 @@ script$9.__file = "src/widgets/DropBox.vue";
|
|
|
11600
11660
|
var script$8 = {
|
|
11601
11661
|
name: 'w-pickbox',
|
|
11602
11662
|
mixins: [script$9],
|
|
11603
|
-
props: ['picker'
|
|
11663
|
+
props: ['picker'],
|
|
11604
11664
|
methods: {
|
|
11605
11665
|
// implement
|
|
11606
11666
|
getInputValue(mv) {
|
|
@@ -11750,7 +11810,7 @@ var script$5 = {
|
|
|
11750
11810
|
name: 'w-combobox',
|
|
11751
11811
|
mixins: [script$A],
|
|
11752
11812
|
props: ['multiple', 'dropper', 'picker', 'dropProps', 'br', 'inputValue', 'clearable'],
|
|
11753
|
-
emits: ['input', 'click:item', 'blur', 'focus', 'update:inputValue'],
|
|
11813
|
+
emits: ['input', 'click:item', 'blur', 'focus', 'update:inputValue', 'clear'],
|
|
11754
11814
|
data() {
|
|
11755
11815
|
return {
|
|
11756
11816
|
hasBorder: true,
|
|
@@ -11875,6 +11935,10 @@ var script$5 = {
|
|
|
11875
11935
|
e.preventDefault();
|
|
11876
11936
|
}
|
|
11877
11937
|
},
|
|
11938
|
+
// implement
|
|
11939
|
+
onCloseDrop() {
|
|
11940
|
+
this.showSuggest = false;
|
|
11941
|
+
},
|
|
11878
11942
|
clickItem(e, item) {
|
|
11879
11943
|
e.runType = 'click:item';
|
|
11880
11944
|
e.value = item;
|
|
@@ -11891,6 +11955,7 @@ var script$5 = {
|
|
|
11891
11955
|
},
|
|
11892
11956
|
clickButtonPicker(e) {
|
|
11893
11957
|
e.stopPropagation();
|
|
11958
|
+
this.warn(false);
|
|
11894
11959
|
let c = this.x.picker;
|
|
11895
11960
|
if (typeof c === 'function') c(this);
|
|
11896
11961
|
},
|
|
@@ -11900,6 +11965,7 @@ var script$5 = {
|
|
|
11900
11965
|
this.clear();
|
|
11901
11966
|
this.suggest(false);
|
|
11902
11967
|
this.focus();
|
|
11968
|
+
this.$emit('clear', e);
|
|
11903
11969
|
},
|
|
11904
11970
|
formText() {
|
|
11905
11971
|
return this.input_title
|
|
@@ -11965,10 +12031,10 @@ var script$5 = {
|
|
|
11965
12031
|
snap:() => this.el('form'),
|
|
11966
12032
|
position: 'v',
|
|
11967
12033
|
indent: 1,
|
|
11968
|
-
|
|
12034
|
+
scrollY: true
|
|
11969
12035
|
};
|
|
11970
|
-
|
|
11971
|
-
r.push(h(script$1a, dropProps,
|
|
12036
|
+
dropProps = this.mergeDropProps(dropProps);
|
|
12037
|
+
r.push(h(script$1a, dropProps, this.$slots));
|
|
11972
12038
|
}
|
|
11973
12039
|
return [
|
|
11974
12040
|
this.html_input_hidden(),
|
|
@@ -12051,8 +12117,8 @@ script$5.__file = "src/widgets/ComboBox.vue";
|
|
|
12051
12117
|
var script$4 = {
|
|
12052
12118
|
name: 'w-linkbox',
|
|
12053
12119
|
mixins: [script$A],
|
|
12054
|
-
emits: ['input', 'dblclick:item'],
|
|
12055
12120
|
props: ['multiple', 'picker', 'dropProps', 'separator', 'strict', 'br', 'clearable'],
|
|
12121
|
+
emits: ['input', 'dblclick:item', 'clear'],
|
|
12056
12122
|
created() {
|
|
12057
12123
|
this.$watch(() => this.x.modelValue, (v) => {
|
|
12058
12124
|
if (!this.isFocus) {
|
|
@@ -12299,6 +12365,7 @@ var script$4 = {
|
|
|
12299
12365
|
if (this.x.clearable && this.hasVal) {
|
|
12300
12366
|
this.val([]);
|
|
12301
12367
|
this.$nextTick(this.focus);
|
|
12368
|
+
this.$emit('clear', e);
|
|
12302
12369
|
}
|
|
12303
12370
|
},
|
|
12304
12371
|
addStore(m) {
|
|
@@ -12374,6 +12441,10 @@ var script$4 = {
|
|
|
12374
12441
|
}
|
|
12375
12442
|
}
|
|
12376
12443
|
},
|
|
12444
|
+
// implement
|
|
12445
|
+
onCloseDrop() {
|
|
12446
|
+
this.showSuggest = false;
|
|
12447
|
+
},
|
|
12377
12448
|
formText() {
|
|
12378
12449
|
return this.input_title
|
|
12379
12450
|
},
|
|
@@ -12423,10 +12494,10 @@ var script$4 = {
|
|
|
12423
12494
|
snap: () => this.el('form'),
|
|
12424
12495
|
position: 'v',
|
|
12425
12496
|
indent: 1,
|
|
12426
|
-
|
|
12497
|
+
scrollY: true
|
|
12427
12498
|
};
|
|
12428
|
-
|
|
12429
|
-
r.push(h(script$1a, dropProps,
|
|
12499
|
+
dropProps = this.mergeDropProps(dropProps);
|
|
12500
|
+
r.push(h(script$1a, dropProps, this.$slots));
|
|
12430
12501
|
}
|
|
12431
12502
|
return [
|
|
12432
12503
|
this.html_input_hidden(),
|
|
@@ -12724,7 +12795,7 @@ const init_text = $$1.loc.form.jigsaw_drag_right;
|
|
|
12724
12795
|
class: ['w-jigsaw-thumb w-input-button f-i', this.isSuccess ? 'f-i-check' :
|
|
12725
12796
|
'f-i-long-arrow-right'
|
|
12726
12797
|
],
|
|
12727
|
-
disabled: this.x.disabled,
|
|
12798
|
+
disabled: !!this.x.disabled,
|
|
12728
12799
|
onmousedown: this.dragstart,
|
|
12729
12800
|
onmouseenter: this.mouseenter,
|
|
12730
12801
|
ondrop: this.drop,
|
|
@@ -12889,8 +12960,8 @@ var script = {
|
|
|
12889
12960
|
script.__file = "src/widgets/Rate.vue";
|
|
12890
12961
|
|
|
12891
12962
|
const components = [
|
|
12892
|
-
script$
|
|
12893
|
-
script$N, script$
|
|
12963
|
+
script$1i, script$1c, script$1a, script$18, script$16, script$14, script$$, script$_,
|
|
12964
|
+
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
12965
|
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
12966
|
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
12967
|
script$b, script$a, script$9, script$8, script$7, script$6, script$5, script$4, script$2, script$1, script
|