ai.touchui-vue 1.38.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 (52) hide show
  1. package/lib/ai.touchui-vue.common.js +337 -193
  2. package/lib/date-picker.js +22 -15
  3. package/lib/float.js +39 -9
  4. package/lib/import.js +19 -11
  5. package/lib/index.js +1 -1
  6. package/lib/input.js +4 -7
  7. package/lib/progress.js +8 -2
  8. package/lib/select.js +210 -96
  9. package/lib/theme/css/theme/B-Design.css +1 -1
  10. package/lib/theme/css/theme/aiplan.css +1 -1
  11. package/lib/theme/css/theme/aiplangd.css +1 -1
  12. package/lib/theme/css/theme/chbn.css +1 -1
  13. package/lib/theme/css/theme/default.css +1 -1
  14. package/lib/theme/css/theme/dt.css +1 -1
  15. package/lib/theme/css/theme/ecloud.css +1 -1
  16. package/lib/theme/css/theme/hongkong.css +1 -1
  17. package/lib/theme/css/theme/logistics.css +1 -1
  18. package/lib/theme/css/theme/narrow.css +1 -1
  19. package/lib/theme/css/theme/sdpf.css +1 -1
  20. package/lib/theme/css/theme/upc.css +1 -1
  21. package/lib/theme/css/theme/website.css +1 -1
  22. package/lib/theme/css/theme/workbench-gz.css +1 -1
  23. package/lib/theme/css/theme/zj.css +1 -1
  24. package/lib/utils/validate.js +4 -22
  25. package/package.json +1 -1
  26. package/packages/date-picker/src/.DS_Store +0 -0
  27. package/packages/date-picker/src/date-picker.vue +15 -9
  28. package/packages/float/src/main.vue +37 -7
  29. package/packages/import/src/import.vue +1 -1
  30. package/packages/input/src/input.vue +2 -5
  31. package/packages/progress/src/progress.vue +5 -0
  32. package/packages/select/src/select.vue +95 -19
  33. package/packages/theme/lib/css/theme/B-Design.css +1 -1
  34. package/packages/theme/lib/css/theme/aiplan.css +1 -1
  35. package/packages/theme/lib/css/theme/aiplangd.css +1 -1
  36. package/packages/theme/lib/css/theme/chbn.css +1 -1
  37. package/packages/theme/lib/css/theme/default.css +1 -1
  38. package/packages/theme/lib/css/theme/dt.css +1 -1
  39. package/packages/theme/lib/css/theme/ecloud.css +1 -1
  40. package/packages/theme/lib/css/theme/hongkong.css +1 -1
  41. package/packages/theme/lib/css/theme/logistics.css +1 -1
  42. package/packages/theme/lib/css/theme/narrow.css +1 -1
  43. package/packages/theme/lib/css/theme/sdpf.css +1 -1
  44. package/packages/theme/lib/css/theme/upc.css +1 -1
  45. package/packages/theme/lib/css/theme/website.css +1 -1
  46. package/packages/theme/lib/css/theme/workbench-gz.css +1 -1
  47. package/packages/theme/lib/css/theme/zj.css +1 -1
  48. package/packages/theme/src/less/element/pic.less +1 -0
  49. package/packages/theme/src/less/element/progress.less +1 -1
  50. package/packages/theme/src/less/element/select.less +8 -0
  51. package/src/index.js +1 -1
  52. 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_44459036_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_44459036_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_44459036_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=69709cdc
14720
- var selectvue_type_template_id_69709cdc_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_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.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_69709cdc_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_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.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_69709cdc_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_69709cdc_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_69709cdc_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_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 selectvue_type_template_id_69709cdc_staticRenderFns = []
16370
- selectvue_type_template_id_69709cdc_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=69709cdc
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
  }
@@ -17433,17 +17561,17 @@ var tip_default = /*#__PURE__*/__webpack_require__.n(tip_);
17433
17561
  }
17434
17562
  },
