ai.touchui-vue 1.39.0 → 1.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ai.touchui-vue.common.js +237 -176
- package/lib/date-picker.js +7 -7
- package/lib/filter.js +6 -4
- package/lib/index.js +1 -1
- package/lib/input.js +3 -3
- package/lib/slide.js +62 -33
- package/lib/table.js +112 -96
- package/lib/utils/print.js +21 -7
- package/package.json +1 -1
- package/packages/date-picker/src/date-picker.vue +1 -1
- package/packages/filter/src/filter.vue +4 -2
- package/packages/input/src/input.vue +1 -1
- package/packages/slide/src/slide.vue +31 -10
- package/packages/table/src/table.vue +17 -5
- package/src/index.js +1 -1
- package/src/utils/print.js +21 -7
|
@@ -7053,8 +7053,8 @@ exports.push([module.i, "\n//.to-rangeProgress{ transition: width 0.01s ease;\n}
|
|
|
7053
7053
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7054
7054
|
|
|
7055
7055
|
"use strict";
|
|
7056
|
-
/* harmony import */ var
|
|
7057
|
-
/* harmony import */ var
|
|
7056
|
+
/* harmony import */ var _node_modules_style_loader_dist_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_date_picker_vue_vue_type_style_index_0_id_051d024a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22);
|
|
7057
|
+
/* harmony import */ var _node_modules_style_loader_dist_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_date_picker_vue_vue_type_style_index_0_id_051d024a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_date_picker_vue_vue_type_style_index_0_id_051d024a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
7058
7058
|
/* unused harmony reexport * */
|
|
7059
7059
|
|
|
7060
7060
|
|
|
@@ -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=
|
|
26521
|
-
var
|
|
26520
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=57e4aab5
|
|
26521
|
+
var inputvue_type_template_id_57e4aab5_render = function () {
|
|
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
|
|
26924
|
-
|
|
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=
|
|
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 = '
|
|
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
|
-
|
|
27677
|
-
|
|
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=
|
|
28541
|
-
var
|
|
28540
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/date-picker.vue?vue&type=template&id=051d024a
|
|
28541
|
+
var date_pickervue_type_template_id_051d024a_render = function () {
|
|
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
|
|
28691
|
-
|
|
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=
|
|
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=
|
|
29724
|
-
var
|
|
29723
|
+
// EXTERNAL MODULE: ./packages/date-picker/src/date-picker.vue?vue&type=style&index=0&id=051d024a&prod&lang=css
|
|
29724
|
+
var date_pickervue_type_style_index_0_id_051d024a_prod_lang_css = __webpack_require__(103);
|
|
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
|
-
|
|
29738
|
-
|
|
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=
|
|
32215
|
-
var
|
|
32214
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/table.vue?vue&type=template&id=2e5c7c80
|
|
32215
|
+
var tablevue_type_template_id_2e5c7c80_render = function () {
|
|
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
|
|
33030
|
-
|
|
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=
|
|
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 =
|
|
35826
|
-
this.$refs.table.style.width =
|
|
35833
|
+
this.$refs.topTable.style.width = '';
|
|
35834
|
+
this.$refs.table.style.width = '';
|
|
35835
|
+
this.$nextTick(function () {
|
|
35836
|
+
_this8.$refs.topTable.style.width = _this8.$refs.table.offsetWidth + 'px';
|
|
35837
|
+
_this8.$refs.table.style.width = _this8.$refs.table.offsetWidth + 'px';
|
|
35838
|
+
});
|
|
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
|
|
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
|
-
|
|
35923
|
+
_this9.changeIDataType = 'default';
|
|
35912
35924
|
}, 100);
|
|
35913
35925
|
},
|
|
35914
35926
|
|
|
35915
35927
|
// 设置全选或者不全选
|
|
35916
35928
|
toggleAllSelection: function toggleAllSelection(checked) {
|
|
35917
|
-
var
|
|
35929
|
+
var _this10 = this;
|
|
35918
35930
|
|
|
35919
35931
|
this.iData.map(function (item) {
|
|
35920
35932
|
if (!item.disabled) {
|
|
35921
|
-
|
|
35933
|
+
_this10.$set(item, '_checked', checked);
|
|
35922
35934
|
}
|
|
35923
35935
|
});
|
|
35924
35936
|
},
|
|
35925
35937
|
|
|
35926
35938
|
// 全选中事件
|
|
35927
35939
|
handleSelectionAllChange: function handleSelectionAllChange(checked) {
|
|
35928
|
-
var
|
|
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
|
-
|
|
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.$
|
|
35961
|
-
|
|
35962
|
-
|
|
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
|
|
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
|
-
|
|
36026
|
+
_this13.lastSelectedRow = dom;
|
|
36011
36027
|
var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
|
|
36012
36028
|
|
|
36013
|
-
if (
|
|
36029
|
+
if (_this13.rowSelectable || _this13.selectable) {
|
|
36014
36030
|
|
|
36015
36031
|
// 行点击事件
|
|
36016
|
-
|
|
36017
|
-
if (
|
|
36018
|
-
|
|
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 (
|
|
36036
|
+
if (_this13.clearable) {
|
|
36021
36037
|
if (item._on) {
|
|
36022
36038
|
item._on = false;
|
|
36023
36039
|
} else {
|
|
36024
|
-
|
|
36040
|
+
_this13.$set(item, '_on', true);
|
|
36025
36041
|
}
|
|
36026
36042
|
} else {
|
|
36027
|
-
|
|
36043
|
+
_this13.$set(item, '_on', true);
|
|
36028
36044
|
}
|
|
36029
36045
|
} else {
|
|
36030
|
-
|
|
36046
|
+
_this13.$set(item, '_on', false);
|
|
36031
36047
|
}
|
|
36032
36048
|
});
|
|
36033
36049
|
}
|
|
36034
36050
|
|
|
36035
36051
|
// 多选联动
|
|
36036
|
-
if (
|
|
36037
|
-
|
|
36038
|
-
|
|
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 (
|
|
36043
|
-
if (
|
|
36044
|
-
|
|
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 (
|
|
36050
|
-
|
|
36051
|
-
|
|
36052
|
-
|
|
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
|
|
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
|
-
|
|
36114
|
+
_this14.lastSelectedRow = dom;
|
|
36099
36115
|
var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
|
|
36100
|
-
|
|
36116
|
+
_this14.iData.map(function (item, index) {
|
|
36101
36117
|
if (index === rowIndex) {
|
|
36102
|
-
|
|
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
|
|
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
|
-
|
|
36138
|
+
_this15.lastSelectedRow = dom;
|
|
36123
36139
|
var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
|
|
36124
|
-
|
|
36125
|
-
|
|
36140
|
+
_this15.changeIDataType = 'change';
|
|
36141
|
+
_this15.iData.map(function (item, index) {
|
|
36126
36142
|
if (index === rowIndex) {
|
|
36127
|
-
|
|
36128
|
-
|
|
36143
|
+
_this15.$set(item, '_hover', false);
|
|
36144
|
+
_this15.$set(item, '_active', false);
|
|
36129
36145
|
}
|
|
36130
36146
|
});
|
|
36131
|
-
|
|
36132
|
-
|
|
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
|
|
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
|
-
|
|
36167
|
+
_this16.lastSelectedRow = dom;
|
|
36152
36168
|
var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
|
|
36153
|
-
if (
|
|
36154
|
-
|
|
36155
|
-
|
|
36156
|
-
if (
|
|
36169
|
+
if (_this16.$phone) {
|
|
36170
|
+
_this16.isStartLongtap = true;
|
|
36171
|
+
_this16.longtapTimer = setTimeout(function () {
|
|
36172
|
+
if (_this16.isStartLongtap) {
|
|
36157
36173
|
event.preventDefault();
|
|
36158
|
-
|
|
36159
|
-
|
|
36174
|
+
_this16.$emit('contextmenu', _this16.iData[rowIndex], rowIndex, event);
|
|
36175
|
+
_this16.stopClick = true;
|
|
36160
36176
|
|
|
36161
|
-
|
|
36162
|
-
|
|
36177
|
+
_this16.changeIDataType = 'change';
|
|
36178
|
+
_this16.iData.map(function (item, index) {
|
|
36163
36179
|
if (index === rowIndex) {
|
|
36164
|
-
|
|
36180
|
+
_this16.$set(item, '_active', false);
|
|
36165
36181
|
}
|
|
36166
36182
|
});
|
|
36167
|
-
|
|
36168
|
-
|
|
36183
|
+
_this16.$nextTick(function () {
|
|
36184
|
+
_this16.changeIDataType = 'default';
|
|
36169
36185
|
});
|
|
36170
36186
|
|
|
36171
36187
|
// 弹出功能列表
|
|
36172
|
-
if (
|
|
36188
|
+
if (_this16.type === 'v' && (_this16.columns.some(function (item) {
|
|
36173
36189
|
return item.type === 'action';
|
|
36174
|
-
}) &&
|
|
36175
|
-
|
|
36176
|
-
|
|
36177
|
-
|
|
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
|
-
|
|
36196
|
+
_this16.isStartLongtap = false;
|
|
36181
36197
|
}, 300);
|
|
36182
36198
|
}
|
|
36183
|
-
|
|
36184
|
-
if (
|
|
36185
|
-
|
|
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
|
-
|
|
36203
|
+
_this16.$set(item, '_active', true);
|
|
36188
36204
|
}
|
|
36189
36205
|
});
|
|
36190
36206
|
}
|
|
36191
|
-
|
|
36192
|
-
|
|
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
|
|
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
|
-
|
|
36228
|
+
_this17.lastSelectedRow = dom;
|
|
36213
36229
|
var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
|
|
36214
|
-
|
|
36215
|
-
|
|
36230
|
+
_this17.changeIDataType = 'change';
|
|
36231
|
+
_this17.iData.map(function (item, index) {
|
|
36216
36232
|
if (index === rowIndex) {
|
|
36217
|
-
|
|
36233
|
+
_this17.$set(item, '_active', false);
|
|
36218
36234
|
}
|
|
36219
36235
|
});
|
|
36220
|
-
|
|
36221
|
-
|
|
36236
|
+
_this17.$nextTick(function () {
|
|
36237
|
+
_this17.changeIDataType = 'default';
|
|
36222
36238
|
});
|
|
36223
|
-
if (
|
|
36224
|
-
|
|
36225
|
-
clearInterval(
|
|
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
|
|
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
|
-
|
|
36261
|
+
_this18.lastSelectedRow = dom;
|
|
36246
36262
|
var rowIndex = Number(Object(utils_dom["getDataSet"])(dom).index);
|
|
36247
|
-
|
|
36248
|
-
|
|
36263
|
+
_this18.changeIDataType = 'change';
|
|
36264
|
+
_this18.iData.map(function (item, index) {
|
|
36249
36265
|
if (index === rowIndex) {
|
|
36250
|
-
|
|
36266
|
+
_this18.$set(item, '_active', false);
|
|
36251
36267
|
}
|
|
36252
36268
|
});
|
|
36253
|
-
|
|
36254
|
-
|
|
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
|
|
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
|
-
|
|
36308
|
+
_this19.$set(column, 'orderType', 'asc');
|
|
36293
36309
|
} else if (orderType === 'asc') {
|
|
36294
|
-
|
|
36310
|
+
_this19.$set(column, 'orderType', 'desc');
|
|
36295
36311
|
} else if (orderType === 'desc') {
|
|
36296
|
-
|
|
36312
|
+
_this19.$set(column, 'orderType', '');
|
|
36297
36313
|
}
|
|
36298
36314
|
} else {
|
|
36299
36315
|
if (column.sortable) {
|
|
36300
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
36577
|
-
|
|
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=
|
|
45839
|
-
var
|
|
45854
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/filter/src/filter.vue?vue&type=template&id=5c12da7a
|
|
45855
|
+
var filtervue_type_template_id_5c12da7a_render = function () {
|
|
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
|
|
45924
|
-
|
|
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=
|
|
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
|
-
|
|
46065
|
+
|
|
46066
|
+
var el = type.children.find(function (item) {
|
|
46050
46067
|
return item.value === val[key];
|
|
46051
|
-
})
|
|
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
|
-
|
|
46213
|
-
|
|
46230
|
+
filtervue_type_template_id_5c12da7a_render,
|
|
46231
|
+
filtervue_type_template_id_5c12da7a_staticRenderFns,
|
|
46214
46232
|
false,
|
|
46215
46233
|
null,
|
|
46216
46234
|
null,
|
|
@@ -46604,8 +46622,8 @@ guider.install = function (Vue) {
|
|
|
46604
46622
|
};
|
|
46605
46623
|
|
|
46606
46624
|
/* harmony default export */ var packages_guider = (guider);
|
|
46607
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/slide/src/slide.vue?vue&type=template&id=
|
|
46608
|
-
var
|
|
46625
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/slide/src/slide.vue?vue&type=template&id=01fbb6d0
|
|
46626
|
+
var slidevue_type_template_id_01fbb6d0_render = function () {
|
|
46609
46627
|
var _vm = this
|
|
46610
46628
|
var _h = _vm.$createElement
|
|
46611
46629
|
var _c = _vm._self._c || _h
|
|
@@ -46675,11 +46693,11 @@ var slidevue_type_template_id_020258e2_render = function () {
|
|
|
46675
46693
|
]
|
|
46676
46694
|
)
|
|
46677
46695
|
}
|
|
46678
|
-
var
|
|
46679
|
-
|
|
46696
|
+
var slidevue_type_template_id_01fbb6d0_staticRenderFns = []
|
|
46697
|
+
slidevue_type_template_id_01fbb6d0_render._withStripped = true
|
|
46680
46698
|
|
|
46681
46699
|
|
|
46682
|
-
// CONCATENATED MODULE: ./packages/slide/src/slide.vue?vue&type=template&id=
|
|
46700
|
+
// CONCATENATED MODULE: ./packages/slide/src/slide.vue?vue&type=template&id=01fbb6d0
|
|
46683
46701
|
|
|
46684
46702
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/slide/src/slide.vue?vue&type=script&lang=js
|
|
46685
46703
|
//
|
|
@@ -46701,6 +46719,31 @@ slidevue_type_template_id_020258e2_render._withStripped = true
|
|
|
46701
46719
|
//
|
|
46702
46720
|
//
|
|
46703
46721
|
|
|
46722
|
+
function slidevue_type_script_lang_js_db(fn) {
|
|
46723
|
+
var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 50;
|
|
46724
|
+
|
|
46725
|
+
// 通过闭包缓存一个定时器 id
|
|
46726
|
+
var timer = null;
|
|
46727
|
+
// 将 debounce 处理结果当作函数返回
|
|
46728
|
+
// 触发事件回调时执行这个返回函数
|
|
46729
|
+
return function () {
|
|
46730
|
+
var _this = this;
|
|
46731
|
+
|
|
46732
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
46733
|
+
args[_key] = arguments[_key];
|
|
46734
|
+
}
|
|
46735
|
+
|
|
46736
|
+
// 如果已经设定过定时器就清空上一次的定时器
|
|
46737
|
+
if (timer) clearTimeout(timer);
|
|
46738
|
+
// 开始设定一个新的定时器,定时器结束后执行传入的函数 fn
|
|
46739
|
+
timer = setTimeout(function () {
|
|
46740
|
+
fn.apply(_this, args);
|
|
46741
|
+
|
|
46742
|
+
clearTimeout(timer);
|
|
46743
|
+
timer = null;
|
|
46744
|
+
}, wait);
|
|
46745
|
+
};
|
|
46746
|
+
}
|
|
46704
46747
|
/* harmony default export */ var slidevue_type_script_lang_js = ({
|
|
46705
46748
|
name: 'ToSlide',
|
|
46706
46749
|
componentName: 'ToSlide',
|
|
@@ -46726,6 +46769,8 @@ slidevue_type_template_id_020258e2_render._withStripped = true
|
|
|
46726
46769
|
|
|
46727
46770
|
computed: {
|
|
46728
46771
|
ulPosition: function ulPosition() {
|
|
46772
|
+
console.log('★');
|
|
46773
|
+
console.log();
|
|
46729
46774
|
return (this.current + 1) * this.width * -1;
|
|
46730
46775
|
},
|
|
46731
46776
|
setUlStyle: function setUlStyle() {
|
|
@@ -46739,91 +46784,93 @@ slidevue_type_template_id_020258e2_render._withStripped = true
|
|
|
46739
46784
|
}
|
|
46740
46785
|
},
|
|
46741
46786
|
mounted: function mounted() {
|
|
46742
|
-
var
|
|
46787
|
+
var _this2 = this;
|
|
46743
46788
|
|
|
46744
46789
|
setTimeout(function () {
|
|
46745
|
-
|
|
46746
|
-
|
|
46747
|
-
|
|
46748
|
-
|
|
46749
|
-
|
|
46750
|
-
|
|
46751
|
-
|
|
46752
|
-
});
|
|
46790
|
+
_this2.width = _this2.$el.offsetWidth;
|
|
46791
|
+
_this2.setLength();
|
|
46792
|
+
_this2.$refs.lastFake.innerHTML = _this2.$refs.ul.querySelector(':nth-child(2)').innerHTML;
|
|
46793
|
+
_this2.$refs.firstFake.innerHTML = _this2.$refs.ul.querySelector(':nth-child(' + (_this2.length + 1) + ')').innerHTML;
|
|
46794
|
+
_this2.play();
|
|
46795
|
+
|
|
46796
|
+
window.addEventListener('resize', _this2.setWidth);
|
|
46753
46797
|
|
|
46754
46798
|
// 初始化 MutationObserver
|
|
46755
46799
|
var observer = new MutationObserver(function (mutations) {
|
|
46756
|
-
|
|
46800
|
+
_this2.setLength(); // 每次子节点变化时更新长度
|
|
46757
46801
|
});
|
|
46758
|
-
observer.observe(
|
|
46802
|
+
observer.observe(_this2.$refs.ul, {
|
|
46759
46803
|
childList: true, // 监听子节点变化
|
|
46760
46804
|
subtree: true // 监听所有后代节点
|
|
46761
46805
|
});
|
|
46762
|
-
|
|
46763
|
-
},
|
|
46806
|
+
_this2.observer = observer;
|
|
46807
|
+
}, 200);
|
|
46764
46808
|
},
|
|
46765
46809
|
beforeDestroy: function beforeDestroy() {
|
|
46766
|
-
var _this2 = this;
|
|
46767
|
-
|
|
46768
46810
|
if (this.observer) {
|
|
46769
46811
|
this.observer.disconnect(); // 断开监听
|
|
46770
46812
|
}
|
|
46771
46813
|
clearInterval(this.playTimer); // 清理定时器
|
|
46772
|
-
window.removeEventListener('resize',
|
|
46773
|
-
_this2.width = _this2.$el.offsetWidth;
|
|
46774
|
-
});
|
|
46814
|
+
window.removeEventListener('resize', this.setWidth);
|
|
46775
46815
|
},
|
|
46776
46816
|
|
|
46777
46817
|
methods: {
|
|
46778
|
-
|
|
46818
|
+
setWidth: function setWidth() {
|
|
46779
46819
|
var _this3 = this;
|
|
46780
46820
|
|
|
46821
|
+
slidevue_type_script_lang_js_db(function () {
|
|
46822
|
+
_this3.width = _this3.$el.offsetWidth;
|
|
46823
|
+
}, 200)();
|
|
46824
|
+
},
|
|
46825
|
+
play: function play() {
|
|
46826
|
+
var _this4 = this;
|
|
46827
|
+
|
|
46781
46828
|
if (!this.autoplay || this.length < 2) {
|
|
46782
46829
|
return;
|
|
46783
46830
|
}
|
|
46784
46831
|
this.playTimer = setInterval(function () {
|
|
46785
|
-
|
|
46832
|
+
_this4.next();
|
|
46786
46833
|
}, Number(this.speed));
|
|
46787
46834
|
},
|
|
46788
46835
|
pause: function pause() {
|
|
46789
46836
|
clearInterval(this.playTimer);
|
|
46790
46837
|
},
|
|
46791
46838
|
setLength: function setLength() {
|
|
46792
|
-
var
|
|
46839
|
+
var _this5 = this;
|
|
46793
46840
|
|
|
46794
46841
|
this.$nextTick(function () {
|
|
46795
|
-
if (
|
|
46796
|
-
|
|
46842
|
+
if (_this5.$refs.ul) {
|
|
46843
|
+
_this5.length = _this5.$refs.ul.children.length - 2;
|
|
46797
46844
|
}
|
|
46798
46845
|
});
|
|
46799
46846
|
},
|
|
46800
46847
|
next: function next() {
|
|
46801
|
-
var
|
|
46848
|
+
var _this6 = this;
|
|
46802
46849
|
|
|
46803
46850
|
if (this.animate) {
|
|
46804
46851
|
this.current += 1;
|
|
46805
46852
|
if (this.current === this.length) {
|
|
46806
46853
|
setTimeout(function () {
|
|
46807
|
-
|
|
46808
|
-
|
|
46854
|
+
_this6.animate = false;
|
|
46855
|
+
_this6.current = 0;
|
|
46809
46856
|
setTimeout(function () {
|
|
46810
|
-
|
|
46857
|
+
_this6.animate = true;
|
|
46811
46858
|
}, 300);
|
|
46812
46859
|
}, 300);
|
|
46813
46860
|
}
|
|
46814
46861
|
}
|
|
46815
46862
|
},
|
|
46816
46863
|
prev: function prev() {
|
|
46817
|
-
var
|
|
46864
|
+
var _this7 = this;
|
|
46818
46865
|
|
|
46819
46866
|
if (this.animate) {
|
|
46820
46867
|
this.current -= 1;
|
|
46821
46868
|
if (this.current === -1) {
|
|
46822
46869
|
setTimeout(function () {
|
|
46823
|
-
|
|
46824
|
-
|
|
46870
|
+
_this7.animate = false;
|
|
46871
|
+
_this7.current = _this7.length - 1;
|
|
46825
46872
|
setTimeout(function () {
|
|
46826
|
-
|
|
46873
|
+
_this7.animate = true;
|
|
46827
46874
|
}, 300);
|
|
46828
46875
|
}, 300);
|
|
46829
46876
|
}
|
|
@@ -46878,8 +46925,8 @@ slidevue_type_template_id_020258e2_render._withStripped = true
|
|
|
46878
46925
|
|
|
46879
46926
|
var slide_component = normalizeComponent(
|
|
46880
46927
|
src_slidevue_type_script_lang_js,
|
|
46881
|
-
|
|
46882
|
-
|
|
46928
|
+
slidevue_type_template_id_01fbb6d0_render,
|
|
46929
|
+
slidevue_type_template_id_01fbb6d0_staticRenderFns,
|
|
46883
46930
|
false,
|
|
46884
46931
|
null,
|
|
46885
46932
|
null,
|
|
@@ -49745,8 +49792,8 @@ function print_getBody(areaId) {
|
|
|
49745
49792
|
html.push(document.getElementById(areaId).outerHTML);
|
|
49746
49793
|
html.push('</div></div>');
|
|
49747
49794
|
html.push('<div id="printFn" class="fn">\r\n');
|
|
49748
|
-
html.push('<button type="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"
|
|
49795
|
+
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>');
|
|
49796
|
+
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
49797
|
html.push('\r\n</div>');
|
|
49751
49798
|
html.push('\r\n</div>');
|
|
49752
49799
|
return html;
|
|
@@ -49757,11 +49804,9 @@ function replaceBodyContent(newContent) {
|
|
|
49757
49804
|
var parser = new DOMParser();
|
|
49758
49805
|
var doc = parser.parseFromString(htmlString, 'text/html');
|
|
49759
49806
|
|
|
49760
|
-
// 使用 DOMPurify 清理 HTML
|
|
49807
|
+
// 使用 DOMPurify 清理 HTML(保留必要的安全规则)
|
|
49761
49808
|
doc.body.innerHTML = external_dompurify_default.a.sanitize(newContent);
|
|
49762
|
-
|
|
49763
|
-
var newHtmlString = doc.documentElement.outerHTML;
|
|
49764
|
-
return newHtmlString;
|
|
49809
|
+
return doc.documentElement.outerHTML;
|
|
49765
49810
|
}
|
|
49766
49811
|
|
|
49767
49812
|
/* harmony default export */ var print = (function (areaId, title) {
|
|
@@ -49770,10 +49815,26 @@ function replaceBodyContent(newContent) {
|
|
|
49770
49815
|
pwin.document.write(replaceBodyContent(print_getBody(areaId).join('')));
|
|
49771
49816
|
pwin.document.close();
|
|
49772
49817
|
pwin.document.documentElement.classList.add('s_print');
|
|
49818
|
+
|
|
49819
|
+
// 绑定事件(事件委托)
|
|
49820
|
+
pwin.document.addEventListener('click', function (e) {
|
|
49821
|
+
var target = e.target.closest('[data-action]'); // 找到带 data-action 的按钮
|
|
49822
|
+
if (!target) return;
|
|
49823
|
+
|
|
49824
|
+
var action = target.dataset.action;
|
|
49825
|
+
switch (action) {
|
|
49826
|
+
case 'close':
|
|
49827
|
+
pwin.window.close(); // 关闭打印窗口
|
|
49828
|
+
break;
|
|
49829
|
+
case 'print':
|
|
49830
|
+
pwin.window.print(); // 执行 print 逻辑
|
|
49831
|
+
break;
|
|
49832
|
+
}
|
|
49833
|
+
});
|
|
49834
|
+
|
|
49773
49835
|
if (title && typeof title === 'string') {
|
|
49774
49836
|
pwin.document.title = title;
|
|
49775
49837
|
}
|
|
49776
|
-
pwin = null;
|
|
49777
49838
|
});
|
|
49778
49839
|
// CONCATENATED MODULE: ./src/utils/compare.js
|
|
49779
49840
|
/* harmony default export */ var compare = (function (dom) {
|
|
@@ -50227,7 +50288,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
50227
50288
|
}
|
|
50228
50289
|
|
|
50229
50290
|
/* harmony default export */ var src = __webpack_exports__["default"] = ({
|
|
50230
|
-
version: '1.
|
|
50291
|
+
version: '1.40.1',
|
|
50231
50292
|
locale: lib_locale_default.a.use,
|
|
50232
50293
|
i18n: lib_locale_default.a.i18n,
|
|
50233
50294
|
install: src_install,
|