ai.touchui-vue 1.38.0 → 1.40.0
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/lib/ai.touchui-vue.common.js +488 -312
- package/lib/date-picker.js +23 -16
- package/lib/filter.js +6 -4
- package/lib/float.js +39 -9
- package/lib/import.js +19 -11
- package/lib/index.js +1 -1
- package/lib/input.js +5 -8
- package/lib/progress.js +8 -2
- package/lib/select.js +210 -96
- package/lib/table.js +112 -96
- package/lib/theme/css/theme/B-Design.css +1 -1
- package/lib/theme/css/theme/aiplan.css +1 -1
- package/lib/theme/css/theme/aiplangd.css +1 -1
- package/lib/theme/css/theme/chbn.css +1 -1
- package/lib/theme/css/theme/default.css +1 -1
- package/lib/theme/css/theme/dt.css +1 -1
- package/lib/theme/css/theme/ecloud.css +1 -1
- package/lib/theme/css/theme/hongkong.css +1 -1
- package/lib/theme/css/theme/logistics.css +1 -1
- package/lib/theme/css/theme/narrow.css +1 -1
- package/lib/theme/css/theme/sdpf.css +1 -1
- package/lib/theme/css/theme/upc.css +1 -1
- package/lib/theme/css/theme/website.css +1 -1
- package/lib/theme/css/theme/workbench-gz.css +1 -1
- package/lib/theme/css/theme/zj.css +1 -1
- package/lib/utils/print.js +21 -7
- package/lib/utils/validate.js +4 -22
- package/package.json +1 -1
- package/packages/date-picker/src/.DS_Store +0 -0
- package/packages/date-picker/src/date-picker.vue +16 -10
- package/packages/filter/src/filter.vue +4 -2
- package/packages/float/src/main.vue +37 -7
- package/packages/import/src/import.vue +1 -1
- package/packages/input/src/input.vue +3 -6
- package/packages/progress/src/progress.vue +5 -0
- package/packages/select/src/select.vue +95 -19
- package/packages/table/src/table.vue +17 -5
- package/packages/theme/lib/css/theme/B-Design.css +1 -1
- package/packages/theme/lib/css/theme/aiplan.css +1 -1
- package/packages/theme/lib/css/theme/aiplangd.css +1 -1
- package/packages/theme/lib/css/theme/chbn.css +1 -1
- package/packages/theme/lib/css/theme/default.css +1 -1
- package/packages/theme/lib/css/theme/dt.css +1 -1
- package/packages/theme/lib/css/theme/ecloud.css +1 -1
- package/packages/theme/lib/css/theme/hongkong.css +1 -1
- package/packages/theme/lib/css/theme/logistics.css +1 -1
- package/packages/theme/lib/css/theme/narrow.css +1 -1
- package/packages/theme/lib/css/theme/sdpf.css +1 -1
- package/packages/theme/lib/css/theme/upc.css +1 -1
- package/packages/theme/lib/css/theme/website.css +1 -1
- package/packages/theme/lib/css/theme/workbench-gz.css +1 -1
- package/packages/theme/lib/css/theme/zj.css +1 -1
- package/packages/theme/src/less/element/pic.less +1 -0
- package/packages/theme/src/less/element/progress.less +1 -1
- package/packages/theme/src/less/element/select.less +8 -0
- package/src/index.js +1 -1
- package/src/utils/print.js +21 -7
- package/src/utils/validate.js +4 -22
|
@@ -7053,8 +7053,8 @@ exports.push([module.i, "\n//.to-rangeProgress{ transition: width 0.01s ease;\n}
|
|
|
7053
7053
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7054
7054
|
|
|
7055
7055
|
"use strict";
|
|
7056
|
-
/* harmony import */ var
|
|
7057
|
-
/* harmony import */ var
|
|
7056
|
+
/* harmony import */ var _node_modules_style_loader_dist_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_date_picker_vue_vue_type_style_index_0_id_051d024a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22);
|
|
7057
|
+
/* harmony import */ var _node_modules_style_loader_dist_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_date_picker_vue_vue_type_style_index_0_id_051d024a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_date_picker_vue_vue_type_style_index_0_id_051d024a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
7058
7058
|
/* unused harmony reexport * */
|
|
7059
7059
|
|
|
7060
7060
|
|
|
@@ -12216,8 +12216,8 @@ src_export.install = function (Vue) {
|
|
|
12216
12216
|
};
|
|
12217
12217
|
|
|
12218
12218
|
/* harmony default export */ var packages_export = (src_export);
|
|
12219
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/import/src/import.vue?vue&type=template&id=
|
|
12220
|
-
var
|
|
12219
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/import/src/import.vue?vue&type=template&id=d002b4ae
|
|
12220
|
+
var importvue_type_template_id_d002b4ae_render = function () {
|
|
12221
12221
|
var _vm = this
|
|
12222
12222
|
var _h = _vm.$createElement
|
|
12223
12223
|
var _c = _vm._self._c || _h
|
|
@@ -12257,16 +12257,24 @@ var importvue_type_template_id_48e27998_render = function () {
|
|
|
12257
12257
|
),
|
|
12258
12258
|
]
|
|
12259
12259
|
)
|
|
12260
|
-
: _c(
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
12260
|
+
: _c(
|
|
12261
|
+
"to-icon",
|
|
12262
|
+
_vm._b(
|
|
12263
|
+
{
|
|
12264
|
+
ref: "button",
|
|
12265
|
+
attrs: { link: "", value: "import", mode: "none" },
|
|
12266
|
+
on: {
|
|
12267
|
+
click: function ($event) {
|
|
12268
|
+
$event.stopPropagation()
|
|
12269
|
+
return _vm.$refs.float.toggle("button")
|
|
12270
|
+
},
|
|
12271
|
+
},
|
|
12267
12272
|
},
|
|
12268
|
-
|
|
12269
|
-
|
|
12273
|
+
"to-icon",
|
|
12274
|
+
_vm.$attrs,
|
|
12275
|
+
false
|
|
12276
|
+
)
|
|
12277
|
+
),
|
|
12270
12278
|
_c(
|
|
12271
12279
|
"to-float",
|
|
12272
12280
|
{
|
|
@@ -12418,11 +12426,11 @@ var importvue_type_template_id_48e27998_render = function () {
|
|
|
12418
12426
|
1
|
|
12419
12427
|
)
|
|
12420
12428
|
}
|
|
12421
|
-
var
|
|
12422
|
-
|
|
12429
|
+
var importvue_type_template_id_d002b4ae_staticRenderFns = []
|
|
12430
|
+
importvue_type_template_id_d002b4ae_render._withStripped = true
|
|
12423
12431
|
|
|
12424
12432
|
|
|
12425
|
-
// CONCATENATED MODULE: ./packages/import/src/import.vue?vue&type=template&id=
|
|
12433
|
+
// CONCATENATED MODULE: ./packages/import/src/import.vue?vue&type=template&id=d002b4ae
|
|
12426
12434
|
|
|
12427
12435
|
// EXTERNAL MODULE: external "ai.touchui-vue/lib/mixins/emitter"
|
|
12428
12436
|
var emitter_ = __webpack_require__(91);
|
|
@@ -12733,8 +12741,8 @@ var types_ = __webpack_require__(7);
|
|
|
12733
12741
|
|
|
12734
12742
|
var import_component = normalizeComponent(
|
|
12735
12743
|
src_importvue_type_script_lang_js,
|
|
12736
|
-
|
|
12737
|
-
|
|
12744
|
+
importvue_type_template_id_d002b4ae_render,
|
|
12745
|
+
importvue_type_template_id_d002b4ae_staticRenderFns,
|
|
12738
12746
|
false,
|
|
12739
12747
|
null,
|
|
12740
12748
|
null,
|
|
@@ -14240,8 +14248,8 @@ src_scroll.install = function (Vue) {
|
|
|
14240
14248
|
};
|
|
14241
14249
|
|
|
14242
14250
|
/* harmony default export */ var packages_scroll = (src_scroll);
|
|
14243
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=template&id=
|
|
14244
|
-
var
|
|
14251
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=template&id=6ef9e39d
|
|
14252
|
+
var progressvue_type_template_id_6ef9e39d_render = function () {
|
|
14245
14253
|
var _vm = this
|
|
14246
14254
|
var _h = _vm.$createElement
|
|
14247
14255
|
var _c = _vm._self._c || _h
|
|
@@ -14272,6 +14280,7 @@ var progressvue_type_template_id_50c0a9fa_render = function () {
|
|
|
14272
14280
|
}),
|
|
14273
14281
|
_c("circle", {
|
|
14274
14282
|
staticClass: "to-progressBar",
|
|
14283
|
+
class: _vm.animation ? "animation" : "",
|
|
14275
14284
|
attrs: {
|
|
14276
14285
|
r: _vm.radius,
|
|
14277
14286
|
cy: _vm.offsetWidth / 2,
|
|
@@ -14365,11 +14374,11 @@ var progressvue_type_template_id_50c0a9fa_render = function () {
|
|
|
14365
14374
|
2
|
|
14366
14375
|
)
|
|
14367
14376
|
}
|
|
14368
|
-
var
|
|
14369
|
-
|
|
14377
|
+
var progressvue_type_template_id_6ef9e39d_staticRenderFns = []
|
|
14378
|
+
progressvue_type_template_id_6ef9e39d_render._withStripped = true
|
|
14370
14379
|
|
|
14371
14380
|
|
|
14372
|
-
// CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=template&id=
|
|
14381
|
+
// CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=template&id=6ef9e39d
|
|
14373
14382
|
|
|
14374
14383
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=script&lang=js
|
|
14375
14384
|
//
|
|
@@ -14410,6 +14419,7 @@ progressvue_type_template_id_50c0a9fa_render._withStripped = true
|
|
|
14410
14419
|
//
|
|
14411
14420
|
//
|
|
14412
14421
|
//
|
|
14422
|
+
//
|
|
14413
14423
|
|
|
14414
14424
|
/* harmony default export */ var progressvue_type_script_lang_js = ({
|
|
14415
14425
|
name: 'ToProgress',
|
|
@@ -14492,6 +14502,10 @@ progressvue_type_template_id_50c0a9fa_render._withStripped = true
|
|
|
14492
14502
|
barSize: {
|
|
14493
14503
|
type: [Number, String],
|
|
14494
14504
|
default: 1
|
|
14505
|
+
},
|
|
14506
|
+
animation: {
|
|
14507
|
+
type: Boolean,
|
|
14508
|
+
default: true
|
|
14495
14509
|
}
|
|
14496
14510
|
},
|
|
14497
14511
|
data: function data() {
|
|
@@ -14697,8 +14711,8 @@ progressvue_type_template_id_50c0a9fa_render._withStripped = true
|
|
|
14697
14711
|
|
|
14698
14712
|
var progress_component = normalizeComponent(
|
|
14699
14713
|
src_progressvue_type_script_lang_js,
|
|
14700
|
-
|
|
14701
|
-
|
|
14714
|
+
progressvue_type_template_id_6ef9e39d_render,
|
|
14715
|
+
progressvue_type_template_id_6ef9e39d_staticRenderFns,
|
|
14702
14716
|
false,
|
|
14703
14717
|
null,
|
|
14704
14718
|
null,
|
|
@@ -14716,8 +14730,8 @@ progress.install = function (Vue) {
|
|
|
14716
14730
|
};
|
|
14717
14731
|
|
|
14718
14732
|
/* harmony default export */ var packages_progress = (progress);
|
|
14719
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select.vue?vue&type=template&id=
|
|
14720
|
-
var
|
|
14733
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select.vue?vue&type=template&id=b54eb61c
|
|
14734
|
+
var selectvue_type_template_id_b54eb61c_render = function () {
|
|
14721
14735
|
var _vm = this
|
|
14722
14736
|
var _h = _vm.$createElement
|
|
14723
14737
|
var _c = _vm._self._c || _h
|
|
@@ -14799,6 +14813,7 @@ var selectvue_type_template_id_69709cdc_render = function () {
|
|
|
14799
14813
|
_c(
|
|
14800
14814
|
"span",
|
|
14801
14815
|
{
|
|
14816
|
+
ref: "selectContentRef",
|
|
14802
14817
|
staticClass: "to-selectContent",
|
|
14803
14818
|
class: _vm.setContentClass,
|
|
14804
14819
|
on: { click: _vm.click },
|
|
@@ -14983,7 +14998,7 @@ var selectvue_type_template_id_69709cdc_render = function () {
|
|
|
14983
14998
|
),
|
|
14984
14999
|
]
|
|
14985
15000
|
: [
|
|
14986
|
-
_vm.
|
|
15001
|
+
_vm.conTags.filter(function (item) {
|
|
14987
15002
|
return !item.hide
|
|
14988
15003
|
}).length === 0 &&
|
|
14989
15004
|
!_vm.inputable &&
|
|
@@ -15014,16 +15029,20 @@ var selectvue_type_template_id_69709cdc_render = function () {
|
|
|
15014
15029
|
"span",
|
|
15015
15030
|
{ staticClass: "to-selectTag" },
|
|
15016
15031
|
[
|
|
15017
|
-
_vm.
|
|
15018
|
-
|
|
15032
|
+
(_vm.conTags.length > 0 &&
|
|
15033
|
+
!(_vm.isAll && _vm.useAllText)) ||
|
|
15034
|
+
(_vm.showCount && _vm.count > 0)
|
|
15019
15035
|
? [
|
|
15020
|
-
_vm._l(_vm.
|
|
15036
|
+
_vm._l(_vm.conTags, function (item, index) {
|
|
15021
15037
|
return [
|
|
15022
15038
|
!item.hide
|
|
15023
15039
|
? _c(
|
|
15024
15040
|
"to-tag",
|
|
15025
15041
|
{
|
|
15026
15042
|
key: index,
|
|
15043
|
+
class: {
|
|
15044
|
+
"show-count": _vm.isNeedMin,
|
|
15045
|
+
},
|
|
15027
15046
|
attrs: {
|
|
15028
15047
|
color: "fg",
|
|
15029
15048
|
mode: "plain",
|
|
@@ -15040,10 +15059,20 @@ var selectvue_type_template_id_69709cdc_render = function () {
|
|
|
15040
15059
|
: _vm._e(),
|
|
15041
15060
|
]
|
|
15042
15061
|
}),
|
|
15062
|
+
_vm.showCount && _vm.count > 0
|
|
15063
|
+
? _c(
|
|
15064
|
+
"to-tag",
|
|
15065
|
+
{
|
|
15066
|
+
staticClass: "tag-count",
|
|
15067
|
+
attrs: { color: "fg", mode: "plain" },
|
|
15068
|
+
},
|
|
15069
|
+
[_vm._v("+" + _vm._s(_vm.count))]
|
|
15070
|
+
)
|
|
15071
|
+
: _vm._e(),
|
|
15043
15072
|
]
|
|
15044
15073
|
: _vm._e(),
|
|
15045
15074
|
!_vm.$phone ||
|
|
15046
|
-
(_vm.$phone && _vm.
|
|
15075
|
+
(_vm.$phone && _vm.conTags.length === 0)
|
|
15047
15076
|
? [
|
|
15048
15077
|
_vm.inputable && !_vm.filterable
|
|
15049
15078
|
? _c("to-input", {
|
|
@@ -15054,7 +15083,7 @@ var selectvue_type_template_id_69709cdc_render = function () {
|
|
|
15054
15083
|
"prevent-focus": "",
|
|
15055
15084
|
mode: "none",
|
|
15056
15085
|
placeholder:
|
|
15057
|
-
_vm.
|
|
15086
|
+
_vm.conTags.filter(function (item) {
|
|
15058
15087
|
return !item.hide
|
|
15059
15088
|
}).length > 0
|
|
15060
15089
|
? ""
|
|
@@ -15084,7 +15113,7 @@ var selectvue_type_template_id_69709cdc_render = function () {
|
|
|
15084
15113
|
"prevent-focus": "",
|
|
15085
15114
|
mode: "none",
|
|
15086
15115
|
placeholder:
|
|
15087
|
-
_vm.
|
|
15116
|
+
_vm.conTags.filter(function (item) {
|
|
15088
15117
|
return !item.hide
|
|
15089
15118
|
}).length > 0
|
|
15090
15119
|
? ""
|
|
@@ -15113,7 +15142,7 @@ var selectvue_type_template_id_69709cdc_render = function () {
|
|
|
15113
15142
|
"prevent-focus": "",
|
|
15114
15143
|
mode: "none",
|
|
15115
15144
|
placeholder:
|
|
15116
|
-
_vm.
|
|
15145
|
+
_vm.conTags.filter(function (item) {
|
|
15117
15146
|
return !item.hide
|
|
15118
15147
|
}).length > 0
|
|
15119
15148
|
? ""
|
|
@@ -15224,6 +15253,7 @@ var selectvue_type_template_id_69709cdc_render = function () {
|
|
|
15224
15253
|
slide: _vm.layerSlide,
|
|
15225
15254
|
width: _vm.iOptionWidth,
|
|
15226
15255
|
position: _vm.layerPosition,
|
|
15256
|
+
"max-height": _vm.maxHeight,
|
|
15227
15257
|
},
|
|
15228
15258
|
on: { closed: _vm.layerClose, mousedown: _vm.layerMousedown },
|
|
15229
15259
|
},
|
|
@@ -16366,11 +16396,11 @@ var selectvue_type_template_id_69709cdc_render = function () {
|
|
|
16366
16396
|
1
|
|
16367
16397
|
)
|
|
16368
16398
|
}
|
|
16369
|
-
var
|
|
16370
|
-
|
|
16399
|
+
var selectvue_type_template_id_b54eb61c_staticRenderFns = []
|
|
16400
|
+
selectvue_type_template_id_b54eb61c_render._withStripped = true
|
|
16371
16401
|
|
|
16372
16402
|
|
|
16373
|
-
// CONCATENATED MODULE: ./packages/select/src/select.vue?vue&type=template&id=
|
|
16403
|
+
// CONCATENATED MODULE: ./packages/select/src/select.vue?vue&type=template&id=b54eb61c
|
|
16374
16404
|
|
|
16375
16405
|
// EXTERNAL MODULE: external "ai.touchui-vue/lib/utils/ajax"
|
|
16376
16406
|
var ajax_ = __webpack_require__(16);
|
|
@@ -16638,6 +16668,7 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
16638
16668
|
//
|
|
16639
16669
|
//
|
|
16640
16670
|
//
|
|
16671
|
+
//
|
|
16641
16672
|
|
|
16642
16673
|
|
|
16643
16674
|
|
|
@@ -16903,6 +16934,14 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
16903
16934
|
valueType: {
|
|
16904
16935
|
type: String,
|
|
16905
16936
|
default: ''
|
|
16937
|
+
},
|
|
16938
|
+
showCount: {
|
|
16939
|
+
type: Boolean,
|
|
16940
|
+
default: false
|
|
16941
|
+
},
|
|
16942
|
+
maxHeight: {
|
|
16943
|
+
type: [Number, String],
|
|
16944
|
+
default: ''
|
|
16906
16945
|
}
|
|
16907
16946
|
},
|
|
16908
16947
|
data: function data() {
|
|
@@ -16929,7 +16968,10 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
16929
16968
|
layerPosition: 'auto',
|
|
16930
16969
|
disabled: this.readonly,
|
|
16931
16970
|
iApiHeaders: {},
|
|
16932
|
-
inputing: false
|
|
16971
|
+
inputing: false,
|
|
16972
|
+
count: 0,
|
|
16973
|
+
conTags: [],
|
|
16974
|
+
isNeedMin: false
|
|
16933
16975
|
};
|
|
16934
16976
|
},
|
|
16935
16977
|
|
|
@@ -17082,6 +17124,9 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17082
17124
|
} else {
|
|
17083
17125
|
arr.push('to-box-mode-toast');
|
|
17084
17126
|
}
|
|
17127
|
+
// if (this.showCount) {
|
|
17128
|
+
// arr.push('to-select-showCount')
|
|
17129
|
+
// }
|
|
17085
17130
|
return arr;
|
|
17086
17131
|
},
|
|
17087
17132
|
validateRequired: function validateRequired() {
|
|
@@ -17097,11 +17142,7 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17097
17142
|
if (this.desc) {
|
|
17098
17143
|
return this.desc;
|
|
17099
17144
|
} else if (this.ToFormItem && this.ToFormItem.label) {
|
|
17100
|
-
|
|
17101
|
-
return this.ToFormItem.label + '-label';
|
|
17102
|
-
} else {
|
|
17103
|
-
return this.ToFormItem.label;
|
|
17104
|
-
}
|
|
17145
|
+
return this.ToFormItem.label;
|
|
17105
17146
|
} else {
|
|
17106
17147
|
return '';
|
|
17107
17148
|
}
|
|
@@ -17143,8 +17184,10 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17143
17184
|
handler: function handler(val) {
|
|
17144
17185
|
if (val) {
|
|
17145
17186
|
this.selected = [];
|
|
17187
|
+
this.conTags = [];
|
|
17146
17188
|
} else {
|
|
17147
17189
|
this.selected = {};
|
|
17190
|
+
this.conTags = {};
|
|
17148
17191
|
}
|
|
17149
17192
|
},
|
|
17150
17193
|
|
|
@@ -17202,7 +17245,9 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17202
17245
|
} else {
|
|
17203
17246
|
this.$emit('change', val, this.selected);
|
|
17204
17247
|
}
|
|
17205
|
-
|
|
17248
|
+
if (this.showCount && this.multiple) {
|
|
17249
|
+
this.getAllTag();
|
|
17250
|
+
}
|
|
17206
17251
|
var detail = {
|
|
17207
17252
|
name: 'ToSelect',
|
|
17208
17253
|
value: val,
|
|
@@ -17257,6 +17302,13 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17257
17302
|
}
|
|
17258
17303
|
},
|
|
17259
17304
|
created: function created() {
|
|
17305
|
+
var _this7 = this;
|
|
17306
|
+
|
|
17307
|
+
this.$nextTick(function () {
|
|
17308
|
+
if (_this7.showCount && _this7.multiple) {
|
|
17309
|
+
_this7.getAllTag();
|
|
17310
|
+
}
|
|
17311
|
+
});
|
|
17260
17312
|
this.iLabelText = this.labelText;
|
|
17261
17313
|
this.iValueText = this.valueText;
|
|
17262
17314
|
this.iResPath = this.resPath;
|
|
@@ -17282,6 +17334,79 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17282
17334
|
},
|
|
17283
17335
|
|
|
17284
17336
|
methods: {
|
|
17337
|
+
calculateTagLayout: function calculateTagLayout() {
|
|
17338
|
+
var _this8 = this;
|
|
17339
|
+
|
|
17340
|
+
var isRecalculate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
17341
|
+
|
|
17342
|
+
this.$nextTick(function () {
|
|
17343
|
+
var tags = _this8.$el.querySelectorAll('.to-selectTag .to-tag');
|
|
17344
|
+
var selectContent = _this8.$refs.selectContentRef;
|
|
17345
|
+
var gap = selectContent.scrollWidth - selectContent.clientWidth;
|
|
17346
|
+
if (gap > 0) {
|
|
17347
|
+
_this8.isNeedMin = true;
|
|
17348
|
+
return false;
|
|
17349
|
+
}
|
|
17350
|
+
_this8.isNeedMin = false;
|
|
17351
|
+
var firstTagTop = 0;
|
|
17352
|
+
if (tags.length > 1) {
|
|
17353
|
+
for (var i = 0; i < tags.length; i++) {
|
|
17354
|
+
if (i === 0) {
|
|
17355
|
+
firstTagTop = tags[i].offsetTop;
|
|
17356
|
+
} else {
|
|
17357
|
+
if (tags[i].offsetTop !== firstTagTop) {
|
|
17358
|
+
if (!tags[i].className.includes('tag-count')) {
|
|
17359
|
+
var _ret = function () {
|
|
17360
|
+
var index = isRecalculate && _this8.count > 0 ? i - 1 : i;
|
|
17361
|
+
_this8.conTags = _this8.selected.filter(function (item, idx) {
|
|
17362
|
+
return idx < index;
|
|
17363
|
+
});
|
|
17364
|
+
var arrs = _this8.selected.filter(function (item, idx) {
|
|
17365
|
+
return idx >= index;
|
|
17366
|
+
});
|
|
17367
|
+
_this8.count = arrs.length;
|
|
17368
|
+
if (!isRecalculate) {
|
|
17369
|
+
_this8.layoutCount();
|
|
17370
|
+
}
|
|
17371
|
+
return 'break';
|
|
17372
|
+
}();
|
|
17373
|
+
|
|
17374
|
+
if (_ret === 'break') break;
|
|
17375
|
+
} else {
|
|
17376
|
+
if (i >= 2) {
|
|
17377
|
+
var _ret2 = function () {
|
|
17378
|
+
var index = isRecalculate && _this8.count > 0 ? i - 1 : i;
|
|
17379
|
+
_this8.conTags = _this8.selected.filter(function (item, idx) {
|
|
17380
|
+
return idx < index;
|
|
17381
|
+
});
|
|
17382
|
+
var arrs = _this8.selected.filter(function (item, idx) {
|
|
17383
|
+
return idx >= index;
|
|
17384
|
+
});
|
|
17385
|
+
_this8.count = arrs.length;
|
|
17386
|
+
if (!isRecalculate) {
|
|
17387
|
+
_this8.layoutCount();
|
|
17388
|
+
}
|
|
17389
|
+
return 'break';
|
|
17390
|
+
}();
|
|
17391
|
+
|
|
17392
|
+
if (_ret2 === 'break') break;
|
|
17393
|
+
} else {
|
|
17394
|
+
_this8.isNeedMin = true;
|
|
17395
|
+
}
|
|
17396
|
+
}
|
|
17397
|
+
}
|
|
17398
|
+
}
|
|
17399
|
+
}
|
|
17400
|
+
}
|
|
17401
|
+
});
|
|
17402
|
+
},
|
|
17403
|
+
getAllTag: function getAllTag() {
|
|
17404
|
+
this.count = 0;
|
|
17405
|
+
this.calculateTagLayout(false);
|
|
17406
|
+
},
|
|
17407
|
+
layoutCount: function layoutCount() {
|
|
17408
|
+
this.calculateTagLayout(true);
|
|
17409
|
+
},
|
|
17285
17410
|
valueChange: function valueChange(val) {
|
|
17286
17411
|
if (!this.multiple) {
|
|
17287
17412
|
if (this.inputable) {
|
|
@@ -17302,19 +17427,19 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17302
17427
|
}
|
|
17303
17428
|
},
|
|
17304
17429
|
setSeleted: function setSeleted(val) {
|
|
17305
|
-
var
|
|
17430
|
+
var _this9 = this;
|
|
17306
17431
|
|
|
17307
17432
|
var selected = JSON.parse(JSON.stringify(this.selected));
|
|
17308
17433
|
if (!this.multiple) {
|
|
17309
17434
|
if (this.options.findIndex(function (option) {
|
|
17310
|
-
return option[
|
|
17435
|
+
return option[_this9.iValueText] === val;
|
|
17311
17436
|
}) === -1) {
|
|
17312
17437
|
var _selected;
|
|
17313
17438
|
|
|
17314
17439
|
selected = (_selected = {}, _selected[this.iLabelText] = val, _selected[this.iValueText] = val, _selected);
|
|
17315
17440
|
} else {
|
|
17316
17441
|
selected = this.options.find(function (option) {
|
|
17317
|
-
return option[
|
|
17442
|
+
return option[_this9.iValueText] === val;
|
|
17318
17443
|
});
|
|
17319
17444
|
}
|
|
17320
17445
|
} else {
|
|
@@ -17325,15 +17450,15 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17325
17450
|
var selectedArr = [];
|
|
17326
17451
|
arr.map(function (item) {
|
|
17327
17452
|
if (item && item.trim()) {
|
|
17328
|
-
if (
|
|
17329
|
-
return String(option[
|
|
17453
|
+
if (_this9.options.findIndex(function (option) {
|
|
17454
|
+
return String(option[_this9.iValueText]) === String(item);
|
|
17330
17455
|
}) === -1) {
|
|
17331
17456
|
var _selectedArr$push;
|
|
17332
17457
|
|
|
17333
|
-
selectedArr.push((_selectedArr$push = {}, _selectedArr$push[
|
|
17458
|
+
selectedArr.push((_selectedArr$push = {}, _selectedArr$push[_this9.iLabelText] = item, _selectedArr$push[_this9.iValueText] = item, _selectedArr$push.hide = !_this9.inputable, _selectedArr$push));
|
|
17334
17459
|
} else {
|
|
17335
|
-
|
|
17336
|
-
if (String(option[
|
|
17460
|
+
_this9.options.map(function (option) {
|
|
17461
|
+
if (String(option[_this9.iValueText]) === String(item)) {
|
|
17337
17462
|
selectedArr.push(option);
|
|
17338
17463
|
}
|
|
17339
17464
|
});
|
|
@@ -17347,19 +17472,22 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17347
17472
|
var fn = this.beforeChange(selected);
|
|
17348
17473
|
if (fn && fn.then) {
|
|
17349
17474
|
fn.then(function (flag) {
|
|
17350
|
-
|
|
17475
|
+
_this9.selected = selected;
|
|
17476
|
+
_this9.conTags = selected;
|
|
17351
17477
|
}).catch(function (e) {});
|
|
17352
17478
|
} else {
|
|
17353
17479
|
if (fn) {
|
|
17354
17480
|
this.selected = selected;
|
|
17481
|
+
this.conTags = selected;
|
|
17355
17482
|
}
|
|
17356
17483
|
}
|
|
17357
17484
|
} else {
|
|
17358
17485
|
this.selected = selected;
|
|
17486
|
+
this.conTags = selected;
|
|
17359
17487
|
}
|
|
17360
17488
|
},
|
|
17361
17489
|
enter: function enter() {
|
|
17362
|
-
var
|
|
17490
|
+
var _this10 = this;
|
|
17363
17491
|
|
|
17364
17492
|
if (!(this.multiple && this.inputable)) {
|
|
17365
17493
|
this.toggleLayer();
|
|
@@ -17369,9 +17497,9 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17369
17497
|
// 判断重复项
|
|
17370
17498
|
var value = this.filterable ? this.multipleFilterValue : this.multipleInputValue;
|
|
17371
17499
|
if (this.selected.find(function (item) {
|
|
17372
|
-
return item[
|
|
17500
|
+
return item[_this10.iLabelText] === value;
|
|
17373
17501
|
}) || this.selected.find(function (item) {
|
|
17374
|
-
return item[
|
|
17502
|
+
return item[_this10.iValueText] === value;
|
|
17375
17503
|
})) {
|
|
17376
17504
|
this.$tip.error(this.t('to.select.tip.error.repetition'));
|
|
17377
17505
|
return;
|
|
@@ -17385,7 +17513,7 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17385
17513
|
var fn = this.beforeChange(newOption);
|
|
17386
17514
|
if (fn && fn.then) {
|
|
17387
17515
|
fn.then(function (flag) {
|
|
17388
|
-
|
|
17516
|
+
_this10.selected.push(newOption);
|
|
17389
17517
|
}).catch(function (e) {});
|
|
17390
17518
|
} else {
|
|
17391
17519
|
if (fn) {
|
|
@@ -17403,11 +17531,11 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17403
17531
|
if (this.$phone) {
|
|
17404
17532
|
if (this.filterable) {
|
|
17405
17533
|
setTimeout(function () {
|
|
17406
|
-
|
|
17534
|
+
_this10.$refs.popupFilter.focus();
|
|
17407
17535
|
}, 500);
|
|
17408
17536
|
} else {
|
|
17409
17537
|
setTimeout(function () {
|
|
17410
|
-
|
|
17538
|
+
_this10.$refs.popupInput.focus();
|
|
17411
17539
|
}, 500);
|
|
17412
17540
|
}
|
|
17413
17541
|
}
|
|
@@ -17433,17 +17561,17 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17433
17561
|
}
|
|
17434
17562
|
},
|
|
17435
17563
|
getLabel: function getLabel(val) {
|
|
17436
|
-
var
|
|
17564
|
+
var _this11 = this;
|
|
17437
17565
|
|
|
17438
17566
|
var obj = this.options.find(function (item) {
|
|
17439
|
-
return item[
|
|
17567
|
+
return item[_this11.iValueText] === val;
|
|
17440
17568
|
});
|
|
17441
17569
|
if (obj && obj[this.iLabelText]) {
|
|
17442
17570
|
return obj[this.iLabelText];
|
|
17443
17571
|
}
|
|
17444
17572
|
},
|
|
17445
17573
|
setOptions: function setOptions() {
|
|
17446
|
-
var
|
|
17574
|
+
var _this12 = this;
|
|
17447
17575
|
|
|
17448
17576
|
// 同步选项
|
|
17449
17577
|
if (this.data) {
|
|
@@ -17476,7 +17604,7 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17476
17604
|
// 如果设置了方法,则替换为方法
|
|
17477
17605
|
if (typeof this.setLabelFn === 'function') {
|
|
17478
17606
|
this.options.forEach(function (item) {
|
|
17479
|
-
item.label =
|
|
17607
|
+
item.label = _this12.setLabelFn(item);
|
|
17480
17608
|
});
|
|
17481
17609
|
}
|
|
17482
17610
|
}
|
|
@@ -17551,37 +17679,37 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17551
17679
|
// 直接返回一个 select 所需要的 data 对象时,不需要任何解析
|
|
17552
17680
|
// 如:[{name:'张三', id:0},{name:'李四', id:1}]
|
|
17553
17681
|
if (Array.isArray(res)) {
|
|
17554
|
-
|
|
17555
|
-
sessionStorage.setItem('static.' +
|
|
17682
|
+
_this12.options = res;
|
|
17683
|
+
sessionStorage.setItem('static.' + _this12.api, JSON.stringify(res));
|
|
17556
17684
|
|
|
17557
17685
|
// 设置 selected
|
|
17558
|
-
|
|
17559
|
-
|
|
17560
|
-
|
|
17561
|
-
} else if (res.code ===
|
|
17686
|
+
_this12.setSeleted(_this12.value);
|
|
17687
|
+
_this12.setPlaceholder();
|
|
17688
|
+
_this12.$emit('option-loaded', _this12.options);
|
|
17689
|
+
} else if (res.code === _this12.iSuccessCode) {
|
|
17562
17690
|
// 按照 json 格式返回,需要根据配置路径进行解析
|
|
17563
17691
|
// 如:{ code:'0', data:[{name:'张三', id:0},{name:'李四', id:1}]}
|
|
17564
17692
|
var data = [];
|
|
17565
|
-
if (
|
|
17566
|
-
var resPath =
|
|
17693
|
+
if (_this12.iResPath) {
|
|
17694
|
+
var resPath = _this12.iResPath.split('/');
|
|
17567
17695
|
resPath.forEach(function (el) {
|
|
17568
17696
|
data = res[el];
|
|
17569
17697
|
});
|
|
17570
17698
|
}
|
|
17571
|
-
|
|
17572
|
-
sessionStorage.setItem('static.' +
|
|
17699
|
+
_this12.options = data;
|
|
17700
|
+
sessionStorage.setItem('static.' + _this12.api, JSON.stringify(data));
|
|
17573
17701
|
|
|
17574
17702
|
// 设置 selected
|
|
17575
|
-
|
|
17576
|
-
|
|
17577
|
-
|
|
17703
|
+
_this12.setSeleted(_this12.value);
|
|
17704
|
+
_this12.setPlaceholder();
|
|
17705
|
+
_this12.$emit('option-loaded', _this12.options);
|
|
17578
17706
|
} else {
|
|
17579
|
-
|
|
17580
|
-
|
|
17707
|
+
_this12.options = [];
|
|
17708
|
+
_this12.t('to.select.tip.error.res', 'select api(' + _this12.api + ')');
|
|
17581
17709
|
}
|
|
17582
17710
|
},
|
|
17583
17711
|
onError: function onError(res) {
|
|
17584
|
-
|
|
17712
|
+
_this12.$tip.danger(_this12.t('to.select.tip.error.api', 'select api(' + _this12.api + ') '));
|
|
17585
17713
|
}
|
|
17586
17714
|
};
|
|
17587
17715
|
var req = this.httpRequest(options);
|
|
@@ -17610,23 +17738,23 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17610
17738
|
}
|
|
17611
17739
|
},
|
|
17612
17740
|
selectAll: function selectAll() {
|
|
17613
|
-
var
|
|
17741
|
+
var _this13 = this;
|
|
17614
17742
|
|
|
17615
17743
|
var arr = [];
|
|
17616
17744
|
this.options.map(function (item) {
|
|
17617
17745
|
if (!item.disabled) {
|
|
17618
|
-
arr.push(item[
|
|
17746
|
+
arr.push(item[_this13.iValueText]);
|
|
17619
17747
|
}
|
|
17620
17748
|
});
|
|
17621
17749
|
this.iValue = arr.toString();
|
|
17622
17750
|
},
|
|
17623
17751
|
Deselect: function Deselect() {
|
|
17624
|
-
var
|
|
17752
|
+
var _this14 = this;
|
|
17625
17753
|
|
|
17626
17754
|
var arr = [];
|
|
17627
17755
|
this.options.map(function (item) {
|
|
17628
|
-
if (!item.disabled && !
|
|
17629
|
-
arr.push(item[
|
|
17756
|
+
if (!item.disabled && !_this14.iValue.split(',').includes(item[_this14.iValueText])) {
|
|
17757
|
+
arr.push(item[_this14.iValueText]);
|
|
17630
17758
|
}
|
|
17631
17759
|
});
|
|
17632
17760
|
this.iValue = arr.toString();
|
|
@@ -17635,7 +17763,7 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17635
17763
|
this.setValue('');
|
|
17636
17764
|
},
|
|
17637
17765
|
itemChange: function itemChange(item) {
|
|
17638
|
-
var
|
|
17766
|
+
var _this15 = this;
|
|
17639
17767
|
|
|
17640
17768
|
if (item.disabled) {
|
|
17641
17769
|
return;
|
|
@@ -17643,38 +17771,38 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17643
17771
|
this.setSeleted(item[this.iValueText]);
|
|
17644
17772
|
// this.selected = item
|
|
17645
17773
|
this.$nextTick(function () {
|
|
17646
|
-
|
|
17647
|
-
|
|
17774
|
+
_this15.$emit('selected', item);
|
|
17775
|
+
_this15.closeLayer();
|
|
17648
17776
|
});
|
|
17649
17777
|
},
|
|
17650
17778
|
adjustLayer: function adjustLayer() {
|
|
17651
|
-
var
|
|
17779
|
+
var _this16 = this;
|
|
17652
17780
|
|
|
17653
17781
|
if (this.optionDisplay !== 'none' && this.$refs.layer.show) {
|
|
17654
|
-
|
|
17655
|
-
|
|
17656
|
-
});
|
|
17782
|
+
setTimeout(function () {
|
|
17783
|
+
_this16.$refs.layer.set(_this16.$refs.link);
|
|
17784
|
+
}, 10);
|
|
17657
17785
|
}
|
|
17658
17786
|
},
|
|
17659
17787
|
openLayer: function openLayer() {
|
|
17660
|
-
var
|
|
17788
|
+
var _this17 = this;
|
|
17661
17789
|
|
|
17662
17790
|
if (!this.disabled && this.optionDisplay !== 'none') {
|
|
17663
17791
|
this.$refs.layer.open('link');
|
|
17664
17792
|
if (this.filterable && this.$phone) {
|
|
17665
17793
|
setTimeout(function () {
|
|
17666
|
-
if (
|
|
17667
|
-
|
|
17794
|
+
if (_this17.$refs.popupFilter) {
|
|
17795
|
+
_this17.$refs.popupFilter.focus();
|
|
17668
17796
|
}
|
|
17669
|
-
|
|
17670
|
-
|
|
17797
|
+
_this17.$nextTick(function () {
|
|
17798
|
+
_this17.options = _this17.s_options.concat(_this17.anotherOptions);
|
|
17671
17799
|
});
|
|
17672
17800
|
}, 500);
|
|
17673
17801
|
}
|
|
17674
17802
|
if (this.inputable && this.$phone) {
|
|
17675
17803
|
setTimeout(function () {
|
|
17676
|
-
if (
|
|
17677
|
-
|
|
17804
|
+
if (_this17.$refs.popupInput) {
|
|
17805
|
+
_this17.$refs.popupInput.focus();
|
|
17678
17806
|
}
|
|
17679
17807
|
}, 500);
|
|
17680
17808
|
}
|
|
@@ -17731,12 +17859,12 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17731
17859
|
}
|
|
17732
17860
|
},
|
|
17733
17861
|
layerMousedown: function layerMousedown() {
|
|
17734
|
-
var
|
|
17862
|
+
var _this18 = this;
|
|
17735
17863
|
|
|
17736
17864
|
this.blurByLayer = true;
|
|
17737
17865
|
var timer = null;
|
|
17738
17866
|
timer = setTimeout(function () {
|
|
17739
|
-
|
|
17867
|
+
_this18.blurByLayer = false;
|
|
17740
17868
|
clearTimeout(timer);
|
|
17741
17869
|
timer = null;
|
|
17742
17870
|
}, 200);
|
|
@@ -17764,16 +17892,16 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17764
17892
|
}
|
|
17765
17893
|
},
|
|
17766
17894
|
inputInput: function inputInput(e) {
|
|
17767
|
-
var
|
|
17895
|
+
var _this19 = this;
|
|
17768
17896
|
|
|
17769
17897
|
if (e && e.keyCode === 13) {
|
|
17770
17898
|
this.$emit('inputEnter');
|
|
17771
17899
|
}
|
|
17772
17900
|
this.$nextTick(function () {
|
|
17773
|
-
if (
|
|
17774
|
-
|
|
17901
|
+
if (_this19.value === '') {
|
|
17902
|
+
_this19.openLayer();
|
|
17775
17903
|
} else {
|
|
17776
|
-
|
|
17904
|
+
_this19.closeLayer();
|
|
17777
17905
|
}
|
|
17778
17906
|
});
|
|
17779
17907
|
},
|
|
@@ -17788,15 +17916,15 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17788
17916
|
this.openLayer();
|
|
17789
17917
|
},
|
|
17790
17918
|
filterInput: function filterInput(e) {
|
|
17791
|
-
var
|
|
17919
|
+
var _this20 = this;
|
|
17792
17920
|
|
|
17793
17921
|
if (e && e.keyCode === 13) {
|
|
17794
17922
|
this.$emit('inputEnter');
|
|
17795
17923
|
}
|
|
17796
17924
|
this.$nextTick(function () {
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
17925
|
+
_this20.inputing = true;
|
|
17926
|
+
_this20.adjustLayer();
|
|
17927
|
+
_this20.openLayer();
|
|
17800
17928
|
});
|
|
17801
17929
|
},
|
|
17802
17930
|
filterClear: function filterClear() {
|
|
@@ -17815,10 +17943,10 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17815
17943
|
}
|
|
17816
17944
|
},
|
|
17817
17945
|
multipleItemChange: function multipleItemChange(value, item) {
|
|
17818
|
-
var
|
|
17946
|
+
var _this21 = this;
|
|
17819
17947
|
|
|
17820
17948
|
var val = this.selected.map(function (option) {
|
|
17821
|
-
return option[
|
|
17949
|
+
return option[_this21.iValueText];
|
|
17822
17950
|
});
|
|
17823
17951
|
if (value) {
|
|
17824
17952
|
val.push(item[this.iValueText]);
|
|
@@ -17830,11 +17958,11 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17830
17958
|
if (this.inputable && !this.filterable) {
|
|
17831
17959
|
if (this.$phone) {
|
|
17832
17960
|
setTimeout(function () {
|
|
17833
|
-
|
|
17961
|
+
_this21.$refs.popupInput.focus();
|
|
17834
17962
|
}, 500);
|
|
17835
17963
|
} else {
|
|
17836
17964
|
setTimeout(function () {
|
|
17837
|
-
|
|
17965
|
+
_this21.$refs.input.focus();
|
|
17838
17966
|
}, 500);
|
|
17839
17967
|
}
|
|
17840
17968
|
this.multipleInputValue = '';
|
|
@@ -17842,27 +17970,27 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17842
17970
|
if (this.filterable) {
|
|
17843
17971
|
if (this.$phone) {
|
|
17844
17972
|
setTimeout(function () {
|
|
17845
|
-
|
|
17973
|
+
_this21.$refs.popupFilter.focus();
|
|
17846
17974
|
}, 500);
|
|
17847
17975
|
} else {
|
|
17848
17976
|
setTimeout(function () {
|
|
17849
|
-
|
|
17977
|
+
_this21.$refs.filter.focus();
|
|
17850
17978
|
}, 500);
|
|
17851
17979
|
}
|
|
17852
17980
|
this.multipleFilterValue = '';
|
|
17853
17981
|
}
|
|
17854
17982
|
if (this.setDataFn) {
|
|
17855
17983
|
setTimeout(function () {
|
|
17856
|
-
|
|
17984
|
+
_this21.$refs.filter.focus();
|
|
17857
17985
|
}, 500);
|
|
17858
17986
|
this.setDataInputValue = '';
|
|
17859
17987
|
}
|
|
17860
17988
|
},
|
|
17861
17989
|
removeTag: function removeTag(item) {
|
|
17862
|
-
var
|
|
17990
|
+
var _this22 = this;
|
|
17863
17991
|
|
|
17864
17992
|
var val = this.selected.map(function (option) {
|
|
17865
|
-
return option[
|
|
17993
|
+
return option[_this22.iValueText];
|
|
17866
17994
|
});
|
|
17867
17995
|
this.removeItem(val, item[this.iValueText]);
|
|
17868
17996
|
this.setSeleted(val.join(','));
|
|
@@ -17871,24 +17999,24 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17871
17999
|
if (this.filterable) {
|
|
17872
18000
|
if (this.$refs.popupFilter) {
|
|
17873
18001
|
setTimeout(function () {
|
|
17874
|
-
|
|
18002
|
+
_this22.$refs.popupFilter.focus();
|
|
17875
18003
|
}, 500);
|
|
17876
18004
|
}
|
|
17877
18005
|
} else {
|
|
17878
18006
|
if (this.$refs.popupInput) {
|
|
17879
18007
|
setTimeout(function () {
|
|
17880
|
-
|
|
18008
|
+
_this22.$refs.popupInput.focus();
|
|
17881
18009
|
}, 500);
|
|
17882
18010
|
}
|
|
17883
18011
|
}
|
|
17884
18012
|
} else {
|
|
17885
18013
|
if (this.filterable) {
|
|
17886
18014
|
setTimeout(function () {
|
|
17887
|
-
|
|
18015
|
+
_this22.$refs.filter.focus();
|
|
17888
18016
|
}, 500);
|
|
17889
18017
|
} else {
|
|
17890
18018
|
setTimeout(function () {
|
|
17891
|
-
|
|
18019
|
+
_this22.$refs.input.focus();
|
|
17892
18020
|
}, 500);
|
|
17893
18021
|
}
|
|
17894
18022
|
}
|
|
@@ -17907,7 +18035,7 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17907
18035
|
}
|
|
17908
18036
|
},
|
|
17909
18037
|
removeItem: function removeItem(obj, val) {
|
|
17910
|
-
var
|
|
18038
|
+
var _this23 = this;
|
|
17911
18039
|
|
|
17912
18040
|
var index = void 0;
|
|
17913
18041
|
|
|
@@ -17931,7 +18059,7 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17931
18059
|
// 对象数组
|
|
17932
18060
|
else {
|
|
17933
18061
|
index = obj.findIndex(function (item) {
|
|
17934
|
-
return item[
|
|
18062
|
+
return item[_this23.iValueText] === val;
|
|
17935
18063
|
});
|
|
17936
18064
|
obj.splice(index, 1);
|
|
17937
18065
|
}
|
|
@@ -17968,8 +18096,8 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
|
|
|
17968
18096
|
|
|
17969
18097
|
var select_component = normalizeComponent(
|
|
17970
18098
|
src_selectvue_type_script_lang_js,
|
|
17971
|
-
|
|
17972
|
-
|
|
18099
|
+
selectvue_type_template_id_b54eb61c_render,
|
|
18100
|
+
selectvue_type_template_id_b54eb61c_staticRenderFns,
|
|
17973
18101
|
false,
|
|
17974
18102
|
null,
|
|
17975
18103
|
null,
|
|
@@ -22465,8 +22593,8 @@ src_transfer.install = function (Vue) {
|
|
|
22465
22593
|
};
|
|
22466
22594
|
|
|
22467
22595
|
/* harmony default export */ var packages_transfer = (src_transfer);
|
|
22468
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/float/src/main.vue?vue&type=template&id=
|
|
22469
|
-
var
|
|
22596
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/float/src/main.vue?vue&type=template&id=4bac6de2
|
|
22597
|
+
var mainvue_type_template_id_4bac6de2_render = function () {
|
|
22470
22598
|
var _vm = this
|
|
22471
22599
|
var _h = _vm.$createElement
|
|
22472
22600
|
var _c = _vm._self._c || _h
|
|
@@ -22503,11 +22631,11 @@ var mainvue_type_template_id_545b1e70_render = function () {
|
|
|
22503
22631
|
)
|
|
22504
22632
|
: _vm._e()
|
|
22505
22633
|
}
|
|
22506
|
-
var
|
|
22507
|
-
|
|
22634
|
+
var mainvue_type_template_id_4bac6de2_staticRenderFns = []
|
|
22635
|
+
mainvue_type_template_id_4bac6de2_render._withStripped = true
|
|
22508
22636
|
|
|
22509
22637
|
|
|
22510
|
-
// CONCATENATED MODULE: ./packages/float/src/main.vue?vue&type=template&id=
|
|
22638
|
+
// CONCATENATED MODULE: ./packages/float/src/main.vue?vue&type=template&id=4bac6de2
|
|
22511
22639
|
|
|
22512
22640
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/float/src/main.vue?vue&type=script&lang=js
|
|
22513
22641
|
//
|
|
@@ -22600,6 +22728,10 @@ mainvue_type_template_id_545b1e70_render._withStripped = true
|
|
|
22600
22728
|
dy: {
|
|
22601
22729
|
type: [String, Number],
|
|
22602
22730
|
default: 0
|
|
22731
|
+
},
|
|
22732
|
+
maxHeight: {
|
|
22733
|
+
type: [Number, String],
|
|
22734
|
+
default: ''
|
|
22603
22735
|
}
|
|
22604
22736
|
},
|
|
22605
22737
|
data: function data() {
|
|
@@ -22781,7 +22913,7 @@ mainvue_type_template_id_545b1e70_render._withStripped = true
|
|
|
22781
22913
|
clearTimeout(timer);
|
|
22782
22914
|
}, 0);
|
|
22783
22915
|
} else if (this.link) {
|
|
22784
|
-
this.$refs.content.style.height = ''
|
|
22916
|
+
// this.$refs.content.style.height = '100em'
|
|
22785
22917
|
this.$nextTick(function () {
|
|
22786
22918
|
// 宽度设置
|
|
22787
22919
|
if (!_this.width) {
|
|
@@ -22942,9 +23074,35 @@ mainvue_type_template_id_545b1e70_render._withStripped = true
|
|
|
22942
23074
|
}
|
|
22943
23075
|
|
|
22944
23076
|
// 设置内容高度
|
|
23077
|
+
var flag = true;
|
|
23078
|
+
if (_this.maxHeight) {
|
|
23079
|
+
var heig = _this.maxHeight * _this.$TouchUI.em();
|
|
23080
|
+
if (useSpace > heig) {
|
|
23081
|
+
flag = false;
|
|
23082
|
+
_this.$refs.content.style.height = heig + 'px';
|
|
23083
|
+
}
|
|
23084
|
+
}
|
|
23085
|
+
if (!flag) {
|
|
23086
|
+
return false;
|
|
23087
|
+
}
|
|
22945
23088
|
if (useSpace < contentHeight) {
|
|
22946
23089
|
_this.isOver = true;
|
|
22947
23090
|
_this.$refs.content.style.height = useSpace + 'px';
|
|
23091
|
+
} else {
|
|
23092
|
+
if (_this.$refs.content.children[0] && _this.$refs.content.children[0].className.includes('to-scroll')) {
|
|
23093
|
+
var count = 0;
|
|
23094
|
+
var arr = _this.$refs.content.children[0].children[0].children;
|
|
23095
|
+
for (var i = 0; i < arr.length; i++) {
|
|
23096
|
+
count += arr[i].offsetHeight;
|
|
23097
|
+
}
|
|
23098
|
+
if (useSpace > count) {
|
|
23099
|
+
_this.isOver = false;
|
|
23100
|
+
_this.$refs.content.style.height = count + 2 + 'px';
|
|
23101
|
+
} else {
|
|
23102
|
+
_this.isOver = true;
|
|
23103
|
+
_this.$refs.content.style.height = useSpace + 'px';
|
|
23104
|
+
}
|
|
23105
|
+
}
|
|
22948
23106
|
}
|
|
22949
23107
|
}
|
|
22950
23108
|
});
|
|
@@ -22979,9 +23137,9 @@ mainvue_type_template_id_545b1e70_render._withStripped = true
|
|
|
22979
23137
|
var _this3 = this;
|
|
22980
23138
|
|
|
22981
23139
|
// 重置 content 高度,这样下次打开的时候才好重新计算是否超过整体高度
|
|
22982
|
-
if (!this.height) {
|
|
22983
|
-
|
|
22984
|
-
}
|
|
23140
|
+
// if (!this.height) {
|
|
23141
|
+
// this.$refs.content.style.height = ''
|
|
23142
|
+
// }
|
|
22985
23143
|
this.isOver = false;
|
|
22986
23144
|
|
|
22987
23145
|
// 关闭 float 后,移除事件监听
|
|
@@ -22994,9 +23152,9 @@ mainvue_type_template_id_545b1e70_render._withStripped = true
|
|
|
22994
23152
|
this.$emit('beforeClose');
|
|
22995
23153
|
this.show = false;
|
|
22996
23154
|
this.opened = false;
|
|
22997
|
-
if (this.$refs.content && this.$refs.content.style.height !== 'auto' && (this.iposition === 'top' || this.iposition === 'bottom') && !this.height) {
|
|
22998
|
-
|
|
22999
|
-
}
|
|
23155
|
+
// if (this.$refs.content && this.$refs.content.style.height !== 'auto' && (this.iposition === 'top' || this.iposition === 'bottom') && !this.height) {
|
|
23156
|
+
// this.$refs.content.style.height = 'auto'
|
|
23157
|
+
// }
|
|
23000
23158
|
this.$emit('closed');
|
|
23001
23159
|
setTimeout(function () {
|
|
23002
23160
|
if (_this3.lazy) {
|
|
@@ -23207,8 +23365,8 @@ mainvue_type_template_id_545b1e70_render._withStripped = true
|
|
|
23207
23365
|
|
|
23208
23366
|
var main_component = normalizeComponent(
|
|
23209
23367
|
src_mainvue_type_script_lang_js,
|
|
23210
|
-
|
|
23211
|
-
|
|
23368
|
+
mainvue_type_template_id_4bac6de2_render,
|
|
23369
|
+
mainvue_type_template_id_4bac6de2_staticRenderFns,
|
|
23212
23370
|
false,
|
|
23213
23371
|
null,
|
|
23214
23372
|
null,
|
|
@@ -26359,8 +26517,8 @@ disDirective.install = function (Vue) {
|
|
|
26359
26517
|
|
|
26360
26518
|
dis: dis_src_directive
|
|
26361
26519
|
});
|
|
26362
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=
|
|
26363
|
-
var
|
|
26520
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=57e4aab5
|
|
26521
|
+
var inputvue_type_template_id_57e4aab5_render = function () {
|
|
26364
26522
|
var _vm = this
|
|
26365
26523
|
var _h = _vm.$createElement
|
|
26366
26524
|
var _c = _vm._self._c || _h
|
|
@@ -26762,11 +26920,11 @@ var inputvue_type_template_id_d10b5358_render = function () {
|
|
|
26762
26920
|
]
|
|
26763
26921
|
)
|
|
26764
26922
|
}
|
|
26765
|
-
var
|
|
26766
|
-
|
|
26923
|
+
var inputvue_type_template_id_57e4aab5_staticRenderFns = []
|
|
26924
|
+
inputvue_type_template_id_57e4aab5_render._withStripped = true
|
|
26767
26925
|
|
|
26768
26926
|
|
|
26769
|
-
// CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=
|
|
26927
|
+
// CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=57e4aab5
|
|
26770
26928
|
|
|
26771
26929
|
// CONCATENATED MODULE: ./src/utils/string.js
|
|
26772
26930
|
function filter(chars, from) {
|
|
@@ -27176,11 +27334,7 @@ function filter(chars, from) {
|
|
|
27176
27334
|
if (this.desc) {
|
|
27177
27335
|
return this.desc;
|
|
27178
27336
|
} else if (this.ToFormItem && this.ToFormItem.label) {
|
|
27179
|
-
|
|
27180
|
-
return this.ToFormItem.label + '-label';
|
|
27181
|
-
} else {
|
|
27182
|
-
return this.ToFormItem.label;
|
|
27183
|
-
}
|
|
27337
|
+
return this.ToFormItem.label;
|
|
27184
27338
|
} else {
|
|
27185
27339
|
return '';
|
|
27186
27340
|
}
|
|
@@ -27251,6 +27405,7 @@ function filter(chars, from) {
|
|
|
27251
27405
|
}
|
|
27252
27406
|
},
|
|
27253
27407
|
mounted: function mounted() {
|
|
27408
|
+
// console.log('input mounted')
|
|
27254
27409
|
if (this.$platform === 'pc') {
|
|
27255
27410
|
this.$el.addEventListener('mouseover', this.showClear);
|
|
27256
27411
|
this.$el.addEventListener('mouseout', this.hideClear);
|
|
@@ -27371,7 +27526,7 @@ function filter(chars, from) {
|
|
|
27371
27526
|
|
|
27372
27527
|
// 最小值判断
|
|
27373
27528
|
if (Number(this.data, 0) < Number(this.min)) {
|
|
27374
|
-
this.data = '
|
|
27529
|
+
this.data = Number(this.min) + '';
|
|
27375
27530
|
}
|
|
27376
27531
|
|
|
27377
27532
|
if (Number(this.conversionType) && this.data) {
|
|
@@ -27518,8 +27673,8 @@ function filter(chars, from) {
|
|
|
27518
27673
|
|
|
27519
27674
|
var input_component = normalizeComponent(
|
|
27520
27675
|
src_inputvue_type_script_lang_js,
|
|
27521
|
-
|
|
27522
|
-
|
|
27676
|
+
inputvue_type_template_id_57e4aab5_render,
|
|
27677
|
+
inputvue_type_template_id_57e4aab5_staticRenderFns,
|
|
27523
27678
|
false,
|
|
27524
27679
|
null,
|
|
27525
27680
|
null,
|
|
@@ -28382,8 +28537,8 @@ icon.install = function (Vue) {
|
|
|
28382
28537
|
};
|
|
28383
28538
|
|
|
28384
28539
|
/* harmony default export */ var packages_icon = (icon);
|
|
28385
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/date-picker.vue?vue&type=template&id=
|
|
28386
|
-
var
|
|
28540
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/date-picker.vue?vue&type=template&id=051d024a
|
|
28541
|
+
var date_pickervue_type_template_id_051d024a_render = function () {
|
|
28387
28542
|
var _vm = this
|
|
28388
28543
|
var _h = _vm.$createElement
|
|
28389
28544
|
var _c = _vm._self._c || _h
|
|
@@ -28532,11 +28687,11 @@ var date_pickervue_type_template_id_44459036_render = function () {
|
|
|
28532
28687
|
1
|
|
28533
28688
|
)
|
|
28534
28689
|
}
|
|
28535
|
-
var
|
|
28536
|
-
|
|
28690
|
+
var date_pickervue_type_template_id_051d024a_staticRenderFns = []
|
|
28691
|
+
date_pickervue_type_template_id_051d024a_render._withStripped = true
|
|
28537
28692
|
|
|
28538
28693
|
|
|
28539
|
-
// CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=template&id=
|
|
28694
|
+
// CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=template&id=051d024a
|
|
28540
28695
|
|
|
28541
28696
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/picker.vue?vue&type=template&id=4176400e
|
|
28542
28697
|
var pickervue_type_template_id_4176400e_render = function () {
|
|
@@ -29333,6 +29488,13 @@ var date_ = __webpack_require__(94);
|
|
|
29333
29488
|
|
|
29334
29489
|
immediate: true
|
|
29335
29490
|
},
|
|
29491
|
+
iValue: {
|
|
29492
|
+
handler: function handler(val) {
|
|
29493
|
+
this.$emit('change', val);
|
|
29494
|
+
},
|
|
29495
|
+
|
|
29496
|
+
immediate: true
|
|
29497
|
+
},
|
|
29336
29498
|
displayFormat: {
|
|
29337
29499
|
handler: function handler(fmt) {
|
|
29338
29500
|
this.displayFormatRegExp = new RegExp('^' + String(fmt).replace(/\-|\//g, '\\-').replace(/[a-zA-Z]/g, '\\d') + '$');
|
|
@@ -29348,7 +29510,7 @@ var date_ = __webpack_require__(94);
|
|
|
29348
29510
|
}
|
|
29349
29511
|
if (this.value) {
|
|
29350
29512
|
this.iValue = this.value;
|
|
29351
|
-
this.$emit('change', this.value)
|
|
29513
|
+
// this.$emit('change', this.value)
|
|
29352
29514
|
}
|
|
29353
29515
|
},
|
|
29354
29516
|
mounted: function mounted() {
|
|
@@ -29362,13 +29524,13 @@ var date_ = __webpack_require__(94);
|
|
|
29362
29524
|
},
|
|
29363
29525
|
handleDisplayChange: function handleDisplayChange(value) {
|
|
29364
29526
|
this.datedisplay = value;
|
|
29365
|
-
this.$emit('change', this.datedisplay)
|
|
29527
|
+
// this.$emit('change', this.datedisplay)
|
|
29366
29528
|
},
|
|
29367
29529
|
handleDisplayBlur: function handleDisplayBlur() {
|
|
29368
29530
|
var _this = this;
|
|
29369
29531
|
|
|
29370
29532
|
setTimeout(function () {
|
|
29371
|
-
if (isNaN(new Date(_this.datedisplay))) {
|
|
29533
|
+
if (isNaN(new Date(_this.datedisplay)) || _this.datedisplay.length < 8) {
|
|
29372
29534
|
if (_this.datedisplay) {
|
|
29373
29535
|
_this.$emit('errTime');
|
|
29374
29536
|
}
|
|
@@ -29379,7 +29541,7 @@ var date_ = __webpack_require__(94);
|
|
|
29379
29541
|
if (!_this.displayFormatRegExp.test(_this.datedisplay)) {
|
|
29380
29542
|
_this.datedisplay = _this.formatDate(new Date(_this.datedisplay), _this.displayFormat, _this.datedisplay);
|
|
29381
29543
|
_this.iValue = _this.formatDate(new Date(_this.datedisplay), _this.displayFormat, _this.datedisplay);
|
|
29382
|
-
|
|
29544
|
+
// this.$emit('change', this.iValue)
|
|
29383
29545
|
} else {
|
|
29384
29546
|
_this.changeValue(_this.getDateFromValue(_this.datedisplay, _this.displayFormat), _this.datedisplay);
|
|
29385
29547
|
}
|
|
@@ -29407,7 +29569,7 @@ var date_ = __webpack_require__(94);
|
|
|
29407
29569
|
this.datedisplay = value.split(' ').length > 1 ? value.split(' ')[1] : value;
|
|
29408
29570
|
this.iValue = value.split(' ').length > 1 ? value.split(' ')[1] : value;
|
|
29409
29571
|
}
|
|
29410
|
-
this.$emit('change', this.iValue)
|
|
29572
|
+
// this.$emit('change', this.iValue)
|
|
29411
29573
|
} else {
|
|
29412
29574
|
var _flag = isNaN(new Date(value).getTime()); // 判断是否可以使用 2022-05 如果不可用,则替换为 2022/05
|
|
29413
29575
|
if (_flag) {
|
|
@@ -29415,15 +29577,15 @@ var date_ = __webpack_require__(94);
|
|
|
29415
29577
|
}
|
|
29416
29578
|
this.datedisplay = this.formatDate(new Date(value), this.displayFormat, oldVal);
|
|
29417
29579
|
this.iValue = this.formatDate(new Date(value), this.valueFormat, oldVal);
|
|
29418
|
-
this.$emit('change', this.iValue)
|
|
29580
|
+
// this.$emit('change', this.iValue)
|
|
29419
29581
|
}
|
|
29420
29582
|
},
|
|
29421
29583
|
clear: function clear() {
|
|
29422
|
-
|
|
29584
|
+
// const oldVal = this.iValue // 失去焦点时原本就是空的情况不应该 change
|
|
29423
29585
|
this.iValue = '';
|
|
29424
|
-
if (oldVal) {
|
|
29425
|
-
|
|
29426
|
-
}
|
|
29586
|
+
// if (oldVal) {
|
|
29587
|
+
// this.$emit('change', this.iValue)
|
|
29588
|
+
// }
|
|
29427
29589
|
if (!this.$pc) {
|
|
29428
29590
|
this.$refs.layer.close();
|
|
29429
29591
|
}
|
|
@@ -29558,8 +29720,8 @@ var date_ = __webpack_require__(94);
|
|
|
29558
29720
|
});
|
|
29559
29721
|
// CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=script&lang=js
|
|
29560
29722
|
/* harmony default export */ var src_date_pickervue_type_script_lang_js = (date_pickervue_type_script_lang_js);
|
|
29561
|
-
// EXTERNAL MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=style&index=0&id=
|
|
29562
|
-
var
|
|
29723
|
+
// EXTERNAL MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=style&index=0&id=051d024a&prod&lang=css
|
|
29724
|
+
var date_pickervue_type_style_index_0_id_051d024a_prod_lang_css = __webpack_require__(103);
|
|
29563
29725
|
|
|
29564
29726
|
// CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue
|
|
29565
29727
|
|
|
@@ -29572,8 +29734,8 @@ var date_pickervue_type_style_index_0_id_44459036_prod_lang_css = __webpack_requ
|
|
|
29572
29734
|
|
|
29573
29735
|
var date_picker_component = normalizeComponent(
|
|
29574
29736
|
src_date_pickervue_type_script_lang_js,
|
|
29575
|
-
|
|
29576
|
-
|
|
29737
|
+
date_pickervue_type_template_id_051d024a_render,
|
|
29738
|
+
date_pickervue_type_template_id_051d024a_staticRenderFns,
|
|
29577
29739
|
false,
|
|
29578
29740
|
null,
|
|
29579
29741
|
null,
|
|
@@ -32049,8 +32211,8 @@ collapse.install = function (Vue) {
|
|
|
32049
32211
|
};
|
|
32050
32212
|
|
|
32051
32213
|
/* harmony default export */ var packages_collapse = (collapse);
|
|
32052
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table.vue?vue&type=template&id=
|
|
32053
|
-
var
|
|
32214
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table.vue?vue&type=template&id=2e5c7c80
|
|
32215
|
+
var tablevue_type_template_id_2e5c7c80_render = function () {
|
|
32054
32216
|
var _vm = this
|
|
32055
32217
|
var _h = _vm.$createElement
|
|
32056
32218
|
var _c = _vm._self._c || _h
|
|
@@ -32864,11 +33026,11 @@ var tablevue_type_template_id_a7feb1e0_render = function () {
|
|
|
32864
33026
|
2
|
|
32865
33027
|
)
|
|
32866
33028
|
}
|
|
32867
|
-
var
|
|
32868
|
-
|
|
33029
|
+
var tablevue_type_template_id_2e5c7c80_staticRenderFns = []
|
|
33030
|
+
tablevue_type_template_id_2e5c7c80_render._withStripped = true
|
|
32869
33031
|
|
|
32870
33032
|
|
|
32871
|
-
// CONCATENATED MODULE: ./packages/table/src/table.vue?vue&type=template&id=
|
|
33033
|
+
// CONCATENATED MODULE: ./packages/table/src/table.vue?vue&type=template&id=2e5c7c80
|
|
32872
33034
|
|
|
32873
33035
|
// EXTERNAL MODULE: ./src/utils/dom.js
|
|
32874
33036
|
var utils_dom = __webpack_require__(5);
|
|
@@ -35478,6 +35640,12 @@ function db(fn) {
|
|
|
35478
35640
|
|
|
35479
35641
|
methods: {
|
|
35480
35642
|
init: function init() {
|
|
35643
|
+
if (Number(this.fixTop) > 0 && this.$refs.leftTable) {
|
|
35644
|
+
this.$refs.leftTable.style.top = 0;
|
|
35645
|
+
}
|
|
35646
|
+
if (Number(this.fixTop) > 0 && this.$refs.rightTable) {
|
|
35647
|
+
this.$refs.rightTable.style.top = 0;
|
|
35648
|
+
}
|
|
35481
35649
|
if (this.$refs && this.$refs.tbody) {
|
|
35482
35650
|
// 监听 slot 中的 DOM 变化
|
|
35483
35651
|
var tbody = this.$refs.tbody.$el || this.$refs.tbody;
|
|
@@ -35656,12 +35824,18 @@ function db(fn) {
|
|
|
35656
35824
|
}
|
|
35657
35825
|
},
|
|
35658
35826
|
setFixDiv: function setFixDiv() {
|
|
35827
|
+
var _this8 = this;
|
|
35828
|
+
|
|
35659
35829
|
if (Number(this.fixTop) > 0 && this.$refs.top && this.$refs.topTable) {
|
|
35660
35830
|
if (this.hasVScroll()) {
|
|
35661
35831
|
this.$refs.top.style.width = this.$refs.body.offsetWidth - this.getBarWidth() + 'px';
|
|
35662
35832
|
}
|
|
35663
|
-
this.$refs.topTable.style.width =
|
|
35664
|
-
this.$refs.table.style.width =
|
|
35833
|
+
this.$refs.topTable.style.width = '';
|
|
35834
|
+
this.$refs.table.style.width = '';
|
|
35835
|
+
this.$nextTick(function () {
|
|
35836
|
+
_this8.$refs.topTable.style.width = _this8.$refs.table.offsetWidth + 'px';
|
|
35837
|
+
_this8.$refs.table.style.width = _this8.$refs.table.offsetWidth + 'px';
|
|
35838
|
+
});
|
|
35665
35839
|
}
|
|
35666
35840
|
if (Number(this.fixRight) > 0 && this.$refs.right && this.$el) {
|
|
35667
35841
|
if (this.hasHScroll()) {
|
|
@@ -35697,7 +35871,7 @@ function db(fn) {
|
|
|
35697
35871
|
}
|
|
35698
35872
|
},
|
|
35699
35873
|
formatData: function formatData() {
|
|
35700
|
-
var
|
|
35874
|
+
var _this9 = this;
|
|
35701
35875
|
|
|
35702
35876
|
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
35703
35877
|
|
|
@@ -35746,30 +35920,30 @@ function db(fn) {
|
|
|
35746
35920
|
setData(dataTemp);
|
|
35747
35921
|
this.iData = arr;
|
|
35748
35922
|
setTimeout(function () {
|
|
35749
|
-
|
|
35923
|
+
_this9.changeIDataType = 'default';
|
|
35750
35924
|
}, 100);
|
|
35751
35925
|
},
|
|
35752
35926
|
|
|
35753
35927
|
// 设置全选或者不全选
|
|
35754
35928
|
toggleAllSelection: function toggleAllSelection(checked) {
|
|
35755
|
-
var
|
|
35929
|
+
var _this10 = this;
|
|
35756
35930
|
|
|
35757
35931
|
this.iData.map(function (item) {
|
|
35758
35932
|
if (!item.disabled) {
|
|
35759
|
-
|
|
35933
|
+
_this10.$set(item, '_checked', checked);
|
|
35760
35934
|
}
|
|
35761
35935
|
});
|
|
35762
35936
|
},
|
|
35763
35937
|
|
|
35764
35938
|
// 全选中事件
|
|
35765
35939
|
handleSelectionAllChange: function handleSelectionAllChange(checked) {
|
|
35766
|
-
var
|
|
35940
|
+
var _this11 = this;
|
|
35767
35941
|
|
|
35768
35942
|
this.isSelectAll = checked;
|
|
35769
35943
|
this.toggleAllSelection(checked);
|
|
35770
35944
|
this.iData.map(function (item) {
|
|
35771
35945
|
if (!item._checked) {
|
|
35772
|
-
|
|
35946
|
+
_this11.removeFromCache(item);
|
|
35773
35947
|
}
|
|
35774
35948
|
});
|
|
35775
35949
|
this.$emit('change', this.checked, checked);
|
|
@@ -35790,14 +35964,18 @@ function db(fn) {
|
|
|
35790
35964
|
|
|
35791
35965
|
// 行勾选事件
|
|
35792
35966
|
handleTableRowChecked: function handleTableRowChecked(checked, dataIndex) {
|
|
35967
|
+
var _this12 = this;
|
|
35968
|
+
|
|
35793
35969
|
var current = this.iData[dataIndex];
|
|
35794
35970
|
if (!checked) {
|
|
35795
35971
|
this.removeFromCache(this.iData[dataIndex]);
|
|
35796
35972
|
}
|
|
35797
35973
|
this.setSelectAll();
|
|
35798
|
-
this.$
|
|
35799
|
-
|
|
35800
|
-
|
|
35974
|
+
this.$nextTick(function () {
|
|
35975
|
+
_this12.$emit('change', _this12.checked, checked, current);
|
|
35976
|
+
_this12.$emit('selectionChange', _this12.selectionValueType === 'tree' ? _this12.buildHierarchyTree(_this12.checked) : _this12.checked, current);
|
|
35977
|
+
_this12.$emit('selection-change', _this12.selectionValueType === 'tree' ? _this12.buildHierarchyTree(_this12.checked) : _this12.checked, current);
|
|
35978
|
+
});
|
|
35801
35979
|
},
|
|
35802
35980
|
|
|
35803
35981
|
// 从记录中移除
|
|
@@ -35833,7 +36011,7 @@ function db(fn) {
|
|
|
35833
36011
|
|
|
35834
36012
|
// table 点击事件
|
|
35835
36013
|
handleTableClick: function handleTableClick(event, eventPath) {
|
|
35836
|
-
var
|
|
36014
|
+
var _this13 = this;
|
|
35837
36015
|
|
|
35838
36016
|
if (this.stopClick) {
|
|
35839
36017
|
return;
|
|
@@ -35845,49 +36023,49 @@ function db(fn) {
|
|
|
35845
36023
|
if (String(dom.tagName).toLowerCase() === 'tr') {
|
|
35846
36024
|
(function () {
|
|
35847
36025
|
|
|
35848
|
-
|
|
36026
|
+
_this13.lastSelectedRow = dom;
|
|
35849
36027
|
var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
|
|
35850
36028
|
|
|
35851
|
-
if (
|
|
36029
|
+
if (_this13.rowSelectable || _this13.selectable) {
|
|
35852
36030
|
|
|
35853
36031
|
// 行点击事件
|
|
35854
|
-
|
|
35855
|
-
if (
|
|
35856
|
-
|
|
36032
|
+
_this13.$emit('row-click', _this13.iData[rowIndex], rowIndex, event);
|
|
36033
|
+
if (_this13.highlightCurrentRow) {
|
|
36034
|
+
_this13.iData.map(function (item, index) {
|
|
35857
36035
|
if (index === rowIndex) {
|
|
35858
|
-
if (
|
|
36036
|
+
if (_this13.clearable) {
|
|
35859
36037
|
if (item._on) {
|
|
35860
36038
|
item._on = false;
|
|
35861
36039
|
} else {
|
|
35862
|
-
|
|
36040
|
+
_this13.$set(item, '_on', true);
|
|
35863
36041
|
}
|
|
35864
36042
|
} else {
|
|
35865
|
-
|
|
36043
|
+
_this13.$set(item, '_on', true);
|
|
35866
36044
|
}
|
|
35867
36045
|
} else {
|
|
35868
|
-
|
|
36046
|
+
_this13.$set(item, '_on', false);
|
|
35869
36047
|
}
|
|
35870
36048
|
});
|
|
35871
36049
|
}
|
|
35872
36050
|
|
|
35873
36051
|
// 多选联动
|
|
35874
|
-
if (
|
|
35875
|
-
|
|
35876
|
-
|
|
36052
|
+
if (_this13.hasSelection && !_this13.iData[rowIndex].disabled) {
|
|
36053
|
+
_this13.iData[rowIndex]._checked = !_this13.iData[rowIndex]._checked;
|
|
36054
|
+
_this13.handleTableRowChecked(_this13.iData[rowIndex]._checked, rowIndex);
|
|
35877
36055
|
}
|
|
35878
36056
|
|
|
35879
36057
|
// 单选联动
|
|
35880
|
-
if (
|
|
35881
|
-
if (
|
|
35882
|
-
|
|
36058
|
+
if (_this13.hasRadio && !_this13.iData[rowIndex].disabled) {
|
|
36059
|
+
if (_this13.clickRadio(_this13.iData[rowIndex], rowIndex)) {
|
|
36060
|
+
_this13.selectRadio(rowIndex);
|
|
35883
36061
|
}
|
|
35884
36062
|
}
|
|
35885
36063
|
}
|
|
35886
36064
|
|
|
35887
|
-
if (
|
|
35888
|
-
|
|
35889
|
-
|
|
35890
|
-
|
|
36065
|
+
if (_this13.autoShowDetail) {
|
|
36066
|
+
_this13.current = _this13.iData[rowIndex];
|
|
36067
|
+
_this13.currentIndex = rowIndex;
|
|
36068
|
+
_this13.$refs.detail.open();
|
|
35891
36069
|
}
|
|
35892
36070
|
})();
|
|
35893
36071
|
} else if (String(dom.tagName).toLowerCase() === 'td' && (this.cellSelectable || this.selectable)) {
|
|
@@ -35924,7 +36102,7 @@ function db(fn) {
|
|
|
35924
36102
|
|
|
35925
36103
|
// table鼠标悬移事件
|
|
35926
36104
|
handleTableMouseover: function handleTableMouseover(event) {
|
|
35927
|
-
var
|
|
36105
|
+
var _this14 = this;
|
|
35928
36106
|
|
|
35929
36107
|
if (!this.$pc) return;
|
|
35930
36108
|
if (this.rowSelectable || this.selectable) {
|
|
@@ -35933,11 +36111,11 @@ function db(fn) {
|
|
|
35933
36111
|
var dom = composedPath[i];
|
|
35934
36112
|
if (String(dom.tagName).toLowerCase() === 'tr' && (this.rowSelectable || this.selectable)) {
|
|
35935
36113
|
(function () {
|
|
35936
|
-
|
|
36114
|
+
_this14.lastSelectedRow = dom;
|
|
35937
36115
|
var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
|
|
35938
|
-
|
|
36116
|
+
_this14.iData.map(function (item, index) {
|
|
35939
36117
|
if (index === rowIndex) {
|
|
35940
|
-
|
|
36118
|
+
_this14.$set(item, '_hover', true);
|
|
35941
36119
|
}
|
|
35942
36120
|
});
|
|
35943
36121
|
})();
|
|
@@ -35948,7 +36126,7 @@ function db(fn) {
|
|
|
35948
36126
|
|
|
35949
36127
|
// table鼠标悬移事件
|
|
35950
36128
|
handleTableMouseout: function handleTableMouseout(event) {
|
|
35951
|
-
var
|
|
36129
|
+
var _this15 = this;
|
|
35952
36130
|
|
|
35953
36131
|
if (!this.$pc) return;
|
|
35954
36132
|
if (this.rowSelectable || this.selectable || this.autoShowDetail || this.longTapAction) {
|
|
@@ -35957,17 +36135,17 @@ function db(fn) {
|
|
|
35957
36135
|
var dom = composedPath[i];
|
|
35958
36136
|
if (String(dom.tagName).toLowerCase() === 'tr' && (this.rowSelectable || this.selectable || this.autoShowDetail || this.longTapAction)) {
|
|
35959
36137
|
(function () {
|
|
35960
|
-
|
|
36138
|
+
_this15.lastSelectedRow = dom;
|
|
35961
36139
|
var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
|
|
35962
|
-
|
|
35963
|
-
|
|
36140
|
+
_this15.changeIDataType = 'change';
|
|
36141
|
+
_this15.iData.map(function (item, index) {
|
|
35964
36142
|
if (index === rowIndex) {
|
|
35965
|
-
|
|
35966
|
-
|
|
36143
|
+
_this15.$set(item, '_hover', false);
|
|
36144
|
+
_this15.$set(item, '_active', false);
|
|
35967
36145
|
}
|
|
35968
36146
|
});
|
|
35969
|
-
|
|
35970
|
-
|
|
36147
|
+
_this15.$nextTick(function () {
|
|
36148
|
+
_this15.changeIDataType = 'default';
|
|
35971
36149
|
});
|
|
35972
36150
|
})();
|
|
35973
36151
|
}
|
|
@@ -35977,7 +36155,7 @@ function db(fn) {
|
|
|
35977
36155
|
|
|
35978
36156
|
// table鼠标按下事件
|
|
35979
36157
|
handleTableMousedown: function handleTableMousedown(event) {
|
|
35980
|
-
var
|
|
36158
|
+
var _this16 = this;
|
|
35981
36159
|
|
|
35982
36160
|
if ((this.$pad || this.$phone) && event.type === 'touchstart' || this.$pc && event.type === 'mousedown') {
|
|
35983
36161
|
if (this.rowSelectable || this.selectable || this.autoShowDetail || this.longTapAction) {
|
|
@@ -35986,48 +36164,48 @@ function db(fn) {
|
|
|
35986
36164
|
var dom = composedPath[i];
|
|
35987
36165
|
if (String(dom.tagName).toLowerCase() === 'tr' && (this.rowSelectable || this.selectable || this.autoShowDetail || this.longTapAction)) {
|
|
35988
36166
|
(function () {
|
|
35989
|
-
|
|
36167
|
+
_this16.lastSelectedRow = dom;
|
|
35990
36168
|
var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
|
|
35991
|
-
if (
|
|
35992
|
-
|
|
35993
|
-
|
|
35994
|
-
if (
|
|
36169
|
+
if (_this16.$phone) {
|
|
36170
|
+
_this16.isStartLongtap = true;
|
|
36171
|
+
_this16.longtapTimer = setTimeout(function () {
|
|
36172
|
+
if (_this16.isStartLongtap) {
|
|
35995
36173
|
event.preventDefault();
|
|
35996
|
-
|
|
35997
|
-
|
|
36174
|
+
_this16.$emit('contextmenu', _this16.iData[rowIndex], rowIndex, event);
|
|
36175
|
+
_this16.stopClick = true;
|
|
35998
36176
|
|
|
35999
|
-
|
|
36000
|
-
|
|
36177
|
+
_this16.changeIDataType = 'change';
|
|
36178
|
+
_this16.iData.map(function (item, index) {
|
|
36001
36179
|
if (index === rowIndex) {
|
|
36002
|
-
|
|
36180
|
+
_this16.$set(item, '_active', false);
|
|
36003
36181
|
}
|
|
36004
36182
|
});
|
|
36005
|
-
|
|
36006
|
-
|
|
36183
|
+
_this16.$nextTick(function () {
|
|
36184
|
+
_this16.changeIDataType = 'default';
|
|
36007
36185
|
});
|
|
36008
36186
|
|
|
36009
36187
|
// 弹出功能列表
|
|
36010
|
-
if (
|
|
36188
|
+
if (_this16.type === 'v' && (_this16.columns.some(function (item) {
|
|
36011
36189
|
return item.type === 'action';
|
|
36012
|
-
}) &&
|
|
36013
|
-
|
|
36014
|
-
|
|
36015
|
-
|
|
36190
|
+
}) && _this16.contextAction || _this16.contextSelection !== null)) {
|
|
36191
|
+
_this16.current = _this16.iData[rowIndex];
|
|
36192
|
+
_this16.currentIndex = rowIndex;
|
|
36193
|
+
_this16.$refs.action.open();
|
|
36016
36194
|
}
|
|
36017
36195
|
}
|
|
36018
|
-
|
|
36196
|
+
_this16.isStartLongtap = false;
|
|
36019
36197
|
}, 300);
|
|
36020
36198
|
}
|
|
36021
|
-
|
|
36022
|
-
if (
|
|
36023
|
-
|
|
36199
|
+
_this16.changeIDataType = 'change';
|
|
36200
|
+
if (_this16.rowSelectable || _this16.selectable || _this16.autoShowDetail) {
|
|
36201
|
+
_this16.iData.map(function (item, index) {
|
|
36024
36202
|
if (index === rowIndex) {
|
|
36025
|
-
|
|
36203
|
+
_this16.$set(item, '_active', true);
|
|
36026
36204
|
}
|
|
36027
36205
|
});
|
|
36028
36206
|
}
|
|
36029
|
-
|
|
36030
|
-
|
|
36207
|
+
_this16.$nextTick(function () {
|
|
36208
|
+
_this16.changeIDataType = 'default';
|
|
36031
36209
|
});
|
|
36032
36210
|
})();
|
|
36033
36211
|
}
|
|
@@ -36038,7 +36216,7 @@ function db(fn) {
|
|
|
36038
36216
|
|
|
36039
36217
|
// table鼠标松开事件
|
|
36040
36218
|
handleTableMouseup: function handleTableMouseup(event) {
|
|
36041
|
-
var
|
|
36219
|
+
var _this17 = this;
|
|
36042
36220
|
|
|
36043
36221
|
if ((this.$pad || this.$phone) && event.type === 'touchend' || this.$pc && event.type === 'mouseup') {
|
|
36044
36222
|
if (this.rowSelectable || this.selectable || this.autoShowDetail || this.longTapAction) {
|
|
@@ -36047,20 +36225,20 @@ function db(fn) {
|
|
|
36047
36225
|
var dom = composedPath[i];
|
|
36048
36226
|
if (String(dom.tagName).toLowerCase() === 'tr' && (this.rowSelectable || this.selectable || this.autoShowDetail || this.longTapAction)) {
|
|
36049
36227
|
(function () {
|
|
36050
|
-
|
|
36228
|
+
_this17.lastSelectedRow = dom;
|
|
36051
36229
|
var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
|
|
36052
|
-
|
|
36053
|
-
|
|
36230
|
+
_this17.changeIDataType = 'change';
|
|
36231
|
+
_this17.iData.map(function (item, index) {
|
|
36054
36232
|
if (index === rowIndex) {
|
|
36055
|
-
|
|
36233
|
+
_this17.$set(item, '_active', false);
|
|
36056
36234
|
}
|
|
36057
36235
|
});
|
|
36058
|
-
|
|
36059
|
-
|
|
36236
|
+
_this17.$nextTick(function () {
|
|
36237
|
+
_this17.changeIDataType = 'default';
|
|
36060
36238
|
});
|
|
36061
|
-
if (
|
|
36062
|
-
|
|
36063
|
-
clearInterval(
|
|
36239
|
+
if (_this17.$phone) {
|
|
36240
|
+
_this17.isStartLongtap = false;
|
|
36241
|
+
clearInterval(_this17.longtapTimer);
|
|
36064
36242
|
}
|
|
36065
36243
|
})();
|
|
36066
36244
|
}
|
|
@@ -36071,7 +36249,7 @@ function db(fn) {
|
|
|
36071
36249
|
|
|
36072
36250
|
// table鼠标移动事件
|
|
36073
36251
|
handleTableMousemove: function handleTableMousemove(event) {
|
|
36074
|
-
var
|
|
36252
|
+
var _this18 = this;
|
|
36075
36253
|
|
|
36076
36254
|
this.isStartLongtap = false;
|
|
36077
36255
|
if (this.rowSelectable || this.selectable || this.autoShowDetail) {
|
|
@@ -36080,16 +36258,16 @@ function db(fn) {
|
|
|
36080
36258
|
var dom = composedPath[i];
|
|
36081
36259
|
if (String(dom.tagName).toLowerCase() === 'tr' && (this.rowSelectable || this.selectable || this.autoShowDetail)) {
|
|
36082
36260
|
(function () {
|
|
36083
|
-
|
|
36261
|
+
_this18.lastSelectedRow = dom;
|
|
36084
36262
|
var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
|
|
36085
|
-
|
|
36086
|
-
|
|
36263
|
+
_this18.changeIDataType = 'change';
|
|
36264
|
+
_this18.iData.map(function (item, index) {
|
|
36087
36265
|
if (index === rowIndex) {
|
|
36088
|
-
|
|
36266
|
+
_this18.$set(item, '_active', false);
|
|
36089
36267
|
}
|
|
36090
36268
|
});
|
|
36091
|
-
|
|
36092
|
-
|
|
36269
|
+
_this18.$nextTick(function () {
|
|
36270
|
+
_this18.changeIDataType = 'default';
|
|
36093
36271
|
});
|
|
36094
36272
|
})();
|
|
36095
36273
|
}
|
|
@@ -36121,21 +36299,21 @@ function db(fn) {
|
|
|
36121
36299
|
}
|
|
36122
36300
|
},
|
|
36123
36301
|
handleSortClick: function handleSortClick(item, index) {
|
|
36124
|
-
var
|
|
36302
|
+
var _this19 = this;
|
|
36125
36303
|
|
|
36126
36304
|
var orderType = item.orderType;
|
|
36127
36305
|
this.columns.map(function (column, columnIndex) {
|
|
36128
36306
|
if (columnIndex === index) {
|
|
36129
36307
|
if (!orderType) {
|
|
36130
|
-
|
|
36308
|
+
_this19.$set(column, 'orderType', 'asc');
|
|
36131
36309
|
} else if (orderType === 'asc') {
|
|
36132
|
-
|
|
36310
|
+
_this19.$set(column, 'orderType', 'desc');
|
|
36133
36311
|
} else if (orderType === 'desc') {
|
|
36134
|
-
|
|
36312
|
+
_this19.$set(column, 'orderType', '');
|
|
36135
36313
|
}
|
|
36136
36314
|
} else {
|
|
36137
36315
|
if (column.sortable) {
|
|
36138
|
-
|
|
36316
|
+
_this19.$set(column, 'orderType', '');
|
|
36139
36317
|
}
|
|
36140
36318
|
}
|
|
36141
36319
|
});
|
|
@@ -36296,12 +36474,12 @@ function db(fn) {
|
|
|
36296
36474
|
|
|
36297
36475
|
// 展开所有
|
|
36298
36476
|
expandAll: function expandAll() {
|
|
36299
|
-
var
|
|
36477
|
+
var _this20 = this;
|
|
36300
36478
|
|
|
36301
36479
|
if (this.iData.length > 0) {
|
|
36302
36480
|
this.iData.forEach(function (item, index) {
|
|
36303
36481
|
if (item._hasChild && item._level === 1 && item._show === true) {
|
|
36304
|
-
|
|
36482
|
+
_this20.$refs.tbody.expandAll(item, index, false);
|
|
36305
36483
|
}
|
|
36306
36484
|
});
|
|
36307
36485
|
}
|
|
@@ -36309,12 +36487,12 @@ function db(fn) {
|
|
|
36309
36487
|
|
|
36310
36488
|
// 折叠所有
|
|
36311
36489
|
collapseAll: function collapseAll() {
|
|
36312
|
-
var
|
|
36490
|
+
var _this21 = this;
|
|
36313
36491
|
|
|
36314
36492
|
if (this.iData.length > 0) {
|
|
36315
36493
|
this.iData.forEach(function (item, index) {
|
|
36316
36494
|
if (item._hasChild && item._level === 1 && item._show === true) {
|
|
36317
|
-
|
|
36495
|
+
_this21.$refs.tbody.collapseAll(item, index, false);
|
|
36318
36496
|
}
|
|
36319
36497
|
});
|
|
36320
36498
|
}
|
|
@@ -36411,8 +36589,8 @@ function db(fn) {
|
|
|
36411
36589
|
|
|
36412
36590
|
var table_component = normalizeComponent(
|
|
36413
36591
|
src_tablevue_type_script_lang_js,
|
|
36414
|
-
|
|
36415
|
-
|
|
36592
|
+
tablevue_type_template_id_2e5c7c80_render,
|
|
36593
|
+
tablevue_type_template_id_2e5c7c80_staticRenderFns,
|
|
36416
36594
|
false,
|
|
36417
36595
|
null,
|
|
36418
36596
|
null,
|
|
@@ -45673,8 +45851,8 @@ emote.install = function (Vue) {
|
|
|
45673
45851
|
};
|
|
45674
45852
|
|
|
45675
45853
|
/* harmony default export */ var packages_emote = (emote);
|
|
45676
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/filter/src/filter.vue?vue&type=template&id=
|
|
45677
|
-
var
|
|
45854
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/filter/src/filter.vue?vue&type=template&id=5c12da7a
|
|
45855
|
+
var filtervue_type_template_id_5c12da7a_render = function () {
|
|
45678
45856
|
var _vm = this
|
|
45679
45857
|
var _h = _vm.$createElement
|
|
45680
45858
|
var _c = _vm._self._c || _h
|
|
@@ -45758,11 +45936,11 @@ var filtervue_type_template_id_edc9e79a_render = function () {
|
|
|
45758
45936
|
]
|
|
45759
45937
|
)
|
|
45760
45938
|
}
|
|
45761
|
-
var
|
|
45762
|
-
|
|
45939
|
+
var filtervue_type_template_id_5c12da7a_staticRenderFns = []
|
|
45940
|
+
filtervue_type_template_id_5c12da7a_render._withStripped = true
|
|
45763
45941
|
|
|
45764
45942
|
|
|
45765
|
-
// CONCATENATED MODULE: ./packages/filter/src/filter.vue?vue&type=template&id=
|
|
45943
|
+
// CONCATENATED MODULE: ./packages/filter/src/filter.vue?vue&type=template&id=5c12da7a
|
|
45766
45944
|
|
|
45767
45945
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/filter/src/filter.vue?vue&type=script&lang=js
|
|
45768
45946
|
//
|
|
@@ -45884,9 +46062,11 @@ filtervue_type_template_id_edc9e79a_render._withStripped = true
|
|
|
45884
46062
|
type.children.find(function (item) {
|
|
45885
46063
|
return item.on;
|
|
45886
46064
|
}).on = false;
|
|
45887
|
-
|
|
46065
|
+
|
|
46066
|
+
var el = type.children.find(function (item) {
|
|
45888
46067
|
return item.value === val[key];
|
|
45889
|
-
})
|
|
46068
|
+
});
|
|
46069
|
+
_this.$set(el, 'on', true);
|
|
45890
46070
|
}
|
|
45891
46071
|
});
|
|
45892
46072
|
};
|
|
@@ -46047,8 +46227,8 @@ filtervue_type_template_id_edc9e79a_render._withStripped = true
|
|
|
46047
46227
|
|
|
46048
46228
|
var filter_component = normalizeComponent(
|
|
46049
46229
|
src_filtervue_type_script_lang_js,
|
|
46050
|
-
|
|
46051
|
-
|
|
46230
|
+
filtervue_type_template_id_5c12da7a_render,
|
|
46231
|
+
filtervue_type_template_id_5c12da7a_staticRenderFns,
|
|
46052
46232
|
false,
|
|
46053
46233
|
null,
|
|
46054
46234
|
null,
|
|
@@ -49477,11 +49657,7 @@ var validate_validate = function validate(dom) {
|
|
|
49477
49657
|
} else {
|
|
49478
49658
|
reg = new RegExp(rule);
|
|
49479
49659
|
if (!reg.test(value)) {
|
|
49480
|
-
|
|
49481
|
-
formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.custom', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : '');
|
|
49482
|
-
} else {
|
|
49483
|
-
formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.customRemark', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : '');
|
|
49484
|
-
}
|
|
49660
|
+
formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.custom', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : '');
|
|
49485
49661
|
allPass = false;
|
|
49486
49662
|
setHiddenErrorNodes(formEl);
|
|
49487
49663
|
return 'continue';
|
|
@@ -49494,12 +49670,7 @@ var validate_validate = function validate(dom) {
|
|
|
49494
49670
|
}
|
|
49495
49671
|
} else if (required) {
|
|
49496
49672
|
formVue.errorType = 'required';
|
|
49497
|
-
|
|
49498
|
-
var desc_label = desc.replace('-label', '');
|
|
49499
|
-
formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.required', desc_label);
|
|
49500
|
-
} else {
|
|
49501
|
-
formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.requiredRemark', desc);
|
|
49502
|
-
}
|
|
49673
|
+
formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.required', desc);
|
|
49503
49674
|
allPass = false;
|
|
49504
49675
|
setHiddenErrorNodes(formEl);
|
|
49505
49676
|
return 'continue';
|
|
@@ -49525,11 +49696,7 @@ var validate_validate = function validate(dom) {
|
|
|
49525
49696
|
} else {
|
|
49526
49697
|
_reg = new RegExp(rule);
|
|
49527
49698
|
if (!_reg.test(value)) {
|
|
49528
|
-
|
|
49529
|
-
showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.custom', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : ''));
|
|
49530
|
-
} else {
|
|
49531
|
-
showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.customRemark', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : ''));
|
|
49532
|
-
}
|
|
49699
|
+
showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.custom', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : ''));
|
|
49533
49700
|
return {
|
|
49534
49701
|
v: false
|
|
49535
49702
|
};
|
|
@@ -49541,12 +49708,7 @@ var validate_validate = function validate(dom) {
|
|
|
49541
49708
|
return 'continue';
|
|
49542
49709
|
}
|
|
49543
49710
|
} else if (required) {
|
|
49544
|
-
|
|
49545
|
-
var _desc_label = desc.replace('-label', '');
|
|
49546
|
-
showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.required', _desc_label));
|
|
49547
|
-
} else {
|
|
49548
|
-
showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.requiredRemark', desc));
|
|
49549
|
-
}
|
|
49711
|
+
showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.required', desc));
|
|
49550
49712
|
return {
|
|
49551
49713
|
v: false
|
|
49552
49714
|
};
|
|
@@ -49601,8 +49763,8 @@ function print_getBody(areaId) {
|
|
|
49601
49763
|
html.push(document.getElementById(areaId).outerHTML);
|
|
49602
49764
|
html.push('</div></div>');
|
|
49603
49765
|
html.push('<div id="printFn" class="fn">\r\n');
|
|
49604
|
-
html.push('<button type="button"
|
|
49605
|
-
html.push('<button type="button" class="to-button to-box-link to-form-readonly to-box-color-primary to-box-mode-fill to-input-fillet-normal"
|
|
49766
|
+
html.push('<button type="button" data-action="close" class="to-button to-box-link to-form-readonly to-box-color-default to-box-mode-fill to-input-fillet-normal"><span class="to-icon-close to-box-color-default"><span style="font-size: 100%;"></span></span><span class="to-buttonText to-hide-keep">关闭</span></button>');
|
|
49767
|
+
html.push('<button type="button" data-action="print" class="to-button to-box-link to-form-readonly to-box-color-primary to-box-mode-fill to-input-fillet-normal"><span class="to-icon-print to-box-color-default"><span style="font-size: 100%;"></span></span><span class="to-buttonText to-hide-keep">打印2</span></button>');
|
|
49606
49768
|
html.push('\r\n</div>');
|
|
49607
49769
|
html.push('\r\n</div>');
|
|
49608
49770
|
return html;
|
|
@@ -49613,11 +49775,9 @@ function replaceBodyContent(newContent) {
|
|
|
49613
49775
|
var parser = new DOMParser();
|
|
49614
49776
|
var doc = parser.parseFromString(htmlString, 'text/html');
|
|
49615
49777
|
|
|
49616
|
-
// 使用 DOMPurify 清理 HTML
|
|
49778
|
+
// 使用 DOMPurify 清理 HTML(保留必要的安全规则)
|
|
49617
49779
|
doc.body.innerHTML = external_dompurify_default.a.sanitize(newContent);
|
|
49618
|
-
|
|
49619
|
-
var newHtmlString = doc.documentElement.outerHTML;
|
|
49620
|
-
return newHtmlString;
|
|
49780
|
+
return doc.documentElement.outerHTML;
|
|
49621
49781
|
}
|
|
49622
49782
|
|
|
49623
49783
|
/* harmony default export */ var print = (function (areaId, title) {
|
|
@@ -49626,10 +49786,26 @@ function replaceBodyContent(newContent) {
|
|
|
49626
49786
|
pwin.document.write(replaceBodyContent(print_getBody(areaId).join('')));
|
|
49627
49787
|
pwin.document.close();
|
|
49628
49788
|
pwin.document.documentElement.classList.add('s_print');
|
|
49789
|
+
|
|
49790
|
+
// 绑定事件(事件委托)
|
|
49791
|
+
pwin.document.addEventListener('click', function (e) {
|
|
49792
|
+
var target = e.target.closest('[data-action]'); // 找到带 data-action 的按钮
|
|
49793
|
+
if (!target) return;
|
|
49794
|
+
|
|
49795
|
+
var action = target.dataset.action;
|
|
49796
|
+
switch (action) {
|
|
49797
|
+
case 'close':
|
|
49798
|
+
pwin.window.close(); // 关闭打印窗口
|
|
49799
|
+
break;
|
|
49800
|
+
case 'print':
|
|
49801
|
+
pwin.window.print(); // 执行 print 逻辑
|
|
49802
|
+
break;
|
|
49803
|
+
}
|
|
49804
|
+
});
|
|
49805
|
+
|
|
49629
49806
|
if (title && typeof title === 'string') {
|
|
49630
49807
|
pwin.document.title = title;
|
|
49631
49808
|
}
|
|
49632
|
-
pwin = null;
|
|
49633
49809
|
});
|
|
49634
49810
|
// CONCATENATED MODULE: ./src/utils/compare.js
|
|
49635
49811
|
/* harmony default export */ var compare = (function (dom) {
|
|
@@ -50083,7 +50259,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
50083
50259
|
}
|
|
50084
50260
|
|
|
50085
50261
|
/* harmony default export */ var src = __webpack_exports__["default"] = ({
|
|
50086
|
-
version: '1.
|
|
50262
|
+
version: '1.40.0',
|
|
50087
50263
|
locale: lib_locale_default.a.use,
|
|
50088
50264
|
i18n: lib_locale_default.a.i18n,
|
|
50089
50265
|
install: src_install,
|