dfish-widget 0.1.361 → 0.1.365
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 +274 -230
- 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) {
|
|
@@ -6762,21 +6767,14 @@ var script$y = {
|
|
|
6762
6767
|
class: this.$options.name + '-appear'
|
|
6763
6768
|
}, h$1('i', {
|
|
6764
6769
|
class: this.input_icon
|
|
6765
|
-
})), h$1('span', {
|
|
6770
|
+
})), this.x.text ? h$1('span', {
|
|
6766
6771
|
class: this.$options.name + '-text'
|
|
6767
|
-
}, this.x.text)];
|
|
6772
|
+
}, this.x.text) : null];
|
|
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,10 +6980,12 @@ var script$w = {
|
|
|
6970
6980
|
clickBoxProxy: function clickBoxProxy(e) {
|
|
6971
6981
|
this._triple();
|
|
6972
6982
|
},
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6983
|
+
clickText: function clickText(e) {
|
|
6984
|
+
if (this.boxProxy && this.x.boxSync) {
|
|
6985
|
+
this.boxProxy.check(!this.boxProxy.isChecked);
|
|
6986
|
+
|
|
6987
|
+
this._triple();
|
|
6988
|
+
}
|
|
6977
6989
|
},
|
|
6978
6990
|
// triplebox 级联勾选
|
|
6979
6991
|
_triple: function _triple() {
|
|
@@ -7013,14 +7025,17 @@ var script$w = {
|
|
|
7013
7025
|
this.el().classList.remove('z-hv');
|
|
7014
7026
|
},
|
|
7015
7027
|
html_self: function html_self() {
|
|
7016
|
-
var
|
|
7028
|
+
var _this39 = this;
|
|
7017
7029
|
|
|
7018
7030
|
var exp = this.isExpanded();
|
|
7019
7031
|
var ico = exp ? this.x.expandedIcon : this.x.collapsedIcon;
|
|
7020
|
-
return h$1('div', mergeProps$1(this.html_attrs, this.$attrs, this.html_props), [h$1(
|
|
7032
|
+
return h$1('div', mergeProps$1(this.html_attrs, this.$attrs, this.html_props), [this.loading ? h$1(script$1e, {
|
|
7033
|
+
src: '#f-svg-loading',
|
|
7034
|
+
class: 'w-leaf-loading'
|
|
7035
|
+
}) : h$1('div', {
|
|
7021
7036
|
class: ['w-leaf-toggle f-i', exp ? 'f-i-caret-down' : 'f-i-caret-right'],
|
|
7022
7037
|
onclick: function onclick(e) {
|
|
7023
|
-
e.stopPropagation(),
|
|
7038
|
+
e.stopPropagation(), _this39.toggle();
|
|
7024
7039
|
}
|
|
7025
7040
|
}), this.$slots.box && this.$slots.box(), ico && h$1(script$1e, {
|
|
7026
7041
|
src: ico,
|
|
@@ -7030,7 +7045,8 @@ var script$w = {
|
|
|
7030
7045
|
}]
|
|
7031
7046
|
}), h$1('div', {
|
|
7032
7047
|
class: 'w-leaf-text' + ($$1.isNumber(this.x.br) ? ' f-line-' + this.x.br : this.x.br ? '' : ' f-line-1'),
|
|
7033
|
-
title: this.x.text
|
|
7048
|
+
title: this.x.text,
|
|
7049
|
+
onclick: this.clickText
|
|
7034
7050
|
}, this.$slots.text ? this.$slots.text() : this.x.text)]);
|
|
7035
7051
|
},
|
|
7036
7052
|
html_cont: function html_cont() {
|
|
@@ -7060,7 +7076,7 @@ var script$w = {
|
|
|
7060
7076
|
'z-folder': this.isFolder(),
|
|
7061
7077
|
'z-on': this.isCurrent
|
|
7062
7078
|
},
|
|
7063
|
-
style: 'padding-left:' + $$1.unitSize(this.provideLeafLevel * 16)
|
|
7079
|
+
style: 'padding-left:' + $$1.unitSize((this.provideLeafLevel + 1) * 16)
|
|
7064
7080
|
};
|
|
7065
7081
|
|
|
7066
7082
|
if (this.inTree()) {
|
|
@@ -7072,7 +7088,7 @@ var script$w = {
|
|
|
7072
7088
|
}
|
|
7073
7089
|
},
|
|
7074
7090
|
mounted: function mounted() {
|
|
7075
|
-
var
|
|
7091
|
+
var _this40 = this;
|
|
7076
7092
|
|
|
7077
7093
|
if (this.x.expanded) this.toggle(true);
|
|
7078
7094
|
|
|
@@ -7086,8 +7102,8 @@ var script$w = {
|
|
|
7086
7102
|
|
|
7087
7103
|
if (this.boxProxy) {
|
|
7088
7104
|
this.$nextTick(function () {
|
|
7089
|
-
if (!
|
|
7090
|
-
|
|
7105
|
+
if (!_this40.isFolder() && !_this40.$refs.cont.nextElementSibling) {
|
|
7106
|
+
_this40._triple();
|
|
7091
7107
|
}
|
|
7092
7108
|
});
|
|
7093
7109
|
}
|
|
@@ -7136,7 +7152,7 @@ var script$v = {
|
|
|
7136
7152
|
this.clickItem(e, v);
|
|
7137
7153
|
},
|
|
7138
7154
|
html_button: function html_button(i, t, ic, ds) {
|
|
7139
|
-
var
|
|
7155
|
+
var _this41 = this;
|
|
7140
7156
|
|
|
7141
7157
|
return h$1('button', {
|
|
7142
7158
|
class: ['w-pagebar-button w-pagebar-num', _defineProperty({
|
|
@@ -7145,7 +7161,7 @@ var script$v = {
|
|
|
7145
7161
|
}, ic, ic)],
|
|
7146
7162
|
disabled: ds,
|
|
7147
7163
|
onclick: function onclick(e) {
|
|
7148
|
-
return
|
|
7164
|
+
return _this41.clickItem(e, i);
|
|
7149
7165
|
}
|
|
7150
7166
|
}, t || (ic ? '' : i));
|
|
7151
7167
|
},
|
|
@@ -7153,7 +7169,7 @@ var script$v = {
|
|
|
7153
7169
|
return this.x.face === 'button' ? this.html_face_button() : this.x.face === 'simple' ? this.html_face_simple() : this.html_face_normal();
|
|
7154
7170
|
},
|
|
7155
7171
|
html_buttons: function html_buttons() {
|
|
7156
|
-
var
|
|
7172
|
+
var _this42 = this;
|
|
7157
7173
|
|
|
7158
7174
|
return [h$1(script$$, {
|
|
7159
7175
|
class: 'w-pagebar-button w-pagebar-prev',
|
|
@@ -7161,7 +7177,7 @@ var script$v = {
|
|
|
7161
7177
|
disabled: this.currentPage == 1,
|
|
7162
7178
|
title: $$1.loc.page_text.prev,
|
|
7163
7179
|
onclick: function onclick(e) {
|
|
7164
|
-
return
|
|
7180
|
+
return _this42.clickItem(e, _this42.currentPage - 1);
|
|
7165
7181
|
}
|
|
7166
7182
|
}), h$1(script$$, {
|
|
7167
7183
|
class: 'w-pagebar-button w-pagebar-next',
|
|
@@ -7169,12 +7185,12 @@ var script$v = {
|
|
|
7169
7185
|
disabled: this.currentPage == this.sumPage,
|
|
7170
7186
|
title: $$1.loc.page_text.next,
|
|
7171
7187
|
onclick: function onclick(e) {
|
|
7172
|
-
return
|
|
7188
|
+
return _this42.clickItem(e, _this42.currentPage + 1);
|
|
7173
7189
|
}
|
|
7174
7190
|
})];
|
|
7175
7191
|
},
|
|
7176
7192
|
html_drop: function html_drop() {
|
|
7177
|
-
var
|
|
7193
|
+
var _this43 = this;
|
|
7178
7194
|
|
|
7179
7195
|
var s = [];
|
|
7180
7196
|
|
|
@@ -7184,7 +7200,7 @@ var script$v = {
|
|
|
7184
7200
|
ref: 'drop',
|
|
7185
7201
|
text: this.currentPage + '/' + this.sumPage,
|
|
7186
7202
|
onclick: function onclick(e) {
|
|
7187
|
-
return
|
|
7203
|
+
return _this43.clickDrop(e);
|
|
7188
7204
|
}
|
|
7189
7205
|
}));
|
|
7190
7206
|
}
|
|
@@ -7197,7 +7213,7 @@ var script$v = {
|
|
|
7197
7213
|
text: i,
|
|
7198
7214
|
on: {
|
|
7199
7215
|
click: function click(e) {
|
|
7200
|
-
return
|
|
7216
|
+
return _this43.clickItem(e, i);
|
|
7201
7217
|
}
|
|
7202
7218
|
}
|
|
7203
7219
|
}));
|
|
@@ -7210,14 +7226,14 @@ var script$v = {
|
|
|
7210
7226
|
s.push(h$1(script$Z, {
|
|
7211
7227
|
snap: {
|
|
7212
7228
|
target: function target() {
|
|
7213
|
-
return
|
|
7229
|
+
return _this43.$refs.drop;
|
|
7214
7230
|
},
|
|
7215
7231
|
position: 'v',
|
|
7216
7232
|
indent: 1
|
|
7217
7233
|
},
|
|
7218
7234
|
on: {
|
|
7219
7235
|
close: function close() {
|
|
7220
|
-
return
|
|
7236
|
+
return _this43.showDrop = false;
|
|
7221
7237
|
}
|
|
7222
7238
|
}
|
|
7223
7239
|
}, {
|
|
@@ -7238,7 +7254,7 @@ var script$v = {
|
|
|
7238
7254
|
return b;
|
|
7239
7255
|
},
|
|
7240
7256
|
html_face_normal: function html_face_normal() {
|
|
7241
|
-
var
|
|
7257
|
+
var _this44 = this;
|
|
7242
7258
|
|
|
7243
7259
|
var s = [];
|
|
7244
7260
|
var sp = this.sumPage;
|
|
@@ -7272,13 +7288,13 @@ var script$v = {
|
|
|
7272
7288
|
class: 'w-pagebar-jump-input',
|
|
7273
7289
|
ref: 'jumpInput',
|
|
7274
7290
|
onfocus: function onfocus(e) {
|
|
7275
|
-
return
|
|
7291
|
+
return _this44.isJumpFocus = true;
|
|
7276
7292
|
},
|
|
7277
7293
|
onblur: function onblur(e) {
|
|
7278
|
-
return
|
|
7294
|
+
return _this44.isJumpFocus = false;
|
|
7279
7295
|
},
|
|
7280
7296
|
onkeydown: function onkeydown(e) {
|
|
7281
|
-
return e.keyCode == 13 &&
|
|
7297
|
+
return e.keyCode == 13 && _this44.onJumpClick(e);
|
|
7282
7298
|
}
|
|
7283
7299
|
}));
|
|
7284
7300
|
s.push(h$1('button', {
|
|
@@ -7339,10 +7355,10 @@ var script$u = {
|
|
|
7339
7355
|
props: ['collapsedIcon', 'expandedIcon', 'movable', 'range', 'toNext', 'expanded'],
|
|
7340
7356
|
inject: ['provideLayout'],
|
|
7341
7357
|
created: function created() {
|
|
7342
|
-
var
|
|
7358
|
+
var _this45 = this;
|
|
7343
7359
|
|
|
7344
7360
|
this.$watch('expanded', function (v) {
|
|
7345
|
-
if (typeof v === 'boolean')
|
|
7361
|
+
if (typeof v === 'boolean') _this45.x.expanded = v;else if (_this45.x.expanded == null) _this45.x.expanded = true;
|
|
7346
7362
|
}, {
|
|
7347
7363
|
immediate: true
|
|
7348
7364
|
});
|
|
@@ -7357,7 +7373,7 @@ var script$u = {
|
|
|
7357
7373
|
}
|
|
7358
7374
|
},
|
|
7359
7375
|
dragstart: function dragstart(e) {
|
|
7360
|
-
var
|
|
7376
|
+
var _this46 = this;
|
|
7361
7377
|
|
|
7362
7378
|
var prevElem = this.el().previousElementSibling;
|
|
7363
7379
|
var nextElem = this.el().nextElementSibling;
|
|
@@ -7386,12 +7402,12 @@ var script$u = {
|
|
|
7386
7402
|
}, function (e) {
|
|
7387
7403
|
if (help) {
|
|
7388
7404
|
help.remove();
|
|
7389
|
-
var size = (
|
|
7405
|
+
var size = (_this46.x.expanded ? $$1.bcr(minorElem)[sizeName] : 0) + (_this46.x.toNext ? 1 : -1) * (downPos - pos);
|
|
7390
7406
|
|
|
7391
7407
|
if (size <= 0) {
|
|
7392
|
-
|
|
7408
|
+
_this46.toggle(false);
|
|
7393
7409
|
} else {
|
|
7394
|
-
if (!
|
|
7410
|
+
if (!_this46.x.expanded) _this46.toggle(true);
|
|
7395
7411
|
$$1.q(minorElem).css(_defineProperty({}, sizeName, size));
|
|
7396
7412
|
}
|
|
7397
7413
|
}
|
|
@@ -7399,7 +7415,7 @@ var script$u = {
|
|
|
7399
7415
|
}
|
|
7400
7416
|
},
|
|
7401
7417
|
html_slots: function html_slots() {
|
|
7402
|
-
var
|
|
7418
|
+
var _this47 = this;
|
|
7403
7419
|
|
|
7404
7420
|
var r = [];
|
|
7405
7421
|
var expandedIcon = this.x.expandedIcon || this.x.collapsedIcon;
|
|
@@ -7407,7 +7423,7 @@ var script$u = {
|
|
|
7407
7423
|
|
|
7408
7424
|
if (expandedIcon) {
|
|
7409
7425
|
r.push(this.html_icon(this.x.expanded ? expandedIcon : collapsedIcon, 'w-split-icon', function () {
|
|
7410
|
-
return
|
|
7426
|
+
return _this47.toggle();
|
|
7411
7427
|
}));
|
|
7412
7428
|
}
|
|
7413
7429
|
|
|
@@ -7506,7 +7522,7 @@ var script$s = {
|
|
|
7506
7522
|
return suffix ? mimeType(fileName) : 'video/mp4';
|
|
7507
7523
|
},
|
|
7508
7524
|
html_slots: function html_slots() {
|
|
7509
|
-
var
|
|
7525
|
+
var _this48 = this;
|
|
7510
7526
|
|
|
7511
7527
|
return [h$1('video', {
|
|
7512
7528
|
class: 'w-video-vd f-width f-height',
|
|
@@ -7514,10 +7530,10 @@ var script$s = {
|
|
|
7514
7530
|
src: this.x.src,
|
|
7515
7531
|
poster: this.x.poster,
|
|
7516
7532
|
onplay: function onplay(e) {
|
|
7517
|
-
return
|
|
7533
|
+
return _this48.playing = true;
|
|
7518
7534
|
},
|
|
7519
7535
|
onpause: function onpause(e) {
|
|
7520
|
-
return
|
|
7536
|
+
return _this48.playing = false;
|
|
7521
7537
|
},
|
|
7522
7538
|
controls: true,
|
|
7523
7539
|
'webkit-playsinline': true,
|
|
@@ -7531,7 +7547,7 @@ var script$s = {
|
|
|
7531
7547
|
class: 'w-video-play f-abs-center f-flex-center',
|
|
7532
7548
|
innerHTML: '<i class="f-i f-i-play"></i>',
|
|
7533
7549
|
onclick: function onclick(e) {
|
|
7534
|
-
var o =
|
|
7550
|
+
var o = _this48.$refs.vd;
|
|
7535
7551
|
o.paused ? o.play() : o.pause();
|
|
7536
7552
|
}
|
|
7537
7553
|
})];
|
|
@@ -7931,7 +7947,7 @@ var _hoisted_9 = {
|
|
|
7931
7947
|
};
|
|
7932
7948
|
|
|
7933
7949
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7934
|
-
var
|
|
7950
|
+
var _this49 = this;
|
|
7935
7951
|
|
|
7936
7952
|
var _component_w_html = resolveComponent("w-html");
|
|
7937
7953
|
|
|
@@ -8039,7 +8055,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8039
8055
|
|
|
8040
8056
|
}, 8
|
|
8041
8057
|
/* PROPS */
|
|
8042
|
-
, ["context", "snap"])) : createCommentVNode("v-if", true),
|
|
8058
|
+
, ["context", "snap"])) : createCommentVNode("v-if", true), _this49.x.face == 'date' ? (openBlock(), createBlock(_component_w_html, {
|
|
8043
8059
|
key: 1,
|
|
8044
8060
|
class: "w-calendar-head-month f-link",
|
|
8045
8061
|
ref: "popMonth",
|
|
@@ -8122,7 +8138,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8122
8138
|
_: 1
|
|
8123
8139
|
/* STABLE */
|
|
8124
8140
|
|
|
8125
|
-
}), renderSlot(_ctx.$slots, "head"), createVNode("div", _hoisted_4, [
|
|
8141
|
+
}), renderSlot(_ctx.$slots, "head"), createVNode("div", _hoisted_4, [_this49.x.face == 'date' ? (openBlock(true), createBlock(Fragment, {
|
|
8126
8142
|
key: 0
|
|
8127
8143
|
}, renderList($options.loc.calendar.day_title_1, function (item) {
|
|
8128
8144
|
return openBlock(), createBlock("div", _hoisted_5, toDisplayString(item), 1
|
|
@@ -8308,7 +8324,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8308
8324
|
style: {
|
|
8309
8325
|
visibility: $options.hasTime && !$data.onlyTime ? 'visible' : 'hidden'
|
|
8310
8326
|
}
|
|
8311
|
-
}, toDisplayString(
|
|
8327
|
+
}, toDisplayString(_this49.showTime ? $options.loc.calendar.backdate : $options.loc.calendar.picktime), 5
|
|
8312
8328
|
/* TEXT, STYLE */
|
|
8313
8329
|
), createVNode("div", {
|
|
8314
8330
|
class: "f-link",
|
|
@@ -8441,20 +8457,20 @@ var script$p = {
|
|
|
8441
8457
|
}
|
|
8442
8458
|
},
|
|
8443
8459
|
mounted: function mounted() {
|
|
8444
|
-
var
|
|
8460
|
+
var _this50 = this;
|
|
8445
8461
|
|
|
8446
8462
|
this.indent();
|
|
8447
8463
|
|
|
8448
8464
|
var observe = function observe() {
|
|
8449
|
-
if (
|
|
8450
|
-
$$1.q('.w-timeline-item',
|
|
8465
|
+
if (_this50.$refs.wrap && _this50.$refs.next) {
|
|
8466
|
+
$$1.q('.w-timeline-item', _this50.$refs.wrap).css({
|
|
8451
8467
|
margin: 0
|
|
8452
8468
|
});
|
|
8453
|
-
$$1.q(
|
|
8469
|
+
$$1.q(_this50.$refs.next).css({
|
|
8454
8470
|
margin: 0
|
|
8455
8471
|
});
|
|
8456
8472
|
|
|
8457
|
-
|
|
8473
|
+
_this50.indent();
|
|
8458
8474
|
}
|
|
8459
8475
|
};
|
|
8460
8476
|
|
|
@@ -8499,7 +8515,7 @@ var script$o = {
|
|
|
8499
8515
|
};
|
|
8500
8516
|
script$o.__file = "src/widgets/TimelineItem.vue";
|
|
8501
8517
|
var script$n = {
|
|
8502
|
-
name: 'w-
|
|
8518
|
+
name: 'w-slidepicker',
|
|
8503
8519
|
mixins: [script$1j],
|
|
8504
8520
|
props: ['optionHeight', 'modelValue', 'minValue', 'maxValue', 'keepIndex'],
|
|
8505
8521
|
emits: ['update:modelValue', 'change', 'scroll:top', 'scroll:bottom'],
|
|
@@ -8698,17 +8714,17 @@ var script$n = {
|
|
|
8698
8714
|
};
|
|
8699
8715
|
var _hoisted_1$2 = {
|
|
8700
8716
|
ref: "options",
|
|
8701
|
-
class: "w-
|
|
8717
|
+
class: "w-slidepicker-options"
|
|
8702
8718
|
};
|
|
8703
8719
|
|
|
8704
8720
|
var _hoisted_2$1 = /*#__PURE__*/createVNode("div", {
|
|
8705
|
-
class: "w-
|
|
8721
|
+
class: "w-slidepicker-bg-top"
|
|
8706
8722
|
}, null, -1
|
|
8707
8723
|
/* HOISTED */
|
|
8708
8724
|
);
|
|
8709
8725
|
|
|
8710
8726
|
var _hoisted_3$1 = /*#__PURE__*/createVNode("div", {
|
|
8711
|
-
class: "w-
|
|
8727
|
+
class: "w-slidepicker-bg-bottom"
|
|
8712
8728
|
}, null, -1
|
|
8713
8729
|
/* HOISTED */
|
|
8714
8730
|
);
|
|
@@ -8724,7 +8740,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8724
8740
|
}
|
|
8725
8741
|
|
|
8726
8742
|
script$n.render = render$3;
|
|
8727
|
-
script$n.__file = "src/widgets/
|
|
8743
|
+
script$n.__file = "src/widgets/SlidePicker.vue";
|
|
8728
8744
|
var script$m = {
|
|
8729
8745
|
name: 'w-hidden',
|
|
8730
8746
|
mixins: [script$z],
|
|
@@ -9402,13 +9418,13 @@ var script$f = {
|
|
|
9402
9418
|
};
|
|
9403
9419
|
},
|
|
9404
9420
|
created: function created() {
|
|
9405
|
-
var
|
|
9421
|
+
var _this51 = this;
|
|
9406
9422
|
|
|
9407
9423
|
this.$watch(function () {
|
|
9408
|
-
return
|
|
9424
|
+
return _this51.x.modelValue;
|
|
9409
9425
|
}, function (v) {
|
|
9410
|
-
if (
|
|
9411
|
-
|
|
9426
|
+
if (_this51.emiting) return _this51.emiting = false;
|
|
9427
|
+
_this51.list = Array.isArray(v) ? v.map(function (value) {
|
|
9412
9428
|
return {
|
|
9413
9429
|
value: value
|
|
9414
9430
|
};
|
|
@@ -9460,7 +9476,7 @@ var script$f = {
|
|
|
9460
9476
|
return s == 'aud';
|
|
9461
9477
|
},
|
|
9462
9478
|
fileSelected: function fileSelected(e) {
|
|
9463
|
-
var
|
|
9479
|
+
var _this52 = this;
|
|
9464
9480
|
|
|
9465
9481
|
if (this.x.uploadLimit > 1 && e.target.files.length + this.list.length > this.x.uploadLimit) {
|
|
9466
9482
|
return $$1.alert($$1.loc.ps($$1.loc.form.upload_limit, this.x.uploadLimit));
|
|
@@ -9475,7 +9491,7 @@ var script$f = {
|
|
|
9475
9491
|
(xfs_names || (xfs_names = [])).push(file.name);
|
|
9476
9492
|
} else if (nfs && file.size < nfs) {
|
|
9477
9493
|
(nfs_names || (nfs_names = [])).push(file.name);
|
|
9478
|
-
} else
|
|
9494
|
+
} else _this52.list.push({
|
|
9479
9495
|
file: file
|
|
9480
9496
|
});
|
|
9481
9497
|
});
|
|
@@ -9491,7 +9507,7 @@ var script$f = {
|
|
|
9491
9507
|
this.nextUpload();
|
|
9492
9508
|
},
|
|
9493
9509
|
upload: function upload(item) {
|
|
9494
|
-
var
|
|
9510
|
+
var _this53 = this;
|
|
9495
9511
|
|
|
9496
9512
|
if (this.x.uploadSrc && !item.loading) {
|
|
9497
9513
|
var src = $$1.urlFormat(this.x.uploadSrc, this.x.data, this.x);
|
|
@@ -9508,7 +9524,7 @@ var script$f = {
|
|
|
9508
9524
|
item.loading = false;
|
|
9509
9525
|
item.loaded = true;
|
|
9510
9526
|
item.source = null;
|
|
9511
|
-
var d =
|
|
9527
|
+
var d = _this53.x.filter ? _this53.x.filter(res, _this53) : res.data;
|
|
9512
9528
|
|
|
9513
9529
|
if (!d) {
|
|
9514
9530
|
item.error = {
|
|
@@ -9522,10 +9538,10 @@ var script$f = {
|
|
|
9522
9538
|
};
|
|
9523
9539
|
} else {
|
|
9524
9540
|
item.value = d;
|
|
9525
|
-
|
|
9541
|
+
_this53.x.success && _this53.x.success(item.value, _this53, res);
|
|
9526
9542
|
}
|
|
9527
9543
|
|
|
9528
|
-
|
|
9544
|
+
_this53.nextUpload();
|
|
9529
9545
|
|
|
9530
9546
|
if (item.error && item.error.message) $$1.alert(item.error.message);
|
|
9531
9547
|
}).catch(function (error) {
|
|
@@ -9589,7 +9605,7 @@ var script$f = {
|
|
|
9589
9605
|
this.$refs.file.click();
|
|
9590
9606
|
},
|
|
9591
9607
|
html_list: function html_list() {
|
|
9592
|
-
var
|
|
9608
|
+
var _this54 = this;
|
|
9593
9609
|
|
|
9594
9610
|
return this.list.map(function (item) {
|
|
9595
9611
|
var n = item.value ? item.value.name : item.file.name;
|
|
@@ -9600,11 +9616,11 @@ var script$f = {
|
|
|
9600
9616
|
}],
|
|
9601
9617
|
style: {
|
|
9602
9618
|
'--w-upload-progress': item.file ? "".concat(item.progress || 0, "%") : '',
|
|
9603
|
-
width: $$1.unitSize(
|
|
9619
|
+
width: $$1.unitSize(_this54.x.itemWidth)
|
|
9604
9620
|
},
|
|
9605
9621
|
title: item.error ? item.error.message : n,
|
|
9606
9622
|
onclick: function onclick(e) {
|
|
9607
|
-
return
|
|
9623
|
+
return _this54.clickItem(e, item);
|
|
9608
9624
|
}
|
|
9609
9625
|
}, [h$1('i', {
|
|
9610
9626
|
class: ['w-fileupload-value-icon f-i', 'f-i-file-' + getSuffix(n)]
|
|
@@ -9616,7 +9632,7 @@ var script$f = {
|
|
|
9616
9632
|
class: 'w-fileupload-value-close f-i f-i-trash',
|
|
9617
9633
|
title: $$1.loc.remove,
|
|
9618
9634
|
onclick: function onclick(e) {
|
|
9619
|
-
|
|
9635
|
+
_this54.remove(item), e.stopPropagation();
|
|
9620
9636
|
}
|
|
9621
9637
|
})]);
|
|
9622
9638
|
});
|
|
@@ -9631,7 +9647,7 @@ var script$f = {
|
|
|
9631
9647
|
})];
|
|
9632
9648
|
},
|
|
9633
9649
|
html_input_button: function html_input_button() {
|
|
9634
|
-
var
|
|
9650
|
+
var _this55 = this;
|
|
9635
9651
|
|
|
9636
9652
|
return h$1(script$I, {
|
|
9637
9653
|
ref: 'uploadbbr',
|
|
@@ -9639,11 +9655,11 @@ var script$f = {
|
|
|
9639
9655
|
gap: 10
|
|
9640
9656
|
}, {
|
|
9641
9657
|
default: function _default() {
|
|
9642
|
-
return [
|
|
9658
|
+
return [_this55.$slots.button ? _this55.$slots.button() : h$1(script$$, {
|
|
9643
9659
|
text: '选择文件',
|
|
9644
9660
|
icon: '.f-i .f-i-upload',
|
|
9645
9661
|
class: 'w-fileupload-button',
|
|
9646
|
-
onclick:
|
|
9662
|
+
onclick: _this55.chooseFile
|
|
9647
9663
|
})];
|
|
9648
9664
|
}
|
|
9649
9665
|
});
|
|
@@ -9662,11 +9678,11 @@ var script$f = {
|
|
|
9662
9678
|
},
|
|
9663
9679
|
computed: {
|
|
9664
9680
|
validHooks: function validHooks() {
|
|
9665
|
-
var
|
|
9681
|
+
var _this56 = this;
|
|
9666
9682
|
|
|
9667
9683
|
return {
|
|
9668
9684
|
valid: function valid(v) {
|
|
9669
|
-
var _iterator5 = _createForOfIteratorHelper(
|
|
9685
|
+
var _iterator5 = _createForOfIteratorHelper(_this56.list),
|
|
9670
9686
|
_step5;
|
|
9671
9687
|
|
|
9672
9688
|
try {
|
|
@@ -9674,11 +9690,11 @@ var script$f = {
|
|
|
9674
9690
|
var item = _step5.value;
|
|
9675
9691
|
|
|
9676
9692
|
if (item.loading) {
|
|
9677
|
-
return
|
|
9693
|
+
return _this56.formErr('upload_loading');
|
|
9678
9694
|
}
|
|
9679
9695
|
|
|
9680
9696
|
if (item.error) {
|
|
9681
|
-
return
|
|
9697
|
+
return _this56.formErr('upload_invalid_file');
|
|
9682
9698
|
}
|
|
9683
9699
|
}
|
|
9684
9700
|
} catch (err) {
|
|
@@ -9707,11 +9723,11 @@ var script$f = {
|
|
|
9707
9723
|
};
|
|
9708
9724
|
},
|
|
9709
9725
|
html_on: function html_on() {
|
|
9710
|
-
var
|
|
9726
|
+
var _this57 = this;
|
|
9711
9727
|
|
|
9712
9728
|
return {
|
|
9713
9729
|
onclick: function onclick() {
|
|
9714
|
-
return
|
|
9730
|
+
return _this57.warn(false);
|
|
9715
9731
|
}
|
|
9716
9732
|
};
|
|
9717
9733
|
}
|
|
@@ -9731,30 +9747,30 @@ var script$e = {
|
|
|
9731
9747
|
this.provideUpload.clickItem(e, this.item);
|
|
9732
9748
|
},
|
|
9733
9749
|
createImageThumbnail: function createImageThumbnail() {
|
|
9734
|
-
var
|
|
9750
|
+
var _this58 = this;
|
|
9735
9751
|
|
|
9736
9752
|
var r = new FileReader();
|
|
9737
9753
|
|
|
9738
9754
|
r.onload = function (e) {
|
|
9739
|
-
if (
|
|
9740
|
-
|
|
9755
|
+
if (_this58.item.loaded) return;
|
|
9756
|
+
_this58.dataURL = e.target.result;
|
|
9741
9757
|
};
|
|
9742
9758
|
|
|
9743
9759
|
r.readAsDataURL(this.item.file);
|
|
9744
9760
|
},
|
|
9745
9761
|
createVideoThumbnail: function createVideoThumbnail() {
|
|
9746
|
-
var
|
|
9762
|
+
var _this59 = this;
|
|
9747
9763
|
|
|
9748
9764
|
var video = document.createElement('video');
|
|
9749
9765
|
video.addEventListener('loadeddata', function () {
|
|
9750
9766
|
setTimeout(function () {
|
|
9751
|
-
if (
|
|
9767
|
+
if (_this59.item.loaded) return;
|
|
9752
9768
|
var cvs = document.createElement('canvas');
|
|
9753
9769
|
var ctx = cvs.getContext('2d');
|
|
9754
9770
|
cvs.width = video.videoWidth;
|
|
9755
9771
|
cvs.height = video.videoHeight;
|
|
9756
9772
|
ctx.drawImage(video, 0, 0);
|
|
9757
|
-
|
|
9773
|
+
_this59.dataURL = cvs.toDataURL('image/png');
|
|
9758
9774
|
video.pause();
|
|
9759
9775
|
$$1.q(video).remove();
|
|
9760
9776
|
}, 150);
|
|
@@ -9809,14 +9825,14 @@ var script$e = {
|
|
|
9809
9825
|
}
|
|
9810
9826
|
},
|
|
9811
9827
|
mounted: function mounted() {
|
|
9812
|
-
var
|
|
9828
|
+
var _this60 = this;
|
|
9813
9829
|
|
|
9814
9830
|
if (!this.item.loaded && this.item.file) {
|
|
9815
9831
|
this.upload.isVideo(this.item) ? this.createVideoThumbnail() : this.upload.isImage(this.item) ? this.createImageThumbnail() : null;
|
|
9816
9832
|
this.$watch(function () {
|
|
9817
|
-
return
|
|
9833
|
+
return _this60.item.progress;
|
|
9818
9834
|
}, function (v) {
|
|
9819
|
-
return
|
|
9835
|
+
return _this60.setProgress(v);
|
|
9820
9836
|
}, {
|
|
9821
9837
|
immediate: true
|
|
9822
9838
|
});
|
|
@@ -9913,7 +9929,7 @@ var script$d = {
|
|
|
9913
9929
|
});
|
|
9914
9930
|
},
|
|
9915
9931
|
html_input_button: function html_input_button() {
|
|
9916
|
-
var
|
|
9932
|
+
var _this61 = this;
|
|
9917
9933
|
|
|
9918
9934
|
return h$1(script$I, {
|
|
9919
9935
|
ref: 'uploadbbr',
|
|
@@ -9921,16 +9937,16 @@ var script$d = {
|
|
|
9921
9937
|
gap: 10
|
|
9922
9938
|
}, {
|
|
9923
9939
|
default: function _default() {
|
|
9924
|
-
return [
|
|
9940
|
+
return [_this61.$slots.button ? _this61.$slots.button() : h$1(script$$, {
|
|
9925
9941
|
ref: 'uploadbutton',
|
|
9926
9942
|
title: $$1.loc.form.choose_image,
|
|
9927
9943
|
icon: '.f-i .f-i-plus',
|
|
9928
9944
|
class: 'w-mediaupload-button',
|
|
9929
9945
|
style: {
|
|
9930
|
-
width: $$1.unitSize(
|
|
9931
|
-
height: $$1.unitSize(
|
|
9946
|
+
width: $$1.unitSize(_this61.x.thumbnailWidth),
|
|
9947
|
+
height: $$1.unitSize(_this61.x.thumbnailHeight)
|
|
9932
9948
|
},
|
|
9933
|
-
onclick:
|
|
9949
|
+
onclick: _this61.chooseFile
|
|
9934
9950
|
})];
|
|
9935
9951
|
}
|
|
9936
9952
|
});
|
|
@@ -10112,7 +10128,7 @@ var script$a = {
|
|
|
10112
10128
|
return this.$refs.btns && this.$refs.btns.contains(el);
|
|
10113
10129
|
},
|
|
10114
10130
|
html_button: function html_button() {
|
|
10115
|
-
var
|
|
10131
|
+
var _this62 = this;
|
|
10116
10132
|
|
|
10117
10133
|
return h$1('div', {
|
|
10118
10134
|
class: 'w-spinner-step w-input-bbr f-flex-column f-oh',
|
|
@@ -10121,14 +10137,14 @@ var script$a = {
|
|
|
10121
10137
|
class: 'w-spinner-step-btn f-rel',
|
|
10122
10138
|
disabled: this.x.disabled,
|
|
10123
10139
|
onclick: function onclick(e) {
|
|
10124
|
-
return
|
|
10140
|
+
return _this62.stepBy(1);
|
|
10125
10141
|
},
|
|
10126
10142
|
innerHTML: '<i class="f-abs-center f-i f-i-caret-up"></i>'
|
|
10127
10143
|
}), h$1('button', {
|
|
10128
10144
|
class: 'w-spinner-step-btn f-rel',
|
|
10129
10145
|
disabled: this.x.disabled,
|
|
10130
10146
|
onclick: function onclick(e) {
|
|
10131
|
-
return
|
|
10147
|
+
return _this62.stepBy(-1);
|
|
10132
10148
|
},
|
|
10133
10149
|
innerHTML: '<i class="f-abs-center f-i f-i-caret-down"></i>'
|
|
10134
10150
|
})]);
|
|
@@ -10136,24 +10152,24 @@ var script$a = {
|
|
|
10136
10152
|
},
|
|
10137
10153
|
computed: {
|
|
10138
10154
|
validHooks: function validHooks() {
|
|
10139
|
-
var
|
|
10155
|
+
var _this63 = this;
|
|
10140
10156
|
|
|
10141
10157
|
return {
|
|
10142
10158
|
compare: function compare(v, c, d) {
|
|
10143
|
-
return !$$1.eval('v' + (
|
|
10159
|
+
return !$$1.eval('v' + (_this63.x.compare.mode || '==') + 'd', {
|
|
10144
10160
|
v: v,
|
|
10145
10161
|
d: d
|
|
10146
10162
|
});
|
|
10147
10163
|
},
|
|
10148
10164
|
valid: function valid(v) {
|
|
10149
|
-
|
|
10165
|
+
_this63.x.format && (v = v.replace(RegExp(_this63.x.format.separator || ',', 'g'), ''));
|
|
10150
10166
|
|
|
10151
10167
|
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 (
|
|
10168
|
+
if (isNaN(v) || /\s/.test(v)) return _this63.formErr('number_invalid');
|
|
10169
|
+
var d = _this63.x.decimal;
|
|
10170
|
+
if (!d && ~v.indexOf('.')) return _this63.formErr('number_integer');
|
|
10171
|
+
if (d && d > 0 && $$1.strFrom(v, '.').length > d) return _this63.formErr('number_decimal_digit', [d]);
|
|
10172
|
+
if (_this63.provideRangeParent) return _this63.provideRangeParent.validHooks.valid();
|
|
10157
10173
|
}
|
|
10158
10174
|
}
|
|
10159
10175
|
};
|
|
@@ -10224,7 +10240,7 @@ var script$9 = {
|
|
|
10224
10240
|
};
|
|
10225
10241
|
},
|
|
10226
10242
|
html_button: function html_button() {
|
|
10227
|
-
var
|
|
10243
|
+
var _this64 = this;
|
|
10228
10244
|
|
|
10229
10245
|
var r = [];
|
|
10230
10246
|
if (!this.x.noButton) r.push(h$1('button', {
|
|
@@ -10241,28 +10257,28 @@ var script$9 = {
|
|
|
10241
10257
|
autoHide: true,
|
|
10242
10258
|
snap: {
|
|
10243
10259
|
target: function target() {
|
|
10244
|
-
return
|
|
10260
|
+
return _this64.snapElem();
|
|
10245
10261
|
},
|
|
10246
10262
|
position: 'v',
|
|
10247
10263
|
indent: 1
|
|
10248
10264
|
},
|
|
10249
10265
|
on: {
|
|
10250
10266
|
close: function close() {
|
|
10251
|
-
|
|
10267
|
+
_this64.showDrop = false, _this64.currentDate = null;
|
|
10252
10268
|
}
|
|
10253
10269
|
}
|
|
10254
10270
|
}, {
|
|
10255
10271
|
default: function _default() {
|
|
10256
10272
|
return h$1(script$q, _objectSpread(_objectSpread({
|
|
10257
10273
|
pad: true,
|
|
10258
|
-
current:
|
|
10259
|
-
value:
|
|
10260
|
-
format:
|
|
10261
|
-
},
|
|
10262
|
-
success:
|
|
10274
|
+
current: _this64.currentDate || _this64.x.modelValue || '',
|
|
10275
|
+
value: _this64.x.modelValue,
|
|
10276
|
+
format: _this64.x.format
|
|
10277
|
+
}, _this64.getPeriod()), {}, {
|
|
10278
|
+
success: _this64.calendarCallback,
|
|
10263
10279
|
on: {
|
|
10264
10280
|
'click:item': function clickItem(e, item) {
|
|
10265
|
-
return
|
|
10281
|
+
return _this64.currentDate = item.value;
|
|
10266
10282
|
}
|
|
10267
10283
|
}
|
|
10268
10284
|
}));
|
|
@@ -10275,46 +10291,46 @@ var script$9 = {
|
|
|
10275
10291
|
},
|
|
10276
10292
|
computed: {
|
|
10277
10293
|
validHooks: function validHooks() {
|
|
10278
|
-
var
|
|
10294
|
+
var _this65 = this;
|
|
10279
10295
|
|
|
10280
10296
|
return {
|
|
10281
10297
|
minValue: function minValue(v) {
|
|
10282
|
-
return $$1.dateParse(v,
|
|
10298
|
+
return $$1.dateParse(v, _this65.x.format) < $$1.dateParse(_this65.vv('minValue'), _this65.x.format);
|
|
10283
10299
|
},
|
|
10284
10300
|
maxValue: function maxValue(v) {
|
|
10285
|
-
return $$1.dateParse(v,
|
|
10301
|
+
return $$1.dateParse(v, _this65.x.format) > $$1.dateParse(_this65.vv('maxValue'), _this65.x.format);
|
|
10286
10302
|
},
|
|
10287
10303
|
compare: function compare(v, c, d) {
|
|
10288
|
-
if (
|
|
10289
|
-
var f = (
|
|
10290
|
-
v = $$1.dateFormat($$1.dateParse(v,
|
|
10304
|
+
if (_this65.x.format && c.x.format) {
|
|
10305
|
+
var f = (_this65.x.format.length > c.x.format.length ? _this65 : c).x.format;
|
|
10306
|
+
v = $$1.dateFormat($$1.dateParse(v, _this65.x.format), f);
|
|
10291
10307
|
d = $$1.dateFormat($$1.dateParse(d, c.x.format), f);
|
|
10292
10308
|
}
|
|
10293
10309
|
|
|
10294
|
-
return !$$1.eval('v' + (
|
|
10310
|
+
return !$$1.eval('v' + (_this65.x.compare.mode || '==') + 'd', {
|
|
10295
10311
|
v: v,
|
|
10296
10312
|
d: d
|
|
10297
10313
|
});
|
|
10298
10314
|
},
|
|
10299
10315
|
valid: function valid(v) {
|
|
10300
|
-
if (
|
|
10316
|
+
if (_this65.x.multiple) return;
|
|
10301
10317
|
|
|
10302
10318
|
if (v) {
|
|
10303
10319
|
var _c4 = v;
|
|
10304
|
-
var d = $$1.dateParse(_c4,
|
|
10320
|
+
var d = $$1.dateParse(_c4, _this65.x.format);
|
|
10305
10321
|
var y = d.getFullYear();
|
|
10306
10322
|
var m = 9999;
|
|
10307
10323
|
var n = 1000;
|
|
10308
|
-
if (y > m || y < n) return
|
|
10324
|
+
if (y > m || y < n) return _this65.formErr('time_exceed', [n, m]);
|
|
10309
10325
|
|
|
10310
|
-
if (_c4 != $$1.dateFormat(d,
|
|
10311
|
-
return
|
|
10326
|
+
if (_c4 != $$1.dateFormat(d, _this65.x.format)) {
|
|
10327
|
+
return _this65.formErr('time_format', [$$1.dateFormat(d, _this65.x.format)]);
|
|
10312
10328
|
}
|
|
10313
10329
|
}
|
|
10314
10330
|
|
|
10315
|
-
if (
|
|
10316
|
-
if (
|
|
10317
|
-
if (
|
|
10331
|
+
if (_this65.vv('beforeNow') && v && v > $$1.dateFormat(new Date(), _this65.x.format)) return _this65.formErr('beforeNow', [_this65.x.beforeNow]);
|
|
10332
|
+
if (_this65.vv('afterNow') && v && v < $$1.dateFormat(new Date(), _this65.x.format)) return _this65.formErr('afterNow', [_this65.x.afterNow]);
|
|
10333
|
+
if (_this65.provideRangeParent) return _this65.provideRangeParent.validHooks.valid();
|
|
10318
10334
|
}
|
|
10319
10335
|
};
|
|
10320
10336
|
},
|
|
@@ -10362,7 +10378,7 @@ var script$8 = {
|
|
|
10362
10378
|
return this.input_text;
|
|
10363
10379
|
},
|
|
10364
10380
|
html_input: function html_input() {
|
|
10365
|
-
var
|
|
10381
|
+
var _this66 = this;
|
|
10366
10382
|
|
|
10367
10383
|
var t = this.input_text;
|
|
10368
10384
|
var p = this.input_placeholder;
|
|
@@ -10381,14 +10397,14 @@ var script$8 = {
|
|
|
10381
10397
|
autoHide: true,
|
|
10382
10398
|
snap: {
|
|
10383
10399
|
target: function target() {
|
|
10384
|
-
return
|
|
10400
|
+
return _this66.el('main');
|
|
10385
10401
|
},
|
|
10386
10402
|
position: 'v',
|
|
10387
10403
|
indent: 1
|
|
10388
10404
|
},
|
|
10389
10405
|
on: {
|
|
10390
10406
|
close: function close() {
|
|
10391
|
-
return
|
|
10407
|
+
return _this66.showDrop = false;
|
|
10392
10408
|
}
|
|
10393
10409
|
}
|
|
10394
10410
|
}, this.$slots)];
|
|
@@ -10402,7 +10418,7 @@ var script$8 = {
|
|
|
10402
10418
|
},
|
|
10403
10419
|
computed: {
|
|
10404
10420
|
input_text: function input_text() {
|
|
10405
|
-
var
|
|
10421
|
+
var _this67 = this;
|
|
10406
10422
|
|
|
10407
10423
|
var r = [];
|
|
10408
10424
|
var s = this.slots_children();
|
|
@@ -10412,7 +10428,7 @@ var script$8 = {
|
|
|
10412
10428
|
return n.props.value == v;
|
|
10413
10429
|
});
|
|
10414
10430
|
if (i > -1) r.push(i);
|
|
10415
|
-
if (!
|
|
10431
|
+
if (!_this67.x.multiple) return false;
|
|
10416
10432
|
});
|
|
10417
10433
|
return r.sort().map(function (v) {
|
|
10418
10434
|
return s[v].props.text;
|
|
@@ -10533,17 +10549,17 @@ var script$5 = {
|
|
|
10533
10549
|
},
|
|
10534
10550
|
computed: {
|
|
10535
10551
|
validHooks: function validHooks() {
|
|
10536
|
-
var
|
|
10552
|
+
var _this68 = this;
|
|
10537
10553
|
|
|
10538
10554
|
return {
|
|
10539
10555
|
valid: function valid() {
|
|
10540
|
-
var f =
|
|
10556
|
+
var f = _this68.forms();
|
|
10541
10557
|
|
|
10542
10558
|
if (f.length > 1) {
|
|
10543
10559
|
var v1 = f[0] && f[0].formVal();
|
|
10544
10560
|
var v2 = f[1] && f[1].formVal();
|
|
10545
10561
|
|
|
10546
|
-
var _c5 =
|
|
10562
|
+
var _c5 = _this68.x.compare || '<=';
|
|
10547
10563
|
|
|
10548
10564
|
if (!isNaN(v1)) v1 = parseFloat(v1);
|
|
10549
10565
|
if (!isNaN(v2)) v2 = parseFloat(v2);
|
|
@@ -10553,7 +10569,7 @@ var script$5 = {
|
|
|
10553
10569
|
v1: v1,
|
|
10554
10570
|
v2: v2
|
|
10555
10571
|
})) {
|
|
10556
|
-
return
|
|
10572
|
+
return _this68.formErr('compare', [f[0].getLabelText(), _c5, f[1].getLabelText()]);
|
|
10557
10573
|
}
|
|
10558
10574
|
}
|
|
10559
10575
|
}
|
|
@@ -10561,11 +10577,11 @@ var script$5 = {
|
|
|
10561
10577
|
};
|
|
10562
10578
|
},
|
|
10563
10579
|
html_on: function html_on() {
|
|
10564
|
-
var
|
|
10580
|
+
var _this69 = this;
|
|
10565
10581
|
|
|
10566
10582
|
return {
|
|
10567
10583
|
onclick: function onclick(e) {
|
|
10568
|
-
return
|
|
10584
|
+
return _this69.warnClass = '';
|
|
10569
10585
|
}
|
|
10570
10586
|
};
|
|
10571
10587
|
}
|
|
@@ -10606,9 +10622,19 @@ var script$4 = {
|
|
|
10606
10622
|
this.addVal(v);
|
|
10607
10623
|
this.clear();
|
|
10608
10624
|
this.$nextTick(this.focus);
|
|
10625
|
+
return this;
|
|
10626
|
+
},
|
|
10627
|
+
closeDrop: function closeDrop() {
|
|
10628
|
+
this.suggest(false);
|
|
10629
|
+
return this;
|
|
10609
10630
|
},
|
|
10610
10631
|
suggest: function suggest(a) {
|
|
10611
10632
|
a = a == null ? true : a;
|
|
10633
|
+
|
|
10634
|
+
if (a === false) {
|
|
10635
|
+
clearTimeout(this.sug_timer);
|
|
10636
|
+
}
|
|
10637
|
+
|
|
10612
10638
|
this.showSuggest = a;
|
|
10613
10639
|
this.warn(false);
|
|
10614
10640
|
},
|
|
@@ -10618,9 +10644,10 @@ var script$4 = {
|
|
|
10618
10644
|
focus: function focus() {
|
|
10619
10645
|
this.$refs.input.focus();
|
|
10620
10646
|
this.warn(false);
|
|
10647
|
+
return this;
|
|
10621
10648
|
},
|
|
10622
10649
|
oninput: function oninput(e) {
|
|
10623
|
-
var
|
|
10650
|
+
var _this70 = this;
|
|
10624
10651
|
|
|
10625
10652
|
var v = e.target.value;
|
|
10626
10653
|
this.sensor_text = v;
|
|
@@ -10630,9 +10657,9 @@ var script$4 = {
|
|
|
10630
10657
|
this.suggest(false);
|
|
10631
10658
|
} else {
|
|
10632
10659
|
this.sug_timer = setTimeout(function () {
|
|
10633
|
-
|
|
10660
|
+
_this70.suggest(true);
|
|
10634
10661
|
|
|
10635
|
-
|
|
10662
|
+
_this70.trigger(e, v);
|
|
10636
10663
|
}, 500);
|
|
10637
10664
|
}
|
|
10638
10665
|
},
|
|
@@ -10645,7 +10672,9 @@ var script$4 = {
|
|
|
10645
10672
|
var mv = $$1.array(this.x.modelValue, true);
|
|
10646
10673
|
mv.length && mv.splice(mv.length - 1, 1);
|
|
10647
10674
|
}
|
|
10648
|
-
}
|
|
10675
|
+
} //38: up, 40:down
|
|
10676
|
+
//if (this.showSuggest && (k == 38 || k == 40)) e.preventDefault()
|
|
10677
|
+
|
|
10649
10678
|
},
|
|
10650
10679
|
clickItem: function clickItem(e, item) {
|
|
10651
10680
|
e.stopPropagation();
|
|
@@ -10679,7 +10708,7 @@ var script$4 = {
|
|
|
10679
10708
|
return this.input_title;
|
|
10680
10709
|
},
|
|
10681
10710
|
html_options: function html_options() {
|
|
10682
|
-
var
|
|
10711
|
+
var _this71 = this;
|
|
10683
10712
|
|
|
10684
10713
|
var m = this.x.modelValue;
|
|
10685
10714
|
|
|
@@ -10690,22 +10719,22 @@ var script$4 = {
|
|
|
10690
10719
|
'z-forbid': v.forbid
|
|
10691
10720
|
}],
|
|
10692
10721
|
onclick: function onclick(e) {
|
|
10693
|
-
return
|
|
10722
|
+
return _this71.clickItem(e, v);
|
|
10694
10723
|
}
|
|
10695
10724
|
}, [h$1('div', {
|
|
10696
10725
|
class: 'w-combobox-option-text f-line-1',
|
|
10697
10726
|
title: v.text
|
|
10698
|
-
}, v.text),
|
|
10727
|
+
}, v.text), _this71.isNormal && h$1('div', {
|
|
10699
10728
|
class: 'w-combobox-option-close f-i f-i-close',
|
|
10700
10729
|
onclick: function onclick(e) {
|
|
10701
|
-
return
|
|
10730
|
+
return _this71.clickClose(e, v);
|
|
10702
10731
|
}
|
|
10703
10732
|
})]);
|
|
10704
10733
|
});
|
|
10705
10734
|
}
|
|
10706
10735
|
},
|
|
10707
10736
|
html_var: function html_var() {
|
|
10708
|
-
var
|
|
10737
|
+
var _this72 = this;
|
|
10709
10738
|
|
|
10710
10739
|
return h$1('div', {
|
|
10711
10740
|
class: 'w-combobox-input-wrap'
|
|
@@ -10722,15 +10751,15 @@ var script$4 = {
|
|
|
10722
10751
|
onkeydown: this.onkeydown,
|
|
10723
10752
|
placeholder: this.input_value ? null : this.input_placeholder,
|
|
10724
10753
|
onfocus: function onfocus(e) {
|
|
10725
|
-
|
|
10754
|
+
_this72.isFocus = true, e.target.value && e.target.dispatchEvent(new Event('input'));
|
|
10726
10755
|
},
|
|
10727
10756
|
onblur: function onblur(e) {
|
|
10728
|
-
return
|
|
10757
|
+
return _this72.isFocus = false;
|
|
10729
10758
|
}
|
|
10730
10759
|
})]);
|
|
10731
10760
|
},
|
|
10732
10761
|
html_input: function html_input() {
|
|
10733
|
-
var
|
|
10762
|
+
var _this73 = this;
|
|
10734
10763
|
|
|
10735
10764
|
return [this.html_input_hidden(), h$1('div', {
|
|
10736
10765
|
class: 'w-combobox-list f-flex-1 f-flex f-oh f-height'
|
|
@@ -10743,14 +10772,14 @@ var script$4 = {
|
|
|
10743
10772
|
autoHide: true,
|
|
10744
10773
|
snap: {
|
|
10745
10774
|
target: function target() {
|
|
10746
|
-
return
|
|
10775
|
+
return _this73.el('main');
|
|
10747
10776
|
},
|
|
10748
10777
|
position: 'v',
|
|
10749
10778
|
indent: 1
|
|
10750
10779
|
},
|
|
10751
10780
|
on: {
|
|
10752
10781
|
close: function close() {
|
|
10753
|
-
return
|
|
10782
|
+
return _this73.showSuggest = false;
|
|
10754
10783
|
}
|
|
10755
10784
|
}
|
|
10756
10785
|
}, this.$slots))];
|
|
@@ -10779,11 +10808,11 @@ var script$4 = {
|
|
|
10779
10808
|
},
|
|
10780
10809
|
computed: {
|
|
10781
10810
|
validHooks: function validHooks() {
|
|
10782
|
-
var
|
|
10811
|
+
var _this74 = this;
|
|
10783
10812
|
|
|
10784
10813
|
return {
|
|
10785
10814
|
valid: function valid(v) {
|
|
10786
|
-
if (
|
|
10815
|
+
if (_this74.$refs.input.value) return _this74.formErr('invalid_option');
|
|
10787
10816
|
}
|
|
10788
10817
|
};
|
|
10789
10818
|
},
|
|
@@ -10809,12 +10838,12 @@ var script$4 = {
|
|
|
10809
10838
|
}
|
|
10810
10839
|
},
|
|
10811
10840
|
mounted: function mounted() {
|
|
10812
|
-
var
|
|
10841
|
+
var _this75 = this;
|
|
10813
10842
|
|
|
10814
10843
|
if (this.isEntity && this.$refs.sensor) {
|
|
10815
10844
|
new ResizeObserver(function () {
|
|
10816
|
-
if (
|
|
10817
|
-
|
|
10845
|
+
if (_this75.$refs.sensor) {
|
|
10846
|
+
_this75.sensor_width = _this75.$refs.sensor.offsetWidth + 'px';
|
|
10818
10847
|
}
|
|
10819
10848
|
}).observe(this.$refs.sensor);
|
|
10820
10849
|
}
|
|
@@ -10827,13 +10856,13 @@ var script$3 = {
|
|
|
10827
10856
|
emits: ['input', 'dblclick:item'],
|
|
10828
10857
|
props: ['multiple', 'picker', 'dropWidth', 'separator', 'strict', 'br'],
|
|
10829
10858
|
created: function created() {
|
|
10830
|
-
var
|
|
10859
|
+
var _this76 = this;
|
|
10831
10860
|
|
|
10832
10861
|
this.$watch(function () {
|
|
10833
|
-
return
|
|
10862
|
+
return _this76.x.modelValue;
|
|
10834
10863
|
}, function (v) {
|
|
10835
|
-
if (
|
|
10836
|
-
|
|
10864
|
+
if (_this76.isEntity && !_this76.isFocus) {
|
|
10865
|
+
_this76.initOptions(v);
|
|
10837
10866
|
}
|
|
10838
10867
|
});
|
|
10839
10868
|
},
|
|
@@ -10910,14 +10939,25 @@ var script$3 = {
|
|
|
10910
10939
|
if (m.length > 1) m.eq(0).next('i').addBack().remove();
|
|
10911
10940
|
this.save();
|
|
10912
10941
|
}
|
|
10942
|
+
|
|
10943
|
+
return this;
|
|
10944
|
+
},
|
|
10945
|
+
closeDrop: function closeDrop() {
|
|
10946
|
+
this.suggest(false);
|
|
10947
|
+
return this;
|
|
10913
10948
|
},
|
|
10914
10949
|
suggest: function suggest(a) {
|
|
10915
10950
|
a = a == null ? true : a;
|
|
10951
|
+
|
|
10952
|
+
if (a === false) {
|
|
10953
|
+
clearTimeout(this.sug_timer);
|
|
10954
|
+
}
|
|
10955
|
+
|
|
10916
10956
|
this.showSuggest = a;
|
|
10917
10957
|
this.warn(false);
|
|
10918
10958
|
},
|
|
10919
10959
|
input: function input(a) {
|
|
10920
|
-
var
|
|
10960
|
+
var _this77 = this;
|
|
10921
10961
|
|
|
10922
10962
|
this.currOpt = a;
|
|
10923
10963
|
var v = a.innerText.replace(/^[\s,]+|[\s,]+$/g, '');
|
|
@@ -10927,25 +10967,22 @@ var script$3 = {
|
|
|
10927
10967
|
this.suggest(false);
|
|
10928
10968
|
} else {
|
|
10929
10969
|
this.sug_timer = setTimeout(function () {
|
|
10930
|
-
|
|
10970
|
+
_this77.suggest(true);
|
|
10931
10971
|
|
|
10932
|
-
|
|
10972
|
+
_this77.trigger(new Event('input'), v);
|
|
10933
10973
|
}, 500);
|
|
10934
10974
|
}
|
|
10935
10975
|
},
|
|
10936
|
-
closePop: function closePop() {
|
|
10937
|
-
clearTimeout(this.sug_timer);
|
|
10938
|
-
this.suggest(false);
|
|
10939
|
-
},
|
|
10940
10976
|
focus: function focus() {
|
|
10941
10977
|
this.$refs.inp.focus();
|
|
10942
10978
|
this.warn(false);
|
|
10979
|
+
return this;
|
|
10943
10980
|
},
|
|
10944
10981
|
inp: function inp() {
|
|
10945
10982
|
return this.$refs.inp;
|
|
10946
10983
|
},
|
|
10947
10984
|
fixStyle: function fixStyle() {
|
|
10948
|
-
var
|
|
10985
|
+
var _this78 = this;
|
|
10949
10986
|
|
|
10950
10987
|
var c = $$1.rngElement();
|
|
10951
10988
|
var g = false;
|
|
@@ -10976,7 +11013,7 @@ var script$3 = {
|
|
|
10976
11013
|
$$1.q('br', inp).remove();
|
|
10977
11014
|
if (c.firstChild) c = c.firstChild;else $$1.rngCursor(c);
|
|
10978
11015
|
}
|
|
10979
|
-
} else return this.
|
|
11016
|
+
} else return this.closeDrop();
|
|
10980
11017
|
}
|
|
10981
11018
|
|
|
10982
11019
|
$$1.q('br', inp).remove(); // 输入框内之只允许存在U和I两种标签。输入过程中浏览器可能会自动生成 <font> 标签,需要去除它
|
|
@@ -11020,7 +11057,7 @@ var script$3 = {
|
|
|
11020
11057
|
|
|
11021
11058
|
t.split(p).forEach(function (s) {
|
|
11022
11059
|
if (_h4 = $$1.strTrim(s)) {
|
|
11023
|
-
g =
|
|
11060
|
+
g = _this78.param(_h4);
|
|
11024
11061
|
|
|
11025
11062
|
_d.push('<u' + (g ? ' class=_o data-value="' + g.value + '"' + (g.forbid ? ' data-forbid' : '') : '') + '>' + _h4 + '</u>');
|
|
11026
11063
|
|
|
@@ -11045,7 +11082,7 @@ var script$3 = {
|
|
|
11045
11082
|
m.length && (m.remove(), $$1.q('i + i, i:first-child', inp).remove()); // 删除重复数据
|
|
11046
11083
|
|
|
11047
11084
|
g = true;
|
|
11048
|
-
if ((c = $$1.rngElement()) && c.tagName === 'U' && !c.getAttribute('data-value')) this.input(c);else this.
|
|
11085
|
+
if ((c = $$1.rngElement()) && c.tagName === 'U' && !c.getAttribute('data-value')) this.input(c);else this.closeDrop();
|
|
11049
11086
|
} else {
|
|
11050
11087
|
if (t) {
|
|
11051
11088
|
if ($$1.classAny(c, '_o') && !this.param(t)) {
|
|
@@ -11057,7 +11094,7 @@ var script$3 = {
|
|
|
11057
11094
|
this.input(c);
|
|
11058
11095
|
} else {
|
|
11059
11096
|
g = true;
|
|
11060
|
-
this.
|
|
11097
|
+
this.closeDrop();
|
|
11061
11098
|
}
|
|
11062
11099
|
}
|
|
11063
11100
|
|
|
@@ -11086,11 +11123,11 @@ var script$3 = {
|
|
|
11086
11123
|
if (typeof c === 'function') c(this);else this.cmd(c, this.formVal());
|
|
11087
11124
|
},
|
|
11088
11125
|
addStore: function addStore(m) {
|
|
11089
|
-
var
|
|
11126
|
+
var _this79 = this;
|
|
11090
11127
|
|
|
11091
11128
|
if (m && typeof m !== 'string') {
|
|
11092
11129
|
var _r6 = $$1.array(m).filter(function (v) {
|
|
11093
|
-
return !
|
|
11130
|
+
return !_this79.store.find(function (s) {
|
|
11094
11131
|
return s.value == v.value;
|
|
11095
11132
|
});
|
|
11096
11133
|
});
|
|
@@ -11127,6 +11164,13 @@ var script$3 = {
|
|
|
11127
11164
|
this.$refs.v.value = r.join(',');
|
|
11128
11165
|
this.val(m);
|
|
11129
11166
|
},
|
|
11167
|
+
onkeydown: function onkeydown(e) {
|
|
11168
|
+
var k = e.keyCode;
|
|
11169
|
+
|
|
11170
|
+
if (k === 13) {
|
|
11171
|
+
e.preventDefault();
|
|
11172
|
+
}
|
|
11173
|
+
},
|
|
11130
11174
|
onkeyup: function onkeyup(e) {
|
|
11131
11175
|
if (!this.imeMode) {
|
|
11132
11176
|
var k = this._KC = e.keyCode;
|
|
@@ -11134,7 +11178,6 @@ var script$3 = {
|
|
|
11134
11178
|
if (k === 13 || k === 38 || k === 40 || k === 17) {
|
|
11135
11179
|
// 38:up, 40:down, 17:ctrl
|
|
11136
11180
|
e.stopPropagation();
|
|
11137
|
-
if (k === 13) this.fixStyle();
|
|
11138
11181
|
} else {
|
|
11139
11182
|
this.fixStyle();
|
|
11140
11183
|
}
|
|
@@ -11149,7 +11192,7 @@ var script$3 = {
|
|
|
11149
11192
|
} else {
|
|
11150
11193
|
var _c7 = $$1.rngElement();
|
|
11151
11194
|
|
|
11152
|
-
_c7.tagName === 'U' ? this.input(_c7) : this.
|
|
11195
|
+
_c7.tagName === 'U' ? this.input(_c7) : this.closeDrop();
|
|
11153
11196
|
}
|
|
11154
11197
|
}
|
|
11155
11198
|
},
|
|
@@ -11170,7 +11213,7 @@ var script$3 = {
|
|
|
11170
11213
|
return this.input_title;
|
|
11171
11214
|
},
|
|
11172
11215
|
html_options: function html_options(v) {
|
|
11173
|
-
var
|
|
11216
|
+
var _this80 = this;
|
|
11174
11217
|
|
|
11175
11218
|
var p = this.x.separator || ',';
|
|
11176
11219
|
if (v == null) v = this.x.modelValue;
|
|
@@ -11181,7 +11224,7 @@ var script$3 = {
|
|
|
11181
11224
|
$$1.lodash.each(b, function (o, i) {
|
|
11182
11225
|
_r7.push('<u' + (o.value ? ' class=_o data-value="' + o.value + '"' : '') + (o.forbid ? ' data-forbid' : '') + '>' + o.text + '</u>');
|
|
11183
11226
|
|
|
11184
|
-
if (!
|
|
11227
|
+
if (!_this80.x.multiple) return false;
|
|
11185
11228
|
|
|
11186
11229
|
_r7.push('<i>' + p + '</i>');
|
|
11187
11230
|
});
|
|
@@ -11189,7 +11232,7 @@ var script$3 = {
|
|
|
11189
11232
|
}
|
|
11190
11233
|
},
|
|
11191
11234
|
html_var: function html_var() {
|
|
11192
|
-
var
|
|
11235
|
+
var _this81 = this;
|
|
11193
11236
|
|
|
11194
11237
|
return h$1('div', {
|
|
11195
11238
|
class: 'w-linkbox-input f-flex-1',
|
|
@@ -11197,18 +11240,19 @@ var script$3 = {
|
|
|
11197
11240
|
id: this.uid + 't',
|
|
11198
11241
|
contentEditable: this.isNormal,
|
|
11199
11242
|
onkeyup: this.onkeyup,
|
|
11243
|
+
onkeydown: this.onkeydown,
|
|
11200
11244
|
onclick: this.onclick,
|
|
11201
11245
|
ondblclick: this.ondblclick,
|
|
11202
11246
|
onfocus: function onfocus(e) {
|
|
11203
|
-
|
|
11247
|
+
_this81.isFocus = true;
|
|
11204
11248
|
},
|
|
11205
11249
|
onblur: function onblur(e) {
|
|
11206
|
-
|
|
11250
|
+
_this81.isFocus = false;
|
|
11207
11251
|
}
|
|
11208
11252
|
});
|
|
11209
11253
|
},
|
|
11210
11254
|
html_input: function html_input() {
|
|
11211
|
-
var
|
|
11255
|
+
var _this82 = this;
|
|
11212
11256
|
|
|
11213
11257
|
var p = this.input_placeholder;
|
|
11214
11258
|
return [this.html_input_hidden(), this.html_var(), h$1('div', {
|
|
@@ -11222,14 +11266,14 @@ var script$3 = {
|
|
|
11222
11266
|
autoHide: true,
|
|
11223
11267
|
snap: {
|
|
11224
11268
|
target: function target() {
|
|
11225
|
-
return
|
|
11269
|
+
return _this82.el('main');
|
|
11226
11270
|
},
|
|
11227
11271
|
position: 'v',
|
|
11228
11272
|
indent: 1
|
|
11229
11273
|
},
|
|
11230
11274
|
on: {
|
|
11231
11275
|
close: function close() {
|
|
11232
|
-
return
|
|
11276
|
+
return _this82.showSuggest = false;
|
|
11233
11277
|
}
|
|
11234
11278
|
}
|
|
11235
11279
|
}, this.$slots)];
|
|
@@ -11258,12 +11302,12 @@ var script$3 = {
|
|
|
11258
11302
|
},
|
|
11259
11303
|
computed: {
|
|
11260
11304
|
validHooks: function validHooks() {
|
|
11261
|
-
var
|
|
11305
|
+
var _this83 = this;
|
|
11262
11306
|
|
|
11263
11307
|
return {
|
|
11264
11308
|
valid: function valid(v) {
|
|
11265
|
-
if (
|
|
11266
|
-
return
|
|
11309
|
+
if (_this83.x.strict && $$1.q('u:not([data-value])').length > 0) {
|
|
11310
|
+
return _this83.formErr('invalid_option');
|
|
11267
11311
|
}
|
|
11268
11312
|
}
|
|
11269
11313
|
};
|
|
@@ -11291,15 +11335,15 @@ var script$3 = {
|
|
|
11291
11335
|
}
|
|
11292
11336
|
},
|
|
11293
11337
|
mounted: function mounted() {
|
|
11294
|
-
var
|
|
11338
|
+
var _this84 = this;
|
|
11295
11339
|
|
|
11296
11340
|
if (this.isEntity) {
|
|
11297
11341
|
this.initOptions();
|
|
11298
11342
|
this.inp().addEventListener('compositionstart', function () {
|
|
11299
|
-
|
|
11343
|
+
_this84.imeMode = true;
|
|
11300
11344
|
});
|
|
11301
11345
|
this.inp().addEventListener('compositionend', function () {
|
|
11302
|
-
|
|
11346
|
+
_this84.imeMode = false;
|
|
11303
11347
|
});
|
|
11304
11348
|
}
|
|
11305
11349
|
}
|
|
@@ -11415,7 +11459,7 @@ var script$1 = {
|
|
|
11415
11459
|
this.setThumbLeft();
|
|
11416
11460
|
},
|
|
11417
11461
|
error: function error(text, timeout, fn) {
|
|
11418
|
-
var
|
|
11462
|
+
var _this85 = this;
|
|
11419
11463
|
|
|
11420
11464
|
if (!text) text = '';
|
|
11421
11465
|
this.isError = true;
|
|
@@ -11427,12 +11471,12 @@ var script$1 = {
|
|
|
11427
11471
|
this.text = text + "(".concat(timeout / 1000, ")");
|
|
11428
11472
|
var timer = setInterval(function () {
|
|
11429
11473
|
timeout -= 1000;
|
|
11430
|
-
|
|
11474
|
+
_this85.text = text + "(".concat(timeout / 1000, ")");
|
|
11431
11475
|
|
|
11432
11476
|
if (timeout <= 0) {
|
|
11433
11477
|
clearInterval(timer);
|
|
11434
11478
|
|
|
11435
|
-
|
|
11479
|
+
_this85.reset();
|
|
11436
11480
|
|
|
11437
11481
|
fn && fn();
|
|
11438
11482
|
}
|
|
@@ -11468,7 +11512,7 @@ var script$1 = {
|
|
|
11468
11512
|
$$1.close(this.dropper);
|
|
11469
11513
|
},
|
|
11470
11514
|
dragstart: function dragstart(e) {
|
|
11471
|
-
var
|
|
11515
|
+
var _this86 = this;
|
|
11472
11516
|
|
|
11473
11517
|
if (!this.isNormal || this.locked) return;
|
|
11474
11518
|
this.warn(false);
|
|
@@ -11483,16 +11527,16 @@ var script$1 = {
|
|
|
11483
11527
|
var c = $$1.eventX(e);
|
|
11484
11528
|
var l = $$1.numRange(f + c - x, 0, w - g);
|
|
11485
11529
|
a.style.left = l + 'px';
|
|
11486
|
-
|
|
11487
|
-
|
|
11530
|
+
_this86.$refs.track.style.width = l + g + 'px';
|
|
11531
|
+
_this86.x.modelValue = Math.floor(Math.floor((m - n) * l / (w - g)));
|
|
11488
11532
|
|
|
11489
|
-
|
|
11533
|
+
_this86.el().classList.add('z-drag');
|
|
11490
11534
|
}, function (e) {
|
|
11491
11535
|
a.dispatchEvent(new Event('drop'));
|
|
11492
11536
|
}, e);
|
|
11493
11537
|
},
|
|
11494
11538
|
mouseenter: function mouseenter(e) {
|
|
11495
|
-
var
|
|
11539
|
+
var _this87 = this;
|
|
11496
11540
|
|
|
11497
11541
|
if (this.dropper || !this.x.big || this.isSuccess || this.locked) return;
|
|
11498
11542
|
this.warn(false);
|
|
@@ -11510,13 +11554,13 @@ var script$1 = {
|
|
|
11510
11554
|
context: this,
|
|
11511
11555
|
snap: {
|
|
11512
11556
|
target: function target() {
|
|
11513
|
-
return
|
|
11557
|
+
return _this87.el('main');
|
|
11514
11558
|
},
|
|
11515
11559
|
position: 'v'
|
|
11516
11560
|
},
|
|
11517
11561
|
on: {
|
|
11518
11562
|
close: function close() {
|
|
11519
|
-
return
|
|
11563
|
+
return _this87.dropper = null;
|
|
11520
11564
|
}
|
|
11521
11565
|
}
|
|
11522
11566
|
});
|
|
@@ -11559,12 +11603,12 @@ var script$1 = {
|
|
|
11559
11603
|
},
|
|
11560
11604
|
computed: {
|
|
11561
11605
|
validHooks: function validHooks() {
|
|
11562
|
-
var
|
|
11606
|
+
var _this88 = this;
|
|
11563
11607
|
|
|
11564
11608
|
return {
|
|
11565
11609
|
valid: function valid(v) {
|
|
11566
|
-
if (!
|
|
11567
|
-
return
|
|
11610
|
+
if (!_this88.isSuccess) {
|
|
11611
|
+
return _this88.formErr('jigsaw_required');
|
|
11568
11612
|
}
|
|
11569
11613
|
}
|
|
11570
11614
|
};
|