17435
17563
  getLabel: function getLabel(val) {
17436
- var _this9 = this;
17564
+ var _this11 = this;
17437
17565
 
17438
17566
  var obj = this.options.find(function (item) {
17439
- return item[_this9.iValueText] === val;
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 _this10 = this;
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 = _this10.setLabelFn(item);
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
- _this10.options = res;
17555
- sessionStorage.setItem('static.' + _this10.api, JSON.stringify(res));
17682
+ _this12.options = res;
17683
+ sessionStorage.setItem('static.' + _this12.api, JSON.stringify(res));
17556
17684
 
17557
17685
  // 设置 selected
17558
- _this10.setSeleted(_this10.value);
17559
- _this10.setPlaceholder();
17560
- _this10.$emit('option-loaded', _this10.options);
17561
- } 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) {
17562
17690
  // 按照 json 格式返回,需要根据配置路径进行解析
17563
17691
  // 如:{ code:'0', data:[{name:'张三', id:0},{name:'李四', id:1}]}
17564
17692
  var data = [];
17565
- if (_this10.iResPath) {
17566
- var resPath = _this10.iResPath.split('/');
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
- _this10.options = data;
17572
- sessionStorage.setItem('static.' + _this10.api, JSON.stringify(data));
17699
+ _this12.options = data;
17700
+ sessionStorage.setItem('static.' + _this12.api, JSON.stringify(data));
17573
17701
 
17574
17702
  // 设置 selected
17575
- _this10.setSeleted(_this10.value);
17576
- _this10.setPlaceholder();
17577
- _this10.$emit('option-loaded', _this10.options);
17703
+ _this12.setSeleted(_this12.value);
17704
+ _this12.setPlaceholder();
17705
+ _this12.$emit('option-loaded', _this12.options);
17578
17706
  } else {
17579
- _this10.options = [];
17580
- _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 + ')');
17581
17709
  }
17582
17710
  },
17583
17711
  onError: function onError(res) {
17584
- _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 + ') '));
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 _this11 = this;
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[_this11.iValueText]);
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 _this12 = this;
17752
+ var _this14 = this;
17625
17753
 
17626
17754
  var arr = [];
17627
17755
  this.options.map(function (item) {
17628
- if (!item.disabled && !_this12.iValue.split(',').includes(item[_this12.iValueText])) {
17629
- arr.push(item[_this12.iValueText]);
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 _this13 = this;
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
- _this13.$emit('selected', item);
17647
- _this13.closeLayer();
17774
+ _this15.$emit('selected', item);
17775
+ _this15.closeLayer();
17648
17776
  });
17649
17777
  },
