ytg7vue 1.19.8 → 1.20.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/README.md +3 -1
- package/lib/idev.common.js +1 -1
- package/lib/index.js +24 -19
- package/lib/js/HdComGrid.js +1 -1
- package/lib/js/HdGrid.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -3445,7 +3445,7 @@ var Component = normalizeComponent(
|
|
3445
3445
|
"use strict";
|
3446
3446
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_HdGrid_vue__ = __webpack_require__(43);
|
3447
3447
|
/* unused harmony namespace reexport */
|
3448
|
-
/* harmony import */ var
|
3448
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_dfe77800_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_HdGrid_vue__ = __webpack_require__(170);
|
3449
3449
|
function injectStyle (ssrContext) {
|
3450
3450
|
__webpack_require__(108)
|
3451
3451
|
}
|
@@ -3460,12 +3460,12 @@ var __vue_template_functional__ = false
|
|
3460
3460
|
/* styles */
|
3461
3461
|
var __vue_styles__ = injectStyle
|
3462
3462
|
/* scopeId */
|
3463
|
-
var __vue_scopeId__ = "data-v-
|
3463
|
+
var __vue_scopeId__ = "data-v-dfe77800"
|
3464
3464
|
/* moduleIdentifier (server only) */
|
3465
3465
|
var __vue_module_identifier__ = null
|
3466
3466
|
var Component = normalizeComponent(
|
3467
3467
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_HdGrid_vue__["a" /* default */],
|
3468
|
-
|
3468
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_dfe77800_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_HdGrid_vue__["a" /* default */],
|
3469
3469
|
__vue_template_functional__,
|
3470
3470
|
__vue_styles__,
|
3471
3471
|
__vue_scopeId__,
|
@@ -3807,10 +3807,16 @@ var Component = normalizeComponent(
|
|
3807
3807
|
}
|
3808
3808
|
this.$emit('selection-change', select, true);
|
3809
3809
|
},
|
3810
|
-
myrowClick: function myrowClick(row,
|
3811
|
-
if (
|
3810
|
+
myrowClick: function myrowClick(row, column, event) {
|
3811
|
+
if (event.shiftKey) {
|
3812
|
+
var index1 = this.hdResult.rows.indexOf(this.hdQuery.selRow);
|
3813
|
+
var index2 = this.hdResult.rows.indexOf(row);
|
3814
|
+
|
3815
|
+
this.selectRowCube(index1, index2, false);
|
3816
|
+
} else {
|
3812
3817
|
this.hdQuery.selRow = row;
|
3813
3818
|
}
|
3819
|
+
console.log('row-click', row, event, column);
|
3814
3820
|
},
|
3815
3821
|
myrowDblClick: function myrowDblClick(row, event, column) {
|
3816
3822
|
if (this.$listeners['row-dblclick']) {
|
@@ -3971,12 +3977,14 @@ var Component = normalizeComponent(
|
|
3971
3977
|
});
|
3972
3978
|
},
|
3973
3979
|
selectPart: function selectPart(e, isUnSelect) {
|
3974
|
-
var _this10 = this;
|
3975
|
-
|
3976
3980
|
var index1 = this.hdResult.rows.indexOf(this.hdQuery.selRow);
|
3977
3981
|
var index2 = this.hdResult.rows.indexOf(this.rightMenuRow);
|
3978
3982
|
|
3979
|
-
|
3983
|
+
this.selectRowCube(index1, index2, isUnSelect);
|
3984
|
+
},
|
3985
|
+
selectRowCube: function selectRowCube(index1, index2, isUnSelect) {
|
3986
|
+
var _this10 = this;
|
3987
|
+
|
3980
3988
|
if (index1 > index2) {
|
3981
3989
|
var tmpIndex = index1;
|
3982
3990
|
index1 = index2;
|
@@ -25904,13 +25912,11 @@ window.jsPDF = __WEBPACK_IMPORTED_MODULE_2_jspdf__["default"];
|
|
25904
25912
|
this.gridStyles = this.resultData[0].reduce(function (total, v, i) {
|
25905
25913
|
if (_this.pdfExport.indexOf(i) > -1) {
|
25906
25914
|
var cellWidth = parseInt(_this.columnStyles[i].cellWidth);
|
25907
|
-
|
25915
|
+
|
25908
25916
|
total[flag++] = { cellWidth: isNaN(cellWidth) ? 'auto' : cellWidth };
|
25909
25917
|
}
|
25910
25918
|
return total;
|
25911
25919
|
}, {});
|
25912
|
-
|
25913
|
-
console.log(this.gridData, this.gridStyles);
|
25914
25920
|
},
|
25915
25921
|
refreshGridData: function refreshGridData() {
|
25916
25922
|
var obj = { isLandscape: this.isLandscape, fontSize: this.fontSize, cols: this.pdfExport, columnStyles: this.columnStyles };
|
@@ -25967,7 +25973,6 @@ window.jsPDF = __WEBPACK_IMPORTED_MODULE_2_jspdf__["default"];
|
|
25967
25973
|
this.pdfExport.push(_i);
|
25968
25974
|
}
|
25969
25975
|
}
|
25970
|
-
console.log(this.columnStyles, this.resultData);
|
25971
25976
|
}
|
25972
25977
|
this.initShowData();
|
25973
25978
|
this.title = title;
|
@@ -30096,7 +30101,7 @@ var content = __webpack_require__(109);
|
|
30096
30101
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
30097
30102
|
if(content.locals) module.exports = content.locals;
|
30098
30103
|
// add the styles to the DOM
|
30099
|
-
var update = __webpack_require__(3)("
|
30104
|
+
var update = __webpack_require__(3)("c8fc6b7a", content, true);
|
30100
30105
|
|
30101
30106
|
/***/ }),
|
30102
30107
|
/* 109 */
|
@@ -30107,7 +30112,7 @@ exports = module.exports = __webpack_require__(2)(undefined);
|
|
30107
30112
|
|
30108
30113
|
|
30109
30114
|
// module
|
30110
|
-
exports.push([module.i, ".hdgrid[data-v-
|
30115
|
+
exports.push([module.i, ".hdgrid[data-v-dfe77800]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hdgrid[data-v-dfe77800] .el-table{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.hdgrid[data-v-dfe77800] .el-table th.gutter{display:table-cell!important}.hdgrid[data-v-dfe77800] .el-table .el-table__fixed-header-wrapper th,.hdgrid[data-v-dfe77800] .el-table .el-table__header-wrapper th{background-color:#f6f6f6}.hdgrid[data-v-dfe77800] .el-table td,.hdgrid[data-v-dfe77800] .el-table th{padding:1px 0}.hdgrid[data-v-dfe77800] .el-table .cell,.hdgrid[data-v-dfe77800] .el-table .el-table--border td:first-child .cell,.hdgrid[data-v-dfe77800] .el-table .el-table--border th:first-child .cell,.hdgrid[data-v-dfe77800] .el-table .el-table th div{padding:1.5px 0 1.5px 4px!important}.hdgrid[data-v-dfe77800] .el-table .el-table__empty-block{position:static;text-align:center;width:100%;height:80%}.hdgrid[data-v-dfe77800] .el-table .el-table__body{margin-bottom:10px}.hdgrid[data-v-dfe77800] .el-table .el-table__body-wrapper{height:100%;overflow:auto}.hdgrid[data-v-dfe77800] .el-table .el-input__inner{height:27px;margin-bottom:0;line-height:27px}.hdgrid[data-v-dfe77800] .el-table .el-form-item__content,.hdgrid[data-v-dfe77800] .el-table .el-form-item__label,.hdgrid[data-v-dfe77800] .el-table .el-input,.hdgrid[data-v-dfe77800] .el-table .el-input__icon{line-height:30px}.hdgrid[data-v-dfe77800] .el-table .el-input__inner{padding:5px}.hdgrid[data-v-dfe77800] .el-table .el-input--prefix .el-input__inner{padding-left:30px}.hdgrid[data-v-dfe77800] .el-table .cell{min-width:20px}.hdgrid[data-v-dfe77800] .el-table .checkBox .cell{overflow:inherit}.hdgrid[data-v-dfe77800] .el-table .checkBox .cell .el-checkbox,.hdgrid[data-v-dfe77800] .el-table .checkBox .cell .el-checkbox__input{position:inherit}.hdBtnTool[data-v-dfe77800]{font-weight:700;vertical-align:middle;margin-left:20px}", ""]);
|
30111
30116
|
|
30112
30117
|
// exports
|
30113
30118
|
|
@@ -42022,7 +42027,7 @@ module.exports = ZStream;
|
|
42022
42027
|
"use strict";
|
42023
42028
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_PdfShow_vue__ = __webpack_require__(64);
|
42024
42029
|
/* unused harmony namespace reexport */
|
42025
|
-
/* harmony import */ var
|
42030
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_150fd453_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_PdfShow_vue__ = __webpack_require__(162);
|
42026
42031
|
function injectStyle (ssrContext) {
|
42027
42032
|
__webpack_require__(158)
|
42028
42033
|
}
|
@@ -42037,12 +42042,12 @@ var __vue_template_functional__ = false
|
|
42037
42042
|
/* styles */
|
42038
42043
|
var __vue_styles__ = injectStyle
|
42039
42044
|
/* scopeId */
|
42040
|
-
var __vue_scopeId__ = "data-v-
|
42045
|
+
var __vue_scopeId__ = "data-v-150fd453"
|
42041
42046
|
/* moduleIdentifier (server only) */
|
42042
42047
|
var __vue_module_identifier__ = null
|
42043
42048
|
var Component = normalizeComponent(
|
42044
42049
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_PdfShow_vue__["a" /* default */],
|
42045
|
-
|
42050
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_150fd453_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_PdfShow_vue__["a" /* default */],
|
42046
42051
|
__vue_template_functional__,
|
42047
42052
|
__vue_styles__,
|
42048
42053
|
__vue_scopeId__,
|
@@ -42063,7 +42068,7 @@ var content = __webpack_require__(159);
|
|
42063
42068
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
42064
42069
|
if(content.locals) module.exports = content.locals;
|
42065
42070
|
// add the styles to the DOM
|
42066
|
-
var update = __webpack_require__(3)("
|
42071
|
+
var update = __webpack_require__(3)("4643f966", content, true);
|
42067
42072
|
|
42068
42073
|
/***/ }),
|
42069
42074
|
/* 159 */
|
@@ -42074,7 +42079,7 @@ exports = module.exports = __webpack_require__(2)(undefined);
|
|
42074
42079
|
|
42075
42080
|
|
42076
42081
|
// module
|
42077
|
-
exports.push([module.i, ".pdfshow[data-v-
|
42082
|
+
exports.push([module.i, ".pdfshow[data-v-150fd453] .el-dialog__body{width:100%;height:calc(100% - 55px)}", ""]);
|
42078
42083
|
|
42079
42084
|
// exports
|
42080
42085
|
|