ai.touchui-vue 1.37.0 → 1.39.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.
Files changed (55) hide show
  1. package/lib/ai.touchui-vue.common.js +356 -241
  2. package/lib/date-picker.js +29 -53
  3. package/lib/float.js +39 -9
  4. package/lib/form.js +8 -8
  5. package/lib/import.js +19 -11
  6. package/lib/index.js +1 -1
  7. package/lib/input.js +4 -7
  8. package/lib/progress.js +8 -2
  9. package/lib/select.js +214 -98
  10. package/lib/theme/css/theme/B-Design.css +1 -1
  11. package/lib/theme/css/theme/aiplan.css +1 -1
  12. package/lib/theme/css/theme/aiplangd.css +1 -1
  13. package/lib/theme/css/theme/chbn.css +1 -1
  14. package/lib/theme/css/theme/default.css +1 -1
  15. package/lib/theme/css/theme/dt.css +1 -1
  16. package/lib/theme/css/theme/ecloud.css +1 -1
  17. package/lib/theme/css/theme/hongkong.css +1 -1
  18. package/lib/theme/css/theme/logistics.css +1 -1
  19. package/lib/theme/css/theme/narrow.css +1 -1
  20. package/lib/theme/css/theme/sdpf.css +1 -1
  21. package/lib/theme/css/theme/upc.css +1 -1
  22. package/lib/theme/css/theme/website.css +1 -1
  23. package/lib/theme/css/theme/workbench-gz.css +1 -1
  24. package/lib/theme/css/theme/zj.css +1 -1
  25. package/lib/utils/validate.js +4 -22
  26. package/package.json +1 -1
  27. package/packages/date-picker/src/.DS_Store +0 -0
  28. package/packages/date-picker/src/date-picker.vue +28 -53
  29. package/packages/float/src/main.vue +37 -7
  30. package/packages/form/src/form-item.vue +1 -1
  31. package/packages/import/src/import.vue +1 -1
  32. package/packages/input/src/input.vue +2 -5
  33. package/packages/progress/src/progress.vue +5 -0
  34. package/packages/select/src/select.vue +99 -21
  35. package/packages/theme/lib/css/theme/B-Design.css +1 -1
  36. package/packages/theme/lib/css/theme/aiplan.css +1 -1
  37. package/packages/theme/lib/css/theme/aiplangd.css +1 -1
  38. package/packages/theme/lib/css/theme/chbn.css +1 -1
  39. package/packages/theme/lib/css/theme/default.css +1 -1
  40. package/packages/theme/lib/css/theme/dt.css +1 -1
  41. package/packages/theme/lib/css/theme/ecloud.css +1 -1
  42. package/packages/theme/lib/css/theme/hongkong.css +1 -1
  43. package/packages/theme/lib/css/theme/logistics.css +1 -1
  44. package/packages/theme/lib/css/theme/narrow.css +1 -1
  45. package/packages/theme/lib/css/theme/sdpf.css +1 -1
  46. package/packages/theme/lib/css/theme/upc.css +1 -1
  47. package/packages/theme/lib/css/theme/website.css +1 -1
  48. package/packages/theme/lib/css/theme/workbench-gz.css +1 -1
  49. package/packages/theme/lib/css/theme/zj.css +1 -1
  50. package/packages/theme/src/less/component/msg.less +1 -1
  51. package/packages/theme/src/less/element/pic.less +1 -0
  52. package/packages/theme/src/less/element/progress.less +1 -1
  53. package/packages/theme/src/less/element/select.less +8 -0
  54. package/src/index.js +1 -1
  55. 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 _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_b305a782_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_b305a782_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_b305a782_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
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_ed2db97a_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_ed2db97a_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_ed2db97a_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=48e27998
12220
- var importvue_type_template_id_48e27998_render = function () {
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("to-icon", {
12261
- ref: "button",
12262
- attrs: { link: "", value: "import", mode: "none" },
12263
- on: {
12264
- click: function ($event) {
12265
- $event.stopPropagation()
12266
- return _vm.$refs.float.toggle("button")
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 importvue_type_template_id_48e27998_staticRenderFns = []
12422
- importvue_type_template_id_48e27998_render._withStripped = true
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=48e27998
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
- importvue_type_template_id_48e27998_render,
12737
- importvue_type_template_id_48e27998_staticRenderFns,
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=50c0a9fa
14244
- var progressvue_type_template_id_50c0a9fa_render = function () {
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 progressvue_type_template_id_50c0a9fa_staticRenderFns = []
14369
- progressvue_type_template_id_50c0a9fa_render._withStripped = true
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=50c0a9fa
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
- progressvue_type_template_id_50c0a9fa_render,
14701
- progressvue_type_template_id_50c0a9fa_staticRenderFns,
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=0805d936
14720
- var selectvue_type_template_id_0805d936_render = function () {
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_0805d936_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_0805d936_render = function () {
14983
14998
  ),
14984
14999
  ]
14985
15000
  : [
14986
- _vm.selected.filter(function (item) {
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_0805d936_render = function () {
15014
15029
  "span",
15015
15030
  { staticClass: "to-selectTag" },
15016
15031
  [
15017
- _vm.selected.length > 0 &&
15018
- !(_vm.isAll && _vm.useAllText)
15032
+ (_vm.conTags.length > 0 &&
15033
+ !(_vm.isAll && _vm.useAllText)) ||
15034
+ (_vm.showCount && _vm.count > 0)
15019
15035
  ? [
15020
- _vm._l(_vm.selected, function (item, index) {
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_0805d936_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.selected.length === 0)
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_0805d936_render = function () {
15054
15083
  "prevent-focus": "",
15055
15084
  mode: "none",
15056
15085
  placeholder:
15057
- _vm.selected.filter(function (item) {
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_0805d936_render = function () {
15084
15113
  "prevent-focus": "",
15085
15114
  mode: "none",
15086
15115
  placeholder:
15087
- _vm.selected.filter(function (item) {
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_0805d936_render = function () {
15113
15142
  "prevent-focus": "",
15114
15143
  mode: "none",
15115
15144
  placeholder:
15116
- _vm.selected.filter(function (item) {
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_0805d936_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_0805d936_render = function () {
16366
16396
  1
16367
16397
  )
16368
16398
  }
16369
- var selectvue_type_template_id_0805d936_staticRenderFns = []
16370
- selectvue_type_template_id_0805d936_render._withStripped = true
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=0805d936
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
- if (typeof this.rule === 'string') {
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 _this7 = this;
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[_this7.iValueText] === val;
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[_this7.iValueText] === val;
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 (_this7.options.findIndex(function (option) {
17329
- return String(option[_this7.iValueText]) === String(item);
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[_this7.iLabelText] = item, _selectedArr$push[_this7.iValueText] = item, _selectedArr$push.hide = !_this7.inputable, _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
- _this7.options.map(function (option) {
17336
- if (String(option[_this7.iValueText]) === String(item)) {
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
- _this7.selected = selected;
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 _this8 = this;
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[_this8.iLabelText] === value;
17500
+ return item[_this10.iLabelText] === value;
17373
17501
  }) || this.selected.find(function (item) {
17374
- return item[_this8.iValueText] === value;
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
- _this8.selected.push(newOption);
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
- _this8.$refs.popupFilter.focus();
17534
+ _this10.$refs.popupFilter.focus();
17407
17535
  }, 500);
17408
17536
  } else {
17409
17537
  setTimeout(function () {
17410
- _this8.$refs.popupInput.focus();
17538
+ _this10.$refs.popupInput.focus();
17411
17539
  }, 500);
17412
17540
  }
17413
17541
  }
@@ -17418,30 +17546,32 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17418
17546
  return true;
17419
17547
  }
17420
17548
  if (this.filterable) {
17421
- return item[this.iLabelText].includes(this.filterValue);
17549
+ // return item[this.iLabelText].includes(this.filterValue)
17550
+ return item[this.iLabelText].toLowerCase().includes(this.filterValue.toLowerCase());
17422
17551
  } else {
17423
17552
  return true;
17424
17553
  }
17425
17554
  },
17426
17555
  multipleFilter: function multipleFilter(item) {
17427
17556
  if (this.filterable) {
17428
- return item[this.iLabelText].includes(this.multipleFilterValue);
17557
+ // return item[this.iLabelText].includes(this.multipleFilterValue)
17558
+ return item[this.iLabelText].toLowerCase().includes(this.multipleFilterValue.toLowerCase());
17429
17559
  } else {
17430
17560
  return true;
17431
17561
  }
17432
17562
  },
17433
17563
  getLabel: function getLabel(val) {
17434
- var _this9 = this;
17564
+ var _this11 = this;
17435
17565
 
17436
17566
  var obj = this.options.find(function (item) {
17437
- return item[_this9.iValueText] === val;
17567
+ return item[_this11.iValueText] === val;
17438
17568
  });
17439
17569
  if (obj && obj[this.iLabelText]) {
17440
17570
  return obj[this.iLabelText];
17441
17571
  }
17442
17572
  },
17443
17573
  setOptions: function setOptions() {
17444
- var _this10 = this;
17574
+ var _this12 = this;
17445
17575
 
17446
17576
  // 同步选项
17447
17577
  if (this.data) {
@@ -17474,7 +17604,7 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17474
17604
  // 如果设置了方法,则替换为方法
17475
17605
  if (typeof this.setLabelFn === 'function') {
17476
17606
  this.options.forEach(function (item) {
17477
- item.label = _this10.setLabelFn(item);
17607
+ item.label = _this12.setLabelFn(item);
17478
17608
  });
17479
17609
  }
17480
17610
  }
@@ -17549,37 +17679,37 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17549
17679
  // 直接返回一个 select 所需要的 data 对象时,不需要任何解析
17550
17680
  // 如:[{name:'张三', id:0},{name:'李四', id:1}]
17551
17681
  if (Array.isArray(res)) {
17552
- _this10.options = res;
17553
- sessionStorage.setItem('static.' + _this10.api, JSON.stringify(res));
17682
+ _this12.options = res;
17683
+ sessionStorage.setItem('static.' + _this12.api, JSON.stringify(res));
17554
17684
 
17555
17685
  // 设置 selected
17556
- _this10.setSeleted(_this10.value);
17557
- _this10.setPlaceholder();
17558
- _this10.$emit('option-loaded', _this10.options);
17559
- } else if (res.code === _this10.iSuccessCode) {
17686
+ _this12.setSeleted(_this12.value);
17687
+ _this12.setPlaceholder();
17688
+ _this12.$emit('option-loaded', _this12.options);
17689
+ } else if (res.code === _this12.iSuccessCode) {
17560
17690
  // 按照 json 格式返回,需要根据配置路径进行解析
17561
17691
  // 如:{ code:'0', data:[{name:'张三', id:0},{name:'李四', id:1}]}
17562
17692
  var data = [];
17563
- if (_this10.iResPath) {
17564
- var resPath = _this10.iResPath.split('/');
17693
+ if (_this12.iResPath) {
17694
+ var resPath = _this12.iResPath.split('/');
17565
17695
  resPath.forEach(function (el) {
17566
17696
  data = res[el];
17567
17697
  });
17568
17698
  }
17569
- _this10.options = data;
17570
- sessionStorage.setItem('static.' + _this10.api, JSON.stringify(data));
17699
+ _this12.options = data;
17700
+ sessionStorage.setItem('static.' + _this12.api, JSON.stringify(data));
17571
17701
 
17572
17702
  // 设置 selected
17573
- _this10.setSeleted(_this10.value);
17574
- _this10.setPlaceholder();
17575
- _this10.$emit('option-loaded', _this10.options);
17703
+ _this12.setSeleted(_this12.value);
17704
+ _this12.setPlaceholder();
17705
+ _this12.$emit('option-loaded', _this12.options);
17576
17706
  } else {
17577
- _this10.options = [];
17578
- _this10.t('to.select.tip.error.res', 'select api(' + _this10.api + ')');
17707
+ _this12.options = [];
17708
+ _this12.t('to.select.tip.error.res', 'select api(' + _this12.api + ')');
17579
17709
  }
17580
17710
  },
17581
17711
  onError: function onError(res) {
17582
- _this10.$tip.danger(_this10.t('to.select.tip.error.api', 'select api(' + _this10.api + ') '));
17712
+ _this12.$tip.danger(_this12.t('to.select.tip.error.api', 'select api(' + _this12.api + ') '));
17583
17713
  }
17584
17714
  };
17585
17715
  var req = this.httpRequest(options);
@@ -17608,23 +17738,23 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17608
17738
  }
17609
17739
  },
17610
17740
  selectAll: function selectAll() {
17611
- var _this11 = this;
17741
+ var _this13 = this;
17612
17742
 
17613
17743
  var arr = [];
17614
17744
  this.options.map(function (item) {
17615
17745
  if (!item.disabled) {
17616
- arr.push(item[_this11.iValueText]);
17746
+ arr.push(item[_this13.iValueText]);
17617
17747
  }
17618
17748
  });
17619
17749
  this.iValue = arr.toString();
17620
17750
  },
17621
17751
  Deselect: function Deselect() {
17622
- var _this12 = this;
17752
+ var _this14 = this;
17623
17753
 
17624
17754
  var arr = [];
17625
17755
  this.options.map(function (item) {
17626
- if (!item.disabled && !_this12.iValue.split(',').includes(item[_this12.iValueText])) {
17627
- arr.push(item[_this12.iValueText]);
17756
+ if (!item.disabled && !_this14.iValue.split(',').includes(item[_this14.iValueText])) {
17757
+ arr.push(item[_this14.iValueText]);
17628
17758
  }
17629
17759
  });
17630
17760
  this.iValue = arr.toString();
@@ -17633,7 +17763,7 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17633
17763
  this.setValue('');
17634
17764
  },
17635
17765
  itemChange: function itemChange(item) {
17636
- var _this13 = this;
17766
+ var _this15 = this;
17637
17767
 
17638
17768
  if (item.disabled) {
17639
17769
  return;
@@ -17641,38 +17771,38 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17641
17771
  this.setSeleted(item[this.iValueText]);
17642
17772
  // this.selected = item
17643
17773
  this.$nextTick(function () {
17644
- _this13.$emit('selected', item);
17645
- _this13.closeLayer();
17774
+ _this15.$emit('selected', item);
17775
+ _this15.closeLayer();
17646
17776
  });
17647
17777
  },
17648
17778
  adjustLayer: function adjustLayer() {
17649
- var _this14 = this;
17779
+ var _this16 = this;
17650
17780
 
17651
17781
  if (this.optionDisplay !== 'none' && this.$refs.layer.show) {
17652
- this.$nextTick(function () {
17653
- _this14.$refs.layer.set(_this14.$refs.link);
17654
- });
17782
+ setTimeout(function () {
17783
+ _this16.$refs.layer.set(_this16.$refs.link);
17784
+ }, 10);
17655
17785
  }
17656
17786
  },
17657
17787
  openLayer: function openLayer() {
17658
- var _this15 = this;
17788
+ var _this17 = this;
17659
17789
 
17660
17790
  if (!this.disabled && this.optionDisplay !== 'none') {
17661
17791
  this.$refs.layer.open('link');
17662
17792
  if (this.filterable && this.$phone) {
17663
17793
  setTimeout(function () {
17664
- if (_this15.$refs.popupFilter) {
17665
- _this15.$refs.popupFilter.focus();
17794
+ if (_this17.$refs.popupFilter) {
17795
+ _this17.$refs.popupFilter.focus();
17666
17796
  }
17667
- _this15.$nextTick(function () {
17668
- _this15.options = _this15.s_options.concat(_this15.anotherOptions);
17797
+ _this17.$nextTick(function () {
17798
+ _this17.options = _this17.s_options.concat(_this17.anotherOptions);
17669
17799
  });
17670
17800
  }, 500);
17671
17801
  }
17672
17802
  if (this.inputable && this.$phone) {
17673
17803
  setTimeout(function () {
17674
- if (_this15.$refs.popupInput) {
17675
- _this15.$refs.popupInput.focus();
17804
+ if (_this17.$refs.popupInput) {
17805
+ _this17.$refs.popupInput.focus();
17676
17806
  }
17677
17807
  }, 500);
17678
17808
  }
@@ -17729,12 +17859,12 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17729
17859
  }
17730
17860
  },
17731
17861
  layerMousedown: function layerMousedown() {
17732
- var _this16 = this;
17862
+ var _this18 = this;
17733
17863
 
17734
17864
  this.blurByLayer = true;
17735
17865
  var timer = null;
17736
17866
  timer = setTimeout(function () {
17737
- _this16.blurByLayer = false;
17867
+ _this18.blurByLayer = false;
17738
17868
  clearTimeout(timer);
17739
17869
  timer = null;
17740
17870
  }, 200);
@@ -17762,16 +17892,16 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17762
17892
  }
17763
17893
  },
17764
17894
  inputInput: function inputInput(e) {
17765
- var _this17 = this;
17895
+ var _this19 = this;
17766
17896
 
17767
17897
  if (e && e.keyCode === 13) {
17768
17898
  this.$emit('inputEnter');
17769
17899
  }
17770
17900
  this.$nextTick(function () {
17771
- if (_this17.value === '') {
17772
- _this17.openLayer();
17901
+ if (_this19.value === '') {
17902
+ _this19.openLayer();
17773
17903
  } else {
17774
- _this17.closeLayer();
17904
+ _this19.closeLayer();
17775
17905
  }
17776
17906
  });
17777
17907
  },
@@ -17786,15 +17916,15 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17786
17916
  this.openLayer();
17787
17917
  },
17788
17918
  filterInput: function filterInput(e) {
17789
- var _this18 = this;
17919
+ var _this20 = this;
17790
17920
 
17791
17921
  if (e && e.keyCode === 13) {
17792
17922
  this.$emit('inputEnter');
17793
17923
  }
17794
17924
  this.$nextTick(function () {
17795
- _this18.inputing = true;
17796
- _this18.adjustLayer();
17797
- _this18.openLayer();
17925
+ _this20.inputing = true;
17926
+ _this20.adjustLayer();
17927
+ _this20.openLayer();
17798
17928
  });
17799
17929
  },
17800
17930
  filterClear: function filterClear() {
@@ -17813,10 +17943,10 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17813
17943
  }
17814
17944
  },
17815
17945
  multipleItemChange: function multipleItemChange(value, item) {
17816
- var _this19 = this;
17946
+ var _this21 = this;
17817
17947
 
17818
17948
  var val = this.selected.map(function (option) {
17819
- return option[_this19.iValueText];
17949
+ return option[_this21.iValueText];
17820
17950
  });
17821
17951
  if (value) {
17822
17952
  val.push(item[this.iValueText]);
@@ -17828,11 +17958,11 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17828
17958
  if (this.inputable && !this.filterable) {
17829
17959
  if (this.$phone) {
17830
17960
  setTimeout(function () {
17831
- _this19.$refs.popupInput.focus();
17961
+ _this21.$refs.popupInput.focus();
17832
17962
  }, 500);
17833
17963
  } else {
17834
17964
  setTimeout(function () {
17835
- _this19.$refs.input.focus();
17965
+ _this21.$refs.input.focus();
17836
17966
  }, 500);
17837
17967
  }
17838
17968
  this.multipleInputValue = '';
@@ -17840,27 +17970,27 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17840
17970
  if (this.filterable) {
17841
17971
  if (this.$phone) {
17842
17972
  setTimeout(function () {
17843
- _this19.$refs.popupFilter.focus();
17973
+ _this21.$refs.popupFilter.focus();
17844
17974
  }, 500);
17845
17975
  } else {
17846
17976
  setTimeout(function () {
17847
- _this19.$refs.filter.focus();
17977
+ _this21.$refs.filter.focus();
17848
17978
  }, 500);
17849
17979
  }
17850
17980
  this.multipleFilterValue = '';
17851
17981
  }
17852
17982
  if (this.setDataFn) {
17853
17983
  setTimeout(function () {
17854
- _this19.$refs.filter.focus();
17984
+ _this21.$refs.filter.focus();
17855
17985
  }, 500);
17856
17986
  this.setDataInputValue = '';
17857
17987
  }
17858
17988
  },
17859
17989
  removeTag: function removeTag(item) {
17860
- var _this20 = this;
17990
+ var _this22 = this;
17861
17991
 
17862
17992
  var val = this.selected.map(function (option) {
17863
- return option[_this20.iValueText];
17993
+ return option[_this22.iValueText];
17864
17994
  });
17865
17995
  this.removeItem(val, item[this.iValueText]);
17866
17996
  this.setSeleted(val.join(','));
@@ -17869,24 +17999,24 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17869
17999
  if (this.filterable) {
17870
18000
  if (this.$refs.popupFilter) {
17871
18001
  setTimeout(function () {
17872
- _this20.$refs.popupFilter.focus();
18002
+ _this22.$refs.popupFilter.focus();
17873
18003
  }, 500);
17874
18004
  }
17875
18005
  } else {
17876
18006
  if (this.$refs.popupInput) {
17877
18007
  setTimeout(function () {
17878
- _this20.$refs.popupInput.focus();
18008
+ _this22.$refs.popupInput.focus();
17879
18009
  }, 500);
17880
18010
  }
17881
18011
  }
17882
18012
  } else {
17883
18013
  if (this.filterable) {
17884
18014
  setTimeout(function () {
17885
- _this20.$refs.filter.focus();
18015
+ _this22.$refs.filter.focus();
17886
18016
  }, 500);
17887
18017
  } else {
17888
18018
  setTimeout(function () {
17889
- _this20.$refs.input.focus();
18019
+ _this22.$refs.input.focus();
17890
18020
  }, 500);
17891
18021
  }
17892
18022
  }
@@ -17905,7 +18035,7 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17905
18035
  }
17906
18036
  },
17907
18037
  removeItem: function removeItem(obj, val) {
17908
- var _this21 = this;
18038
+ var _this23 = this;
17909
18039
 
17910
18040
  var index = void 0;
17911
18041
 
@@ -17929,7 +18059,7 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17929
18059
  // 对象数组
17930
18060
  else {
17931
18061
  index = obj.findIndex(function (item) {
17932
- return item[_this21.iValueText] === val;
18062
+ return item[_this23.iValueText] === val;
17933
18063
  });
17934
18064
  obj.splice(index, 1);
17935
18065
  }
@@ -17966,8 +18096,8 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17966
18096
 
17967
18097
  var select_component = normalizeComponent(
17968
18098
  src_selectvue_type_script_lang_js,
17969
- selectvue_type_template_id_0805d936_render,
17970
- selectvue_type_template_id_0805d936_staticRenderFns,
18099
+ selectvue_type_template_id_b54eb61c_render,
18100
+ selectvue_type_template_id_b54eb61c_staticRenderFns,
17971
18101
  false,
17972
18102
  null,
17973
18103
  null,
@@ -22463,8 +22593,8 @@ src_transfer.install = function (Vue) {
22463
22593
  };
22464
22594
 
22465
22595
  /* harmony default export */ var packages_transfer = (src_transfer);
22466
- // 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=545b1e70
22467
- var mainvue_type_template_id_545b1e70_render = function () {
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 () {
22468
22598
  var _vm = this
22469
22599
  var _h = _vm.$createElement
22470
22600
  var _c = _vm._self._c || _h
@@ -22501,11 +22631,11 @@ var mainvue_type_template_id_545b1e70_render = function () {
22501
22631
  )
22502
22632
  : _vm._e()
22503
22633
  }
22504
- var mainvue_type_template_id_545b1e70_staticRenderFns = []
22505
- mainvue_type_template_id_545b1e70_render._withStripped = true
22634
+ var mainvue_type_template_id_4bac6de2_staticRenderFns = []
22635
+ mainvue_type_template_id_4bac6de2_render._withStripped = true
22506
22636
 
22507
22637
 
22508
- // CONCATENATED MODULE: ./packages/float/src/main.vue?vue&type=template&id=545b1e70
22638
+ // CONCATENATED MODULE: ./packages/float/src/main.vue?vue&type=template&id=4bac6de2
22509
22639
 
22510
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
22511
22641
  //
@@ -22598,6 +22728,10 @@ mainvue_type_template_id_545b1e70_render._withStripped = true
22598
22728
  dy: {
22599
22729
  type: [String, Number],
22600
22730
  default: 0
22731
+ },
22732
+ maxHeight: {
22733
+ type: [Number, String],
22734
+ default: ''
22601
22735
  }
22602
22736
  },
22603
22737
  data: function data() {
@@ -22779,7 +22913,7 @@ mainvue_type_template_id_545b1e70_render._withStripped = true
22779
22913
  clearTimeout(timer);
22780
22914
  }, 0);
22781
22915
  } else if (this.link) {
22782
- this.$refs.content.style.height = '';
22916
+ // this.$refs.content.style.height = '100em'
22783
22917
  this.$nextTick(function () {
22784
22918
  // 宽度设置
22785
22919
  if (!_this.width) {
@@ -22940,9 +23074,35 @@ mainvue_type_template_id_545b1e70_render._withStripped = true
22940
23074
  }
22941
23075
 
22942
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
+ }
22943
23088
  if (useSpace < contentHeight) {
22944
23089
  _this.isOver = true;
22945
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
+ }
22946
23106
  }
22947
23107
  }
22948
23108
  });
@@ -22977,9 +23137,9 @@ mainvue_type_template_id_545b1e70_render._withStripped = true
22977
23137
  var _this3 = this;
22978
23138
 
22979
23139
  // 重置 content 高度,这样下次打开的时候才好重新计算是否超过整体高度
22980
- if (!this.height) {
22981
- this.$refs.content.style.height = '';
22982
- }
23140
+ // if (!this.height) {
23141
+ // this.$refs.content.style.height = ''
23142
+ // }
22983
23143
  this.isOver = false;
22984
23144
 
22985
23145
  // 关闭 float 后,移除事件监听
@@ -22992,9 +23152,9 @@ mainvue_type_template_id_545b1e70_render._withStripped = true
22992
23152
  this.$emit('beforeClose');
22993
23153
  this.show = false;
22994
23154
  this.opened = false;
22995
- if (this.$refs.content && this.$refs.content.style.height !== 'auto' && (this.iposition === 'top' || this.iposition === 'bottom') && !this.height) {
22996
- this.$refs.content.style.height = 'auto';
22997
- }
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
+ // }
22998
23158
  this.$emit('closed');
22999
23159
  setTimeout(function () {
23000
23160
  if (_this3.lazy) {
@@ -23205,8 +23365,8 @@ mainvue_type_template_id_545b1e70_render._withStripped = true
23205
23365
 
23206
23366
  var main_component = normalizeComponent(
23207
23367
  src_mainvue_type_script_lang_js,
23208
- mainvue_type_template_id_545b1e70_render,
23209
- mainvue_type_template_id_545b1e70_staticRenderFns,
23368
+ mainvue_type_template_id_4bac6de2_render,
23369
+ mainvue_type_template_id_4bac6de2_staticRenderFns,
23210
23370
  false,
23211
23371
  null,
23212
23372
  null,
@@ -26357,8 +26517,8 @@ disDirective.install = function (Vue) {
26357
26517
 
26358
26518
  dis: dis_src_directive
26359
26519
  });
26360
- // 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=d10b5358
26361
- var inputvue_type_template_id_d10b5358_render = function () {
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=50eba84f
26521
+ var inputvue_type_template_id_50eba84f_render = function () {
26362
26522
  var _vm = this
26363
26523
  var _h = _vm.$createElement
26364
26524
  var _c = _vm._self._c || _h
@@ -26760,11 +26920,11 @@ var inputvue_type_template_id_d10b5358_render = function () {
26760
26920
  ]
26761
26921
  )
26762
26922
  }
26763
- var inputvue_type_template_id_d10b5358_staticRenderFns = []
26764
- inputvue_type_template_id_d10b5358_render._withStripped = true
26923
+ var inputvue_type_template_id_50eba84f_staticRenderFns = []
26924
+ inputvue_type_template_id_50eba84f_render._withStripped = true
26765
26925
 
26766
26926
 
26767
- // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=d10b5358
26927
+ // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=50eba84f
26768
26928
 
26769
26929
  // CONCATENATED MODULE: ./src/utils/string.js
26770
26930
  function filter(chars, from) {
@@ -27174,11 +27334,7 @@ function filter(chars, from) {
27174
27334
  if (this.desc) {
27175
27335
  return this.desc;
27176
27336
  } else if (this.ToFormItem && this.ToFormItem.label) {
27177
- if (typeof this.rule === 'string') {
27178
- return this.ToFormItem.label + '-label';
27179
- } else {
27180
- return this.ToFormItem.label;
27181
- }
27337
+ return this.ToFormItem.label;
27182
27338
  } else {
27183
27339
  return '';
27184
27340
  }
@@ -27249,6 +27405,7 @@ function filter(chars, from) {
27249
27405
  }
27250
27406
  },
27251
27407
  mounted: function mounted() {
27408
+ // console.log('input mounted')
27252
27409
  if (this.$platform === 'pc') {
27253
27410
  this.$el.addEventListener('mouseover', this.showClear);
27254
27411
  this.$el.addEventListener('mouseout', this.hideClear);
@@ -27516,8 +27673,8 @@ function filter(chars, from) {
27516
27673
 
27517
27674
  var input_component = normalizeComponent(
27518
27675
  src_inputvue_type_script_lang_js,
27519
- inputvue_type_template_id_d10b5358_render,
27520
- inputvue_type_template_id_d10b5358_staticRenderFns,
27676
+ inputvue_type_template_id_50eba84f_render,
27677
+ inputvue_type_template_id_50eba84f_staticRenderFns,
27521
27678
  false,
27522
27679
  null,
27523
27680
  null,
@@ -27779,8 +27936,8 @@ var form_component = normalizeComponent(
27779
27936
  )
27780
27937
 
27781
27938
  /* harmony default export */ var src_form = (form_component.exports);
27782
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/form-item.vue?vue&type=template&id=546f6142
27783
- var form_itemvue_type_template_id_546f6142_render = function () {
27939
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/form-item.vue?vue&type=template&id=0b044183
27940
+ var form_itemvue_type_template_id_0b044183_render = function () {
27784
27941
  var _vm = this
27785
27942
  var _h = _vm.$createElement
27786
27943
  var _c = _vm._self._c || _h
@@ -27805,7 +27962,7 @@ var form_itemvue_type_template_id_546f6142_render = function () {
27805
27962
  _c(
27806
27963
  "div",
27807
27964
  { ref: "labelText", staticClass: "text" },
27808
- [_vm._v(_vm._s(_vm.label)), _vm._t("label")],
27965
+ [_vm._t("label", [_vm._v(_vm._s(_vm.label))])],
27809
27966
  2
27810
27967
  ),
27811
27968
  _vm.$slots.tip && _vm.ToForm.type === "list"
@@ -27837,11 +27994,11 @@ var form_itemvue_type_template_id_546f6142_render = function () {
27837
27994
  2
27838
27995
  )
27839
27996
  }
27840
- var form_itemvue_type_template_id_546f6142_staticRenderFns = []
27841
- form_itemvue_type_template_id_546f6142_render._withStripped = true
27997
+ var form_itemvue_type_template_id_0b044183_staticRenderFns = []
27998
+ form_itemvue_type_template_id_0b044183_render._withStripped = true
27842
27999
 
27843
28000
 
27844
- // CONCATENATED MODULE: ./packages/form/src/form-item.vue?vue&type=template&id=546f6142
28001
+ // CONCATENATED MODULE: ./packages/form/src/form-item.vue?vue&type=template&id=0b044183
27845
28002
 
27846
28003
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/form-item.vue?vue&type=script&lang=js
27847
28004
  //
@@ -27952,8 +28109,8 @@ form_itemvue_type_template_id_546f6142_render._withStripped = true
27952
28109
 
27953
28110
  var form_item_component = normalizeComponent(
27954
28111
  src_form_itemvue_type_script_lang_js,
27955
- form_itemvue_type_template_id_546f6142_render,
27956
- form_itemvue_type_template_id_546f6142_staticRenderFns,
28112
+ form_itemvue_type_template_id_0b044183_render,
28113
+ form_itemvue_type_template_id_0b044183_staticRenderFns,
27957
28114
  false,
27958
28115
  null,
27959
28116
  null,
@@ -28380,8 +28537,8 @@ icon.install = function (Vue) {
28380
28537
  };
28381
28538
 
28382
28539
  /* harmony default export */ var packages_icon = (icon);
28383
- // 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=b305a782
28384
- var date_pickervue_type_template_id_b305a782_render = function () {
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=ed2db97a
28541
+ var date_pickervue_type_template_id_ed2db97a_render = function () {
28385
28542
  var _vm = this
28386
28543
  var _h = _vm.$createElement
28387
28544
  var _c = _vm._self._c || _h
@@ -28530,11 +28687,11 @@ var date_pickervue_type_template_id_b305a782_render = function () {
28530
28687
  1
28531
28688
  )
28532
28689
  }
28533
- var date_pickervue_type_template_id_b305a782_staticRenderFns = []
28534
- date_pickervue_type_template_id_b305a782_render._withStripped = true
28690
+ var date_pickervue_type_template_id_ed2db97a_staticRenderFns = []
28691
+ date_pickervue_type_template_id_ed2db97a_render._withStripped = true
28535
28692
 
28536
28693
 
28537
- // CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=template&id=b305a782
28694
+ // CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=template&id=ed2db97a
28538
28695
 
28539
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
28540
28697
  var pickervue_type_template_id_4176400e_render = function () {
@@ -29136,43 +29293,6 @@ var date_ = __webpack_require__(94);
29136
29293
  //
29137
29294
  //
29138
29295
  //
29139
- //
29140
- //
29141
- //
29142
- //
29143
- //
29144
- //
29145
- //
29146
- //
29147
- //
29148
- //
29149
- //
29150
- //
29151
- //
29152
- //
29153
- //
29154
- //
29155
- //
29156
- //
29157
- //
29158
- //
29159
- //
29160
- //
29161
- //
29162
- //
29163
- //
29164
- //
29165
- //
29166
- //
29167
- //
29168
- //
29169
- //
29170
- //
29171
- //
29172
- //
29173
- //
29174
- //
29175
- //
29176
29296
 
29177
29297
 
29178
29298
 
@@ -29368,6 +29488,13 @@ var date_ = __webpack_require__(94);
29368
29488
 
29369
29489
  immediate: true
29370
29490
  },
29491
+ iValue: {
29492
+ handler: function handler(val) {
29493
+ this.$emit('change', val);
29494
+ },
29495
+
29496
+ immediate: true
29497
+ },
29371
29498
  displayFormat: {
29372
29499
  handler: function handler(fmt) {
29373
29500
  this.displayFormatRegExp = new RegExp('^' + String(fmt).replace(/\-|\//g, '\\-').replace(/[a-zA-Z]/g, '\\d') + '$');
@@ -29383,7 +29510,7 @@ var date_ = __webpack_require__(94);
29383
29510
  }
29384
29511
  if (this.value) {
29385
29512
  this.iValue = this.value;
29386
- this.$emit('change', this.value);
29513
+ // this.$emit('change', this.value)
29387
29514
  }
29388
29515
  },
29389
29516
  mounted: function mounted() {
@@ -29397,7 +29524,7 @@ var date_ = __webpack_require__(94);
29397
29524
  },
29398
29525
  handleDisplayChange: function handleDisplayChange(value) {
29399
29526
  this.datedisplay = value;
29400
- this.$emit('change', this.datedisplay);
29527
+ // this.$emit('change', this.datedisplay)
29401
29528
  },
29402
29529
  handleDisplayBlur: function handleDisplayBlur() {
29403
29530
  var _this = this;
@@ -29414,7 +29541,7 @@ var date_ = __webpack_require__(94);
29414
29541
  if (!_this.displayFormatRegExp.test(_this.datedisplay)) {
29415
29542
  _this.datedisplay = _this.formatDate(new Date(_this.datedisplay), _this.displayFormat, _this.datedisplay);
29416
29543
  _this.iValue = _this.formatDate(new Date(_this.datedisplay), _this.displayFormat, _this.datedisplay);
29417
- _this.$emit('change', _this.iValue);
29544
+ // this.$emit('change', this.iValue)
29418
29545
  } else {
29419
29546
  _this.changeValue(_this.getDateFromValue(_this.datedisplay, _this.displayFormat), _this.datedisplay);
29420
29547
  }
@@ -29442,7 +29569,7 @@ var date_ = __webpack_require__(94);
29442
29569
  this.datedisplay = value.split(' ').length > 1 ? value.split(' ')[1] : value;
29443
29570
  this.iValue = value.split(' ').length > 1 ? value.split(' ')[1] : value;
29444
29571
  }
29445
- this.$emit('change', this.iValue);
29572
+ // this.$emit('change', this.iValue)
29446
29573
  } else {
29447
29574
  var _flag = isNaN(new Date(value).getTime()); // 判断是否可以使用 2022-05 如果不可用,则替换为 2022/05
29448
29575
  if (_flag) {
@@ -29450,15 +29577,15 @@ var date_ = __webpack_require__(94);
29450
29577
  }
29451
29578
  this.datedisplay = this.formatDate(new Date(value), this.displayFormat, oldVal);
29452
29579
  this.iValue = this.formatDate(new Date(value), this.valueFormat, oldVal);
29453
- this.$emit('change', this.iValue);
29580
+ // this.$emit('change', this.iValue)
29454
29581
  }
29455
29582
  },
29456
29583
  clear: function clear() {
29457
- var oldVal = this.iValue; // 失去焦点时原本就是空的情况不应该 change
29584
+ // const oldVal = this.iValue // 失去焦点时原本就是空的情况不应该 change
29458
29585
  this.iValue = '';
29459
- if (oldVal) {
29460
- this.$emit('change', this.iValue);
29461
- }
29586
+ // if (oldVal) {
29587
+ // this.$emit('change', this.iValue)
29588
+ // }
29462
29589
  if (!this.$pc) {
29463
29590
  this.$refs.layer.close();
29464
29591
  }
@@ -29540,7 +29667,13 @@ var date_ = __webpack_require__(94);
29540
29667
  // 匹配 20250706
29541
29668
  /^\d{8}$/.test(dateStr) ||
29542
29669
  // 匹配 2025/07/06
29543
- /^\d{4}\/\d{2}\/\d{2}$/.test(dateStr);
29670
+ /^\d{4}\/\d{2}\/\d{2}$/.test(dateStr) ||
29671
+ // 匹配 2025-10(年-月)
29672
+ /^\d{4}-\d{2}$/.test(dateStr) ||
29673
+ // 匹配 2025/10(年/月)
29674
+ /^\d{4}\/\d{2}$/.test(dateStr) ||
29675
+ // 匹配 202510(年月连写)
29676
+ /^\d{6}$/.test(dateStr);
29544
29677
  if (!isValidDate) {
29545
29678
  this.$emit('errTime');
29546
29679
  return '';
@@ -29587,8 +29720,8 @@ var date_ = __webpack_require__(94);
29587
29720
  });
29588
29721
  // CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=script&lang=js
29589
29722
  /* harmony default export */ var src_date_pickervue_type_script_lang_js = (date_pickervue_type_script_lang_js);
29590
- // EXTERNAL MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=style&index=0&id=b305a782&prod&lang=css
29591
- var date_pickervue_type_style_index_0_id_b305a782_prod_lang_css = __webpack_require__(103);
29723
+ // EXTERNAL MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=style&index=0&id=ed2db97a&prod&lang=css
29724
+ var date_pickervue_type_style_index_0_id_ed2db97a_prod_lang_css = __webpack_require__(103);
29592
29725
 
29593
29726
  // CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue
29594
29727
 
@@ -29601,8 +29734,8 @@ var date_pickervue_type_style_index_0_id_b305a782_prod_lang_css = __webpack_requ
29601
29734
 
29602
29735
  var date_picker_component = normalizeComponent(
29603
29736
  src_date_pickervue_type_script_lang_js,
29604
- date_pickervue_type_template_id_b305a782_render,
29605
- date_pickervue_type_template_id_b305a782_staticRenderFns,
29737
+ date_pickervue_type_template_id_ed2db97a_render,
29738
+ date_pickervue_type_template_id_ed2db97a_staticRenderFns,
29606
29739
  false,
29607
29740
  null,
29608
29741
  null,
@@ -49506,11 +49639,7 @@ var validate_validate = function validate(dom) {
49506
49639
  } else {
49507
49640
  reg = new RegExp(rule);
49508
49641
  if (!reg.test(value)) {
49509
- if (desc.indexOf('-label') > -1) {
49510
- formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.custom', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : '');
49511
- } else {
49512
- formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.customRemark', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : '');
49513
- }
49642
+ formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.custom', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : '');
49514
49643
  allPass = false;
49515
49644
  setHiddenErrorNodes(formEl);
49516
49645
  return 'continue';
@@ -49523,12 +49652,7 @@ var validate_validate = function validate(dom) {
49523
49652
  }
49524
49653
  } else if (required) {
49525
49654
  formVue.errorType = 'required';
49526
- if (desc.indexOf('-label') > -1) {
49527
- var desc_label = desc.replace('-label', '');
49528
- formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.required', desc_label);
49529
- } else {
49530
- formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.requiredRemark', desc);
49531
- }
49655
+ formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.required', desc);
49532
49656
  allPass = false;
49533
49657
  setHiddenErrorNodes(formEl);
49534
49658
  return 'continue';
@@ -49554,11 +49678,7 @@ var validate_validate = function validate(dom) {
49554
49678
  } else {
49555
49679
  _reg = new RegExp(rule);
49556
49680
  if (!_reg.test(value)) {
49557
- if (desc.indexOf('-label') > -1) {
49558
- showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.custom', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : ''));
49559
- } else {
49560
- showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.customRemark', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : ''));
49561
- }
49681
+ showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.custom', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : ''));
49562
49682
  return {
49563
49683
  v: false
49564
49684
  };
@@ -49570,12 +49690,7 @@ var validate_validate = function validate(dom) {
49570
49690
  return 'continue';
49571
49691
  }
49572
49692
  } else if (required) {
49573
- if (desc.indexOf('-label') > -1) {
49574
- var _desc_label = desc.replace('-label', '');
49575
- showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.required', _desc_label));
49576
- } else {
49577
- showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.requiredRemark', desc));
49578
- }
49693
+ showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.required', desc));
49579
49694
  return {
49580
49695
  v: false
49581
49696
  };
@@ -50112,7 +50227,7 @@ if (typeof window !== 'undefined' && window.Vue) {
50112
50227
  }
50113
50228
 
50114
50229
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
50115
- version: '1.37.0',
50230
+ version: '1.39.0',
50116
50231
  locale: lib_locale_default.a.use,
50117
50232
  i18n: lib_locale_default.a.i18n,
50118
50233
  install: src_install,