dfish-widget 0.1.363 → 0.1.364
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 +202 -200
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -6702,6 +6702,10 @@ var script$y = {
|
|
|
6702
6702
|
this.val(empty || !this.defaultChecked ? false : true);
|
|
6703
6703
|
}
|
|
6704
6704
|
},
|
|
6705
|
+
onclick: function onclick(e) {
|
|
6706
|
+
//implement
|
|
6707
|
+
e.stopPropagation();
|
|
6708
|
+
},
|
|
6705
6709
|
onchange: function onchange(e) {
|
|
6706
6710
|
if (this.warnClass && this.x.name) {
|
|
6707
6711
|
this.ownerView.fAll(this.x.name).forEach(function (v) {
|
|
@@ -6768,16 +6772,9 @@ var script$y = {
|
|
|
6768
6772
|
}, this.x.text)];
|
|
6769
6773
|
},
|
|
6770
6774
|
html_main: function html_main() {
|
|
6771
|
-
var _this37 = this;
|
|
6772
|
-
|
|
6773
6775
|
return h$1('label', {
|
|
6774
6776
|
class: 'w-input',
|
|
6775
|
-
onclick:
|
|
6776
|
-
e.stopPropagation();
|
|
6777
|
-
_this37.provideBoxParent && _this37.provideBoxParent.clickBoxProxy(e);
|
|
6778
|
-
|
|
6779
|
-
_this37.relate();
|
|
6780
|
-
}
|
|
6777
|
+
onclick: this.onclick
|
|
6781
6778
|
}, this.html_input());
|
|
6782
6779
|
},
|
|
6783
6780
|
html_target: function html_target() {
|
|
@@ -6824,16 +6821,16 @@ var script$y = {
|
|
|
6824
6821
|
}
|
|
6825
6822
|
},
|
|
6826
6823
|
mounted: function mounted() {
|
|
6827
|
-
var
|
|
6824
|
+
var _this37 = this;
|
|
6828
6825
|
|
|
6829
6826
|
var t = this.$refs.target;
|
|
6830
6827
|
|
|
6831
6828
|
if (t) {
|
|
6832
6829
|
this.$nextTick(function () {
|
|
6833
|
-
|
|
6834
|
-
return
|
|
6830
|
+
_this37.$watch(function () {
|
|
6831
|
+
return _this37.isChecked && !_this37.isDisabled;
|
|
6835
6832
|
}, function (v) {
|
|
6836
|
-
t.$el &&
|
|
6833
|
+
t.$el && _this37.ownerView.fAll(null, t.$el).forEach(function (n) {
|
|
6837
6834
|
return n.x.disabled = !v;
|
|
6838
6835
|
});
|
|
6839
6836
|
}, {
|
|
@@ -6858,6 +6855,11 @@ var script$x = {
|
|
|
6858
6855
|
}
|
|
6859
6856
|
},
|
|
6860
6857
|
methods: {
|
|
6858
|
+
onclick: function onclick(e) {
|
|
6859
|
+
e.stopPropagation();
|
|
6860
|
+
this.provideBoxParent && this.provideBoxParent.clickBoxProxy(e);
|
|
6861
|
+
this.relate();
|
|
6862
|
+
},
|
|
6861
6863
|
checkstate: function checkstate(a) {
|
|
6862
6864
|
var b = this.indeterminate ? 2 : this.isChecked ? 1 : 0;
|
|
6863
6865
|
|
|
@@ -6918,7 +6920,7 @@ var script$w = {
|
|
|
6918
6920
|
name: 'w-leaf',
|
|
6919
6921
|
pubParentName: 'w-tree',
|
|
6920
6922
|
mixins: [script$1j, script$1l],
|
|
6921
|
-
props: ['text', 'expandedIcon', 'collapsedIcon', 'expanded', '
|
|
6923
|
+
props: ['text', 'expandedIcon', 'collapsedIcon', 'expanded', 'boxSync', 'br', 'format', 'folder', 'src', 'success', 'filter', 'error', 'complete'],
|
|
6922
6924
|
inject: ['providePubParent', 'provideLeafLevel', 'provideParentLeaf'],
|
|
6923
6925
|
provide: function provide() {
|
|
6924
6926
|
return {
|
|
@@ -6939,6 +6941,11 @@ var script$w = {
|
|
|
6939
6941
|
hasChild: function hasChild() {
|
|
6940
6942
|
return this.inTree() ? $$1.hasChild(this.$slots) : this.provideParentLeaf.hasChild();
|
|
6941
6943
|
},
|
|
6944
|
+
children: function children() {
|
|
6945
|
+
return $$1.lodash.map(this.$refs.cont.querySelectorAll(':scope > .w-leaf'), function (v) {
|
|
6946
|
+
return $$1(v);
|
|
6947
|
+
});
|
|
6948
|
+
},
|
|
6942
6949
|
getInitLoaded: function getInitLoaded() {
|
|
6943
6950
|
return this.hasChild() || (this.x || this.$props).folder === false || !this.getSrc() ? true : false;
|
|
6944
6951
|
},
|
|
@@ -6952,18 +6959,18 @@ var script$w = {
|
|
|
6952
6959
|
return this.inTree() ? this.hasChild() ? true : this.x.folder != null ? this.x.folder : !!(this.getSrc() && !this.loaded) : this.provideParentLeaf.isFolder();
|
|
6953
6960
|
},
|
|
6954
6961
|
toggle: function toggle(exp, fn) {
|
|
6955
|
-
var
|
|
6962
|
+
var _this38 = this;
|
|
6956
6963
|
|
|
6957
6964
|
if (this.inTree()) {
|
|
6958
6965
|
this.x.expanded = exp != null ? exp : !this.x.expanded;
|
|
6959
6966
|
|
|
6960
6967
|
if (this.isExpanded() && !this.loaded) {
|
|
6961
6968
|
this.request(function () {
|
|
6962
|
-
fn && fn(
|
|
6969
|
+
fn && fn(_this38.isExpanded());
|
|
6963
6970
|
});
|
|
6964
6971
|
} else {
|
|
6965
6972
|
fn && this.$nextTick(function () {
|
|
6966
|
-
fn(
|
|
6973
|
+
fn(_this38.isExpanded());
|
|
6967
6974
|
});
|
|
6968
6975
|
}
|
|
6969
6976
|
} else {
|
|
@@ -6973,11 +6980,6 @@ var script$w = {
|
|
|
6973
6980
|
clickBoxProxy: function clickBoxProxy(e) {
|
|
6974
6981
|
this._triple();
|
|
6975
6982
|
},
|
|
6976
|
-
children: function children() {
|
|
6977
|
-
return $$1.lodash.map(this.$refs.cont.querySelectorAll(':scope > .w-leaf'), function (v) {
|
|
6978
|
-
return $$1(v);
|
|
6979
|
-
});
|
|
6980
|
-
},
|
|
6981
6983
|
// triplebox 级联勾选
|
|
6982
6984
|
_triple: function _triple() {
|
|
6983
6985
|
var p = this;
|
|
@@ -7016,14 +7018,14 @@ var script$w = {
|
|
|
7016
7018
|
this.el().classList.remove('z-hv');
|
|
7017
7019
|
},
|
|
7018
7020
|
html_self: function html_self() {
|
|
7019
|
-
var
|
|
7021
|
+
var _this39 = this;
|
|
7020
7022
|
|
|
7021
7023
|
var exp = this.isExpanded();
|
|
7022
7024
|
var ico = exp ? this.x.expandedIcon : this.x.collapsedIcon;
|
|
7023
7025
|
return h$1('div', mergeProps$1(this.html_attrs, this.$attrs, this.html_props), [h$1('div', {
|
|
7024
7026
|
class: ['w-leaf-toggle f-i', exp ? 'f-i-caret-down' : 'f-i-caret-right'],
|
|
7025
7027
|
onclick: function onclick(e) {
|
|
7026
|
-
e.stopPropagation(),
|
|
7028
|
+
e.stopPropagation(), _this39.toggle();
|
|
7027
7029
|
}
|
|
7028
7030
|
}), this.$slots.box && this.$slots.box(), ico && h$1(script$1e, {
|
|
7029
7031
|
src: ico,
|
|
@@ -7075,7 +7077,7 @@ var script$w = {
|
|
|
7075
7077
|
}
|
|
7076
7078
|
},
|
|
7077
7079
|
mounted: function mounted() {
|
|
7078
|
-
var
|
|
7080
|
+
var _this40 = this;
|
|
7079
7081
|
|
|
7080
7082
|
if (this.x.expanded) this.toggle(true);
|
|
7081
7083
|
|
|
@@ -7089,8 +7091,8 @@ var script$w = {
|
|
|
7089
7091
|
|
|
7090
7092
|
if (this.boxProxy) {
|
|
7091
7093
|
this.$nextTick(function () {
|
|
7092
|
-
if (!
|
|
7093
|
-
|
|
7094
|
+
if (!_this40.isFolder() && !_this40.$refs.cont.nextElementSibling) {
|
|
7095
|
+
_this40._triple();
|
|
7094
7096
|
}
|
|
7095
7097
|
});
|
|
7096
7098
|
}
|
|
@@ -7139,7 +7141,7 @@ var script$v = {
|
|
|
7139
7141
|
this.clickItem(e, v);
|
|
7140
7142
|
},
|
|
7141
7143
|
html_button: function html_button(i, t, ic, ds) {
|
|
7142
|
-
var
|
|
7144
|
+
var _this41 = this;
|
|
7143
7145
|
|
|
7144
7146
|
return h$1('button', {
|
|
7145
7147
|
class: ['w-pagebar-button w-pagebar-num', _defineProperty({
|
|
@@ -7148,7 +7150,7 @@ var script$v = {
|
|
|
7148
7150
|
}, ic, ic)],
|
|
7149
7151
|
disabled: ds,
|
|
7150
7152
|
onclick: function onclick(e) {
|
|
7151
|
-
return
|
|
7153
|
+
return _this41.clickItem(e, i);
|
|
7152
7154
|
}
|
|
7153
7155
|
}, t || (ic ? '' : i));
|
|
7154
7156
|
},
|
|
@@ -7156,7 +7158,7 @@ var script$v = {
|
|
|
7156
7158
|
return this.x.face === 'button' ? this.html_face_button() : this.x.face === 'simple' ? this.html_face_simple() : this.html_face_normal();
|
|
7157
7159
|
},
|
|
7158
7160
|
html_buttons: function html_buttons() {
|
|
7159
|
-
var
|
|
7161
|
+
var _this42 = this;
|
|
7160
7162
|
|
|
7161
7163
|
return [h$1(script$$, {
|
|
7162
7164
|
class: 'w-pagebar-button w-pagebar-prev',
|
|
@@ -7164,7 +7166,7 @@ var script$v = {
|
|
|
7164
7166
|
disabled: this.currentPage == 1,
|
|
7165
7167
|
title: $$1.loc.page_text.prev,
|
|
7166
7168
|
onclick: function onclick(e) {
|
|
7167
|
-
return
|
|
7169
|
+
return _this42.clickItem(e, _this42.currentPage - 1);
|
|
7168
7170
|
}
|
|
7169
7171
|
}), h$1(script$$, {
|
|
7170
7172
|
class: 'w-pagebar-button w-pagebar-next',
|
|
@@ -7172,12 +7174,12 @@ var script$v = {
|
|
|
7172
7174
|
disabled: this.currentPage == this.sumPage,
|
|
7173
7175
|
title: $$1.loc.page_text.next,
|
|
7174
7176
|
onclick: function onclick(e) {
|
|
7175
|
-
return
|
|
7177
|
+
return _this42.clickItem(e, _this42.currentPage + 1);
|
|
7176
7178
|
}
|
|
7177
7179
|
})];
|
|
7178
7180
|
},
|
|
7179
7181
|
html_drop: function html_drop() {
|
|
7180
|
-
var
|
|
7182
|
+
var _this43 = this;
|
|
7181
7183
|
|
|
7182
7184
|
var s = [];
|
|
7183
7185
|
|
|
@@ -7187,7 +7189,7 @@ var script$v = {
|
|
|
7187
7189
|
ref: 'drop',
|
|
7188
7190
|
text: this.currentPage + '/' + this.sumPage,
|
|
7189
7191
|
onclick: function onclick(e) {
|
|
7190
|
-
return
|
|
7192
|
+
return _this43.clickDrop(e);
|
|
7191
7193
|
}
|
|
7192
7194
|
}));
|
|
7193
7195
|
}
|
|
@@ -7200,7 +7202,7 @@ var script$v = {
|
|
|
7200
7202
|
text: i,
|
|
7201
7203
|
on: {
|
|
7202
7204
|
click: function click(e) {
|
|
7203
|
-
return
|
|
7205
|
+
return _this43.clickItem(e, i);
|
|
7204
7206
|
}
|
|
7205
7207
|
}
|
|
7206
7208
|
}));
|
|
@@ -7213,14 +7215,14 @@ var script$v = {
|
|
|
7213
7215
|
s.push(h$1(script$Z, {
|
|
7214
7216
|
snap: {
|
|
7215
7217
|
target: function target() {
|
|
7216
|
-
return
|
|
7218
|
+
return _this43.$refs.drop;
|
|
7217
7219
|
},
|
|
7218
7220
|
position: 'v',
|
|
7219
7221
|
indent: 1
|
|
7220
7222
|
},
|
|
7221
7223
|
on: {
|
|
7222
7224
|
close: function close() {
|
|
7223
|
-
return
|
|
7225
|
+
return _this43.showDrop = false;
|
|
7224
7226
|
}
|
|
7225
7227
|
}
|
|
7226
7228
|
}, {
|
|
@@ -7241,7 +7243,7 @@ var script$v = {
|
|
|
7241
7243
|
return b;
|
|
7242
7244
|
},
|
|
7243
7245
|
html_face_normal: function html_face_normal() {
|
|
7244
|
-
var
|
|
7246
|
+
var _this44 = this;
|
|
7245
7247
|
|
|
7246
7248
|
var s = [];
|
|
7247
7249
|
var sp = this.sumPage;
|
|
@@ -7275,13 +7277,13 @@ var script$v = {
|
|
|
7275
7277
|
class: 'w-pagebar-jump-input',
|
|
7276
7278
|
ref: 'jumpInput',
|
|
7277
7279
|
onfocus: function onfocus(e) {
|
|
7278
|
-
return
|
|
7280
|
+
return _this44.isJumpFocus = true;
|
|
7279
7281
|
},
|
|
7280
7282
|
onblur: function onblur(e) {
|
|
7281
|
-
return
|
|
7283
|
+
return _this44.isJumpFocus = false;
|
|
7282
7284
|
},
|
|
7283
7285
|
onkeydown: function onkeydown(e) {
|
|
7284
|
-
return e.keyCode == 13 &&
|
|
7286
|
+
return e.keyCode == 13 && _this44.onJumpClick(e);
|
|
7285
7287
|
}
|
|
7286
7288
|
}));
|
|
7287
7289
|
s.push(h$1('button', {
|
|
@@ -7342,10 +7344,10 @@ var script$u = {
|
|
|
7342
7344
|
props: ['collapsedIcon', 'expandedIcon', 'movable', 'range', 'toNext', 'expanded'],
|
|
7343
7345
|
inject: ['provideLayout'],
|
|
7344
7346
|
created: function created() {
|
|
7345
|
-
var
|
|
7347
|
+
var _this45 = this;
|
|
7346
7348
|
|
|
7347
7349
|
this.$watch('expanded', function (v) {
|
|
7348
|
-
if (typeof v === 'boolean')
|
|
7350
|
+
if (typeof v === 'boolean') _this45.x.expanded = v;else if (_this45.x.expanded == null) _this45.x.expanded = true;
|
|
7349
7351
|
}, {
|
|
7350
7352
|
immediate: true
|
|
7351
7353
|
});
|
|
@@ -7360,7 +7362,7 @@ var script$u = {
|
|
|
7360
7362
|
}
|
|
7361
7363
|
},
|
|
7362
7364
|
dragstart: function dragstart(e) {
|
|
7363
|
-
var
|
|
7365
|
+
var _this46 = this;
|
|
7364
7366
|
|
|
7365
7367
|
var prevElem = this.el().previousElementSibling;
|
|
7366
7368
|
var nextElem = this.el().nextElementSibling;
|
|
@@ -7389,12 +7391,12 @@ var script$u = {
|
|
|
7389
7391
|
}, function (e) {
|
|
7390
7392
|
if (help) {
|
|
7391
7393
|
help.remove();
|
|
7392
|
-
var size = (
|
|
7394
|
+
var size = (_this46.x.expanded ? $$1.bcr(minorElem)[sizeName] : 0) + (_this46.x.toNext ? 1 : -1) * (downPos - pos);
|
|
7393
7395
|
|
|
7394
7396
|
if (size <= 0) {
|
|
7395
|
-
|
|
7397
|
+
_this46.toggle(false);
|
|
7396
7398
|
} else {
|
|
7397
|
-
if (!
|
|
7399
|
+
if (!_this46.x.expanded) _this46.toggle(true);
|
|
7398
7400
|
$$1.q(minorElem).css(_defineProperty({}, sizeName, size));
|
|
7399
7401
|
}
|
|
7400
7402
|
}
|
|
@@ -7402,7 +7404,7 @@ var script$u = {
|
|
|
7402
7404
|
}
|
|
7403
7405
|
},
|
|
7404
7406
|
html_slots: function html_slots() {
|
|
7405
|
-
var
|
|
7407
|
+
var _this47 = this;
|
|
7406
7408
|
|
|
7407
7409
|
var r = [];
|
|
7408
7410
|
var expandedIcon = this.x.expandedIcon || this.x.collapsedIcon;
|
|
@@ -7410,7 +7412,7 @@ var script$u = {
|
|
|
7410
7412
|
|
|
7411
7413
|
if (expandedIcon) {
|
|
7412
7414
|
r.push(this.html_icon(this.x.expanded ? expandedIcon : collapsedIcon, 'w-split-icon', function () {
|
|
7413
|
-
return
|
|
7415
|
+
return _this47.toggle();
|
|
7414
7416
|
}));
|
|
7415
7417
|
}
|
|
7416
7418
|
|
|
@@ -7509,7 +7511,7 @@ var script$s = {
|
|
|
7509
7511
|
return suffix ? mimeType(fileName) : 'video/mp4';
|
|
7510
7512
|
},
|
|
7511
7513
|
html_slots: function html_slots() {
|
|
7512
|
-
var
|
|
7514
|
+
var _this48 = this;
|
|
7513
7515
|
|
|
7514
7516
|
return [h$1('video', {
|
|
7515
7517
|
class: 'w-video-vd f-width f-height',
|
|
@@ -7517,10 +7519,10 @@ var script$s = {
|
|
|
7517
7519
|
src: this.x.src,
|
|
7518
7520
|
poster: this.x.poster,
|
|
7519
7521
|
onplay: function onplay(e) {
|
|
7520
|
-
return
|
|
7522
|
+
return _this48.playing = true;
|
|
7521
7523
|
},
|
|
7522
7524
|
onpause: function onpause(e) {
|
|
7523
|
-
return
|
|
7525
|
+
return _this48.playing = false;
|
|
7524
7526
|
},
|
|
7525
7527
|
controls: true,
|
|
7526
7528
|
'webkit-playsinline': true,
|
|
@@ -7534,7 +7536,7 @@ var script$s = {
|
|
|
7534
7536
|
class: 'w-video-play f-abs-center f-flex-center',
|
|
7535
7537
|
innerHTML: '<i class="f-i f-i-play"></i>',
|
|
7536
7538
|
onclick: function onclick(e) {
|
|
7537
|
-
var o =
|
|
7539
|
+
var o = _this48.$refs.vd;
|
|
7538
7540
|
o.paused ? o.play() : o.pause();
|
|
7539
7541
|
}
|
|
7540
7542
|
})];
|
|
@@ -7934,7 +7936,7 @@ var _hoisted_9 = {
|
|
|
7934
7936
|
};
|
|
7935
7937
|
|
|
7936
7938
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7937
|
-
var
|
|
7939
|
+
var _this49 = this;
|
|
7938
7940
|
|
|
7939
7941
|
var _component_w_html = resolveComponent("w-html");
|
|
7940
7942
|
|
|
@@ -8042,7 +8044,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8042
8044
|
|
|
8043
8045
|
}, 8
|
|
8044
8046
|
/* PROPS */
|
|
8045
|
-
, ["context", "snap"])) : createCommentVNode("v-if", true),
|
|
8047
|
+
, ["context", "snap"])) : createCommentVNode("v-if", true), _this49.x.face == 'date' ? (openBlock(), createBlock(_component_w_html, {
|
|
8046
8048
|
key: 1,
|
|
8047
8049
|
class: "w-calendar-head-month f-link",
|
|
8048
8050
|
ref: "popMonth",
|
|
@@ -8125,7 +8127,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8125
8127
|
_: 1
|
|
8126
8128
|
/* STABLE */
|
|
8127
8129
|
|
|
8128
|
-
}), renderSlot(_ctx.$slots, "head"), createVNode("div", _hoisted_4, [
|
|
8130
|
+
}), renderSlot(_ctx.$slots, "head"), createVNode("div", _hoisted_4, [_this49.x.face == 'date' ? (openBlock(true), createBlock(Fragment, {
|
|
8129
8131
|
key: 0
|
|
8130
8132
|
}, renderList($options.loc.calendar.day_title_1, function (item) {
|
|
8131
8133
|
return openBlock(), createBlock("div", _hoisted_5, toDisplayString(item), 1
|
|
@@ -8311,7 +8313,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8311
8313
|
style: {
|
|
8312
8314
|
visibility: $options.hasTime && !$data.onlyTime ? 'visible' : 'hidden'
|
|
8313
8315
|
}
|
|
8314
|
-
}, toDisplayString(
|
|
8316
|
+
}, toDisplayString(_this49.showTime ? $options.loc.calendar.backdate : $options.loc.calendar.picktime), 5
|
|
8315
8317
|
/* TEXT, STYLE */
|
|
8316
8318
|
), createVNode("div", {
|
|
8317
8319
|
class: "f-link",
|
|
@@ -8444,20 +8446,20 @@ var script$p = {
|
|
|
8444
8446
|
}
|
|
8445
8447
|
},
|
|
8446
8448
|
mounted: function mounted() {
|
|
8447
|
-
var
|
|
8449
|
+
var _this50 = this;
|
|
8448
8450
|
|
|
8449
8451
|
this.indent();
|
|
8450
8452
|
|
|
8451
8453
|
var observe = function observe() {
|
|
8452
|
-
if (
|
|
8453
|
-
$$1.q('.w-timeline-item',
|
|
8454
|
+
if (_this50.$refs.wrap && _this50.$refs.next) {
|
|
8455
|
+
$$1.q('.w-timeline-item', _this50.$refs.wrap).css({
|
|
8454
8456
|
margin: 0
|
|
8455
8457
|
});
|
|
8456
|
-
$$1.q(
|
|
8458
|
+
$$1.q(_this50.$refs.next).css({
|
|
8457
8459
|
margin: 0
|
|
8458
8460
|
});
|
|
8459
8461
|
|
|
8460
|
-
|
|
8462
|
+
_this50.indent();
|
|
8461
8463
|
}
|
|
8462
8464
|
};
|
|
8463
8465
|
|
|
@@ -9405,13 +9407,13 @@ var script$f = {
|
|
|
9405
9407
|
};
|
|
9406
9408
|
},
|
|
9407
9409
|
created: function created() {
|
|
9408
|
-
var
|
|
9410
|
+
var _this51 = this;
|
|
9409
9411
|
|
|
9410
9412
|
this.$watch(function () {
|
|
9411
|
-
return
|
|
9413
|
+
return _this51.x.modelValue;
|
|
9412
9414
|
}, function (v) {
|
|
9413
|
-
if (
|
|
9414
|
-
|
|
9415
|
+
if (_this51.emiting) return _this51.emiting = false;
|
|
9416
|
+
_this51.list = Array.isArray(v) ? v.map(function (value) {
|
|
9415
9417
|
return {
|
|
9416
9418
|
value: value
|
|
9417
9419
|
};
|
|
@@ -9463,7 +9465,7 @@ var script$f = {
|
|
|
9463
9465
|
return s == 'aud';
|
|
9464
9466
|
},
|
|
9465
9467
|
fileSelected: function fileSelected(e) {
|
|
9466
|
-
var
|
|
9468
|
+
var _this52 = this;
|
|
9467
9469
|
|
|
9468
9470
|
if (this.x.uploadLimit > 1 && e.target.files.length + this.list.length > this.x.uploadLimit) {
|
|
9469
9471
|
return $$1.alert($$1.loc.ps($$1.loc.form.upload_limit, this.x.uploadLimit));
|
|
@@ -9478,7 +9480,7 @@ var script$f = {
|
|
|
9478
9480
|
(xfs_names || (xfs_names = [])).push(file.name);
|
|
9479
9481
|
} else if (nfs && file.size < nfs) {
|
|
9480
9482
|
(nfs_names || (nfs_names = [])).push(file.name);
|
|
9481
|
-
} else
|
|
9483
|
+
} else _this52.list.push({
|
|
9482
9484
|
file: file
|
|
9483
9485
|
});
|
|
9484
9486
|
});
|
|
@@ -9494,7 +9496,7 @@ var script$f = {
|
|
|
9494
9496
|
this.nextUpload();
|
|
9495
9497
|
},
|
|
9496
9498
|
upload: function upload(item) {
|
|
9497
|
-
var
|
|
9499
|
+
var _this53 = this;
|
|
9498
9500
|
|
|
9499
9501
|
if (this.x.uploadSrc && !item.loading) {
|
|
9500
9502
|
var src = $$1.urlFormat(this.x.uploadSrc, this.x.data, this.x);
|
|
@@ -9511,7 +9513,7 @@ var script$f = {
|
|
|
9511
9513
|
item.loading = false;
|
|
9512
9514
|
item.loaded = true;
|
|
9513
9515
|
item.source = null;
|
|
9514
|
-
var d =
|
|
9516
|
+
var d = _this53.x.filter ? _this53.x.filter(res, _this53) : res.data;
|
|
9515
9517
|
|
|
9516
9518
|
if (!d) {
|
|
9517
9519
|
item.error = {
|
|
@@ -9525,10 +9527,10 @@ var script$f = {
|
|
|
9525
9527
|
};
|
|
9526
9528
|
} else {
|
|
9527
9529
|
item.value = d;
|
|
9528
|
-
|
|
9530
|
+
_this53.x.success && _this53.x.success(item.value, _this53, res);
|
|
9529
9531
|
}
|
|
9530
9532
|
|
|
9531
|
-
|
|
9533
|
+
_this53.nextUpload();
|
|
9532
9534
|
|
|
9533
9535
|
if (item.error && item.error.message) $$1.alert(item.error.message);
|
|
9534
9536
|
}).catch(function (error) {
|
|
@@ -9592,7 +9594,7 @@ var script$f = {
|
|
|
9592
9594
|
this.$refs.file.click();
|
|
9593
9595
|
},
|
|
9594
9596
|
html_list: function html_list() {
|
|
9595
|
-
var
|
|
9597
|
+
var _this54 = this;
|
|
9596
9598
|
|
|
9597
9599
|
return this.list.map(function (item) {
|
|
9598
9600
|
var n = item.value ? item.value.name : item.file.name;
|
|
@@ -9603,11 +9605,11 @@ var script$f = {
|
|
|
9603
9605
|
}],
|
|
9604
9606
|
style: {
|
|
9605
9607
|
'--w-upload-progress': item.file ? "".concat(item.progress || 0, "%") : '',
|
|
9606
|
-
width: $$1.unitSize(
|
|
9608
|
+
width: $$1.unitSize(_this54.x.itemWidth)
|
|
9607
9609
|
},
|
|
9608
9610
|
title: item.error ? item.error.message : n,
|
|
9609
9611
|
onclick: function onclick(e) {
|
|
9610
|
-
return
|
|
9612
|
+
return _this54.clickItem(e, item);
|
|
9611
9613
|
}
|
|
9612
9614
|
}, [h$1('i', {
|
|
9613
9615
|
class: ['w-fileupload-value-icon f-i', 'f-i-file-' + getSuffix(n)]
|
|
@@ -9619,7 +9621,7 @@ var script$f = {
|
|
|
9619
9621
|
class: 'w-fileupload-value-close f-i f-i-trash',
|
|
9620
9622
|
title: $$1.loc.remove,
|
|
9621
9623
|
onclick: function onclick(e) {
|
|
9622
|
-
|
|
9624
|
+
_this54.remove(item), e.stopPropagation();
|
|
9623
9625
|
}
|
|
9624
9626
|
})]);
|
|
9625
9627
|
});
|
|
@@ -9634,7 +9636,7 @@ var script$f = {
|
|
|
9634
9636
|
})];
|
|
9635
9637
|
},
|
|
9636
9638
|
html_input_button: function html_input_button() {
|
|
9637
|
-
var
|
|
9639
|
+
var _this55 = this;
|
|
9638
9640
|
|
|
9639
9641
|
return h$1(script$I, {
|
|
9640
9642
|
ref: 'uploadbbr',
|
|
@@ -9642,11 +9644,11 @@ var script$f = {
|
|
|
9642
9644
|
gap: 10
|
|
9643
9645
|
}, {
|
|
9644
9646
|
default: function _default() {
|
|
9645
|
-
return [
|
|
9647
|
+
return [_this55.$slots.button ? _this55.$slots.button() : h$1(script$$, {
|
|
9646
9648
|
text: '选择文件',
|
|
9647
9649
|
icon: '.f-i .f-i-upload',
|
|
9648
9650
|
class: 'w-fileupload-button',
|
|
9649
|
-
onclick:
|
|
9651
|
+
onclick: _this55.chooseFile
|
|
9650
9652
|
})];
|
|
9651
9653
|
}
|
|
9652
9654
|
});
|
|
@@ -9665,11 +9667,11 @@ var script$f = {
|
|
|
9665
9667
|
},
|
|
9666
9668
|
computed: {
|
|
9667
9669
|
validHooks: function validHooks() {
|
|
9668
|
-
var
|
|
9670
|
+
var _this56 = this;
|
|
9669
9671
|
|
|
9670
9672
|
return {
|
|
9671
9673
|
valid: function valid(v) {
|
|
9672
|
-
var _iterator5 = _createForOfIteratorHelper(
|
|
9674
|
+
var _iterator5 = _createForOfIteratorHelper(_this56.list),
|
|
9673
9675
|
_step5;
|
|
9674
9676
|
|
|
9675
9677
|
try {
|
|
@@ -9677,11 +9679,11 @@ var script$f = {
|
|
|
9677
9679
|
var item = _step5.value;
|
|
9678
9680
|
|
|
9679
9681
|
if (item.loading) {
|
|
9680
|
-
return
|
|
9682
|
+
return _this56.formErr('upload_loading');
|
|
9681
9683
|
}
|
|
9682
9684
|
|
|
9683
9685
|
if (item.error) {
|
|
9684
|
-
return
|
|
9686
|
+
return _this56.formErr('upload_invalid_file');
|
|
9685
9687
|
}
|
|
9686
9688
|
}
|
|
9687
9689
|
} catch (err) {
|
|
@@ -9710,11 +9712,11 @@ var script$f = {
|
|
|
9710
9712
|
};
|
|
9711
9713
|
},
|
|
9712
9714
|
html_on: function html_on() {
|
|
9713
|
-
var
|
|
9715
|
+
var _this57 = this;
|
|
9714
9716
|
|
|
9715
9717
|
return {
|
|
9716
9718
|
onclick: function onclick() {
|
|
9717
|
-
return
|
|
9719
|
+
return _this57.warn(false);
|
|
9718
9720
|
}
|
|
9719
9721
|
};
|
|
9720
9722
|
}
|
|
@@ -9734,30 +9736,30 @@ var script$e = {
|
|
|
9734
9736
|
this.provideUpload.clickItem(e, this.item);
|
|
9735
9737
|
},
|
|
9736
9738
|
createImageThumbnail: function createImageThumbnail() {
|
|
9737
|
-
var
|
|
9739
|
+
var _this58 = this;
|
|
9738
9740
|
|
|
9739
9741
|
var r = new FileReader();
|
|
9740
9742
|
|
|
9741
9743
|
r.onload = function (e) {
|
|
9742
|
-
if (
|
|
9743
|
-
|
|
9744
|
+
if (_this58.item.loaded) return;
|
|
9745
|
+
_this58.dataURL = e.target.result;
|
|
9744
9746
|
};
|
|
9745
9747
|
|
|
9746
9748
|
r.readAsDataURL(this.item.file);
|
|
9747
9749
|
},
|
|
9748
9750
|
createVideoThumbnail: function createVideoThumbnail() {
|
|
9749
|
-
var
|
|
9751
|
+
var _this59 = this;
|
|
9750
9752
|
|
|
9751
9753
|
var video = document.createElement('video');
|
|
9752
9754
|
video.addEventListener('loadeddata', function () {
|
|
9753
9755
|
setTimeout(function () {
|
|
9754
|
-
if (
|
|
9756
|
+
if (_this59.item.loaded) return;
|
|
9755
9757
|
var cvs = document.createElement('canvas');
|
|
9756
9758
|
var ctx = cvs.getContext('2d');
|
|
9757
9759
|
cvs.width = video.videoWidth;
|
|
9758
9760
|
cvs.height = video.videoHeight;
|
|
9759
9761
|
ctx.drawImage(video, 0, 0);
|
|
9760
|
-
|
|
9762
|
+
_this59.dataURL = cvs.toDataURL('image/png');
|
|
9761
9763
|
video.pause();
|
|
9762
9764
|
$$1.q(video).remove();
|
|
9763
9765
|
}, 150);
|
|
@@ -9812,14 +9814,14 @@ var script$e = {
|
|
|
9812
9814
|
}
|
|
9813
9815
|
},
|
|
9814
9816
|
mounted: function mounted() {
|
|
9815
|
-
var
|
|
9817
|
+
var _this60 = this;
|
|
9816
9818
|
|
|
9817
9819
|
if (!this.item.loaded && this.item.file) {
|
|
9818
9820
|
this.upload.isVideo(this.item) ? this.createVideoThumbnail() : this.upload.isImage(this.item) ? this.createImageThumbnail() : null;
|
|
9819
9821
|
this.$watch(function () {
|
|
9820
|
-
return
|
|
9822
|
+
return _this60.item.progress;
|
|
9821
9823
|
}, function (v) {
|
|
9822
|
-
return
|
|
9824
|
+
return _this60.setProgress(v);
|
|
9823
9825
|
}, {
|
|
9824
9826
|
immediate: true
|
|
9825
9827
|
});
|
|
@@ -9916,7 +9918,7 @@ var script$d = {
|
|
|
9916
9918
|
});
|
|
9917
9919
|
},
|
|
9918
9920
|
html_input_button: function html_input_button() {
|
|
9919
|
-
var
|
|
9921
|
+
var _this61 = this;
|
|
9920
9922
|
|
|
9921
9923
|
return h$1(script$I, {
|
|
9922
9924
|
ref: 'uploadbbr',
|
|
@@ -9924,16 +9926,16 @@ var script$d = {
|
|
|
9924
9926
|
gap: 10
|
|
9925
9927
|
}, {
|
|
9926
9928
|
default: function _default() {
|
|
9927
|
-
return [
|
|
9929
|
+
return [_this61.$slots.button ? _this61.$slots.button() : h$1(script$$, {
|
|
9928
9930
|
ref: 'uploadbutton',
|
|
9929
9931
|
title: $$1.loc.form.choose_image,
|
|
9930
9932
|
icon: '.f-i .f-i-plus',
|
|
9931
9933
|
class: 'w-mediaupload-button',
|
|
9932
9934
|
style: {
|
|
9933
|
-
width: $$1.unitSize(
|
|
9934
|
-
height: $$1.unitSize(
|
|
9935
|
+
width: $$1.unitSize(_this61.x.thumbnailWidth),
|
|
9936
|
+
height: $$1.unitSize(_this61.x.thumbnailHeight)
|
|
9935
9937
|
},
|
|
9936
|
-
onclick:
|
|
9938
|
+
onclick: _this61.chooseFile
|
|
9937
9939
|
})];
|
|
9938
9940
|
}
|
|
9939
9941
|
});
|
|
@@ -10115,7 +10117,7 @@ var script$a = {
|
|
|
10115
10117
|
return this.$refs.btns && this.$refs.btns.contains(el);
|
|
10116
10118
|
},
|
|
10117
10119
|
html_button: function html_button() {
|
|
10118
|
-
var
|
|
10120
|
+
var _this62 = this;
|
|
10119
10121
|
|
|
10120
10122
|
return h$1('div', {
|
|
10121
10123
|
class: 'w-spinner-step w-input-bbr f-flex-column f-oh',
|
|
@@ -10124,14 +10126,14 @@ var script$a = {
|
|
|
10124
10126
|
class: 'w-spinner-step-btn f-rel',
|
|
10125
10127
|
disabled: this.x.disabled,
|
|
10126
10128
|
onclick: function onclick(e) {
|
|
10127
|
-
return
|
|
10129
|
+
return _this62.stepBy(1);
|
|
10128
10130
|
},
|
|
10129
10131
|
innerHTML: '<i class="f-abs-center f-i f-i-caret-up"></i>'
|
|
10130
10132
|
}), h$1('button', {
|
|
10131
10133
|
class: 'w-spinner-step-btn f-rel',
|
|
10132
10134
|
disabled: this.x.disabled,
|
|
10133
10135
|
onclick: function onclick(e) {
|
|
10134
|
-
return
|
|
10136
|
+
return _this62.stepBy(-1);
|
|
10135
10137
|
},
|
|
10136
10138
|
innerHTML: '<i class="f-abs-center f-i f-i-caret-down"></i>'
|
|
10137
10139
|
})]);
|
|
@@ -10139,24 +10141,24 @@ var script$a = {
|
|
|
10139
10141
|
},
|
|
10140
10142
|
computed: {
|
|
10141
10143
|
validHooks: function validHooks() {
|
|
10142
|
-
var
|
|
10144
|
+
var _this63 = this;
|
|
10143
10145
|
|
|
10144
10146
|
return {
|
|
10145
10147
|
compare: function compare(v, c, d) {
|
|
10146
|
-
return !$$1.eval('v' + (
|
|
10148
|
+
return !$$1.eval('v' + (_this63.x.compare.mode || '==') + 'd', {
|
|
10147
10149
|
v: v,
|
|
10148
10150
|
d: d
|
|
10149
10151
|
});
|
|
10150
10152
|
},
|
|
10151
10153
|
valid: function valid(v) {
|
|
10152
|
-
|
|
10154
|
+
_this63.x.format && (v = v.replace(RegExp(_this63.x.format.separator || ',', 'g'), ''));
|
|
10153
10155
|
|
|
10154
10156
|
if (v) {
|
|
10155
|
-
if (isNaN(v) || /\s/.test(v)) return
|
|
10156
|
-
var d =
|
|
10157
|
-
if (!d && ~v.indexOf('.')) return
|
|
10158
|
-
if (d && d > 0 && $$1.strFrom(v, '.').length > d) return
|
|
10159
|
-
if (
|
|
10157
|
+
if (isNaN(v) || /\s/.test(v)) return _this63.formErr('number_invalid');
|
|
10158
|
+
var d = _this63.x.decimal;
|
|
10159
|
+
if (!d && ~v.indexOf('.')) return _this63.formErr('number_integer');
|
|
10160
|
+
if (d && d > 0 && $$1.strFrom(v, '.').length > d) return _this63.formErr('number_decimal_digit', [d]);
|
|
10161
|
+
if (_this63.provideRangeParent) return _this63.provideRangeParent.validHooks.valid();
|
|
10160
10162
|
}
|
|
10161
10163
|
}
|
|
10162
10164
|
};
|
|
@@ -10227,7 +10229,7 @@ var script$9 = {
|
|
|
10227
10229
|
};
|
|
10228
10230
|
},
|
|
10229
10231
|
html_button: function html_button() {
|
|
10230
|
-
var
|
|
10232
|
+
var _this64 = this;
|
|
10231
10233
|
|
|
10232
10234
|
var r = [];
|
|
10233
10235
|
if (!this.x.noButton) r.push(h$1('button', {
|
|
@@ -10244,28 +10246,28 @@ var script$9 = {
|
|
|
10244
10246
|
autoHide: true,
|
|
10245
10247
|
snap: {
|
|
10246
10248
|
target: function target() {
|
|
10247
|
-
return
|
|
10249
|
+
return _this64.snapElem();
|
|
10248
10250
|
},
|
|
10249
10251
|
position: 'v',
|
|
10250
10252
|
indent: 1
|
|
10251
10253
|
},
|
|
10252
10254
|
on: {
|
|
10253
10255
|
close: function close() {
|
|
10254
|
-
|
|
10256
|
+
_this64.showDrop = false, _this64.currentDate = null;
|
|
10255
10257
|
}
|
|
10256
10258
|
}
|
|
10257
10259
|
}, {
|
|
10258
10260
|
default: function _default() {
|
|
10259
10261
|
return h$1(script$q, _objectSpread(_objectSpread({
|
|
10260
10262
|
pad: true,
|
|
10261
|
-
current:
|
|
10262
|
-
value:
|
|
10263
|
-
format:
|
|
10264
|
-
},
|
|
10265
|
-
success:
|
|
10263
|
+
current: _this64.currentDate || _this64.x.modelValue || '',
|
|
10264
|
+
value: _this64.x.modelValue,
|
|
10265
|
+
format: _this64.x.format
|
|
10266
|
+
}, _this64.getPeriod()), {}, {
|
|
10267
|
+
success: _this64.calendarCallback,
|
|
10266
10268
|
on: {
|
|
10267
10269
|
'click:item': function clickItem(e, item) {
|
|
10268
|
-
return
|
|
10270
|
+
return _this64.currentDate = item.value;
|
|
10269
10271
|
}
|
|
10270
10272
|
}
|
|
10271
10273
|
}));
|
|
@@ -10278,46 +10280,46 @@ var script$9 = {
|
|
|
10278
10280
|
},
|
|
10279
10281
|
computed: {
|
|
10280
10282
|
validHooks: function validHooks() {
|
|
10281
|
-
var
|
|
10283
|
+
var _this65 = this;
|
|
10282
10284
|
|
|
10283
10285
|
return {
|
|
10284
10286
|
minValue: function minValue(v) {
|
|
10285
|
-
return $$1.dateParse(v,
|
|
10287
|
+
return $$1.dateParse(v, _this65.x.format) < $$1.dateParse(_this65.vv('minValue'), _this65.x.format);
|
|
10286
10288
|
},
|
|
10287
10289
|
maxValue: function maxValue(v) {
|
|
10288
|
-
return $$1.dateParse(v,
|
|
10290
|
+
return $$1.dateParse(v, _this65.x.format) > $$1.dateParse(_this65.vv('maxValue'), _this65.x.format);
|
|
10289
10291
|
},
|
|
10290
10292
|
compare: function compare(v, c, d) {
|
|
10291
|
-
if (
|
|
10292
|
-
var f = (
|
|
10293
|
-
v = $$1.dateFormat($$1.dateParse(v,
|
|
10293
|
+
if (_this65.x.format && c.x.format) {
|
|
10294
|
+
var f = (_this65.x.format.length > c.x.format.length ? _this65 : c).x.format;
|
|
10295
|
+
v = $$1.dateFormat($$1.dateParse(v, _this65.x.format), f);
|
|
10294
10296
|
d = $$1.dateFormat($$1.dateParse(d, c.x.format), f);
|
|
10295
10297
|
}
|
|
10296
10298
|
|
|
10297
|
-
return !$$1.eval('v' + (
|
|
10299
|
+
return !$$1.eval('v' + (_this65.x.compare.mode || '==') + 'd', {
|
|
10298
10300
|
v: v,
|
|
10299
10301
|
d: d
|
|
10300
10302
|
});
|
|
10301
10303
|
},
|
|
10302
10304
|
valid: function valid(v) {
|
|
10303
|
-
if (
|
|
10305
|
+
if (_this65.x.multiple) return;
|
|
10304
10306
|
|
|
10305
10307
|
if (v) {
|
|
10306
10308
|
var _c4 = v;
|
|
10307
|
-
var d = $$1.dateParse(_c4,
|
|
10309
|
+
var d = $$1.dateParse(_c4, _this65.x.format);
|
|
10308
10310
|
var y = d.getFullYear();
|
|
10309
10311
|
var m = 9999;
|
|
10310
10312
|
var n = 1000;
|
|
10311
|
-
if (y > m || y < n) return
|
|
10313
|
+
if (y > m || y < n) return _this65.formErr('time_exceed', [n, m]);
|
|
10312
10314
|
|
|
10313
|
-
if (_c4 != $$1.dateFormat(d,
|
|
10314
|
-
return
|
|
10315
|
+
if (_c4 != $$1.dateFormat(d, _this65.x.format)) {
|
|
10316
|
+
return _this65.formErr('time_format', [$$1.dateFormat(d, _this65.x.format)]);
|
|
10315
10317
|
}
|
|
10316
10318
|
}
|
|
10317
10319
|
|
|
10318
|
-
if (
|
|
10319
|
-
if (
|
|
10320
|
-
if (
|
|
10320
|
+
if (_this65.vv('beforeNow') && v && v > $$1.dateFormat(new Date(), _this65.x.format)) return _this65.formErr('beforeNow', [_this65.x.beforeNow]);
|
|
10321
|
+
if (_this65.vv('afterNow') && v && v < $$1.dateFormat(new Date(), _this65.x.format)) return _this65.formErr('afterNow', [_this65.x.afterNow]);
|
|
10322
|
+
if (_this65.provideRangeParent) return _this65.provideRangeParent.validHooks.valid();
|
|
10321
10323
|
}
|
|
10322
10324
|
};
|
|
10323
10325
|
},
|
|
@@ -10365,7 +10367,7 @@ var script$8 = {
|
|
|
10365
10367
|
return this.input_text;
|
|
10366
10368
|
},
|
|
10367
10369
|
html_input: function html_input() {
|
|
10368
|
-
var
|
|
10370
|
+
var _this66 = this;
|
|
10369
10371
|
|
|
10370
10372
|
var t = this.input_text;
|
|
10371
10373
|
var p = this.input_placeholder;
|
|
@@ -10384,14 +10386,14 @@ var script$8 = {
|
|
|
10384
10386
|
autoHide: true,
|
|
10385
10387
|
snap: {
|
|
10386
10388
|
target: function target() {
|
|
10387
|
-
return
|
|
10389
|
+
return _this66.el('main');
|
|
10388
10390
|
},
|
|
10389
10391
|
position: 'v',
|
|
10390
10392
|
indent: 1
|
|
10391
10393
|
},
|
|
10392
10394
|
on: {
|
|
10393
10395
|
close: function close() {
|
|
10394
|
-
return
|
|
10396
|
+
return _this66.showDrop = false;
|
|
10395
10397
|
}
|
|
10396
10398
|
}
|
|
10397
10399
|
}, this.$slots)];
|
|
@@ -10405,7 +10407,7 @@ var script$8 = {
|
|
|
10405
10407
|
},
|
|
10406
10408
|
computed: {
|
|
10407
10409
|
input_text: function input_text() {
|
|
10408
|
-
var
|
|
10410
|
+
var _this67 = this;
|
|
10409
10411
|
|
|
10410
10412
|
var r = [];
|
|
10411
10413
|
var s = this.slots_children();
|
|
@@ -10415,7 +10417,7 @@ var script$8 = {
|
|
|
10415
10417
|
return n.props.value == v;
|
|
10416
10418
|
});
|
|
10417
10419
|
if (i > -1) r.push(i);
|
|
10418
|
-
if (!
|
|
10420
|
+
if (!_this67.x.multiple) return false;
|
|
10419
10421
|
});
|
|
10420
10422
|
return r.sort().map(function (v) {
|
|
10421
10423
|
return s[v].props.text;
|
|
@@ -10536,17 +10538,17 @@ var script$5 = {
|
|
|
10536
10538
|
},
|
|
10537
10539
|
computed: {
|
|
10538
10540
|
validHooks: function validHooks() {
|
|
10539
|
-
var
|
|
10541
|
+
var _this68 = this;
|
|
10540
10542
|
|
|
10541
10543
|
return {
|
|
10542
10544
|
valid: function valid() {
|
|
10543
|
-
var f =
|
|
10545
|
+
var f = _this68.forms();
|
|
10544
10546
|
|
|
10545
10547
|
if (f.length > 1) {
|
|
10546
10548
|
var v1 = f[0] && f[0].formVal();
|
|
10547
10549
|
var v2 = f[1] && f[1].formVal();
|
|
10548
10550
|
|
|
10549
|
-
var _c5 =
|
|
10551
|
+
var _c5 = _this68.x.compare || '<=';
|
|
10550
10552
|
|
|
10551
10553
|
if (!isNaN(v1)) v1 = parseFloat(v1);
|
|
10552
10554
|
if (!isNaN(v2)) v2 = parseFloat(v2);
|
|
@@ -10556,7 +10558,7 @@ var script$5 = {
|
|
|
10556
10558
|
v1: v1,
|
|
10557
10559
|
v2: v2
|
|
10558
10560
|
})) {
|
|
10559
|
-
return
|
|
10561
|
+
return _this68.formErr('compare', [f[0].getLabelText(), _c5, f[1].getLabelText()]);
|
|
10560
10562
|
}
|
|
10561
10563
|
}
|
|
10562
10564
|
}
|
|
@@ -10564,11 +10566,11 @@ var script$5 = {
|
|
|
10564
10566
|
};
|
|
10565
10567
|
},
|
|
10566
10568
|
html_on: function html_on() {
|
|
10567
|
-
var
|
|
10569
|
+
var _this69 = this;
|
|
10568
10570
|
|
|
10569
10571
|
return {
|
|
10570
10572
|
onclick: function onclick(e) {
|
|
10571
|
-
return
|
|
10573
|
+
return _this69.warnClass = '';
|
|
10572
10574
|
}
|
|
10573
10575
|
};
|
|
10574
10576
|
}
|
|
@@ -10634,7 +10636,7 @@ var script$4 = {
|
|
|
10634
10636
|
return this;
|
|
10635
10637
|
},
|
|
10636
10638
|
oninput: function oninput(e) {
|
|
10637
|
-
var
|
|
10639
|
+
var _this70 = this;
|
|
10638
10640
|
|
|
10639
10641
|
var v = e.target.value;
|
|
10640
10642
|
this.sensor_text = v;
|
|
@@ -10644,9 +10646,9 @@ var script$4 = {
|
|
|
10644
10646
|
this.suggest(false);
|
|
10645
10647
|
} else {
|
|
10646
10648
|
this.sug_timer = setTimeout(function () {
|
|
10647
|
-
|
|
10649
|
+
_this70.suggest(true);
|
|
10648
10650
|
|
|
10649
|
-
|
|
10651
|
+
_this70.trigger(e, v);
|
|
10650
10652
|
}, 500);
|
|
10651
10653
|
}
|
|
10652
10654
|
},
|
|
@@ -10695,7 +10697,7 @@ var script$4 = {
|
|
|
10695
10697
|
return this.input_title;
|
|
10696
10698
|
},
|
|
10697
10699
|
html_options: function html_options() {
|
|
10698
|
-
var
|
|
10700
|
+
var _this71 = this;
|
|
10699
10701
|
|
|
10700
10702
|
var m = this.x.modelValue;
|
|
10701
10703
|
|
|
@@ -10706,22 +10708,22 @@ var script$4 = {
|
|
|
10706
10708
|
'z-forbid': v.forbid
|
|
10707
10709
|
}],
|
|
10708
10710
|
onclick: function onclick(e) {
|
|
10709
|
-
return
|
|
10711
|
+
return _this71.clickItem(e, v);
|
|
10710
10712
|
}
|
|
10711
10713
|
}, [h$1('div', {
|
|
10712
10714
|
class: 'w-combobox-option-text f-line-1',
|
|
10713
10715
|
title: v.text
|
|
10714
|
-
}, v.text),
|
|
10716
|
+
}, v.text), _this71.isNormal && h$1('div', {
|
|
10715
10717
|
class: 'w-combobox-option-close f-i f-i-close',
|
|
10716
10718
|
onclick: function onclick(e) {
|
|
10717
|
-
return
|
|
10719
|
+
return _this71.clickClose(e, v);
|
|
10718
10720
|
}
|
|
10719
10721
|
})]);
|
|
10720
10722
|
});
|
|
10721
10723
|
}
|
|
10722
10724
|
},
|
|
10723
10725
|
html_var: function html_var() {
|
|
10724
|
-
var
|
|
10726
|
+
var _this72 = this;
|
|
10725
10727
|
|
|
10726
10728
|
return h$1('div', {
|
|
10727
10729
|
class: 'w-combobox-input-wrap'
|
|
@@ -10738,15 +10740,15 @@ var script$4 = {
|
|
|
10738
10740
|
onkeydown: this.onkeydown,
|
|
10739
10741
|
placeholder: this.input_value ? null : this.input_placeholder,
|
|
10740
10742
|
onfocus: function onfocus(e) {
|
|
10741
|
-
|
|
10743
|
+
_this72.isFocus = true, e.target.value && e.target.dispatchEvent(new Event('input'));
|
|
10742
10744
|
},
|
|
10743
10745
|
onblur: function onblur(e) {
|
|
10744
|
-
return
|
|
10746
|
+
return _this72.isFocus = false;
|
|
10745
10747
|
}
|
|
10746
10748
|
})]);
|
|
10747
10749
|
},
|
|
10748
10750
|
html_input: function html_input() {
|
|
10749
|
-
var
|
|
10751
|
+
var _this73 = this;
|
|
10750
10752
|
|
|
10751
10753
|
return [this.html_input_hidden(), h$1('div', {
|
|
10752
10754
|
class: 'w-combobox-list f-flex-1 f-flex f-oh f-height'
|
|
@@ -10759,14 +10761,14 @@ var script$4 = {
|
|
|
10759
10761
|
autoHide: true,
|
|
10760
10762
|
snap: {
|
|
10761
10763
|
target: function target() {
|
|
10762
|
-
return
|
|
10764
|
+
return _this73.el('main');
|
|
10763
10765
|
},
|
|
10764
10766
|
position: 'v',
|
|
10765
10767
|
indent: 1
|
|
10766
10768
|
},
|
|
10767
10769
|
on: {
|
|
10768
10770
|
close: function close() {
|
|
10769
|
-
return
|
|
10771
|
+
return _this73.showSuggest = false;
|
|
10770
10772
|
}
|
|
10771
10773
|
}
|
|
10772
10774
|
}, this.$slots))];
|
|
@@ -10795,11 +10797,11 @@ var script$4 = {
|
|
|
10795
10797
|
},
|
|
10796
10798
|
computed: {
|
|
10797
10799
|
validHooks: function validHooks() {
|
|
10798
|
-
var
|
|
10800
|
+
var _this74 = this;
|
|
10799
10801
|
|
|
10800
10802
|
return {
|
|
10801
10803
|
valid: function valid(v) {
|
|
10802
|
-
if (
|
|
10804
|
+
if (_this74.$refs.input.value) return _this74.formErr('invalid_option');
|
|
10803
10805
|
}
|
|
10804
10806
|
};
|
|
10805
10807
|
},
|
|
@@ -10825,12 +10827,12 @@ var script$4 = {
|
|
|
10825
10827
|
}
|
|
10826
10828
|
},
|
|
10827
10829
|
mounted: function mounted() {
|
|
10828
|
-
var
|
|
10830
|
+
var _this75 = this;
|
|
10829
10831
|
|
|
10830
10832
|
if (this.isEntity && this.$refs.sensor) {
|
|
10831
10833
|
new ResizeObserver(function () {
|
|
10832
|
-
if (
|
|
10833
|
-
|
|
10834
|
+
if (_this75.$refs.sensor) {
|
|
10835
|
+
_this75.sensor_width = _this75.$refs.sensor.offsetWidth + 'px';
|
|
10834
10836
|
}
|
|
10835
10837
|
}).observe(this.$refs.sensor);
|
|
10836
10838
|
}
|
|
@@ -10843,13 +10845,13 @@ var script$3 = {
|
|
|
10843
10845
|
emits: ['input', 'dblclick:item'],
|
|
10844
10846
|
props: ['multiple', 'picker', 'dropWidth', 'separator', 'strict', 'br'],
|
|
10845
10847
|
created: function created() {
|
|
10846
|
-
var
|
|
10848
|
+
var _this76 = this;
|
|
10847
10849
|
|
|
10848
10850
|
this.$watch(function () {
|
|
10849
|
-
return
|
|
10851
|
+
return _this76.x.modelValue;
|
|
10850
10852
|
}, function (v) {
|
|
10851
|
-
if (
|
|
10852
|
-
|
|
10853
|
+
if (_this76.isEntity && !_this76.isFocus) {
|
|
10854
|
+
_this76.initOptions(v);
|
|
10853
10855
|
}
|
|
10854
10856
|
});
|
|
10855
10857
|
},
|
|
@@ -10944,7 +10946,7 @@ var script$3 = {
|
|
|
10944
10946
|
this.warn(false);
|
|
10945
10947
|
},
|
|
10946
10948
|
input: function input(a) {
|
|
10947
|
-
var
|
|
10949
|
+
var _this77 = this;
|
|
10948
10950
|
|
|
10949
10951
|
this.currOpt = a;
|
|
10950
10952
|
var v = a.innerText.replace(/^[\s,]+|[\s,]+$/g, '');
|
|
@@ -10954,9 +10956,9 @@ var script$3 = {
|
|
|
10954
10956
|
this.suggest(false);
|
|
10955
10957
|
} else {
|
|
10956
10958
|
this.sug_timer = setTimeout(function () {
|
|
10957
|
-
|
|
10959
|
+
_this77.suggest(true);
|
|
10958
10960
|
|
|
10959
|
-
|
|
10961
|
+
_this77.trigger(new Event('input'), v);
|
|
10960
10962
|
}, 500);
|
|
10961
10963
|
}
|
|
10962
10964
|
},
|
|
@@ -10969,7 +10971,7 @@ var script$3 = {
|
|
|
10969
10971
|
return this.$refs.inp;
|
|
10970
10972
|
},
|
|
10971
10973
|
fixStyle: function fixStyle() {
|
|
10972
|
-
var
|
|
10974
|
+
var _this78 = this;
|
|
10973
10975
|
|
|
10974
10976
|
var c = $$1.rngElement();
|
|
10975
10977
|
var g = false;
|
|
@@ -11044,7 +11046,7 @@ var script$3 = {
|
|
|
11044
11046
|
|
|
11045
11047
|
t.split(p).forEach(function (s) {
|
|
11046
11048
|
if (_h4 = $$1.strTrim(s)) {
|
|
11047
|
-
g =
|
|
11049
|
+
g = _this78.param(_h4);
|
|
11048
11050
|
|
|
11049
11051
|
_d.push('<u' + (g ? ' class=_o data-value="' + g.value + '"' + (g.forbid ? ' data-forbid' : '') : '') + '>' + _h4 + '</u>');
|
|
11050
11052
|
|
|
@@ -11110,11 +11112,11 @@ var script$3 = {
|
|
|
11110
11112
|
if (typeof c === 'function') c(this);else this.cmd(c, this.formVal());
|
|
11111
11113
|
},
|
|
11112
11114
|
addStore: function addStore(m) {
|
|
11113
|
-
var
|
|
11115
|
+
var _this79 = this;
|
|
11114
11116
|
|
|
11115
11117
|
if (m && typeof m !== 'string') {
|
|
11116
11118
|
var _r6 = $$1.array(m).filter(function (v) {
|
|
11117
|
-
return !
|
|
11119
|
+
return !_this79.store.find(function (s) {
|
|
11118
11120
|
return s.value == v.value;
|
|
11119
11121
|
});
|
|
11120
11122
|
});
|
|
@@ -11200,7 +11202,7 @@ var script$3 = {
|
|
|
11200
11202
|
return this.input_title;
|
|
11201
11203
|
},
|
|
11202
11204
|
html_options: function html_options(v) {
|
|
11203
|
-
var
|
|
11205
|
+
var _this80 = this;
|
|
11204
11206
|
|
|
11205
11207
|
var p = this.x.separator || ',';
|
|
11206
11208
|
if (v == null) v = this.x.modelValue;
|
|
@@ -11211,7 +11213,7 @@ var script$3 = {
|
|
|
11211
11213
|
$$1.lodash.each(b, function (o, i) {
|
|
11212
11214
|
_r7.push('<u' + (o.value ? ' class=_o data-value="' + o.value + '"' : '') + (o.forbid ? ' data-forbid' : '') + '>' + o.text + '</u>');
|
|
11213
11215
|
|
|
11214
|
-
if (!
|
|
11216
|
+
if (!_this80.x.multiple) return false;
|
|
11215
11217
|
|
|
11216
11218
|
_r7.push('<i>' + p + '</i>');
|
|
11217
11219
|
});
|
|
@@ -11219,7 +11221,7 @@ var script$3 = {
|
|
|
11219
11221
|
}
|
|
11220
11222
|
},
|
|
11221
11223
|
html_var: function html_var() {
|
|
11222
|
-
var
|
|
11224
|
+
var _this81 = this;
|
|
11223
11225
|
|
|
11224
11226
|
return h$1('div', {
|
|
11225
11227
|
class: 'w-linkbox-input f-flex-1',
|
|
@@ -11231,15 +11233,15 @@ var script$3 = {
|
|
|
11231
11233
|
onclick: this.onclick,
|
|
11232
11234
|
ondblclick: this.ondblclick,
|
|
11233
11235
|
onfocus: function onfocus(e) {
|
|
11234
|
-
|
|
11236
|
+
_this81.isFocus = true;
|
|
11235
11237
|
},
|
|
11236
11238
|
onblur: function onblur(e) {
|
|
11237
|
-
|
|
11239
|
+
_this81.isFocus = false;
|
|
11238
11240
|
}
|
|
11239
11241
|
});
|
|
11240
11242
|
},
|
|
11241
11243
|
html_input: function html_input() {
|
|
11242
|
-
var
|
|
11244
|
+
var _this82 = this;
|
|
11243
11245
|
|
|
11244
11246
|
var p = this.input_placeholder;
|
|
11245
11247
|
return [this.html_input_hidden(), this.html_var(), h$1('div', {
|
|
@@ -11253,14 +11255,14 @@ var script$3 = {
|
|
|
11253
11255
|
autoHide: true,
|
|
11254
11256
|
snap: {
|
|
11255
11257
|
target: function target() {
|
|
11256
|
-
return
|
|
11258
|
+
return _this82.el('main');
|
|
11257
11259
|
},
|
|
11258
11260
|
position: 'v',
|
|
11259
11261
|
indent: 1
|
|
11260
11262
|
},
|
|
11261
11263
|
on: {
|
|
11262
11264
|
close: function close() {
|
|
11263
|
-
return
|
|
11265
|
+
return _this82.showSuggest = false;
|
|
11264
11266
|
}
|
|
11265
11267
|
}
|
|
11266
11268
|
}, this.$slots)];
|
|
@@ -11289,12 +11291,12 @@ var script$3 = {
|
|
|
11289
11291
|
},
|
|
11290
11292
|
computed: {
|
|
11291
11293
|
validHooks: function validHooks() {
|
|
11292
|
-
var
|
|
11294
|
+
var _this83 = this;
|
|
11293
11295
|
|
|
11294
11296
|
return {
|
|
11295
11297
|
valid: function valid(v) {
|
|
11296
|
-
if (
|
|
11297
|
-
return
|
|
11298
|
+
if (_this83.x.strict && $$1.q('u:not([data-value])').length > 0) {
|
|
11299
|
+
return _this83.formErr('invalid_option');
|
|
11298
11300
|
}
|
|
11299
11301
|
}
|
|
11300
11302
|
};
|
|
@@ -11322,15 +11324,15 @@ var script$3 = {
|
|
|
11322
11324
|
}
|
|
11323
11325
|
},
|
|
11324
11326
|
mounted: function mounted() {
|
|
11325
|
-
var
|
|
11327
|
+
var _this84 = this;
|
|
11326
11328
|
|
|
11327
11329
|
if (this.isEntity) {
|
|
11328
11330
|
this.initOptions();
|
|
11329
11331
|
this.inp().addEventListener('compositionstart', function () {
|
|
11330
|
-
|
|
11332
|
+
_this84.imeMode = true;
|
|
11331
11333
|
});
|
|
11332
11334
|
this.inp().addEventListener('compositionend', function () {
|
|
11333
|
-
|
|
11335
|
+
_this84.imeMode = false;
|
|
11334
11336
|
});
|
|
11335
11337
|
}
|
|
11336
11338
|
}
|
|
@@ -11446,7 +11448,7 @@ var script$1 = {
|
|
|
11446
11448
|
this.setThumbLeft();
|
|
11447
11449
|
},
|
|
11448
11450
|
error: function error(text, timeout, fn) {
|
|
11449
|
-
var
|
|
11451
|
+
var _this85 = this;
|
|
11450
11452
|
|
|
11451
11453
|
if (!text) text = '';
|
|
11452
11454
|
this.isError = true;
|
|
@@ -11458,12 +11460,12 @@ var script$1 = {
|
|
|
11458
11460
|
this.text = text + "(".concat(timeout / 1000, ")");
|
|
11459
11461
|
var timer = setInterval(function () {
|
|
11460
11462
|
timeout -= 1000;
|
|
11461
|
-
|
|
11463
|
+
_this85.text = text + "(".concat(timeout / 1000, ")");
|
|
11462
11464
|
|
|
11463
11465
|
if (timeout <= 0) {
|
|
11464
11466
|
clearInterval(timer);
|
|
11465
11467
|
|
|
11466
|
-
|
|
11468
|
+
_this85.reset();
|
|
11467
11469
|
|
|
11468
11470
|
fn && fn();
|
|
11469
11471
|
}
|
|
@@ -11499,7 +11501,7 @@ var script$1 = {
|
|
|
11499
11501
|
$$1.close(this.dropper);
|
|
11500
11502
|
},
|
|
11501
11503
|
dragstart: function dragstart(e) {
|
|
11502
|
-
var
|
|
11504
|
+
var _this86 = this;
|
|
11503
11505
|
|
|
11504
11506
|
if (!this.isNormal || this.locked) return;
|
|
11505
11507
|
this.warn(false);
|
|
@@ -11514,16 +11516,16 @@ var script$1 = {
|
|
|
11514
11516
|
var c = $$1.eventX(e);
|
|
11515
11517
|
var l = $$1.numRange(f + c - x, 0, w - g);
|
|
11516
11518
|
a.style.left = l + 'px';
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
+
_this86.$refs.track.style.width = l + g + 'px';
|
|
11520
|
+
_this86.x.modelValue = Math.floor(Math.floor((m - n) * l / (w - g)));
|
|
11519
11521
|
|
|
11520
|
-
|
|
11522
|
+
_this86.el().classList.add('z-drag');
|
|
11521
11523
|
}, function (e) {
|
|
11522
11524
|
a.dispatchEvent(new Event('drop'));
|
|
11523
11525
|
}, e);
|
|
11524
11526
|
},
|
|
11525
11527
|
mouseenter: function mouseenter(e) {
|
|
11526
|
-
var
|
|
11528
|
+
var _this87 = this;
|
|
11527
11529
|
|
|
11528
11530
|
if (this.dropper || !this.x.big || this.isSuccess || this.locked) return;
|
|
11529
11531
|
this.warn(false);
|
|
@@ -11541,13 +11543,13 @@ var script$1 = {
|
|
|
11541
11543
|
context: this,
|
|
11542
11544
|
snap: {
|
|
11543
11545
|
target: function target() {
|
|
11544
|
-
return
|
|
11546
|
+
return _this87.el('main');
|
|
11545
11547
|
},
|
|
11546
11548
|
position: 'v'
|
|
11547
11549
|
},
|
|
11548
11550
|
on: {
|
|
11549
11551
|
close: function close() {
|
|
11550
|
-
return
|
|
11552
|
+
return _this87.dropper = null;
|
|
11551
11553
|
}
|
|
11552
11554
|
}
|
|
11553
11555
|
});
|
|
@@ -11590,12 +11592,12 @@ var script$1 = {
|
|
|
11590
11592
|
},
|
|
11591
11593
|
computed: {
|
|
11592
11594
|
validHooks: function validHooks() {
|
|
11593
|
-
var
|
|
11595
|
+
var _this88 = this;
|
|
11594
11596
|
|
|
11595
11597
|
return {
|
|
11596
11598
|
valid: function valid(v) {
|
|
11597
|
-
if (!
|
|
11598
|
-
return
|
|
11599
|
+
if (!_this88.isSuccess) {
|
|
11600
|
+
return _this88.formErr('jigsaw_required');
|
|
11599
11601
|
}
|
|
11600
11602
|
}
|
|
11601
11603
|
};
|