dfish-widget 0.1.360 → 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 +263 -227
- 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
|
@@ -3960,7 +3960,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3960
3960
|
|
|
3961
3961
|
var _component_w_option = resolveComponent("w-option");
|
|
3962
3962
|
|
|
3963
|
-
var
|
|
3963
|
+
var _component_w_slidepicker = resolveComponent("w-slidepicker");
|
|
3964
3964
|
|
|
3965
3965
|
var _component_w_vertical = resolveComponent("w-vertical");
|
|
3966
3966
|
|
|
@@ -4016,7 +4016,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4016
4016
|
_: 1
|
|
4017
4017
|
/* STABLE */
|
|
4018
4018
|
|
|
4019
|
-
}), createVNode(
|
|
4019
|
+
}), createVNode(_component_w_slidepicker, {
|
|
4020
4020
|
height: "*",
|
|
4021
4021
|
modelValue: $data.focusYear,
|
|
4022
4022
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
|
|
@@ -4068,7 +4068,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4068
4068
|
_: 1
|
|
4069
4069
|
/* STABLE */
|
|
4070
4070
|
|
|
4071
|
-
}), createVNode(
|
|
4071
|
+
}), createVNode(_component_w_slidepicker, {
|
|
4072
4072
|
height: "*",
|
|
4073
4073
|
modelValue: $data.focusMonth,
|
|
4074
4074
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) {
|
|
@@ -4120,7 +4120,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4120
4120
|
_: 1
|
|
4121
4121
|
/* STABLE */
|
|
4122
4122
|
|
|
4123
|
-
}), createVNode(
|
|
4123
|
+
}), createVNode(_component_w_slidepicker, {
|
|
4124
4124
|
height: "*",
|
|
4125
4125
|
modelValue: $data.focusDate,
|
|
4126
4126
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = function ($event) {
|
|
@@ -4172,7 +4172,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4172
4172
|
_: 1
|
|
4173
4173
|
/* STABLE */
|
|
4174
4174
|
|
|
4175
|
-
}), createVNode(
|
|
4175
|
+
}), createVNode(_component_w_slidepicker, {
|
|
4176
4176
|
height: "*",
|
|
4177
4177
|
modelValue: $data.focusHour,
|
|
4178
4178
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = function ($event) {
|
|
@@ -4221,7 +4221,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4221
4221
|
_: 1
|
|
4222
4222
|
/* STABLE */
|
|
4223
4223
|
|
|
4224
|
-
}), createVNode(
|
|
4224
|
+
}), createVNode(_component_w_slidepicker, {
|
|
4225
4225
|
height: "*",
|
|
4226
4226
|
modelValue: $data.focusMinute,
|
|
4227
4227
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = function ($event) {
|
|
@@ -4270,7 +4270,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4270
4270
|
_: 1
|
|
4271
4271
|
/* STABLE */
|
|
4272
4272
|
|
|
4273
|
-
}), createVNode(
|
|
4273
|
+
}), createVNode(_component_w_slidepicker, {
|
|
4274
4274
|
height: "*",
|
|
4275
4275
|
modelValue: $data.focusSecond,
|
|
4276
4276
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = function ($event) {
|
|
@@ -4367,7 +4367,7 @@ var script$16 = {
|
|
|
4367
4367
|
template: script$17,
|
|
4368
4368
|
width: '100%',
|
|
4369
4369
|
height: '55%',
|
|
4370
|
-
position: '
|
|
4370
|
+
position: 'b',
|
|
4371
4371
|
cover: true,
|
|
4372
4372
|
autoHide: true,
|
|
4373
4373
|
data: dateOptions
|
|
@@ -6465,6 +6465,7 @@ var script$z = {
|
|
|
6465
6465
|
},
|
|
6466
6466
|
focus: function focus() {
|
|
6467
6467
|
this.$refs.v.focus();
|
|
6468
|
+
return this;
|
|
6468
6469
|
},
|
|
6469
6470
|
formText: function formText() {
|
|
6470
6471
|
var t = this.val();
|
|
@@ -6701,6 +6702,10 @@ var script$y = {
|
|
|
6701
6702
|
this.val(empty || !this.defaultChecked ? false : true);
|
|
6702
6703
|
}
|
|
6703
6704
|
},
|
|
6705
|
+
onclick: function onclick(e) {
|
|
6706
|
+
//implement
|
|
6707
|
+
e.stopPropagation();
|
|
6708
|
+
},
|
|
6704
6709
|
onchange: function onchange(e) {
|
|
6705
6710
|
if (this.warnClass && this.x.name) {
|
|
6706
6711
|
this.ownerView.fAll(this.x.name).forEach(function (v) {
|
|
@@ -6767,16 +6772,9 @@ var script$y = {
|
|
|
6767
6772
|
}, this.x.text)];
|
|
6768
6773
|
},
|
|
6769
6774
|
html_main: function html_main() {
|
|
6770
|
-
var _this37 = this;
|
|
6771
|
-
|
|
6772
6775
|
return h$1('label', {
|
|
6773
6776
|
class: 'w-input',
|
|
6774
|
-
onclick:
|
|
6775
|
-
e.stopPropagation();
|
|
6776
|
-
_this37.provideBoxParent && _this37.provideBoxParent.clickBoxProxy(e);
|
|
6777
|
-
|
|
6778
|
-
_this37.relate();
|
|
6779
|
-
}
|
|
6777
|
+
onclick: this.onclick
|
|
6780
6778
|
}, this.html_input());
|
|
6781
6779
|
},
|
|
6782
6780
|
html_target: function html_target() {
|
|
@@ -6823,16 +6821,16 @@ var script$y = {
|
|
|
6823
6821
|
}
|
|
6824
6822
|
},
|
|
6825
6823
|
mounted: function mounted() {
|
|
6826
|
-
var
|
|
6824
|
+
var _this37 = this;
|
|
6827
6825
|
|
|
6828
6826
|
var t = this.$refs.target;
|
|
6829
6827
|
|
|
6830
6828
|
if (t) {
|
|
6831
6829
|
this.$nextTick(function () {
|
|
6832
|
-
|
|
6833
|
-
return
|
|
6830
|
+
_this37.$watch(function () {
|
|
6831
|
+
return _this37.isChecked && !_this37.isDisabled;
|
|
6834
6832
|
}, function (v) {
|
|
6835
|
-
t.$el &&
|
|
6833
|
+
t.$el && _this37.ownerView.fAll(null, t.$el).forEach(function (n) {
|
|
6836
6834
|
return n.x.disabled = !v;
|
|
6837
6835
|
});
|
|
6838
6836
|
}, {
|
|
@@ -6848,13 +6846,20 @@ var script$x = {
|
|
|
6848
6846
|
mixins: [script$y],
|
|
6849
6847
|
props: ['all'],
|
|
6850
6848
|
watch: {
|
|
6851
|
-
checked: function checked(
|
|
6849
|
+
checked: function checked(a) {
|
|
6850
|
+
this.check(a);
|
|
6851
|
+
|
|
6852
6852
|
if (this.provideBoxParent) {
|
|
6853
|
-
|
|
6853
|
+
this.provideBoxParent.clickBoxProxy();
|
|
6854
6854
|
}
|
|
6855
6855
|
}
|
|
6856
6856
|
},
|
|
6857
6857
|
methods: {
|
|
6858
|
+
onclick: function onclick(e) {
|
|
6859
|
+
e.stopPropagation();
|
|
6860
|
+
this.provideBoxParent && this.provideBoxParent.clickBoxProxy(e);
|
|
6861
|
+
this.relate();
|
|
6862
|
+
},
|
|
6858
6863
|
checkstate: function checkstate(a) {
|
|
6859
6864
|
var b = this.indeterminate ? 2 : this.isChecked ? 1 : 0;
|
|
6860
6865
|
|
|
@@ -6915,12 +6920,12 @@ var script$w = {
|
|
|
6915
6920
|
name: 'w-leaf',
|
|
6916
6921
|
pubParentName: 'w-tree',
|
|
6917
6922
|
mixins: [script$1j, script$1l],
|
|
6918
|
-
props: ['text', 'expandedIcon', 'collapsedIcon', 'expanded', '
|
|
6923
|
+
props: ['text', 'expandedIcon', 'collapsedIcon', 'expanded', 'boxSync', 'br', 'format', 'folder', 'src', 'success', 'filter', 'error', 'complete'],
|
|
6919
6924
|
inject: ['providePubParent', 'provideLeafLevel', 'provideParentLeaf'],
|
|
6920
6925
|
provide: function provide() {
|
|
6921
6926
|
return {
|
|
6922
6927
|
provideParentLeaf: this,
|
|
6923
|
-
provideLeafLevel: this.provideLeafLevel + 1,
|
|
6928
|
+
provideLeafLevel: this.provideLeafLevel + (this.isEntity ? 1 : 0),
|
|
6924
6929
|
provideBoxParent: this
|
|
6925
6930
|
};
|
|
6926
6931
|
},
|
|
@@ -6936,6 +6941,11 @@ var script$w = {
|
|
|
6936
6941
|
hasChild: function hasChild() {
|
|
6937
6942
|
return this.inTree() ? $$1.hasChild(this.$slots) : this.provideParentLeaf.hasChild();
|
|
6938
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
|
+
},
|
|
6939
6949
|
getInitLoaded: function getInitLoaded() {
|
|
6940
6950
|
return this.hasChild() || (this.x || this.$props).folder === false || !this.getSrc() ? true : false;
|
|
6941
6951
|
},
|
|
@@ -6949,18 +6959,18 @@ var script$w = {
|
|
|
6949
6959
|
return this.inTree() ? this.hasChild() ? true : this.x.folder != null ? this.x.folder : !!(this.getSrc() && !this.loaded) : this.provideParentLeaf.isFolder();
|
|
6950
6960
|
},
|
|
6951
6961
|
toggle: function toggle(exp, fn) {
|
|
6952
|
-
var
|
|
6962
|
+
var _this38 = this;
|
|
6953
6963
|
|
|
6954
6964
|
if (this.inTree()) {
|
|
6955
6965
|
this.x.expanded = exp != null ? exp : !this.x.expanded;
|
|
6956
6966
|
|
|
6957
6967
|
if (this.isExpanded() && !this.loaded) {
|
|
6958
6968
|
this.request(function () {
|
|
6959
|
-
fn && fn(
|
|
6969
|
+
fn && fn(_this38.isExpanded());
|
|
6960
6970
|
});
|
|
6961
6971
|
} else {
|
|
6962
6972
|
fn && this.$nextTick(function () {
|
|
6963
|
-
fn(
|
|
6973
|
+
fn(_this38.isExpanded());
|
|
6964
6974
|
});
|
|
6965
6975
|
}
|
|
6966
6976
|
} else {
|
|
@@ -6970,11 +6980,6 @@ var script$w = {
|
|
|
6970
6980
|
clickBoxProxy: function clickBoxProxy(e) {
|
|
6971
6981
|
this._triple();
|
|
6972
6982
|
},
|
|
6973
|
-
children: function children() {
|
|
6974
|
-
return $$1.lodash.map(this.$refs.cont.querySelectorAll(':scope > .w-leaf'), function (v) {
|
|
6975
|
-
return $$1(v);
|
|
6976
|
-
});
|
|
6977
|
-
},
|
|
6978
6983
|
// triplebox 级联勾选
|
|
6979
6984
|
_triple: function _triple() {
|
|
6980
6985
|
var p = this;
|
|
@@ -7013,14 +7018,14 @@ var script$w = {
|
|
|
7013
7018
|
this.el().classList.remove('z-hv');
|
|
7014
7019
|
},
|
|
7015
7020
|
html_self: function html_self() {
|
|
7016
|
-
var
|
|
7021
|
+
var _this39 = this;
|
|
7017
7022
|
|
|
7018
7023
|
var exp = this.isExpanded();
|
|
7019
7024
|
var ico = exp ? this.x.expandedIcon : this.x.collapsedIcon;
|
|
7020
7025
|
return h$1('div', mergeProps$1(this.html_attrs, this.$attrs, this.html_props), [h$1('div', {
|
|
7021
7026
|
class: ['w-leaf-toggle f-i', exp ? 'f-i-caret-down' : 'f-i-caret-right'],
|
|
7022
7027
|
onclick: function onclick(e) {
|
|
7023
|
-
e.stopPropagation(),
|
|
7028
|
+
e.stopPropagation(), _this39.toggle();
|
|
7024
7029
|
}
|
|
7025
7030
|
}), this.$slots.box && this.$slots.box(), ico && h$1(script$1e, {
|
|
7026
7031
|
src: ico,
|
|
@@ -7060,7 +7065,7 @@ var script$w = {
|
|
|
7060
7065
|
'z-folder': this.isFolder(),
|
|
7061
7066
|
'z-on': this.isCurrent
|
|
7062
7067
|
},
|
|
7063
|
-
style: 'padding-left:' + $$1.unitSize(this.provideLeafLevel * 16)
|
|
7068
|
+
style: 'padding-left:' + $$1.unitSize((this.provideLeafLevel + 1) * 16)
|
|
7064
7069
|
};
|
|
7065
7070
|
|
|
7066
7071
|
if (this.inTree()) {
|
|
@@ -7072,7 +7077,7 @@ var script$w = {
|
|
|
7072
7077
|
}
|
|
7073
7078
|
},
|
|
7074
7079
|
mounted: function mounted() {
|
|
7075
|
-
var
|
|
7080
|
+
var _this40 = this;
|
|
7076
7081
|
|
|
7077
7082
|
if (this.x.expanded) this.toggle(true);
|
|
7078
7083
|
|
|
@@ -7086,8 +7091,8 @@ var script$w = {
|
|
|
7086
7091
|
|
|
7087
7092
|
if (this.boxProxy) {
|
|
7088
7093
|
this.$nextTick(function () {
|
|
7089
|
-
if (!
|
|
7090
|
-
|
|
7094
|
+
if (!_this40.isFolder() && !_this40.$refs.cont.nextElementSibling) {
|
|
7095
|
+
_this40._triple();
|
|
7091
7096
|
}
|
|
7092
7097
|
});
|
|
7093
7098
|
}
|
|
@@ -7136,7 +7141,7 @@ var script$v = {
|
|
|
7136
7141
|
this.clickItem(e, v);
|
|
7137
7142
|
},
|
|
7138
7143
|
html_button: function html_button(i, t, ic, ds) {
|
|
7139
|
-
var
|
|
7144
|
+
var _this41 = this;
|
|
7140
7145
|
|
|
7141
7146
|
return h$1('button', {
|
|
7142
7147
|
class: ['w-pagebar-button w-pagebar-num', _defineProperty({
|
|
@@ -7145,7 +7150,7 @@ var script$v = {
|
|
|
7145
7150
|
}, ic, ic)],
|
|
7146
7151
|
disabled: ds,
|
|
7147
7152
|
onclick: function onclick(e) {
|
|
7148
|
-
return
|
|
7153
|
+
return _this41.clickItem(e, i);
|
|
7149
7154
|
}
|
|
7150
7155
|
}, t || (ic ? '' : i));
|
|
7151
7156
|
},
|
|
@@ -7153,7 +7158,7 @@ var script$v = {
|
|
|
7153
7158
|
return this.x.face === 'button' ? this.html_face_button() : this.x.face === 'simple' ? this.html_face_simple() : this.html_face_normal();
|
|
7154
7159
|
},
|
|
7155
7160
|
html_buttons: function html_buttons() {
|
|
7156
|
-
var
|
|
7161
|
+
var _this42 = this;
|
|
7157
7162
|
|
|
7158
7163
|
return [h$1(script$$, {
|
|
7159
7164
|
class: 'w-pagebar-button w-pagebar-prev',
|
|
@@ -7161,7 +7166,7 @@ var script$v = {
|
|
|
7161
7166
|
disabled: this.currentPage == 1,
|
|
7162
7167
|
title: $$1.loc.page_text.prev,
|
|
7163
7168
|
onclick: function onclick(e) {
|
|
7164
|
-
return
|
|
7169
|
+
return _this42.clickItem(e, _this42.currentPage - 1);
|
|
7165
7170
|
}
|
|
7166
7171
|
}), h$1(script$$, {
|
|
7167
7172
|
class: 'w-pagebar-button w-pagebar-next',
|
|
@@ -7169,12 +7174,12 @@ var script$v = {
|
|
|
7169
7174
|
disabled: this.currentPage == this.sumPage,
|
|
7170
7175
|
title: $$1.loc.page_text.next,
|
|
7171
7176
|
onclick: function onclick(e) {
|
|
7172
|
-
return
|
|
7177
|
+
return _this42.clickItem(e, _this42.currentPage + 1);
|
|
7173
7178
|
}
|
|
7174
7179
|
})];
|
|
7175
7180
|
},
|
|
7176
7181
|
html_drop: function html_drop() {
|
|
7177
|
-
var
|
|
7182
|
+
var _this43 = this;
|
|
7178
7183
|
|
|
7179
7184
|
var s = [];
|
|
7180
7185
|
|
|
@@ -7184,7 +7189,7 @@ var script$v = {
|
|
|
7184
7189
|
ref: 'drop',
|
|
7185
7190
|
text: this.currentPage + '/' + this.sumPage,
|
|
7186
7191
|
onclick: function onclick(e) {
|
|
7187
|
-
return
|
|
7192
|
+
return _this43.clickDrop(e);
|
|
7188
7193
|
}
|
|
7189
7194
|
}));
|
|
7190
7195
|
}
|
|
@@ -7197,7 +7202,7 @@ var script$v = {
|
|
|
7197
7202
|
text: i,
|
|
7198
7203
|
on: {
|
|
7199
7204
|
click: function click(e) {
|
|
7200
|
-
return
|
|
7205
|
+
return _this43.clickItem(e, i);
|
|
7201
7206
|
}
|
|
7202
7207
|
}
|
|
7203
7208
|
}));
|
|
@@ -7210,14 +7215,14 @@ var script$v = {
|
|
|
7210
7215
|
s.push(h$1(script$Z, {
|
|
7211
7216
|
snap: {
|
|
7212
7217
|
target: function target() {
|
|
7213
|
-
return
|
|
7218
|
+
return _this43.$refs.drop;
|
|
7214
7219
|
},
|
|
7215
7220
|
position: 'v',
|
|
7216
7221
|
indent: 1
|
|
7217
7222
|
},
|
|
7218
7223
|
on: {
|
|
7219
7224
|
close: function close() {
|
|
7220
|
-
return
|
|
7225
|
+
return _this43.showDrop = false;
|
|
7221
7226
|
}
|
|
7222
7227
|
}
|
|
7223
7228
|
}, {
|
|
@@ -7238,7 +7243,7 @@ var script$v = {
|
|
|
7238
7243
|
return b;
|
|
7239
7244
|
},
|
|
7240
7245
|
html_face_normal: function html_face_normal() {
|
|
7241
|
-
var
|
|
7246
|
+
var _this44 = this;
|
|
7242
7247
|
|
|
7243
7248
|
var s = [];
|
|
7244
7249
|
var sp = this.sumPage;
|
|
@@ -7272,13 +7277,13 @@ var script$v = {
|
|
|
7272
7277
|
class: 'w-pagebar-jump-input',
|
|
7273
7278
|
ref: 'jumpInput',
|
|
7274
7279
|
onfocus: function onfocus(e) {
|
|
7275
|
-
return
|
|
7280
|
+
return _this44.isJumpFocus = true;
|
|
7276
7281
|
},
|
|
7277
7282
|
onblur: function onblur(e) {
|
|
7278
|
-
return
|
|
7283
|
+
return _this44.isJumpFocus = false;
|
|
7279
7284
|
},
|
|
7280
7285
|
onkeydown: function onkeydown(e) {
|
|
7281
|
-
return e.keyCode == 13 &&
|
|
7286
|
+
return e.keyCode == 13 && _this44.onJumpClick(e);
|
|
7282
7287
|
}
|
|
7283
7288
|
}));
|
|
7284
7289
|
s.push(h$1('button', {
|
|
@@ -7339,10 +7344,10 @@ var script$u = {
|
|
|
7339
7344
|
props: ['collapsedIcon', 'expandedIcon', 'movable', 'range', 'toNext', 'expanded'],
|
|
7340
7345
|
inject: ['provideLayout'],
|
|
7341
7346
|
created: function created() {
|
|
7342
|
-
var
|
|
7347
|
+
var _this45 = this;
|
|
7343
7348
|
|
|
7344
7349
|
this.$watch('expanded', function (v) {
|
|
7345
|
-
if (typeof v === 'boolean')
|
|
7350
|
+
if (typeof v === 'boolean') _this45.x.expanded = v;else if (_this45.x.expanded == null) _this45.x.expanded = true;
|
|
7346
7351
|
}, {
|
|
7347
7352
|
immediate: true
|
|
7348
7353
|
});
|
|
@@ -7357,7 +7362,7 @@ var script$u = {
|
|
|
7357
7362
|
}
|
|
7358
7363
|
},
|
|
7359
7364
|
dragstart: function dragstart(e) {
|
|
7360
|
-
var
|
|
7365
|
+
var _this46 = this;
|
|
7361
7366
|
|
|
7362
7367
|
var prevElem = this.el().previousElementSibling;
|
|
7363
7368
|
var nextElem = this.el().nextElementSibling;
|
|
@@ -7386,12 +7391,12 @@ var script$u = {
|
|
|
7386
7391
|
}, function (e) {
|
|
7387
7392
|
if (help) {
|
|
7388
7393
|
help.remove();
|
|
7389
|
-
var size = (
|
|
7394
|
+
var size = (_this46.x.expanded ? $$1.bcr(minorElem)[sizeName] : 0) + (_this46.x.toNext ? 1 : -1) * (downPos - pos);
|
|
7390
7395
|
|
|
7391
7396
|
if (size <= 0) {
|
|
7392
|
-
|
|
7397
|
+
_this46.toggle(false);
|
|
7393
7398
|
} else {
|
|
7394
|
-
if (!
|
|
7399
|
+
if (!_this46.x.expanded) _this46.toggle(true);
|
|
7395
7400
|
$$1.q(minorElem).css(_defineProperty({}, sizeName, size));
|
|
7396
7401
|
}
|
|
7397
7402
|
}
|
|
@@ -7399,7 +7404,7 @@ var script$u = {
|
|
|
7399
7404
|
}
|
|
7400
7405
|
},
|
|
7401
7406
|
html_slots: function html_slots() {
|
|
7402
|
-
var
|
|
7407
|
+
var _this47 = this;
|
|
7403
7408
|
|
|
7404
7409
|
var r = [];
|
|
7405
7410
|
var expandedIcon = this.x.expandedIcon || this.x.collapsedIcon;
|
|
@@ -7407,7 +7412,7 @@ var script$u = {
|
|
|
7407
7412
|
|
|
7408
7413
|
if (expandedIcon) {
|
|
7409
7414
|
r.push(this.html_icon(this.x.expanded ? expandedIcon : collapsedIcon, 'w-split-icon', function () {
|
|
7410
|
-
return
|
|
7415
|
+
return _this47.toggle();
|
|
7411
7416
|
}));
|
|
7412
7417
|
}
|
|
7413
7418
|
|
|
@@ -7506,7 +7511,7 @@ var script$s = {
|
|
|
7506
7511
|
return suffix ? mimeType(fileName) : 'video/mp4';
|
|
7507
7512
|
},
|
|
7508
7513
|
html_slots: function html_slots() {
|
|
7509
|
-
var
|
|
7514
|
+
var _this48 = this;
|
|
7510
7515
|
|
|
7511
7516
|
return [h$1('video', {
|
|
7512
7517
|
class: 'w-video-vd f-width f-height',
|
|
@@ -7514,10 +7519,10 @@ var script$s = {
|
|
|
7514
7519
|
src: this.x.src,
|
|
7515
7520
|
poster: this.x.poster,
|
|
7516
7521
|
onplay: function onplay(e) {
|
|
7517
|
-
return
|
|
7522
|
+
return _this48.playing = true;
|
|
7518
7523
|
},
|
|
7519
7524
|
onpause: function onpause(e) {
|
|
7520
|
-
return
|
|
7525
|
+
return _this48.playing = false;
|
|
7521
7526
|
},
|
|
7522
7527
|
controls: true,
|
|
7523
7528
|
'webkit-playsinline': true,
|
|
@@ -7531,7 +7536,7 @@ var script$s = {
|
|
|
7531
7536
|
class: 'w-video-play f-abs-center f-flex-center',
|
|
7532
7537
|
innerHTML: '<i class="f-i f-i-play"></i>',
|
|
7533
7538
|
onclick: function onclick(e) {
|
|
7534
|
-
var o =
|
|
7539
|
+
var o = _this48.$refs.vd;
|
|
7535
7540
|
o.paused ? o.play() : o.pause();
|
|
7536
7541
|
}
|
|
7537
7542
|
})];
|
|
@@ -7931,7 +7936,7 @@ var _hoisted_9 = {
|
|
|
7931
7936
|
};
|
|
7932
7937
|
|
|
7933
7938
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7934
|
-
var
|
|
7939
|
+
var _this49 = this;
|
|
7935
7940
|
|
|
7936
7941
|
var _component_w_html = resolveComponent("w-html");
|
|
7937
7942
|
|
|
@@ -8039,7 +8044,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8039
8044
|
|
|
8040
8045
|
}, 8
|
|
8041
8046
|
/* PROPS */
|
|
8042
|
-
, ["context", "snap"])) : createCommentVNode("v-if", true),
|
|
8047
|
+
, ["context", "snap"])) : createCommentVNode("v-if", true), _this49.x.face == 'date' ? (openBlock(), createBlock(_component_w_html, {
|
|
8043
8048
|
key: 1,
|
|
8044
8049
|
class: "w-calendar-head-month f-link",
|
|
8045
8050
|
ref: "popMonth",
|
|
@@ -8122,7 +8127,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8122
8127
|
_: 1
|
|
8123
8128
|
/* STABLE */
|
|
8124
8129
|
|
|
8125
|
-
}), 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, {
|
|
8126
8131
|
key: 0
|
|
8127
8132
|
}, renderList($options.loc.calendar.day_title_1, function (item) {
|
|
8128
8133
|
return openBlock(), createBlock("div", _hoisted_5, toDisplayString(item), 1
|
|
@@ -8308,7 +8313,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8308
8313
|
style: {
|
|
8309
8314
|
visibility: $options.hasTime && !$data.onlyTime ? 'visible' : 'hidden'
|
|
8310
8315
|
}
|
|
8311
|
-
}, toDisplayString(
|
|
8316
|
+
}, toDisplayString(_this49.showTime ? $options.loc.calendar.backdate : $options.loc.calendar.picktime), 5
|
|
8312
8317
|
/* TEXT, STYLE */
|
|
8313
8318
|
), createVNode("div", {
|
|
8314
8319
|
class: "f-link",
|
|
@@ -8441,20 +8446,20 @@ var script$p = {
|
|
|
8441
8446
|
}
|
|
8442
8447
|
},
|
|
8443
8448
|
mounted: function mounted() {
|
|
8444
|
-
var
|
|
8449
|
+
var _this50 = this;
|
|
8445
8450
|
|
|
8446
8451
|
this.indent();
|
|
8447
8452
|
|
|
8448
8453
|
var observe = function observe() {
|
|
8449
|
-
if (
|
|
8450
|
-
$$1.q('.w-timeline-item',
|
|
8454
|
+
if (_this50.$refs.wrap && _this50.$refs.next) {
|
|
8455
|
+
$$1.q('.w-timeline-item', _this50.$refs.wrap).css({
|
|
8451
8456
|
margin: 0
|
|
8452
8457
|
});
|
|
8453
|
-
$$1.q(
|
|
8458
|
+
$$1.q(_this50.$refs.next).css({
|
|
8454
8459
|
margin: 0
|
|
8455
8460
|
});
|
|
8456
8461
|
|
|
8457
|
-
|
|
8462
|
+
_this50.indent();
|
|
8458
8463
|
}
|
|
8459
8464
|
};
|
|
8460
8465
|
|
|
@@ -8499,7 +8504,7 @@ var script$o = {
|
|
|
8499
8504
|
};
|
|
8500
8505
|
script$o.__file = "src/widgets/TimelineItem.vue";
|
|
8501
8506
|
var script$n = {
|
|
8502
|
-
name: 'w-
|
|
8507
|
+
name: 'w-slidepicker',
|
|
8503
8508
|
mixins: [script$1j],
|
|
8504
8509
|
props: ['optionHeight', 'modelValue', 'minValue', 'maxValue', 'keepIndex'],
|
|
8505
8510
|
emits: ['update:modelValue', 'change', 'scroll:top', 'scroll:bottom'],
|
|
@@ -8698,17 +8703,17 @@ var script$n = {
|
|
|
8698
8703
|
};
|
|
8699
8704
|
var _hoisted_1$2 = {
|
|
8700
8705
|
ref: "options",
|
|
8701
|
-
class: "w-
|
|
8706
|
+
class: "w-slidepicker-options"
|
|
8702
8707
|
};
|
|
8703
8708
|
|
|
8704
8709
|
var _hoisted_2$1 = /*#__PURE__*/createVNode("div", {
|
|
8705
|
-
class: "w-
|
|
8710
|
+
class: "w-slidepicker-bg-top"
|
|
8706
8711
|
}, null, -1
|
|
8707
8712
|
/* HOISTED */
|
|
8708
8713
|
);
|
|
8709
8714
|
|
|
8710
8715
|
var _hoisted_3$1 = /*#__PURE__*/createVNode("div", {
|
|
8711
|
-
class: "w-
|
|
8716
|
+
class: "w-slidepicker-bg-bottom"
|
|
8712
8717
|
}, null, -1
|
|
8713
8718
|
/* HOISTED */
|
|
8714
8719
|
);
|
|
@@ -8724,7 +8729,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8724
8729
|
}
|
|
8725
8730
|
|
|
8726
8731
|
script$n.render = render$3;
|
|
8727
|
-
script$n.__file = "src/widgets/
|
|
8732
|
+
script$n.__file = "src/widgets/SlidePicker.vue";
|
|
8728
8733
|
var script$m = {
|
|
8729
8734
|
name: 'w-hidden',
|
|
8730
8735
|
mixins: [script$z],
|
|
@@ -9402,13 +9407,13 @@ var script$f = {
|
|
|
9402
9407
|
};
|
|
9403
9408
|
},
|
|
9404
9409
|
created: function created() {
|
|
9405
|
-
var
|
|
9410
|
+
var _this51 = this;
|
|
9406
9411
|
|
|
9407
9412
|
this.$watch(function () {
|
|
9408
|
-
return
|
|
9413
|
+
return _this51.x.modelValue;
|
|
9409
9414
|
}, function (v) {
|
|
9410
|
-
if (
|
|
9411
|
-
|
|
9415
|
+
if (_this51.emiting) return _this51.emiting = false;
|
|
9416
|
+
_this51.list = Array.isArray(v) ? v.map(function (value) {
|
|
9412
9417
|
return {
|
|
9413
9418
|
value: value
|
|
9414
9419
|
};
|
|
@@ -9460,7 +9465,7 @@ var script$f = {
|
|
|
9460
9465
|
return s == 'aud';
|
|
9461
9466
|
},
|
|
9462
9467
|
fileSelected: function fileSelected(e) {
|
|
9463
|
-
var
|
|
9468
|
+
var _this52 = this;
|
|
9464
9469
|
|
|
9465
9470
|
if (this.x.uploadLimit > 1 && e.target.files.length + this.list.length > this.x.uploadLimit) {
|
|
9466
9471
|
return $$1.alert($$1.loc.ps($$1.loc.form.upload_limit, this.x.uploadLimit));
|
|
@@ -9475,7 +9480,7 @@ var script$f = {
|
|
|
9475
9480
|
(xfs_names || (xfs_names = [])).push(file.name);
|
|
9476
9481
|
} else if (nfs && file.size < nfs) {
|
|
9477
9482
|
(nfs_names || (nfs_names = [])).push(file.name);
|
|
9478
|
-
} else
|
|
9483
|
+
} else _this52.list.push({
|
|
9479
9484
|
file: file
|
|
9480
9485
|
});
|
|
9481
9486
|
});
|
|
@@ -9491,7 +9496,7 @@ var script$f = {
|
|
|
9491
9496
|
this.nextUpload();
|
|
9492
9497
|
},
|
|
9493
9498
|
upload: function upload(item) {
|
|
9494
|
-
var
|
|
9499
|
+
var _this53 = this;
|
|
9495
9500
|
|
|
9496
9501
|
if (this.x.uploadSrc && !item.loading) {
|
|
9497
9502
|
var src = $$1.urlFormat(this.x.uploadSrc, this.x.data, this.x);
|
|
@@ -9508,7 +9513,7 @@ var script$f = {
|
|
|
9508
9513
|
item.loading = false;
|
|
9509
9514
|
item.loaded = true;
|
|
9510
9515
|
item.source = null;
|
|
9511
|
-
var d =
|
|
9516
|
+
var d = _this53.x.filter ? _this53.x.filter(res, _this53) : res.data;
|
|
9512
9517
|
|
|
9513
9518
|
if (!d) {
|
|
9514
9519
|
item.error = {
|
|
@@ -9522,10 +9527,10 @@ var script$f = {
|
|
|
9522
9527
|
};
|
|
9523
9528
|
} else {
|
|
9524
9529
|
item.value = d;
|
|
9525
|
-
|
|
9530
|
+
_this53.x.success && _this53.x.success(item.value, _this53, res);
|
|
9526
9531
|
}
|
|
9527
9532
|
|
|
9528
|
-
|
|
9533
|
+
_this53.nextUpload();
|
|
9529
9534
|
|
|
9530
9535
|
if (item.error && item.error.message) $$1.alert(item.error.message);
|
|
9531
9536
|
}).catch(function (error) {
|
|
@@ -9589,7 +9594,7 @@ var script$f = {
|
|
|
9589
9594
|
this.$refs.file.click();
|
|
9590
9595
|
},
|
|
9591
9596
|
html_list: function html_list() {
|
|
9592
|
-
var
|
|
9597
|
+
var _this54 = this;
|
|
9593
9598
|
|
|
9594
9599
|
return this.list.map(function (item) {
|
|
9595
9600
|
var n = item.value ? item.value.name : item.file.name;
|
|
@@ -9600,11 +9605,11 @@ var script$f = {
|
|
|
9600
9605
|
}],
|
|
9601
9606
|
style: {
|
|
9602
9607
|
'--w-upload-progress': item.file ? "".concat(item.progress || 0, "%") : '',
|
|
9603
|
-
width: $$1.unitSize(
|
|
9608
|
+
width: $$1.unitSize(_this54.x.itemWidth)
|
|
9604
9609
|
},
|
|
9605
9610
|
title: item.error ? item.error.message : n,
|
|
9606
9611
|
onclick: function onclick(e) {
|
|
9607
|
-
return
|
|
9612
|
+
return _this54.clickItem(e, item);
|
|
9608
9613
|
}
|
|
9609
9614
|
}, [h$1('i', {
|
|
9610
9615
|
class: ['w-fileupload-value-icon f-i', 'f-i-file-' + getSuffix(n)]
|
|
@@ -9616,7 +9621,7 @@ var script$f = {
|
|
|
9616
9621
|
class: 'w-fileupload-value-close f-i f-i-trash',
|
|
9617
9622
|
title: $$1.loc.remove,
|
|
9618
9623
|
onclick: function onclick(e) {
|
|
9619
|
-
|
|
9624
|
+
_this54.remove(item), e.stopPropagation();
|
|
9620
9625
|
}
|
|
9621
9626
|
})]);
|
|
9622
9627
|
});
|
|
@@ -9631,7 +9636,7 @@ var script$f = {
|
|
|
9631
9636
|
})];
|
|
9632
9637
|
},
|
|
9633
9638
|
html_input_button: function html_input_button() {
|
|
9634
|
-
var
|
|
9639
|
+
var _this55 = this;
|
|
9635
9640
|
|
|
9636
9641
|
return h$1(script$I, {
|
|
9637
9642
|
ref: 'uploadbbr',
|
|
@@ -9639,11 +9644,11 @@ var script$f = {
|
|
|
9639
9644
|
gap: 10
|
|
9640
9645
|
}, {
|
|
9641
9646
|
default: function _default() {
|
|
9642
|
-
return [
|
|
9647
|
+
return [_this55.$slots.button ? _this55.$slots.button() : h$1(script$$, {
|
|
9643
9648
|
text: '选择文件',
|
|
9644
9649
|
icon: '.f-i .f-i-upload',
|
|
9645
9650
|
class: 'w-fileupload-button',
|
|
9646
|
-
onclick:
|
|
9651
|
+
onclick: _this55.chooseFile
|
|
9647
9652
|
})];
|
|
9648
9653
|
}
|
|
9649
9654
|
});
|
|
@@ -9662,11 +9667,11 @@ var script$f = {
|
|
|
9662
9667
|
},
|
|
9663
9668
|
computed: {
|
|
9664
9669
|
validHooks: function validHooks() {
|
|
9665
|
-
var
|
|
9670
|
+
var _this56 = this;
|
|
9666
9671
|
|
|
9667
9672
|
return {
|
|
9668
9673
|
valid: function valid(v) {
|
|
9669
|
-
var _iterator5 = _createForOfIteratorHelper(
|
|
9674
|
+
var _iterator5 = _createForOfIteratorHelper(_this56.list),
|
|
9670
9675
|
_step5;
|
|
9671
9676
|
|
|
9672
9677
|
try {
|
|
@@ -9674,11 +9679,11 @@ var script$f = {
|
|
|
9674
9679
|
var item = _step5.value;
|
|
9675
9680
|
|
|
9676
9681
|
if (item.loading) {
|
|
9677
|
-
return
|
|
9682
|
+
return _this56.formErr('upload_loading');
|
|
9678
9683
|
}
|
|
9679
9684
|
|
|
9680
9685
|
if (item.error) {
|
|
9681
|
-
return
|
|
9686
|
+
return _this56.formErr('upload_invalid_file');
|
|
9682
9687
|
}
|
|
9683
9688
|
}
|
|
9684
9689
|
} catch (err) {
|
|
@@ -9707,11 +9712,11 @@ var script$f = {
|
|
|
9707
9712
|
};
|
|
9708
9713
|
},
|
|
9709
9714
|
html_on: function html_on() {
|
|
9710
|
-
var
|
|
9715
|
+
var _this57 = this;
|
|
9711
9716
|
|
|
9712
9717
|
return {
|
|
9713
9718
|
onclick: function onclick() {
|
|
9714
|
-
return
|
|
9719
|
+
return _this57.warn(false);
|
|
9715
9720
|
}
|
|
9716
9721
|
};
|
|
9717
9722
|
}
|
|
@@ -9731,30 +9736,30 @@ var script$e = {
|
|
|
9731
9736
|
this.provideUpload.clickItem(e, this.item);
|
|
9732
9737
|
},
|
|
9733
9738
|
createImageThumbnail: function createImageThumbnail() {
|
|
9734
|
-
var
|
|
9739
|
+
var _this58 = this;
|
|
9735
9740
|
|
|
9736
9741
|
var r = new FileReader();
|
|
9737
9742
|
|
|
9738
9743
|
r.onload = function (e) {
|
|
9739
|
-
if (
|
|
9740
|
-
|
|
9744
|
+
if (_this58.item.loaded) return;
|
|
9745
|
+
_this58.dataURL = e.target.result;
|
|
9741
9746
|
};
|
|
9742
9747
|
|
|
9743
9748
|
r.readAsDataURL(this.item.file);
|
|
9744
9749
|
},
|
|
9745
9750
|
createVideoThumbnail: function createVideoThumbnail() {
|
|
9746
|
-
var
|
|
9751
|
+
var _this59 = this;
|
|
9747
9752
|
|
|
9748
9753
|
var video = document.createElement('video');
|
|
9749
9754
|
video.addEventListener('loadeddata', function () {
|
|
9750
9755
|
setTimeout(function () {
|
|
9751
|
-
if (
|
|
9756
|
+
if (_this59.item.loaded) return;
|
|
9752
9757
|
var cvs = document.createElement('canvas');
|
|
9753
9758
|
var ctx = cvs.getContext('2d');
|
|
9754
9759
|
cvs.width = video.videoWidth;
|
|
9755
9760
|
cvs.height = video.videoHeight;
|
|
9756
9761
|
ctx.drawImage(video, 0, 0);
|
|
9757
|
-
|
|
9762
|
+
_this59.dataURL = cvs.toDataURL('image/png');
|
|
9758
9763
|
video.pause();
|
|
9759
9764
|
$$1.q(video).remove();
|
|
9760
9765
|
}, 150);
|
|
@@ -9809,14 +9814,14 @@ var script$e = {
|
|
|
9809
9814
|
}
|
|
9810
9815
|
},
|
|
9811
9816
|
mounted: function mounted() {
|
|
9812
|
-
var
|
|
9817
|
+
var _this60 = this;
|
|
9813
9818
|
|
|
9814
9819
|
if (!this.item.loaded && this.item.file) {
|
|
9815
9820
|
this.upload.isVideo(this.item) ? this.createVideoThumbnail() : this.upload.isImage(this.item) ? this.createImageThumbnail() : null;
|
|
9816
9821
|
this.$watch(function () {
|
|
9817
|
-
return
|
|
9822
|
+
return _this60.item.progress;
|
|
9818
9823
|
}, function (v) {
|
|
9819
|
-
return
|
|
9824
|
+
return _this60.setProgress(v);
|
|
9820
9825
|
}, {
|
|
9821
9826
|
immediate: true
|
|
9822
9827
|
});
|
|
@@ -9913,7 +9918,7 @@ var script$d = {
|
|
|
9913
9918
|
});
|
|
9914
9919
|
},
|
|
9915
9920
|
html_input_button: function html_input_button() {
|
|
9916
|
-
var
|
|
9921
|
+
var _this61 = this;
|
|
9917
9922
|
|
|
9918
9923
|
return h$1(script$I, {
|
|
9919
9924
|
ref: 'uploadbbr',
|
|
@@ -9921,16 +9926,16 @@ var script$d = {
|
|
|
9921
9926
|
gap: 10
|
|
9922
9927
|
}, {
|
|
9923
9928
|
default: function _default() {
|
|
9924
|
-
return [
|
|
9929
|
+
return [_this61.$slots.button ? _this61.$slots.button() : h$1(script$$, {
|
|
9925
9930
|
ref: 'uploadbutton',
|
|
9926
9931
|
title: $$1.loc.form.choose_image,
|
|
9927
9932
|
icon: '.f-i .f-i-plus',
|
|
9928
9933
|
class: 'w-mediaupload-button',
|
|
9929
9934
|
style: {
|
|
9930
|
-
width: $$1.unitSize(
|
|
9931
|
-
height: $$1.unitSize(
|
|
9935
|
+
width: $$1.unitSize(_this61.x.thumbnailWidth),
|
|
9936
|
+
height: $$1.unitSize(_this61.x.thumbnailHeight)
|
|
9932
9937
|
},
|
|
9933
|
-
onclick:
|
|
9938
|
+
onclick: _this61.chooseFile
|
|
9934
9939
|
})];
|
|
9935
9940
|
}
|
|
9936
9941
|
});
|
|
@@ -10112,7 +10117,7 @@ var script$a = {
|
|
|
10112
10117
|
return this.$refs.btns && this.$refs.btns.contains(el);
|
|
10113
10118
|
},
|
|
10114
10119
|
html_button: function html_button() {
|
|
10115
|
-
var
|
|
10120
|
+
var _this62 = this;
|
|
10116
10121
|
|
|
10117
10122
|
return h$1('div', {
|
|
10118
10123
|
class: 'w-spinner-step w-input-bbr f-flex-column f-oh',
|
|
@@ -10121,14 +10126,14 @@ var script$a = {
|
|
|
10121
10126
|
class: 'w-spinner-step-btn f-rel',
|
|
10122
10127
|
disabled: this.x.disabled,
|
|
10123
10128
|
onclick: function onclick(e) {
|
|
10124
|
-
return
|
|
10129
|
+
return _this62.stepBy(1);
|
|
10125
10130
|
},
|
|
10126
10131
|
innerHTML: '<i class="f-abs-center f-i f-i-caret-up"></i>'
|
|
10127
10132
|
}), h$1('button', {
|
|
10128
10133
|
class: 'w-spinner-step-btn f-rel',
|
|
10129
10134
|
disabled: this.x.disabled,
|
|
10130
10135
|
onclick: function onclick(e) {
|
|
10131
|
-
return
|
|
10136
|
+
return _this62.stepBy(-1);
|
|
10132
10137
|
},
|
|
10133
10138
|
innerHTML: '<i class="f-abs-center f-i f-i-caret-down"></i>'
|
|
10134
10139
|
})]);
|
|
@@ -10136,24 +10141,24 @@ var script$a = {
|
|
|
10136
10141
|
},
|
|
10137
10142
|
computed: {
|
|
10138
10143
|
validHooks: function validHooks() {
|
|
10139
|
-
var
|
|
10144
|
+
var _this63 = this;
|
|
10140
10145
|
|
|
10141
10146
|
return {
|
|
10142
10147
|
compare: function compare(v, c, d) {
|
|
10143
|
-
return !$$1.eval('v' + (
|
|
10148
|
+
return !$$1.eval('v' + (_this63.x.compare.mode || '==') + 'd', {
|
|
10144
10149
|
v: v,
|
|
10145
10150
|
d: d
|
|
10146
10151
|
});
|
|
10147
10152
|
},
|
|
10148
10153
|
valid: function valid(v) {
|
|
10149
|
-
|
|
10154
|
+
_this63.x.format && (v = v.replace(RegExp(_this63.x.format.separator || ',', 'g'), ''));
|
|
10150
10155
|
|
|
10151
10156
|
if (v) {
|
|
10152
|
-
if (isNaN(v) || /\s/.test(v)) return
|
|
10153
|
-
var d =
|
|
10154
|
-
if (!d && ~v.indexOf('.')) return
|
|
10155
|
-
if (d && d > 0 && $$1.strFrom(v, '.').length > d) return
|
|
10156
|
-
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();
|
|
10157
10162
|
}
|
|
10158
10163
|
}
|
|
10159
10164
|
};
|
|
@@ -10224,7 +10229,7 @@ var script$9 = {
|
|
|
10224
10229
|
};
|
|
10225
10230
|
},
|
|
10226
10231
|
html_button: function html_button() {
|
|
10227
|
-
var
|
|
10232
|
+
var _this64 = this;
|
|
10228
10233
|
|
|
10229
10234
|
var r = [];
|
|
10230
10235
|
if (!this.x.noButton) r.push(h$1('button', {
|
|
@@ -10241,28 +10246,28 @@ var script$9 = {
|
|
|
10241
10246
|
autoHide: true,
|
|
10242
10247
|
snap: {
|
|
10243
10248
|
target: function target() {
|
|
10244
|
-
return
|
|
10249
|
+
return _this64.snapElem();
|
|
10245
10250
|
},
|
|
10246
10251
|
position: 'v',
|
|
10247
10252
|
indent: 1
|
|
10248
10253
|
},
|
|
10249
10254
|
on: {
|
|
10250
10255
|
close: function close() {
|
|
10251
|
-
|
|
10256
|
+
_this64.showDrop = false, _this64.currentDate = null;
|
|
10252
10257
|
}
|
|
10253
10258
|
}
|
|
10254
10259
|
}, {
|
|
10255
10260
|
default: function _default() {
|
|
10256
10261
|
return h$1(script$q, _objectSpread(_objectSpread({
|
|
10257
10262
|
pad: true,
|
|
10258
|
-
current:
|
|
10259
|
-
value:
|
|
10260
|
-
format:
|
|
10261
|
-
},
|
|
10262
|
-
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,
|
|
10263
10268
|
on: {
|
|
10264
10269
|
'click:item': function clickItem(e, item) {
|
|
10265
|
-
return
|
|
10270
|
+
return _this64.currentDate = item.value;
|
|
10266
10271
|
}
|
|
10267
10272
|
}
|
|
10268
10273
|
}));
|
|
@@ -10275,46 +10280,46 @@ var script$9 = {
|
|
|
10275
10280
|
},
|
|
10276
10281
|
computed: {
|
|
10277
10282
|
validHooks: function validHooks() {
|
|
10278
|
-
var
|
|
10283
|
+
var _this65 = this;
|
|
10279
10284
|
|
|
10280
10285
|
return {
|
|
10281
10286
|
minValue: function minValue(v) {
|
|
10282
|
-
return $$1.dateParse(v,
|
|
10287
|
+
return $$1.dateParse(v, _this65.x.format) < $$1.dateParse(_this65.vv('minValue'), _this65.x.format);
|
|
10283
10288
|
},
|
|
10284
10289
|
maxValue: function maxValue(v) {
|
|
10285
|
-
return $$1.dateParse(v,
|
|
10290
|
+
return $$1.dateParse(v, _this65.x.format) > $$1.dateParse(_this65.vv('maxValue'), _this65.x.format);
|
|
10286
10291
|
},
|
|
10287
10292
|
compare: function compare(v, c, d) {
|
|
10288
|
-
if (
|
|
10289
|
-
var f = (
|
|
10290
|
-
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);
|
|
10291
10296
|
d = $$1.dateFormat($$1.dateParse(d, c.x.format), f);
|
|
10292
10297
|
}
|
|
10293
10298
|
|
|
10294
|
-
return !$$1.eval('v' + (
|
|
10299
|
+
return !$$1.eval('v' + (_this65.x.compare.mode || '==') + 'd', {
|
|
10295
10300
|
v: v,
|
|
10296
10301
|
d: d
|
|
10297
10302
|
});
|
|
10298
10303
|
},
|
|
10299
10304
|
valid: function valid(v) {
|
|
10300
|
-
if (
|
|
10305
|
+
if (_this65.x.multiple) return;
|
|
10301
10306
|
|
|
10302
10307
|
if (v) {
|
|
10303
10308
|
var _c4 = v;
|
|
10304
|
-
var d = $$1.dateParse(_c4,
|
|
10309
|
+
var d = $$1.dateParse(_c4, _this65.x.format);
|
|
10305
10310
|
var y = d.getFullYear();
|
|
10306
10311
|
var m = 9999;
|
|
10307
10312
|
var n = 1000;
|
|
10308
|
-
if (y > m || y < n) return
|
|
10313
|
+
if (y > m || y < n) return _this65.formErr('time_exceed', [n, m]);
|
|
10309
10314
|
|
|
10310
|
-
if (_c4 != $$1.dateFormat(d,
|
|
10311
|
-
return
|
|
10315
|
+
if (_c4 != $$1.dateFormat(d, _this65.x.format)) {
|
|
10316
|
+
return _this65.formErr('time_format', [$$1.dateFormat(d, _this65.x.format)]);
|
|
10312
10317
|
}
|
|
10313
10318
|
}
|
|
10314
10319
|
|
|
10315
|
-
if (
|
|
10316
|
-
if (
|
|
10317
|
-
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();
|
|
10318
10323
|
}
|
|
10319
10324
|
};
|
|
10320
10325
|
},
|
|
@@ -10362,7 +10367,7 @@ var script$8 = {
|
|
|
10362
10367
|
return this.input_text;
|
|
10363
10368
|
},
|
|
10364
10369
|
html_input: function html_input() {
|
|
10365
|
-
var
|
|
10370
|
+
var _this66 = this;
|
|
10366
10371
|
|
|
10367
10372
|
var t = this.input_text;
|
|
10368
10373
|
var p = this.input_placeholder;
|
|
@@ -10381,14 +10386,14 @@ var script$8 = {
|
|
|
10381
10386
|
autoHide: true,
|
|
10382
10387
|
snap: {
|
|
10383
10388
|
target: function target() {
|
|
10384
|
-
return
|
|
10389
|
+
return _this66.el('main');
|
|
10385
10390
|
},
|
|
10386
10391
|
position: 'v',
|
|
10387
10392
|
indent: 1
|
|
10388
10393
|
},
|
|
10389
10394
|
on: {
|
|
10390
10395
|
close: function close() {
|
|
10391
|
-
return
|
|
10396
|
+
return _this66.showDrop = false;
|
|
10392
10397
|
}
|
|
10393
10398
|
}
|
|
10394
10399
|
}, this.$slots)];
|
|
@@ -10402,7 +10407,7 @@ var script$8 = {
|
|
|
10402
10407
|
},
|
|
10403
10408
|
computed: {
|
|
10404
10409
|
input_text: function input_text() {
|
|
10405
|
-
var
|
|
10410
|
+
var _this67 = this;
|
|
10406
10411
|
|
|
10407
10412
|
var r = [];
|
|
10408
10413
|
var s = this.slots_children();
|
|
@@ -10412,7 +10417,7 @@ var script$8 = {
|
|
|
10412
10417
|
return n.props.value == v;
|
|
10413
10418
|
});
|
|
10414
10419
|
if (i > -1) r.push(i);
|
|
10415
|
-
if (!
|
|
10420
|
+
if (!_this67.x.multiple) return false;
|
|
10416
10421
|
});
|
|
10417
10422
|
return r.sort().map(function (v) {
|
|
10418
10423
|
return s[v].props.text;
|
|
@@ -10533,24 +10538,27 @@ var script$5 = {
|
|
|
10533
10538
|
},
|
|
10534
10539
|
computed: {
|
|
10535
10540
|
validHooks: function validHooks() {
|
|
10536
|
-
var
|
|
10541
|
+
var _this68 = this;
|
|
10537
10542
|
|
|
10538
10543
|
return {
|
|
10539
10544
|
valid: function valid() {
|
|
10540
|
-
var f =
|
|
10545
|
+
var f = _this68.forms();
|
|
10541
10546
|
|
|
10542
10547
|
if (f.length > 1) {
|
|
10543
10548
|
var v1 = f[0] && f[0].formVal();
|
|
10544
10549
|
var v2 = f[1] && f[1].formVal();
|
|
10545
10550
|
|
|
10546
|
-
var _c5 =
|
|
10551
|
+
var _c5 = _this68.x.compare || '<=';
|
|
10552
|
+
|
|
10553
|
+
if (!isNaN(v1)) v1 = parseFloat(v1);
|
|
10554
|
+
if (!isNaN(v2)) v2 = parseFloat(v2);
|
|
10547
10555
|
|
|
10548
10556
|
if (v1 && v2) {
|
|
10549
10557
|
if (!$$1.eval("v1 ".concat(_c5, " v2"), {
|
|
10550
10558
|
v1: v1,
|
|
10551
10559
|
v2: v2
|
|
10552
10560
|
})) {
|
|
10553
|
-
return
|
|
10561
|
+
return _this68.formErr('compare', [f[0].getLabelText(), _c5, f[1].getLabelText()]);
|
|
10554
10562
|
}
|
|
10555
10563
|
}
|
|
10556
10564
|
}
|
|
@@ -10558,11 +10566,11 @@ var script$5 = {
|
|
|
10558
10566
|
};
|
|
10559
10567
|
},
|
|
10560
10568
|
html_on: function html_on() {
|
|
10561
|
-
var
|
|
10569
|
+
var _this69 = this;
|
|
10562
10570
|
|
|
10563
10571
|
return {
|
|
10564
10572
|
onclick: function onclick(e) {
|
|
10565
|
-
return
|
|
10573
|
+
return _this69.warnClass = '';
|
|
10566
10574
|
}
|
|
10567
10575
|
};
|
|
10568
10576
|
}
|
|
@@ -10603,9 +10611,19 @@ var script$4 = {
|
|
|
10603
10611
|
this.addVal(v);
|
|
10604
10612
|
this.clear();
|
|
10605
10613
|
this.$nextTick(this.focus);
|
|
10614
|
+
return this;
|
|
10615
|
+
},
|
|
10616
|
+
closeDrop: function closeDrop() {
|
|
10617
|
+
this.suggest(false);
|
|
10618
|
+
return this;
|
|
10606
10619
|
},
|
|
10607
10620
|
suggest: function suggest(a) {
|
|
10608
10621
|
a = a == null ? true : a;
|
|
10622
|
+
|
|
10623
|
+
if (a === false) {
|
|
10624
|
+
clearTimeout(this.sug_timer);
|
|
10625
|
+
}
|
|
10626
|
+
|
|
10609
10627
|
this.showSuggest = a;
|
|
10610
10628
|
this.warn(false);
|
|
10611
10629
|
},
|
|
@@ -10615,9 +10633,10 @@ var script$4 = {
|
|
|
10615
10633
|
focus: function focus() {
|
|
10616
10634
|
this.$refs.input.focus();
|
|
10617
10635
|
this.warn(false);
|
|
10636
|
+
return this;
|
|
10618
10637
|
},
|
|
10619
10638
|
oninput: function oninput(e) {
|
|
10620
|
-
var
|
|
10639
|
+
var _this70 = this;
|
|
10621
10640
|
|
|
10622
10641
|
var v = e.target.value;
|
|
10623
10642
|
this.sensor_text = v;
|
|
@@ -10627,9 +10646,9 @@ var script$4 = {
|
|
|
10627
10646
|
this.suggest(false);
|
|
10628
10647
|
} else {
|
|
10629
10648
|
this.sug_timer = setTimeout(function () {
|
|
10630
|
-
|
|
10649
|
+
_this70.suggest(true);
|
|
10631
10650
|
|
|
10632
|
-
|
|
10651
|
+
_this70.trigger(e, v);
|
|
10633
10652
|
}, 500);
|
|
10634
10653
|
}
|
|
10635
10654
|
},
|
|
@@ -10642,7 +10661,9 @@ var script$4 = {
|
|
|
10642
10661
|
var mv = $$1.array(this.x.modelValue, true);
|
|
10643
10662
|
mv.length && mv.splice(mv.length - 1, 1);
|
|
10644
10663
|
}
|
|
10645
|
-
}
|
|
10664
|
+
} //38: up, 40:down
|
|
10665
|
+
//if (this.showSuggest && (k == 38 || k == 40)) e.preventDefault()
|
|
10666
|
+
|
|
10646
10667
|
},
|
|
10647
10668
|
clickItem: function clickItem(e, item) {
|
|
10648
10669
|
e.stopPropagation();
|
|
@@ -10676,7 +10697,7 @@ var script$4 = {
|
|
|
10676
10697
|
return this.input_title;
|
|
10677
10698
|
},
|
|
10678
10699
|
html_options: function html_options() {
|
|
10679
|
-
var
|
|
10700
|
+
var _this71 = this;
|
|
10680
10701
|
|
|
10681
10702
|
var m = this.x.modelValue;
|
|
10682
10703
|
|
|
@@ -10687,22 +10708,22 @@ var script$4 = {
|
|
|
10687
10708
|
'z-forbid': v.forbid
|
|
10688
10709
|
}],
|
|
10689
10710
|
onclick: function onclick(e) {
|
|
10690
|
-
return
|
|
10711
|
+
return _this71.clickItem(e, v);
|
|
10691
10712
|
}
|
|
10692
10713
|
}, [h$1('div', {
|
|
10693
10714
|
class: 'w-combobox-option-text f-line-1',
|
|
10694
10715
|
title: v.text
|
|
10695
|
-
}, v.text),
|
|
10716
|
+
}, v.text), _this71.isNormal && h$1('div', {
|
|
10696
10717
|
class: 'w-combobox-option-close f-i f-i-close',
|
|
10697
10718
|
onclick: function onclick(e) {
|
|
10698
|
-
return
|
|
10719
|
+
return _this71.clickClose(e, v);
|
|
10699
10720
|
}
|
|
10700
10721
|
})]);
|
|
10701
10722
|
});
|
|
10702
10723
|
}
|
|
10703
10724
|
},
|
|
10704
10725
|
html_var: function html_var() {
|
|
10705
|
-
var
|
|
10726
|
+
var _this72 = this;
|
|
10706
10727
|
|
|
10707
10728
|
return h$1('div', {
|
|
10708
10729
|
class: 'w-combobox-input-wrap'
|
|
@@ -10719,15 +10740,15 @@ var script$4 = {
|
|
|
10719
10740
|
onkeydown: this.onkeydown,
|
|
10720
10741
|
placeholder: this.input_value ? null : this.input_placeholder,
|
|
10721
10742
|
onfocus: function onfocus(e) {
|
|
10722
|
-
|
|
10743
|
+
_this72.isFocus = true, e.target.value && e.target.dispatchEvent(new Event('input'));
|
|
10723
10744
|
},
|
|
10724
10745
|
onblur: function onblur(e) {
|
|
10725
|
-
return
|
|
10746
|
+
return _this72.isFocus = false;
|
|
10726
10747
|
}
|
|
10727
10748
|
})]);
|
|
10728
10749
|
},
|
|
10729
10750
|
html_input: function html_input() {
|
|
10730
|
-
var
|
|
10751
|
+
var _this73 = this;
|
|
10731
10752
|
|
|
10732
10753
|
return [this.html_input_hidden(), h$1('div', {
|
|
10733
10754
|
class: 'w-combobox-list f-flex-1 f-flex f-oh f-height'
|
|
@@ -10740,14 +10761,14 @@ var script$4 = {
|
|
|
10740
10761
|
autoHide: true,
|
|
10741
10762
|
snap: {
|
|
10742
10763
|
target: function target() {
|
|
10743
|
-
return
|
|
10764
|
+
return _this73.el('main');
|
|
10744
10765
|
},
|
|
10745
10766
|
position: 'v',
|
|
10746
10767
|
indent: 1
|
|
10747
10768
|
},
|
|
10748
10769
|
on: {
|
|
10749
10770
|
close: function close() {
|
|
10750
|
-
return
|
|
10771
|
+
return _this73.showSuggest = false;
|
|
10751
10772
|
}
|
|
10752
10773
|
}
|
|
10753
10774
|
}, this.$slots))];
|
|
@@ -10776,11 +10797,11 @@ var script$4 = {
|
|
|
10776
10797
|
},
|
|
10777
10798
|
computed: {
|
|
10778
10799
|
validHooks: function validHooks() {
|
|
10779
|
-
var
|
|
10800
|
+
var _this74 = this;
|
|
10780
10801
|
|
|
10781
10802
|
return {
|
|
10782
10803
|
valid: function valid(v) {
|
|
10783
|
-
if (
|
|
10804
|
+
if (_this74.$refs.input.value) return _this74.formErr('invalid_option');
|
|
10784
10805
|
}
|
|
10785
10806
|
};
|
|
10786
10807
|
},
|
|
@@ -10806,12 +10827,12 @@ var script$4 = {
|
|
|
10806
10827
|
}
|
|
10807
10828
|
},
|
|
10808
10829
|
mounted: function mounted() {
|
|
10809
|
-
var
|
|
10830
|
+
var _this75 = this;
|
|
10810
10831
|
|
|
10811
10832
|
if (this.isEntity && this.$refs.sensor) {
|
|
10812
10833
|
new ResizeObserver(function () {
|
|
10813
|
-
if (
|
|
10814
|
-
|
|
10834
|
+
if (_this75.$refs.sensor) {
|
|
10835
|
+
_this75.sensor_width = _this75.$refs.sensor.offsetWidth + 'px';
|
|
10815
10836
|
}
|
|
10816
10837
|
}).observe(this.$refs.sensor);
|
|
10817
10838
|
}
|
|
@@ -10824,13 +10845,13 @@ var script$3 = {
|
|
|
10824
10845
|
emits: ['input', 'dblclick:item'],
|
|
10825
10846
|
props: ['multiple', 'picker', 'dropWidth', 'separator', 'strict', 'br'],
|
|
10826
10847
|
created: function created() {
|
|
10827
|
-
var
|
|
10848
|
+
var _this76 = this;
|
|
10828
10849
|
|
|
10829
10850
|
this.$watch(function () {
|
|
10830
|
-
return
|
|
10851
|
+
return _this76.x.modelValue;
|
|
10831
10852
|
}, function (v) {
|
|
10832
|
-
if (
|
|
10833
|
-
|
|
10853
|
+
if (_this76.isEntity && !_this76.isFocus) {
|
|
10854
|
+
_this76.initOptions(v);
|
|
10834
10855
|
}
|
|
10835
10856
|
});
|
|
10836
10857
|
},
|
|
@@ -10907,14 +10928,25 @@ var script$3 = {
|
|
|
10907
10928
|
if (m.length > 1) m.eq(0).next('i').addBack().remove();
|
|
10908
10929
|
this.save();
|
|
10909
10930
|
}
|
|
10931
|
+
|
|
10932
|
+
return this;
|
|
10933
|
+
},
|
|
10934
|
+
closeDrop: function closeDrop() {
|
|
10935
|
+
this.suggest(false);
|
|
10936
|
+
return this;
|
|
10910
10937
|
},
|
|
10911
10938
|
suggest: function suggest(a) {
|
|
10912
10939
|
a = a == null ? true : a;
|
|
10940
|
+
|
|
10941
|
+
if (a === false) {
|
|
10942
|
+
clearTimeout(this.sug_timer);
|
|
10943
|
+
}
|
|
10944
|
+
|
|
10913
10945
|
this.showSuggest = a;
|
|
10914
10946
|
this.warn(false);
|
|
10915
10947
|
},
|
|
10916
10948
|
input: function input(a) {
|
|
10917
|
-
var
|
|
10949
|
+
var _this77 = this;
|
|
10918
10950
|
|
|
10919
10951
|
this.currOpt = a;
|
|
10920
10952
|
var v = a.innerText.replace(/^[\s,]+|[\s,]+$/g, '');
|
|
@@ -10924,25 +10956,22 @@ var script$3 = {
|
|
|
10924
10956
|
this.suggest(false);
|
|
10925
10957
|
} else {
|
|
10926
10958
|
this.sug_timer = setTimeout(function () {
|
|
10927
|
-
|
|
10959
|
+
_this77.suggest(true);
|
|
10928
10960
|
|
|
10929
|
-
|
|
10961
|
+
_this77.trigger(new Event('input'), v);
|
|
10930
10962
|
}, 500);
|
|
10931
10963
|
}
|
|
10932
10964
|
},
|
|
10933
|
-
closePop: function closePop() {
|
|
10934
|
-
clearTimeout(this.sug_timer);
|
|
10935
|
-
this.suggest(false);
|
|
10936
|
-
},
|
|
10937
10965
|
focus: function focus() {
|
|
10938
10966
|
this.$refs.inp.focus();
|
|
10939
10967
|
this.warn(false);
|
|
10968
|
+
return this;
|
|
10940
10969
|
},
|
|
10941
10970
|
inp: function inp() {
|
|
10942
10971
|
return this.$refs.inp;
|
|
10943
10972
|
},
|
|
10944
10973
|
fixStyle: function fixStyle() {
|
|
10945
|
-
var
|
|
10974
|
+
var _this78 = this;
|
|
10946
10975
|
|
|
10947
10976
|
var c = $$1.rngElement();
|
|
10948
10977
|
var g = false;
|
|
@@ -10973,7 +11002,7 @@ var script$3 = {
|
|
|
10973
11002
|
$$1.q('br', inp).remove();
|
|
10974
11003
|
if (c.firstChild) c = c.firstChild;else $$1.rngCursor(c);
|
|
10975
11004
|
}
|
|
10976
|
-
} else return this.
|
|
11005
|
+
} else return this.closeDrop();
|
|
10977
11006
|
}
|
|
10978
11007
|
|
|
10979
11008
|
$$1.q('br', inp).remove(); // 输入框内之只允许存在U和I两种标签。输入过程中浏览器可能会自动生成 <font> 标签,需要去除它
|
|
@@ -11017,7 +11046,7 @@ var script$3 = {
|
|
|
11017
11046
|
|
|
11018
11047
|
t.split(p).forEach(function (s) {
|
|
11019
11048
|
if (_h4 = $$1.strTrim(s)) {
|
|
11020
|
-
g =
|
|
11049
|
+
g = _this78.param(_h4);
|
|
11021
11050
|
|
|
11022
11051
|
_d.push('<u' + (g ? ' class=_o data-value="' + g.value + '"' + (g.forbid ? ' data-forbid' : '') : '') + '>' + _h4 + '</u>');
|
|
11023
11052
|
|
|
@@ -11042,7 +11071,7 @@ var script$3 = {
|
|
|
11042
11071
|
m.length && (m.remove(), $$1.q('i + i, i:first-child', inp).remove()); // 删除重复数据
|
|
11043
11072
|
|
|
11044
11073
|
g = true;
|
|
11045
|
-
if ((c = $$1.rngElement()) && c.tagName === 'U' && !c.getAttribute('data-value')) this.input(c);else this.
|
|
11074
|
+
if ((c = $$1.rngElement()) && c.tagName === 'U' && !c.getAttribute('data-value')) this.input(c);else this.closeDrop();
|
|
11046
11075
|
} else {
|
|
11047
11076
|
if (t) {
|
|
11048
11077
|
if ($$1.classAny(c, '_o') && !this.param(t)) {
|
|
@@ -11054,7 +11083,7 @@ var script$3 = {
|
|
|
11054
11083
|
this.input(c);
|
|
11055
11084
|
} else {
|
|
11056
11085
|
g = true;
|
|
11057
|
-
this.
|
|
11086
|
+
this.closeDrop();
|
|
11058
11087
|
}
|
|
11059
11088
|
}
|
|
11060
11089
|
|
|
@@ -11083,11 +11112,11 @@ var script$3 = {
|
|
|
11083
11112
|
if (typeof c === 'function') c(this);else this.cmd(c, this.formVal());
|
|
11084
11113
|
},
|
|
11085
11114
|
addStore: function addStore(m) {
|
|
11086
|
-
var
|
|
11115
|
+
var _this79 = this;
|
|
11087
11116
|
|
|
11088
11117
|
if (m && typeof m !== 'string') {
|
|
11089
11118
|
var _r6 = $$1.array(m).filter(function (v) {
|
|
11090
|
-
return !
|
|
11119
|
+
return !_this79.store.find(function (s) {
|
|
11091
11120
|
return s.value == v.value;
|
|
11092
11121
|
});
|
|
11093
11122
|
});
|
|
@@ -11124,6 +11153,13 @@ var script$3 = {
|
|
|
11124
11153
|
this.$refs.v.value = r.join(',');
|
|
11125
11154
|
this.val(m);
|
|
11126
11155
|
},
|
|
11156
|
+
onkeydown: function onkeydown(e) {
|
|
11157
|
+
var k = e.keyCode;
|
|
11158
|
+
|
|
11159
|
+
if (k === 13) {
|
|
11160
|
+
e.preventDefault();
|
|
11161
|
+
}
|
|
11162
|
+
},
|
|
11127
11163
|
onkeyup: function onkeyup(e) {
|
|
11128
11164
|
if (!this.imeMode) {
|
|
11129
11165
|
var k = this._KC = e.keyCode;
|
|
@@ -11131,7 +11167,6 @@ var script$3 = {
|
|
|
11131
11167
|
if (k === 13 || k === 38 || k === 40 || k === 17) {
|
|
11132
11168
|
// 38:up, 40:down, 17:ctrl
|
|
11133
11169
|
e.stopPropagation();
|
|
11134
|
-
if (k === 13) this.fixStyle();
|
|
11135
11170
|
} else {
|
|
11136
11171
|
this.fixStyle();
|
|
11137
11172
|
}
|
|
@@ -11146,7 +11181,7 @@ var script$3 = {
|
|
|
11146
11181
|
} else {
|
|
11147
11182
|
var _c7 = $$1.rngElement();
|
|
11148
11183
|
|
|
11149
|
-
_c7.tagName === 'U' ? this.input(_c7) : this.
|
|
11184
|
+
_c7.tagName === 'U' ? this.input(_c7) : this.closeDrop();
|
|
11150
11185
|
}
|
|
11151
11186
|
}
|
|
11152
11187
|
},
|
|
@@ -11167,7 +11202,7 @@ var script$3 = {
|
|
|
11167
11202
|
return this.input_title;
|
|
11168
11203
|
},
|
|
11169
11204
|
html_options: function html_options(v) {
|
|
11170
|
-
var
|
|
11205
|
+
var _this80 = this;
|
|
11171
11206
|
|
|
11172
11207
|
var p = this.x.separator || ',';
|
|
11173
11208
|
if (v == null) v = this.x.modelValue;
|
|
@@ -11178,7 +11213,7 @@ var script$3 = {
|
|
|
11178
11213
|
$$1.lodash.each(b, function (o, i) {
|
|
11179
11214
|
_r7.push('<u' + (o.value ? ' class=_o data-value="' + o.value + '"' : '') + (o.forbid ? ' data-forbid' : '') + '>' + o.text + '</u>');
|
|
11180
11215
|
|
|
11181
|
-
if (!
|
|
11216
|
+
if (!_this80.x.multiple) return false;
|
|
11182
11217
|
|
|
11183
11218
|
_r7.push('<i>' + p + '</i>');
|
|
11184
11219
|
});
|
|
@@ -11186,7 +11221,7 @@ var script$3 = {
|
|
|
11186
11221
|
}
|
|
11187
11222
|
},
|
|
11188
11223
|
html_var: function html_var() {
|
|
11189
|
-
var
|
|
11224
|
+
var _this81 = this;
|
|
11190
11225
|
|
|
11191
11226
|
return h$1('div', {
|
|
11192
11227
|
class: 'w-linkbox-input f-flex-1',
|
|
@@ -11194,18 +11229,19 @@ var script$3 = {
|
|
|
11194
11229
|
id: this.uid + 't',
|
|
11195
11230
|
contentEditable: this.isNormal,
|
|
11196
11231
|
onkeyup: this.onkeyup,
|
|
11232
|
+
onkeydown: this.onkeydown,
|
|
11197
11233
|
onclick: this.onclick,
|
|
11198
11234
|
ondblclick: this.ondblclick,
|
|
11199
11235
|
onfocus: function onfocus(e) {
|
|
11200
|
-
|
|
11236
|
+
_this81.isFocus = true;
|
|
11201
11237
|
},
|
|
11202
11238
|
onblur: function onblur(e) {
|
|
11203
|
-
|
|
11239
|
+
_this81.isFocus = false;
|
|
11204
11240
|
}
|
|
11205
11241
|
});
|
|
11206
11242
|
},
|
|
11207
11243
|
html_input: function html_input() {
|
|
11208
|
-
var
|
|
11244
|
+
var _this82 = this;
|
|
11209
11245
|
|
|
11210
11246
|
var p = this.input_placeholder;
|
|
11211
11247
|
return [this.html_input_hidden(), this.html_var(), h$1('div', {
|
|
@@ -11219,14 +11255,14 @@ var script$3 = {
|
|
|
11219
11255
|
autoHide: true,
|
|
11220
11256
|
snap: {
|
|
11221
11257
|
target: function target() {
|
|
11222
|
-
return
|
|
11258
|
+
return _this82.el('main');
|
|
11223
11259
|
},
|
|
11224
11260
|
position: 'v',
|
|
11225
11261
|
indent: 1
|
|
11226
11262
|
},
|
|
11227
11263
|
on: {
|
|
11228
11264
|
close: function close() {
|
|
11229
|
-
return
|
|
11265
|
+
return _this82.showSuggest = false;
|
|
11230
11266
|
}
|
|
11231
11267
|
}
|
|
11232
11268
|
}, this.$slots)];
|
|
@@ -11255,12 +11291,12 @@ var script$3 = {
|
|
|
11255
11291
|
},
|
|
11256
11292
|
computed: {
|
|
11257
11293
|
validHooks: function validHooks() {
|
|
11258
|
-
var
|
|
11294
|
+
var _this83 = this;
|
|
11259
11295
|
|
|
11260
11296
|
return {
|
|
11261
11297
|
valid: function valid(v) {
|
|
11262
|
-
if (
|
|
11263
|
-
return
|
|
11298
|
+
if (_this83.x.strict && $$1.q('u:not([data-value])').length > 0) {
|
|
11299
|
+
return _this83.formErr('invalid_option');
|
|
11264
11300
|
}
|
|
11265
11301
|
}
|
|
11266
11302
|
};
|
|
@@ -11288,15 +11324,15 @@ var script$3 = {
|
|
|
11288
11324
|
}
|
|
11289
11325
|
},
|
|
11290
11326
|
mounted: function mounted() {
|
|
11291
|
-
var
|
|
11327
|
+
var _this84 = this;
|
|
11292
11328
|
|
|
11293
11329
|
if (this.isEntity) {
|
|
11294
11330
|
this.initOptions();
|
|
11295
11331
|
this.inp().addEventListener('compositionstart', function () {
|
|
11296
|
-
|
|
11332
|
+
_this84.imeMode = true;
|
|
11297
11333
|
});
|
|
11298
11334
|
this.inp().addEventListener('compositionend', function () {
|
|
11299
|
-
|
|
11335
|
+
_this84.imeMode = false;
|
|
11300
11336
|
});
|
|
11301
11337
|
}
|
|
11302
11338
|
}
|
|
@@ -11412,7 +11448,7 @@ var script$1 = {
|
|
|
11412
11448
|
this.setThumbLeft();
|
|
11413
11449
|
},
|
|
11414
11450
|
error: function error(text, timeout, fn) {
|
|
11415
|
-
var
|
|
11451
|
+
var _this85 = this;
|
|
11416
11452
|
|
|
11417
11453
|
if (!text) text = '';
|
|
11418
11454
|
this.isError = true;
|
|
@@ -11424,12 +11460,12 @@ var script$1 = {
|
|
|
11424
11460
|
this.text = text + "(".concat(timeout / 1000, ")");
|
|
11425
11461
|
var timer = setInterval(function () {
|
|
11426
11462
|
timeout -= 1000;
|
|
11427
|
-
|
|
11463
|
+
_this85.text = text + "(".concat(timeout / 1000, ")");
|
|
11428
11464
|
|
|
11429
11465
|
if (timeout <= 0) {
|
|
11430
11466
|
clearInterval(timer);
|
|
11431
11467
|
|
|
11432
|
-
|
|
11468
|
+
_this85.reset();
|
|
11433
11469
|
|
|
11434
11470
|
fn && fn();
|
|
11435
11471
|
}
|
|
@@ -11465,7 +11501,7 @@ var script$1 = {
|
|
|
11465
11501
|
$$1.close(this.dropper);
|
|
11466
11502
|
},
|
|
11467
11503
|
dragstart: function dragstart(e) {
|
|
11468
|
-
var
|
|
11504
|
+
var _this86 = this;
|
|
11469
11505
|
|
|
11470
11506
|
if (!this.isNormal || this.locked) return;
|
|
11471
11507
|
this.warn(false);
|
|
@@ -11480,16 +11516,16 @@ var script$1 = {
|
|
|
11480
11516
|
var c = $$1.eventX(e);
|
|
11481
11517
|
var l = $$1.numRange(f + c - x, 0, w - g);
|
|
11482
11518
|
a.style.left = l + 'px';
|
|
11483
|
-
|
|
11484
|
-
|
|
11519
|
+
_this86.$refs.track.style.width = l + g + 'px';
|
|
11520
|
+
_this86.x.modelValue = Math.floor(Math.floor((m - n) * l / (w - g)));
|
|
11485
11521
|
|
|
11486
|
-
|
|
11522
|
+
_this86.el().classList.add('z-drag');
|
|
11487
11523
|
}, function (e) {
|
|
11488
11524
|
a.dispatchEvent(new Event('drop'));
|
|
11489
11525
|
}, e);
|
|
11490
11526
|
},
|
|
11491
11527
|
mouseenter: function mouseenter(e) {
|
|
11492
|
-
var
|
|
11528
|
+
var _this87 = this;
|
|
11493
11529
|
|
|
11494
11530
|
if (this.dropper || !this.x.big || this.isSuccess || this.locked) return;
|
|
11495
11531
|
this.warn(false);
|
|
@@ -11507,13 +11543,13 @@ var script$1 = {
|
|
|
11507
11543
|
context: this,
|
|
11508
11544
|
snap: {
|
|
11509
11545
|
target: function target() {
|
|
11510
|
-
return
|
|
11546
|
+
return _this87.el('main');
|
|
11511
11547
|
},
|
|
11512
11548
|
position: 'v'
|
|
11513
11549
|
},
|
|
11514
11550
|
on: {
|
|
11515
11551
|
close: function close() {
|
|
11516
|
-
return
|
|
11552
|
+
return _this87.dropper = null;
|
|
11517
11553
|
}
|
|
11518
11554
|
}
|
|
11519
11555
|
});
|
|
@@ -11556,12 +11592,12 @@ var script$1 = {
|
|
|
11556
11592
|
},
|
|
11557
11593
|
computed: {
|
|
11558
11594
|
validHooks: function validHooks() {
|
|
11559
|
-
var
|
|
11595
|
+
var _this88 = this;
|
|
11560
11596
|
|
|
11561
11597
|
return {
|
|
11562
11598
|
valid: function valid(v) {
|
|
11563
|
-
if (!
|
|
11564
|
-
return
|
|
11599
|
+
if (!_this88.isSuccess) {
|
|
11600
|
+
return _this88.formErr('jigsaw_required');
|
|
11565
11601
|
}
|
|
11566
11602
|
}
|
|
11567
11603
|
};
|