17650
17778
  adjustLayer: function adjustLayer() {
17651
- var _this14 = this;
17779
+ var _this16 = this;
17652
17780
 
17653
17781
  if (this.optionDisplay !== 'none' && this.$refs.layer.show) {
17654
- this.$nextTick(function () {
17655
- _this14.$refs.layer.set(_this14.$refs.link);
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 _this15 = this;
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 (_this15.$refs.popupFilter) {
17667
- _this15.$refs.popupFilter.focus();
17794
+ if (_this17.$refs.popupFilter) {
17795
+ _this17.$refs.popupFilter.focus();
17668
17796
  }
17669
- _this15.$nextTick(function () {
17670
- _this15.options = _this15.s_options.concat(_this15.anotherOptions);
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 (_this15.$refs.popupInput) {
17677
- _this15.$refs.popupInput.focus();
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 _this16 = this;
17862
+ var _this18 = this;
17735
17863
 
17736
17864
  this.blurByLayer = true;
17737
17865
  var timer = null;
17738
17866
  timer = setTimeout(function () {
17739
- _this16.blurByLayer = false;
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 _this17 = this;
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 (_this17.value === '') {
17774
- _this17.openLayer();
17901
+ if (_this19.value === '') {
17902
+ _this19.openLayer();
17775
17903
  } else {
17776
- _this17.closeLayer();
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 _this18 = this;
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
- _this18.inputing = true;
17798
- _this18.adjustLayer();
17799
- _this18.openLayer();
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 _this19 = this;
17946
+ var _this21 = this;
17819
17947
 
17820
17948
  var val = this.selected.map(function (option) {
17821
- return option[_this19.iValueText];
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
- _this19.$refs.popupInput.focus();
17961
+ _this21.$refs.popupInput.focus();
17834
17962
  }, 500);
17835
17963
  } else {
17836
17964
  setTimeout(function () {
17837
- _this19.$refs.input.focus();
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
- _this19.$refs.popupFilter.focus();
17973
+ _this21.$refs.popupFilter.focus();
17846
17974
  }, 500);
17847
17975
  } else {
17848
17976
  setTimeout(function () {
17849
- _this19.$refs.filter.focus();
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
- _this19.$refs.filter.focus();
17984
+ _this21.$refs.filter.focus();
17857
17985
  }, 500);
17858
17986
  this.setDataInputValue = '';
17859
17987
  }
17860
17988
  },
17861
17989
  removeTag: function removeTag(item) {
17862
- var _this20 = this;
17990
+ var _this22 = this;
17863
17991
 
17864
17992
  var val = this.selected.map(function (option) {
17865
- return option[_this20.iValueText];
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
- _this20.$refs.popupFilter.focus();
18002
+ _this22.$refs.popupFilter.focus();
17875
18003
  }, 500);
17876
18004
  }
17877
18005
  } else {
17878
18006
  if (this.$refs.popupInput) {
17879
18007
  setTimeout(function () {
17880
- _this20.$refs.popupInput.focus();
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
- _this20.$refs.filter.focus();
18015
+ _this22.$refs.filter.focus();
17888
18016
  }, 500);
17889
18017
  } else {
17890
18018
  setTimeout(function () {
17891
- _this20.$refs.input.focus();
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 _this21 = this;
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[_this21.iValueText] === val;
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
- selectvue_type_template_id_69709cdc_render,
17972
- selectvue_type_template_id_69709cdc_staticRenderFns,
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=545b1e70
22469
- 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 () {
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 mainvue_type_template_id_545b1e70_staticRenderFns = []
22507
- 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
22508
22636
 
22509
22637
 
22510
- // 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
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
- this.$refs.content.style.height = '';
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
- this.$refs.content.style.height = 'auto';
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
- mainvue_type_template_id_545b1e70_render,
23211
- mainvue_type_template_id_545b1e70_staticRenderFns,
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=d10b5358
26363
- 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 () {
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 inputvue_type_template_id_d10b5358_staticRenderFns = []
26766
- 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
26767
26925
 
26768
26926
 
26769
- // 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
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
- if (typeof this.rule === 'string') {
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);
@@ -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
- inputvue_type_template_id_d10b5358_render,
27522
- inputvue_type_template_id_d10b5358_staticRenderFns,
27676
+ inputvue_type_template_id_50eba84f_render,
27677
+ inputvue_type_template_id_50eba84f_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=44459036
28386
- var date_pickervue_type_template_id_44459036_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 () {
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 date_pickervue_type_template_id_44459036_staticRenderFns = []
28536
- date_pickervue_type_template_id_44459036_render._withStripped = true
28690
+ var date_pickervue_type_template_id_ed2db97a_staticRenderFns = []
28691
+ date_pickervue_type_template_id_ed2db97a_render._withStripped = true
28537
28692
 
28538
28693
 
28539
- // CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=template&id=44459036
28694
+ // CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=template&id=ed2db97a
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,7 +29524,7 @@ 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;
@@ -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
- _this.$emit('change', _this.iValue);
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
- var oldVal = this.iValue; // 失去焦点时原本就是空的情况不应该 change
29584
+ // const oldVal = this.iValue // 失去焦点时原本就是空的情况不应该 change
29423
29585
  this.iValue = '';
29424
- if (oldVal) {
29425
- this.$emit('change', this.iValue);
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=44459036&prod&lang=css
29562
- var date_pickervue_type_style_index_0_id_44459036_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);
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
- date_pickervue_type_template_id_44459036_render,
29576
- date_pickervue_type_template_id_44459036_staticRenderFns,
29737
+ date_pickervue_type_template_id_ed2db97a_render,
29738
+ date_pickervue_type_template_id_ed2db97a_staticRenderFns,
29577
29739
  false,
29578
29740
  null,
29579
29741
  null,
@@ -49477,11 +49639,7 @@ var validate_validate = function validate(dom) {
49477
49639
  } else {
49478
49640
  reg = new RegExp(rule);
49479
49641
  if (!reg.test(value)) {
49480
- if (desc.indexOf('-label') > -1) {
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
- }
49642
+ formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.custom', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : '');
49485
49643
  allPass = false;
49486
49644
  setHiddenErrorNodes(formEl);
49487
49645
  return 'continue';
@@ -49494,12 +49652,7 @@ var validate_validate = function validate(dom) {
49494
49652
  }
49495
49653
  } else if (required) {
49496
49654
  formVue.errorType = 'required';
49497
- if (desc.indexOf('-label') > -1) {
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
- }
49655
+ formVue.errorTip = Object(lib_locale_["t"])('to.validate.tip.required', desc);
49503
49656
  allPass = false;
49504
49657
  setHiddenErrorNodes(formEl);
49505
49658
  return 'continue';
@@ -49525,11 +49678,7 @@ var validate_validate = function validate(dom) {
49525
49678
  } else {
49526
49679
  _reg = new RegExp(rule);
49527
49680
  if (!_reg.test(value)) {
49528
- if (desc.indexOf('-label') > -1) {
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
- }
49681
+ showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.custom', desc, formVue.validateTip ? '\uFF0C' + formVue.validateTip : ''));
49533
49682
  return {
49534
49683
  v: false
49535
49684
  };
@@ -49541,12 +49690,7 @@ var validate_validate = function validate(dom) {
49541
49690
  return 'continue';
49542
49691
  }
49543
49692
  } else if (required) {
49544
- if (desc.indexOf('-label') > -1) {
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
- }
49693
+ showTip(formEl, Object(lib_locale_["t"])('to.validate.tip.required', desc));
49550
49694
  return {
49551
49695
  v: false
49552
49696
  };
@@ -50083,7 +50227,7 @@ if (typeof window !== 'undefined' && window.Vue) {
50083
50227
  }
50084
50228
 
50085
50229
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
50086
- version: '1.38.0',
50230
+ version: '1.39.0',
50087
50231
  locale: lib_locale_default.a.use,
50088
50232
  i18n: lib_locale_default.a.i18n,
50089
50233
  install: src_install,