ai.touchui-vue 1.39.0 → 1.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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_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__);
7056
+ /* harmony import */ var _node_modules_style_loader_dist_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_date_picker_vue_vue_type_style_index_0_id_051d024a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22);
7057
+ /* harmony import */ var _node_modules_style_loader_dist_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_date_picker_vue_vue_type_style_index_0_id_051d024a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_date_picker_vue_vue_type_style_index_0_id_051d024a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
7058
7058
  /* unused harmony reexport * */
7059
7059
 
7060
7060
 
@@ -26517,8 +26517,8 @@ disDirective.install = function (Vue) {
26517
26517
 
26518
26518
  dis: dis_src_directive
26519
26519
  });
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 () {
26520
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=57e4aab5
26521
+ var inputvue_type_template_id_57e4aab5_render = function () {
26522
26522
  var _vm = this
26523
26523
  var _h = _vm.$createElement
26524
26524
  var _c = _vm._self._c || _h
@@ -26920,11 +26920,11 @@ var inputvue_type_template_id_50eba84f_render = function () {
26920
26920
  ]
26921
26921
  )
26922
26922
  }
26923
- var inputvue_type_template_id_50eba84f_staticRenderFns = []
26924
- inputvue_type_template_id_50eba84f_render._withStripped = true
26923
+ var inputvue_type_template_id_57e4aab5_staticRenderFns = []
26924
+ inputvue_type_template_id_57e4aab5_render._withStripped = true
26925
26925
 
26926
26926
 
26927
- // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=50eba84f
26927
+ // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=57e4aab5
26928
26928
 
26929
26929
  // CONCATENATED MODULE: ./src/utils/string.js
26930
26930
  function filter(chars, from) {
@@ -27526,7 +27526,7 @@ function filter(chars, from) {
27526
27526
 
27527
27527
  // 最小值判断
27528
27528
  if (Number(this.data, 0) < Number(this.min)) {
27529
- this.data = 'NaN';
27529
+ this.data = Number(this.min) + '';
27530
27530
  }
27531
27531
 
27532
27532
  if (Number(this.conversionType) && this.data) {
@@ -27673,8 +27673,8 @@ function filter(chars, from) {
27673
27673
 
27674
27674
  var input_component = normalizeComponent(
27675
27675
  src_inputvue_type_script_lang_js,
27676
- inputvue_type_template_id_50eba84f_render,
27677
- inputvue_type_template_id_50eba84f_staticRenderFns,
27676
+ inputvue_type_template_id_57e4aab5_render,
27677
+ inputvue_type_template_id_57e4aab5_staticRenderFns,
27678
27678
  false,
27679
27679
  null,
27680
27680
  null,
@@ -28537,8 +28537,8 @@ icon.install = function (Vue) {
28537
28537
  };
28538
28538
 
28539
28539
  /* harmony default export */ var packages_icon = (icon);
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 () {
28540
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/date-picker.vue?vue&type=template&id=051d024a
28541
+ var date_pickervue_type_template_id_051d024a_render = function () {
28542
28542
  var _vm = this
28543
28543
  var _h = _vm.$createElement
28544
28544
  var _c = _vm._self._c || _h
@@ -28687,11 +28687,11 @@ var date_pickervue_type_template_id_ed2db97a_render = function () {
28687
28687
  1
28688
28688
  )
28689
28689
  }
28690
- var date_pickervue_type_template_id_ed2db97a_staticRenderFns = []
28691
- date_pickervue_type_template_id_ed2db97a_render._withStripped = true
28690
+ var date_pickervue_type_template_id_051d024a_staticRenderFns = []
28691
+ date_pickervue_type_template_id_051d024a_render._withStripped = true
28692
28692
 
28693
28693
 
28694
- // CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=template&id=ed2db97a
28694
+ // CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=template&id=051d024a
28695
28695
 
28696
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
28697
28697
  var pickervue_type_template_id_4176400e_render = function () {
@@ -29530,7 +29530,7 @@ var date_ = __webpack_require__(94);
29530
29530
  var _this = this;
29531
29531
 
29532
29532
  setTimeout(function () {
29533
- if (isNaN(new Date(_this.datedisplay))) {
29533
+ if (isNaN(new Date(_this.datedisplay)) || _this.datedisplay.length < 8) {
29534
29534
  if (_this.datedisplay) {
29535
29535
  _this.$emit('errTime');
29536
29536
  }
@@ -29720,8 +29720,8 @@ var date_ = __webpack_require__(94);
29720
29720
  });
29721
29721
  // CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=script&lang=js
29722
29722
  /* harmony default export */ var src_date_pickervue_type_script_lang_js = (date_pickervue_type_script_lang_js);
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);
29723
+ // EXTERNAL MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=style&index=0&id=051d024a&prod&lang=css
29724
+ var date_pickervue_type_style_index_0_id_051d024a_prod_lang_css = __webpack_require__(103);
29725
29725
 
29726
29726
  // CONCATENATED MODULE: ./packages/date-picker/src/date-picker.vue
29727
29727
 
@@ -29734,8 +29734,8 @@ var date_pickervue_type_style_index_0_id_ed2db97a_prod_lang_css = __webpack_requ
29734
29734
 
29735
29735
  var date_picker_component = normalizeComponent(
29736
29736
  src_date_pickervue_type_script_lang_js,
29737
- date_pickervue_type_template_id_ed2db97a_render,
29738
- date_pickervue_type_template_id_ed2db97a_staticRenderFns,
29737
+ date_pickervue_type_template_id_051d024a_render,
29738
+ date_pickervue_type_template_id_051d024a_staticRenderFns,
29739
29739
  false,
29740
29740
  null,
29741
29741
  null,
@@ -32211,8 +32211,8 @@ collapse.install = function (Vue) {
32211
32211
  };
32212
32212
 
32213
32213
  /* harmony default export */ var packages_collapse = (collapse);
32214
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table.vue?vue&type=template&id=a7feb1e0
32215
- var tablevue_type_template_id_a7feb1e0_render = function () {
32214
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table.vue?vue&type=template&id=2e5c7c80
32215
+ var tablevue_type_template_id_2e5c7c80_render = function () {
32216
32216
  var _vm = this
32217
32217
  var _h = _vm.$createElement
32218
32218
  var _c = _vm._self._c || _h
@@ -33026,11 +33026,11 @@ var tablevue_type_template_id_a7feb1e0_render = function () {
33026
33026
  2
33027
33027
  )
33028
33028
  }
33029
- var tablevue_type_template_id_a7feb1e0_staticRenderFns = []
33030
- tablevue_type_template_id_a7feb1e0_render._withStripped = true
33029
+ var tablevue_type_template_id_2e5c7c80_staticRenderFns = []
33030
+ tablevue_type_template_id_2e5c7c80_render._withStripped = true
33031
33031
 
33032
33032
 
33033
- // CONCATENATED MODULE: ./packages/table/src/table.vue?vue&type=template&id=a7feb1e0
33033
+ // CONCATENATED MODULE: ./packages/table/src/table.vue?vue&type=template&id=2e5c7c80
33034
33034
 
33035
33035
  // EXTERNAL MODULE: ./src/utils/dom.js
33036
33036
  var utils_dom = __webpack_require__(5);
@@ -35640,6 +35640,12 @@ function db(fn) {
35640
35640
 
35641
35641
  methods: {
35642
35642
  init: function init() {
35643
+ if (Number(this.fixTop) > 0 && this.$refs.leftTable) {
35644
+ this.$refs.leftTable.style.top = 0;
35645
+ }
35646
+ if (Number(this.fixTop) > 0 && this.$refs.rightTable) {
35647
+ this.$refs.rightTable.style.top = 0;
35648
+ }
35643
35649
  if (this.$refs && this.$refs.tbody) {
35644
35650
  // 监听 slot 中的 DOM 变化
35645
35651
  var tbody = this.$refs.tbody.$el || this.$refs.tbody;
@@ -35818,12 +35824,18 @@ function db(fn) {
35818
35824
  }
35819
35825
  },
35820
35826
  setFixDiv: function setFixDiv() {
35827
+ var _this8 = this;
35828
+
35821
35829
  if (Number(this.fixTop) > 0 && this.$refs.top && this.$refs.topTable) {
35822
35830
  if (this.hasVScroll()) {
35823
35831
  this.$refs.top.style.width = this.$refs.body.offsetWidth - this.getBarWidth() + 'px';
35824
35832
  }
35825
- this.$refs.topTable.style.width = this.$refs.table.offsetWidth + 'px';
35826
- this.$refs.table.style.width = this.$refs.table.offsetWidth + 'px';
35833
+ this.$refs.topTable.style.width = '';
35834
+ this.$refs.table.style.width = '';
35835
+ this.$nextTick(function () {
35836
+ _this8.$refs.topTable.style.width = _this8.$refs.table.offsetWidth + 'px';
35837
+ _this8.$refs.table.style.width = _this8.$refs.table.offsetWidth + 'px';
35838
+ });
35827
35839
  }
35828
35840
  if (Number(this.fixRight) > 0 && this.$refs.right && this.$el) {
35829
35841
  if (this.hasHScroll()) {
@@ -35859,7 +35871,7 @@ function db(fn) {
35859
35871
  }
35860
35872
  },
35861
35873
  formatData: function formatData() {
35862
- var _this8 = this;
35874
+ var _this9 = this;
35863
35875
 
35864
35876
  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
35865
35877
 
@@ -35908,30 +35920,30 @@ function db(fn) {
35908
35920
  setData(dataTemp);
35909
35921
  this.iData = arr;
35910
35922
  setTimeout(function () {
35911
- _this8.changeIDataType = 'default';
35923
+ _this9.changeIDataType = 'default';
35912
35924
  }, 100);
35913
35925
  },
35914
35926
 
35915
35927
  // 设置全选或者不全选
35916
35928
  toggleAllSelection: function toggleAllSelection(checked) {
35917
- var _this9 = this;
35929
+ var _this10 = this;
35918
35930
 
35919
35931
  this.iData.map(function (item) {
35920
35932
  if (!item.disabled) {
35921
- _this9.$set(item, '_checked', checked);
35933
+ _this10.$set(item, '_checked', checked);
35922
35934
  }
35923
35935
  });
35924
35936
  },
35925
35937
 
35926
35938
  // 全选中事件
35927
35939
  handleSelectionAllChange: function handleSelectionAllChange(checked) {
35928
- var _this10 = this;
35940
+ var _this11 = this;
35929
35941
 
35930
35942
  this.isSelectAll = checked;
35931
35943
  this.toggleAllSelection(checked);
35932
35944
  this.iData.map(function (item) {
35933
35945
  if (!item._checked) {
35934
- _this10.removeFromCache(item);
35946
+ _this11.removeFromCache(item);
35935
35947
  }
35936
35948
  });
35937
35949
  this.$emit('change', this.checked, checked);
@@ -35952,14 +35964,18 @@ function db(fn) {
35952
35964
 
35953
35965
  // 行勾选事件
35954
35966
  handleTableRowChecked: function handleTableRowChecked(checked, dataIndex) {
35967
+ var _this12 = this;
35968
+
35955
35969
  var current = this.iData[dataIndex];
35956
35970
  if (!checked) {
35957
35971
  this.removeFromCache(this.iData[dataIndex]);
35958
35972
  }
35959
35973
  this.setSelectAll();
35960
- this.$emit('change', this.checked, checked, current);
35961
- this.$emit('selectionChange', this.selectionValueType === 'tree' ? this.buildHierarchyTree(this.checked) : this.checked, current);
35962
- this.$emit('selection-change', this.selectionValueType === 'tree' ? this.buildHierarchyTree(this.checked) : this.checked, current);
35974
+ this.$nextTick(function () {
35975
+ _this12.$emit('change', _this12.checked, checked, current);
35976
+ _this12.$emit('selectionChange', _this12.selectionValueType === 'tree' ? _this12.buildHierarchyTree(_this12.checked) : _this12.checked, current);
35977
+ _this12.$emit('selection-change', _this12.selectionValueType === 'tree' ? _this12.buildHierarchyTree(_this12.checked) : _this12.checked, current);
35978
+ });
35963
35979
  },
35964
35980
 
35965
35981
  // 从记录中移除
@@ -35995,7 +36011,7 @@ function db(fn) {
35995
36011
 
35996
36012
  // table 点击事件
35997
36013
  handleTableClick: function handleTableClick(event, eventPath) {
35998
- var _this11 = this;
36014
+ var _this13 = this;
35999
36015
 
36000
36016
  if (this.stopClick) {
36001
36017
  return;
@@ -36007,49 +36023,49 @@ function db(fn) {
36007
36023
  if (String(dom.tagName).toLowerCase() === 'tr') {
36008
36024
  (function () {
36009
36025
 
36010
- _this11.lastSelectedRow = dom;
36026
+ _this13.lastSelectedRow = dom;
36011
36027
  var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
36012
36028
 
36013
- if (_this11.rowSelectable || _this11.selectable) {
36029
+ if (_this13.rowSelectable || _this13.selectable) {
36014
36030
 
36015
36031
  // 行点击事件
36016
- _this11.$emit('row-click', _this11.iData[rowIndex], rowIndex, event);
36017
- if (_this11.highlightCurrentRow) {
36018
- _this11.iData.map(function (item, index) {
36032
+ _this13.$emit('row-click', _this13.iData[rowIndex], rowIndex, event);
36033
+ if (_this13.highlightCurrentRow) {
36034
+ _this13.iData.map(function (item, index) {
36019
36035
  if (index === rowIndex) {
36020
- if (_this11.clearable) {
36036
+ if (_this13.clearable) {
36021
36037
  if (item._on) {
36022
36038
  item._on = false;
36023
36039
  } else {
36024
- _this11.$set(item, '_on', true);
36040
+ _this13.$set(item, '_on', true);
36025
36041
  }
36026
36042
  } else {
36027
- _this11.$set(item, '_on', true);
36043
+ _this13.$set(item, '_on', true);
36028
36044
  }
36029
36045
  } else {
36030
- _this11.$set(item, '_on', false);
36046
+ _this13.$set(item, '_on', false);
36031
36047
  }
36032
36048
  });
36033
36049
  }
36034
36050
 
36035
36051
  // 多选联动
36036
- if (_this11.hasSelection && !_this11.iData[rowIndex].disabled) {
36037
- _this11.iData[rowIndex]._checked = !_this11.iData[rowIndex]._checked;
36038
- _this11.handleTableRowChecked(_this11.iData[rowIndex]._checked, rowIndex);
36052
+ if (_this13.hasSelection && !_this13.iData[rowIndex].disabled) {
36053
+ _this13.iData[rowIndex]._checked = !_this13.iData[rowIndex]._checked;
36054
+ _this13.handleTableRowChecked(_this13.iData[rowIndex]._checked, rowIndex);
36039
36055
  }
36040
36056
 
36041
36057
  // 单选联动
36042
- if (_this11.hasRadio && !_this11.iData[rowIndex].disabled) {
36043
- if (_this11.clickRadio(_this11.iData[rowIndex], rowIndex)) {
36044
- _this11.selectRadio(rowIndex);
36058
+ if (_this13.hasRadio && !_this13.iData[rowIndex].disabled) {
36059
+ if (_this13.clickRadio(_this13.iData[rowIndex], rowIndex)) {
36060
+ _this13.selectRadio(rowIndex);
36045
36061
  }
36046
36062
  }
36047
36063
  }
36048
36064
 
36049
- if (_this11.autoShowDetail) {
36050
- _this11.current = _this11.iData[rowIndex];
36051
- _this11.currentIndex = rowIndex;
36052
- _this11.$refs.detail.open();
36065
+ if (_this13.autoShowDetail) {
36066
+ _this13.current = _this13.iData[rowIndex];
36067
+ _this13.currentIndex = rowIndex;
36068
+ _this13.$refs.detail.open();
36053
36069
  }
36054
36070
  })();
36055
36071
  } else if (String(dom.tagName).toLowerCase() === 'td' && (this.cellSelectable || this.selectable)) {
@@ -36086,7 +36102,7 @@ function db(fn) {
36086
36102
 
36087
36103
  // table鼠标悬移事件
36088
36104
  handleTableMouseover: function handleTableMouseover(event) {
36089
- var _this12 = this;
36105
+ var _this14 = this;
36090
36106
 
36091
36107
  if (!this.$pc) return;
36092
36108
  if (this.rowSelectable || this.selectable) {
@@ -36095,11 +36111,11 @@ function db(fn) {
36095
36111
  var dom = composedPath[i];
36096
36112
  if (String(dom.tagName).toLowerCase() === 'tr' && (this.rowSelectable || this.selectable)) {
36097
36113
  (function () {
36098
- _this12.lastSelectedRow = dom;
36114
+ _this14.lastSelectedRow = dom;
36099
36115
  var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
36100
- _this12.iData.map(function (item, index) {
36116
+ _this14.iData.map(function (item, index) {
36101
36117
  if (index === rowIndex) {
36102
- _this12.$set(item, '_hover', true);
36118
+ _this14.$set(item, '_hover', true);
36103
36119
  }
36104
36120
  });
36105
36121
  })();
@@ -36110,7 +36126,7 @@ function db(fn) {
36110
36126
 
36111
36127
  // table鼠标悬移事件
36112
36128
  handleTableMouseout: function handleTableMouseout(event) {
36113
- var _this13 = this;
36129
+ var _this15 = this;
36114
36130
 
36115
36131
  if (!this.$pc) return;
36116
36132
  if (this.rowSelectable || this.selectable || this.autoShowDetail || this.longTapAction) {
@@ -36119,17 +36135,17 @@ function db(fn) {
36119
36135
  var dom = composedPath[i];
36120
36136
  if (String(dom.tagName).toLowerCase() === 'tr' && (this.rowSelectable || this.selectable || this.autoShowDetail || this.longTapAction)) {
36121
36137
  (function () {
36122
- _this13.lastSelectedRow = dom;
36138
+ _this15.lastSelectedRow = dom;
36123
36139
  var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
36124
- _this13.changeIDataType = 'change';
36125
- _this13.iData.map(function (item, index) {
36140
+ _this15.changeIDataType = 'change';
36141
+ _this15.iData.map(function (item, index) {
36126
36142
  if (index === rowIndex) {
36127
- _this13.$set(item, '_hover', false);
36128
- _this13.$set(item, '_active', false);
36143
+ _this15.$set(item, '_hover', false);
36144
+ _this15.$set(item, '_active', false);
36129
36145
  }
36130
36146
  });
36131
- _this13.$nextTick(function () {
36132
- _this13.changeIDataType = 'default';
36147
+ _this15.$nextTick(function () {
36148
+ _this15.changeIDataType = 'default';
36133
36149
  });
36134
36150
  })();
36135
36151
  }
@@ -36139,7 +36155,7 @@ function db(fn) {
36139
36155
 
36140
36156
  // table鼠标按下事件
36141
36157
  handleTableMousedown: function handleTableMousedown(event) {
36142
- var _this14 = this;
36158
+ var _this16 = this;
36143
36159
 
36144
36160
  if ((this.$pad || this.$phone) && event.type === 'touchstart' || this.$pc && event.type === 'mousedown') {
36145
36161
  if (this.rowSelectable || this.selectable || this.autoShowDetail || this.longTapAction) {
@@ -36148,48 +36164,48 @@ function db(fn) {
36148
36164
  var dom = composedPath[i];
36149
36165
  if (String(dom.tagName).toLowerCase() === 'tr' && (this.rowSelectable || this.selectable || this.autoShowDetail || this.longTapAction)) {
36150
36166
  (function () {
36151
- _this14.lastSelectedRow = dom;
36167
+ _this16.lastSelectedRow = dom;
36152
36168
  var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
36153
- if (_this14.$phone) {
36154
- _this14.isStartLongtap = true;
36155
- _this14.longtapTimer = setTimeout(function () {
36156
- if (_this14.isStartLongtap) {
36169
+ if (_this16.$phone) {
36170
+ _this16.isStartLongtap = true;
36171
+ _this16.longtapTimer = setTimeout(function () {
36172
+ if (_this16.isStartLongtap) {
36157
36173
  event.preventDefault();
36158
- _this14.$emit('contextmenu', _this14.iData[rowIndex], rowIndex, event);
36159
- _this14.stopClick = true;
36174
+ _this16.$emit('contextmenu', _this16.iData[rowIndex], rowIndex, event);
36175
+ _this16.stopClick = true;
36160
36176
 
36161
- _this14.changeIDataType = 'change';
36162
- _this14.iData.map(function (item, index) {
36177
+ _this16.changeIDataType = 'change';
36178
+ _this16.iData.map(function (item, index) {
36163
36179
  if (index === rowIndex) {
36164
- _this14.$set(item, '_active', false);
36180
+ _this16.$set(item, '_active', false);
36165
36181
  }
36166
36182
  });
36167
- _this14.$nextTick(function () {
36168
- _this14.changeIDataType = 'default';
36183
+ _this16.$nextTick(function () {
36184
+ _this16.changeIDataType = 'default';
36169
36185
  });
36170
36186
 
36171
36187
  // 弹出功能列表
36172
- if (_this14.type === 'v' && (_this14.columns.some(function (item) {
36188
+ if (_this16.type === 'v' && (_this16.columns.some(function (item) {
36173
36189
  return item.type === 'action';
36174
- }) && _this14.contextAction || _this14.contextSelection !== null)) {
36175
- _this14.current = _this14.iData[rowIndex];
36176
- _this14.currentIndex = rowIndex;
36177
- _this14.$refs.action.open();
36190
+ }) && _this16.contextAction || _this16.contextSelection !== null)) {
36191
+ _this16.current = _this16.iData[rowIndex];
36192
+ _this16.currentIndex = rowIndex;
36193
+ _this16.$refs.action.open();
36178
36194
  }
36179
36195
  }
36180
- _this14.isStartLongtap = false;
36196
+ _this16.isStartLongtap = false;
36181
36197
  }, 300);
36182
36198
  }
36183
- _this14.changeIDataType = 'change';
36184
- if (_this14.rowSelectable || _this14.selectable || _this14.autoShowDetail) {
36185
- _this14.iData.map(function (item, index) {
36199
+ _this16.changeIDataType = 'change';
36200
+ if (_this16.rowSelectable || _this16.selectable || _this16.autoShowDetail) {
36201
+ _this16.iData.map(function (item, index) {
36186
36202
  if (index === rowIndex) {
36187
- _this14.$set(item, '_active', true);
36203
+ _this16.$set(item, '_active', true);
36188
36204
  }
36189
36205
  });
36190
36206
  }
36191
- _this14.$nextTick(function () {
36192
- _this14.changeIDataType = 'default';
36207
+ _this16.$nextTick(function () {
36208
+ _this16.changeIDataType = 'default';
36193
36209
  });
36194
36210
  })();
36195
36211
  }
@@ -36200,7 +36216,7 @@ function db(fn) {
36200
36216
 
36201
36217
  // table鼠标松开事件
36202
36218
  handleTableMouseup: function handleTableMouseup(event) {
36203
- var _this15 = this;
36219
+ var _this17 = this;
36204
36220
 
36205
36221
  if ((this.$pad || this.$phone) && event.type === 'touchend' || this.$pc && event.type === 'mouseup') {
36206
36222
  if (this.rowSelectable || this.selectable || this.autoShowDetail || this.longTapAction) {
@@ -36209,20 +36225,20 @@ function db(fn) {
36209
36225
  var dom = composedPath[i];
36210
36226
  if (String(dom.tagName).toLowerCase() === 'tr' && (this.rowSelectable || this.selectable || this.autoShowDetail || this.longTapAction)) {
36211
36227
  (function () {
36212
- _this15.lastSelectedRow = dom;
36228
+ _this17.lastSelectedRow = dom;
36213
36229
  var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
36214
- _this15.changeIDataType = 'change';
36215
- _this15.iData.map(function (item, index) {
36230
+ _this17.changeIDataType = 'change';
36231
+ _this17.iData.map(function (item, index) {
36216
36232
  if (index === rowIndex) {
36217
- _this15.$set(item, '_active', false);
36233
+ _this17.$set(item, '_active', false);
36218
36234
  }
36219
36235
  });
36220
- _this15.$nextTick(function () {
36221
- _this15.changeIDataType = 'default';
36236
+ _this17.$nextTick(function () {
36237
+ _this17.changeIDataType = 'default';
36222
36238
  });
36223
- if (_this15.$phone) {
36224
- _this15.isStartLongtap = false;
36225
- clearInterval(_this15.longtapTimer);
36239
+ if (_this17.$phone) {
36240
+ _this17.isStartLongtap = false;
36241
+ clearInterval(_this17.longtapTimer);
36226
36242
  }
36227
36243
  })();
36228
36244
  }
@@ -36233,7 +36249,7 @@ function db(fn) {
36233
36249
 
36234
36250
  // table鼠标移动事件
36235
36251
  handleTableMousemove: function handleTableMousemove(event) {
36236
- var _this16 = this;
36252
+ var _this18 = this;
36237
36253
 
36238
36254
  this.isStartLongtap = false;
36239
36255
  if (this.rowSelectable || this.selectable || this.autoShowDetail) {
@@ -36242,16 +36258,16 @@ function db(fn) {
36242
36258
  var dom = composedPath[i];
36243
36259
  if (String(dom.tagName).toLowerCase() === 'tr' && (this.rowSelectable || this.selectable || this.autoShowDetail)) {
36244
36260
  (function () {
36245
- _this16.lastSelectedRow = dom;
36261
+ _this18.lastSelectedRow = dom;
36246
36262
  var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
36247
- _this16.changeIDataType = 'change';
36248
- _this16.iData.map(function (item, index) {
36263
+ _this18.changeIDataType = 'change';
36264
+ _this18.iData.map(function (item, index) {
36249
36265
  if (index === rowIndex) {
36250
- _this16.$set(item, '_active', false);
36266
+ _this18.$set(item, '_active', false);
36251
36267
  }
36252
36268
  });
36253
- _this16.$nextTick(function () {
36254
- _this16.changeIDataType = 'default';
36269
+ _this18.$nextTick(function () {
36270
+ _this18.changeIDataType = 'default';
36255
36271
  });
36256
36272
  })();
36257
36273
  }
@@ -36283,21 +36299,21 @@ function db(fn) {
36283
36299
  }
36284
36300
  },
36285
36301
  handleSortClick: function handleSortClick(item, index) {
36286
- var _this17 = this;
36302
+ var _this19 = this;
36287
36303
 
36288
36304
  var orderType = item.orderType;
36289
36305
  this.columns.map(function (column, columnIndex) {
36290
36306
  if (columnIndex === index) {
36291
36307
  if (!orderType) {
36292
- _this17.$set(column, 'orderType', 'asc');
36308
+ _this19.$set(column, 'orderType', 'asc');
36293
36309
  } else if (orderType === 'asc') {
36294
- _this17.$set(column, 'orderType', 'desc');
36310
+ _this19.$set(column, 'orderType', 'desc');
36295
36311
  } else if (orderType === 'desc') {
36296
- _this17.$set(column, 'orderType', '');
36312
+ _this19.$set(column, 'orderType', '');
36297
36313
  }
36298
36314
  } else {
36299
36315
  if (column.sortable) {
36300
- _this17.$set(column, 'orderType', '');
36316
+ _this19.$set(column, 'orderType', '');
36301
36317
  }
36302
36318
  }
36303
36319
  });
@@ -36458,12 +36474,12 @@ function db(fn) {
36458
36474
 
36459
36475
  // 展开所有
36460
36476
  expandAll: function expandAll() {
36461
- var _this18 = this;
36477
+ var _this20 = this;
36462
36478
 
36463
36479
  if (this.iData.length > 0) {
36464
36480
  this.iData.forEach(function (item, index) {
36465
36481
  if (item._hasChild && item._level === 1 && item._show === true) {
36466
- _this18.$refs.tbody.expandAll(item, index, false);
36482
+ _this20.$refs.tbody.expandAll(item, index, false);
36467
36483
  }
36468
36484
  });
36469
36485
  }
@@ -36471,12 +36487,12 @@ function db(fn) {
36471
36487
 
36472
36488
  // 折叠所有
36473
36489
  collapseAll: function collapseAll() {
36474
- var _this19 = this;
36490
+ var _this21 = this;
36475
36491
 
36476
36492
  if (this.iData.length > 0) {
36477
36493
  this.iData.forEach(function (item, index) {
36478
36494
  if (item._hasChild && item._level === 1 && item._show === true) {
36479
- _this19.$refs.tbody.collapseAll(item, index, false);
36495
+ _this21.$refs.tbody.collapseAll(item, index, false);
36480
36496
  }
36481
36497
  });
36482
36498
  }
@@ -36573,8 +36589,8 @@ function db(fn) {
36573
36589
 
36574
36590
  var table_component = normalizeComponent(
36575
36591
  src_tablevue_type_script_lang_js,
36576
- tablevue_type_template_id_a7feb1e0_render,
36577
- tablevue_type_template_id_a7feb1e0_staticRenderFns,
36592
+ tablevue_type_template_id_2e5c7c80_render,
36593
+ tablevue_type_template_id_2e5c7c80_staticRenderFns,
36578
36594
  false,
36579
36595
  null,
36580
36596
  null,
@@ -45835,8 +45851,8 @@ emote.install = function (Vue) {
45835
45851
  };
45836
45852
 
45837
45853
  /* harmony default export */ var packages_emote = (emote);
45838
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/filter/src/filter.vue?vue&type=template&id=edc9e79a
45839
- var filtervue_type_template_id_edc9e79a_render = function () {
45854
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/filter/src/filter.vue?vue&type=template&id=5c12da7a
45855
+ var filtervue_type_template_id_5c12da7a_render = function () {
45840
45856
  var _vm = this
45841
45857
  var _h = _vm.$createElement
45842
45858
  var _c = _vm._self._c || _h
@@ -45920,11 +45936,11 @@ var filtervue_type_template_id_edc9e79a_render = function () {
45920
45936
  ]
45921
45937
  )
45922
45938
  }
45923
- var filtervue_type_template_id_edc9e79a_staticRenderFns = []
45924
- filtervue_type_template_id_edc9e79a_render._withStripped = true
45939
+ var filtervue_type_template_id_5c12da7a_staticRenderFns = []
45940
+ filtervue_type_template_id_5c12da7a_render._withStripped = true
45925
45941
 
45926
45942
 
45927
- // CONCATENATED MODULE: ./packages/filter/src/filter.vue?vue&type=template&id=edc9e79a
45943
+ // CONCATENATED MODULE: ./packages/filter/src/filter.vue?vue&type=template&id=5c12da7a
45928
45944
 
45929
45945
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/filter/src/filter.vue?vue&type=script&lang=js
45930
45946
  //
@@ -46046,9 +46062,11 @@ filtervue_type_template_id_edc9e79a_render._withStripped = true
46046
46062
  type.children.find(function (item) {
46047
46063
  return item.on;
46048
46064
  }).on = false;
46049
- type.children.find(function (item) {
46065
+
46066
+ var el = type.children.find(function (item) {
46050
46067
  return item.value === val[key];
46051
- }).on = true;
46068
+ });
46069
+ _this.$set(el, 'on', true);
46052
46070
  }
46053
46071
  });
46054
46072
  };
@@ -46209,8 +46227,8 @@ filtervue_type_template_id_edc9e79a_render._withStripped = true
46209
46227
 
46210
46228
  var filter_component = normalizeComponent(
46211
46229
  src_filtervue_type_script_lang_js,
46212
- filtervue_type_template_id_edc9e79a_render,
46213
- filtervue_type_template_id_edc9e79a_staticRenderFns,
46230
+ filtervue_type_template_id_5c12da7a_render,
46231
+ filtervue_type_template_id_5c12da7a_staticRenderFns,
46214
46232
  false,
46215
46233
  null,
46216
46234
  null,
@@ -49745,8 +49763,8 @@ function print_getBody(areaId) {
49745
49763
  html.push(document.getElementById(areaId).outerHTML);
49746
49764
  html.push('</div></div>');
49747
49765
  html.push('<div id="printFn" class="fn">\r\n');
49748
- html.push('<button type="button" onclick="javascript:window.close();" class="to-button to-box-link to-form-readonly to-box-color-default to-box-mode-fill to-input-fillet-normal"><span class="to-icon-close to-box-color-default"><span style="font-size: 100%;"></span></span><span class="to-buttonText to-hide-keep">关闭</span></button>');
49749
- html.push('<button type="button" class="to-button to-box-link to-form-readonly to-box-color-primary to-box-mode-fill to-input-fillet-normal" onclick="javascript:window.print();"><span class="to-icon-print to-box-color-default"><span style="font-size: 100%;"></span></span><span class="to-buttonText to-hide-keep">打印</span></button>');
49766
+ html.push('<button type="button" data-action="close" class="to-button to-box-link to-form-readonly to-box-color-default to-box-mode-fill to-input-fillet-normal"><span class="to-icon-close to-box-color-default"><span style="font-size: 100%;"></span></span><span class="to-buttonText to-hide-keep">关闭</span></button>');
49767
+ html.push('<button type="button" data-action="print" class="to-button to-box-link to-form-readonly to-box-color-primary to-box-mode-fill to-input-fillet-normal"><span class="to-icon-print to-box-color-default"><span style="font-size: 100%;"></span></span><span class="to-buttonText to-hide-keep">打印2</span></button>');
49750
49768
  html.push('\r\n</div>');
49751
49769
  html.push('\r\n</div>');
49752
49770
  return html;
@@ -49757,11 +49775,9 @@ function replaceBodyContent(newContent) {
49757
49775
  var parser = new DOMParser();
49758
49776
  var doc = parser.parseFromString(htmlString, 'text/html');
49759
49777
 
49760
- // 使用 DOMPurify 清理 HTML
49778
+ // 使用 DOMPurify 清理 HTML(保留必要的安全规则)
49761
49779
  doc.body.innerHTML = external_dompurify_default.a.sanitize(newContent);
49762
-
49763
- var newHtmlString = doc.documentElement.outerHTML;
49764
- return newHtmlString;
49780
+ return doc.documentElement.outerHTML;
49765
49781
  }
49766
49782
 
49767
49783
  /* harmony default export */ var print = (function (areaId, title) {
@@ -49770,10 +49786,26 @@ function replaceBodyContent(newContent) {
49770
49786
  pwin.document.write(replaceBodyContent(print_getBody(areaId).join('')));
49771
49787
  pwin.document.close();
49772
49788
  pwin.document.documentElement.classList.add('s_print');
49789
+
49790
+ // 绑定事件(事件委托)
49791
+ pwin.document.addEventListener('click', function (e) {
49792
+ var target = e.target.closest('[data-action]'); // 找到带 data-action 的按钮
49793
+ if (!target) return;
49794
+
49795
+ var action = target.dataset.action;
49796
+ switch (action) {
49797
+ case 'close':
49798
+ pwin.window.close(); // 关闭打印窗口
49799
+ break;
49800
+ case 'print':
49801
+ pwin.window.print(); // 执行 print 逻辑
49802
+ break;
49803
+ }
49804
+ });
49805
+
49773
49806
  if (title && typeof title === 'string') {
49774
49807
  pwin.document.title = title;
49775
49808
  }
49776
- pwin = null;
49777
49809
  });
49778
49810
  // CONCATENATED MODULE: ./src/utils/compare.js
49779
49811
  /* harmony default export */ var compare = (function (dom) {
@@ -50227,7 +50259,7 @@ if (typeof window !== 'undefined' && window.Vue) {
50227
50259
  }
50228
50260
 
50229
50261
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
50230
- version: '1.39.0',
50262
+ version: '1.40.0',
50231
50263
  locale: lib_locale_default.a.use,
50232
50264
  i18n: lib_locale_default.a.i18n,
50233
50265
  install: src_install,