hoeditor-web 3.0.12 → 3.0.14
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/hoeditor.css +2 -13045
- package/lib/hoeditor.umd.js +253 -161
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -22547,7 +22547,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
22547
22547
|
|
|
22548
22548
|
/***/ }),
|
|
22549
22549
|
|
|
22550
|
-
/***/
|
|
22550
|
+
/***/ 45580:
|
|
22551
22551
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
22552
22552
|
|
|
22553
22553
|
"use strict";
|
|
@@ -22561,7 +22561,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
22561
22561
|
|
|
22562
22562
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
22563
22563
|
var es_number_to_fixed = __webpack_require__(56977);
|
|
22564
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=template&id=
|
|
22564
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=template&id=bc7a6d60&
|
|
22565
22565
|
|
|
22566
22566
|
var render = function render() {
|
|
22567
22567
|
var _vm = this,
|
|
@@ -22606,6 +22606,9 @@ var render = function render() {
|
|
|
22606
22606
|
}, [_c('span', {
|
|
22607
22607
|
staticClass: "label"
|
|
22608
22608
|
}, [_vm._v("修改")]), _c('a-radio-group', {
|
|
22609
|
+
attrs: {
|
|
22610
|
+
"disabled": _vm.radioDisable
|
|
22611
|
+
},
|
|
22609
22612
|
model: {
|
|
22610
22613
|
value: _vm.radio,
|
|
22611
22614
|
callback: function callback($$v) {
|
|
@@ -22687,25 +22690,37 @@ var render = function render() {
|
|
|
22687
22690
|
},
|
|
22688
22691
|
expression: "compress"
|
|
22689
22692
|
}
|
|
22690
|
-
}, [_vm._v("是否按缩放后尺寸压缩图片")])], 1), _c('li', {
|
|
22693
|
+
}, [_vm._v("是否按缩放后尺寸压缩图片(默认压缩为 jpeg 格式)")])], 1), _c('li', {
|
|
22691
22694
|
staticStyle: {
|
|
22692
22695
|
"text-align": "left",
|
|
22693
22696
|
"padding": "0 0 0 10px",
|
|
22694
|
-
"line-height": "20px"
|
|
22697
|
+
"line-height": "20px",
|
|
22698
|
+
"user-select": "text"
|
|
22695
22699
|
}
|
|
22696
22700
|
}, [_vm._v("图片初始大小:" + _vm._s((_vm.uploadImageUrl.length / 1024).toFixed(2)) + " kb")]), _c('li', {
|
|
22697
22701
|
staticStyle: {
|
|
22698
22702
|
"text-align": "left",
|
|
22699
22703
|
"padding": "0 0 0 10px",
|
|
22700
|
-
"line-height": "20px"
|
|
22704
|
+
"line-height": "20px",
|
|
22705
|
+
"user-select": "text"
|
|
22706
|
+
}
|
|
22707
|
+
}, [_vm._v("压缩后图片大小:" + _vm._s((_vm.imageUrl.length / 1024).toFixed(2)) + " kb")]), _vm.width > _vm.mainBounds.width ? _c('li', {
|
|
22708
|
+
staticStyle: {
|
|
22709
|
+
"text-align": "left",
|
|
22710
|
+
"padding": "0 0 0 10px",
|
|
22711
|
+
"line-height": "20px",
|
|
22712
|
+
"color": "#f00",
|
|
22713
|
+
"user-select": "text"
|
|
22701
22714
|
}
|
|
22702
|
-
}, [_vm._v("
|
|
22715
|
+
}, [_vm._v("病历正文内容最大宽度:" + _vm._s(_vm.mainBounds.width))]) : _vm._e(), _vm.height > _vm.mainBounds.height ? _c('li', {
|
|
22703
22716
|
staticStyle: {
|
|
22704
22717
|
"text-align": "left",
|
|
22705
22718
|
"padding": "0 0 0 10px",
|
|
22706
|
-
"line-height": "20px"
|
|
22719
|
+
"line-height": "20px",
|
|
22720
|
+
"color": "#f00",
|
|
22721
|
+
"user-select": "text"
|
|
22707
22722
|
}
|
|
22708
|
-
}, [_vm._v("
|
|
22723
|
+
}, [_vm._v("病历正文内容最大高度:" + _vm._s(_vm.mainBounds.height))]) : _vm._e()] : _vm._e(), _c('fieldset', {
|
|
22709
22724
|
staticClass: "fieldset"
|
|
22710
22725
|
}, [_c('legend', [_vm._v("预 览")]), _c('div', {
|
|
22711
22726
|
staticClass: "view-image"
|
|
@@ -22736,7 +22751,7 @@ var render = function render() {
|
|
|
22736
22751
|
};
|
|
22737
22752
|
var staticRenderFns = [];
|
|
22738
22753
|
|
|
22739
|
-
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=template&id=
|
|
22754
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=template&id=bc7a6d60&
|
|
22740
22755
|
|
|
22741
22756
|
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/style/index.js + 1 modules
|
|
22742
22757
|
var style = __webpack_require__(94310);
|
|
@@ -22754,7 +22769,6 @@ var util = __webpack_require__(62783);
|
|
|
22754
22769
|
|
|
22755
22770
|
|
|
22756
22771
|
|
|
22757
|
-
|
|
22758
22772
|
/* harmony default export */ var UploadImageDialogvue_type_script_lang_js_ = ({
|
|
22759
22773
|
name: 'UploadImageDialog',
|
|
22760
22774
|
props: {
|
|
@@ -22783,23 +22797,32 @@ var util = __webpack_require__(62783);
|
|
|
22783
22797
|
uploadImageUrl: '',
|
|
22784
22798
|
uploadLoading: false,
|
|
22785
22799
|
radio: 'w',
|
|
22800
|
+
radioDisable: false,
|
|
22786
22801
|
upload: false,
|
|
22787
22802
|
compressMethod: 'q',
|
|
22788
22803
|
compressResult: 0.8,
|
|
22789
22804
|
compress: true,
|
|
22790
|
-
size: 0
|
|
22805
|
+
size: 0,
|
|
22806
|
+
mainBounds: {
|
|
22807
|
+
width: 0,
|
|
22808
|
+
height: 0
|
|
22809
|
+
},
|
|
22810
|
+
imageBounds: {
|
|
22811
|
+
width: 0,
|
|
22812
|
+
height: 0
|
|
22813
|
+
}
|
|
22791
22814
|
};
|
|
22792
22815
|
},
|
|
22793
22816
|
watch: {
|
|
22794
22817
|
width: function width() {
|
|
22795
22818
|
if (this.width && this.radio === 'w') {
|
|
22796
|
-
this.height = Math.floor(this.width
|
|
22819
|
+
this.height = Math.floor(this.imageBounds.height / (this.imageBounds.width / this.width));
|
|
22797
22820
|
this.scaleImage();
|
|
22798
22821
|
}
|
|
22799
22822
|
},
|
|
22800
22823
|
height: function height() {
|
|
22801
22824
|
if (this.height && this.radio === 'h') {
|
|
22802
|
-
this.width = Math.floor(this.height / this.
|
|
22825
|
+
this.width = Math.floor(this.imageBounds.width / (this.imageBounds.height / this.height));
|
|
22803
22826
|
this.scaleImage();
|
|
22804
22827
|
}
|
|
22805
22828
|
},
|
|
@@ -22819,12 +22842,15 @@ var util = __webpack_require__(62783);
|
|
|
22819
22842
|
if (this.uploadImageParams && this.uploadImageParams.uploadUrl) {
|
|
22820
22843
|
this.upload = true;
|
|
22821
22844
|
}
|
|
22845
|
+
this.mainBounds = this.vueController.getMainBounds();
|
|
22822
22846
|
},
|
|
22823
22847
|
methods: {
|
|
22824
22848
|
uploadImage: function uploadImage(file) {
|
|
22825
22849
|
var _this = this;
|
|
22826
22850
|
this.file = file;
|
|
22827
22851
|
this.scale = 0;
|
|
22852
|
+
this.width = 0;
|
|
22853
|
+
this.height = 0;
|
|
22828
22854
|
var reader = new FileReader();
|
|
22829
22855
|
reader.onload = function (e) {
|
|
22830
22856
|
var image = new Image();
|
|
@@ -22833,10 +22859,35 @@ var util = __webpack_require__(62783);
|
|
|
22833
22859
|
_this.uploadImageUrl = base64Data;
|
|
22834
22860
|
image.src = base64Data;
|
|
22835
22861
|
image.onload = function () {
|
|
22836
|
-
_this.
|
|
22837
|
-
|
|
22838
|
-
|
|
22839
|
-
|
|
22862
|
+
_this.radioDisable = true;
|
|
22863
|
+
_this.imageBounds = {
|
|
22864
|
+
width: image.width,
|
|
22865
|
+
height: image.height
|
|
22866
|
+
};
|
|
22867
|
+
if (image.width > _this.mainBounds.width && image.height <= _this.mainBounds.width) {
|
|
22868
|
+
_this.radio = 'w';
|
|
22869
|
+
// this.scale = parseFloat((image.width / this.mainBounds.width).toFixed(0));
|
|
22870
|
+
_this.width = _this.mainBounds.width;
|
|
22871
|
+
// this.height = Math.floor(image.height / this.scale);
|
|
22872
|
+
} else if (image.width <= _this.mainBounds.width && image.height > _this.mainBounds.width) {
|
|
22873
|
+
_this.radio = 'h';
|
|
22874
|
+
// this.scale = parseFloat((image.height / this.mainBounds.height).toFixed(0));
|
|
22875
|
+
_this.height = _this.mainBounds.height;
|
|
22876
|
+
// this.width = Math.floor(image.width / this.scale);
|
|
22877
|
+
} else if (image.width > _this.mainBounds.width && image.height > _this.mainBounds.width) {
|
|
22878
|
+
var widthScale = image.width / _this.mainBounds.width;
|
|
22879
|
+
var heightScale = image.height / _this.mainBounds.height;
|
|
22880
|
+
// this.scale = Math.max(widthScale, heightScale);
|
|
22881
|
+
if (widthScale > heightScale) {
|
|
22882
|
+
_this.radio = 'w';
|
|
22883
|
+
_this.width = Math.round(image.width / widthScale);
|
|
22884
|
+
} else {
|
|
22885
|
+
_this.radio = 'h';
|
|
22886
|
+
_this.height = Math.round(image.height / heightScale);
|
|
22887
|
+
}
|
|
22888
|
+
} else if (image.width <= _this.mainBounds.width && image.height <= _this.mainBounds.width) {
|
|
22889
|
+
_this.radioDisable = false;
|
|
22890
|
+
_this.radio = 'h';
|
|
22840
22891
|
_this.height = image.height;
|
|
22841
22892
|
_this.width = image.width;
|
|
22842
22893
|
}
|
|
@@ -22954,10 +23005,10 @@ var util = __webpack_require__(62783);
|
|
|
22954
23005
|
});
|
|
22955
23006
|
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=script&lang=js&
|
|
22956
23007
|
/* harmony default export */ var upload_UploadImageDialogvue_type_script_lang_js_ = (UploadImageDialogvue_type_script_lang_js_);
|
|
22957
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=
|
|
23008
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=bc7a6d60&prod&lang=scss&
|
|
22958
23009
|
// extracted by mini-css-extract-plugin
|
|
22959
23010
|
|
|
22960
|
-
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=
|
|
23011
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=bc7a6d60&prod&lang=scss&
|
|
22961
23012
|
|
|
22962
23013
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
22963
23014
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -58735,7 +58786,9 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
58735
58786
|
get: function get() {
|
|
58736
58787
|
return this._borderWidth;
|
|
58737
58788
|
},
|
|
58738
|
-
set:
|
|
58789
|
+
set:
|
|
58790
|
+
// eslint-disable-next-line @typescript-eslint/adjacent-overload-signatures
|
|
58791
|
+
function set(borderWidth) {
|
|
58739
58792
|
this._borderWidth = borderWidth;
|
|
58740
58793
|
}
|
|
58741
58794
|
}, {
|
|
@@ -59757,7 +59810,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
59757
59810
|
fixedOnePage: this.tableProperty.fixedOnePage,
|
|
59758
59811
|
isUsePopEdit: this.tableProperty.isUsePopEdit
|
|
59759
59812
|
};
|
|
59760
|
-
;
|
|
59761
59813
|
}
|
|
59762
59814
|
}
|
|
59763
59815
|
//for (let i = pfrom.row; i <= this.rowInfos.length-1; i++) {
|
|
@@ -79183,7 +79235,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
79183
79235
|
// const dline = nextDrawLineInfos[1];
|
|
79184
79236
|
// const inLineIndex = nextDrawLineInfos[2];
|
|
79185
79237
|
var nextDrawNodeInfos = this.getNextDrawNode(e.beforeChangePath);
|
|
79186
|
-
var
|
|
79238
|
+
var node = nextDrawNodeInfos[0];
|
|
79187
79239
|
var startChildIndex = nextDrawNodeInfos[1];
|
|
79188
79240
|
var dendDrawLine = dline;
|
|
79189
79241
|
var aPaintLine;
|
|
@@ -79213,7 +79265,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
79213
79265
|
paragraphNode = this.clearDrawParagraphAfterDline(dline.paragraphNode, dline, inLineIndex, e.beforeChangePath);
|
|
79214
79266
|
dendDrawLine = this.drawDocInsert(paragraphNode, lineIndex,
|
|
79215
79267
|
// inLineIndex,
|
|
79216
|
-
|
|
79268
|
+
node, startChildIndex + 1, e.afterChangePath);
|
|
79217
79269
|
var endIndex = alines.indexOf(dendDrawLine);
|
|
79218
79270
|
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
79219
79271
|
endIndex = alines.length - 1;
|
|
@@ -79339,10 +79391,10 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
79339
79391
|
// (node as ParagraphNode).updateDrawInfos();
|
|
79340
79392
|
// } else {
|
|
79341
79393
|
//后续行未删除部分,添加到当前行的尾部
|
|
79342
|
-
if (
|
|
79394
|
+
if (node && !(node instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
79343
79395
|
var endLine = this.drawDocInsert(paragraphNode, lineIndex,
|
|
79344
79396
|
// inLineIndex,
|
|
79345
|
-
|
|
79397
|
+
node, startChildIndex + 1, e.afterChangePath);
|
|
79346
79398
|
if (endLine instanceof DrawLine/* DrawLine */.a) endLine.fitLines();
|
|
79347
79399
|
}
|
|
79348
79400
|
// }
|
|
@@ -79420,7 +79472,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
79420
79472
|
np.node.node2DrawNode();
|
|
79421
79473
|
np.node.placeDNodeAfterDline(beforeNode.drawlines[0]);
|
|
79422
79474
|
dTable.table.placeDNodeAfterDrawLine(np.node, np.node.drawlines[0], e.afterChangePath);
|
|
79423
|
-
dline =
|
|
79475
|
+
dline = node.drawTable;
|
|
79424
79476
|
if (e.repaintImmediate) {
|
|
79425
79477
|
if (!dArea) {
|
|
79426
79478
|
return false;
|
|
@@ -79449,7 +79501,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
79449
79501
|
var _index2 = _beforeNode.drootNodes.indexOf(_beforeNode.drawlines[0]);
|
|
79450
79502
|
var dTop = _beforeNode.drawlines[0].y;
|
|
79451
79503
|
_np.node.placeDNodeAfterDrawLine(_beforeNode, _beforeNode.drawlines[0], e.afterChangePath);
|
|
79452
|
-
dline =
|
|
79504
|
+
dline = node.drawTable;
|
|
79453
79505
|
if (e.repaintImmediate) {
|
|
79454
79506
|
if (!dArea) {
|
|
79455
79507
|
return false;
|
|
@@ -79600,10 +79652,10 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
79600
79652
|
if (hoEditorFactory.docTree.curOnDragNode) {
|
|
79601
79653
|
this._caret.visible = false;
|
|
79602
79654
|
}
|
|
79603
|
-
var
|
|
79604
|
-
if (
|
|
79605
|
-
if (
|
|
79606
|
-
if (!(
|
|
79655
|
+
var anode = hoEditorFactory.docTree.curDomRange.normalize().npEnd.node;
|
|
79656
|
+
if (anode) {
|
|
79657
|
+
if (anode.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && !anode.parentNode.canModifyContent) {
|
|
79658
|
+
if (!(anode instanceof MarkNode/* MarkNode */.j && anode.MarkNodeType == 2)) {
|
|
79607
79659
|
this._caret.visible = false;
|
|
79608
79660
|
}
|
|
79609
79661
|
}
|
|
@@ -80123,12 +80175,12 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
80123
80175
|
selectStart = "".concat(_dNode.node.getNodePath(), "/").concat(childIndex);
|
|
80124
80176
|
}
|
|
80125
80177
|
} else if ((0,IDrawInfos/* instanceOfIDrawInfos */.r)(_dNode)) {
|
|
80126
|
-
var
|
|
80127
|
-
var _dindex =
|
|
80128
|
-
if (
|
|
80129
|
-
selectStart = "".concat(
|
|
80178
|
+
var _node = _dNode.node;
|
|
80179
|
+
var _dindex = _node.drawNodes.indexOf(_dNode);
|
|
80180
|
+
if (_node.hasChildPath()) {
|
|
80181
|
+
selectStart = "".concat(_node.getNodePath(), "/").concat(_dindex);
|
|
80130
80182
|
} else {
|
|
80131
|
-
selectStart = "".concat(
|
|
80183
|
+
selectStart = "".concat(_node.getNodePath());
|
|
80132
80184
|
}
|
|
80133
80185
|
}
|
|
80134
80186
|
}
|
|
@@ -85286,50 +85338,51 @@ var TableDeleteColUndoUnit = /*#__PURE__*/function () {
|
|
|
85286
85338
|
}, {
|
|
85287
85339
|
key: "undo",
|
|
85288
85340
|
value: function undo() {
|
|
85289
|
-
|
|
85290
|
-
|
|
85291
|
-
|
|
85292
|
-
|
|
85293
|
-
|
|
85294
|
-
|
|
85295
|
-
|
|
85296
|
-
|
|
85297
|
-
|
|
85298
|
-
|
|
85299
|
-
|
|
85300
|
-
|
|
85301
|
-
|
|
85302
|
-
|
|
85303
|
-
|
|
85304
|
-
|
|
85305
|
-
|
|
85306
|
-
|
|
85307
|
-
|
|
85308
|
-
}
|
|
85341
|
+
var icopyCol = this._col;
|
|
85342
|
+
if (icopyCol > this._table.colCount - 1) {
|
|
85343
|
+
icopyCol = this._table.colCount - 1;
|
|
85344
|
+
}
|
|
85345
|
+
this._table.insertCols(this._col, this._count, icopyCol);
|
|
85346
|
+
for (var c = 0; c < this._table.colCount; c++) {
|
|
85347
|
+
this._table.colInfos[c] = this._colInfs[c];
|
|
85348
|
+
}
|
|
85349
|
+
for (var i = this._delCells.length - 1; i >= 0; i--) {
|
|
85350
|
+
var cellInfo = this._delCells[i];
|
|
85351
|
+
this._table.rows[cellInfo.r][cellInfo.c] = cellInfo.cellNode;
|
|
85352
|
+
var cell = this._table.rows[cellInfo.r][cellInfo.c];
|
|
85353
|
+
if (cell) {
|
|
85354
|
+
cell.row = this._table.rows[cellInfo.r];
|
|
85355
|
+
this._table.childNodes[cellInfo.r * this._table.colCount + cellInfo.c] = cell;
|
|
85356
|
+
if (cellInfo.needRemerge) {
|
|
85357
|
+
for (var r = cellInfo.r; r < cellInfo.r + cell.rowSpan; r++) {
|
|
85358
|
+
for (var _c = cellInfo.c + 1; _c < cellInfo.c + cell.colSpan; _c++) {
|
|
85359
|
+
this._table.rows[r][_c] = undefined;
|
|
85309
85360
|
}
|
|
85310
|
-
// this._table.mergeCells(
|
|
85311
|
-
// cellInfo.r,
|
|
85312
|
-
// cellInfo.c,
|
|
85313
|
-
// cell.rowSpan,
|
|
85314
|
-
// cell.colSpan
|
|
85315
|
-
// );
|
|
85316
85361
|
}
|
|
85362
|
+
// this._table.mergeCells(
|
|
85363
|
+
// cellInfo.r,
|
|
85364
|
+
// cellInfo.c,
|
|
85365
|
+
// cell.rowSpan,
|
|
85366
|
+
// cell.colSpan
|
|
85367
|
+
// );
|
|
85317
85368
|
}
|
|
85318
|
-
}
|
|
85319
85369
|
|
|
85320
|
-
|
|
85321
|
-
|
|
85322
|
-
|
|
85323
|
-
|
|
85324
|
-
|
|
85325
|
-
|
|
85326
|
-
|
|
85327
|
-
|
|
85370
|
+
cell.drawCell.needUpdate = false;
|
|
85371
|
+
}
|
|
85372
|
+
}
|
|
85373
|
+
for (var _i = 0; _i < this._oldSpans.length; _i++) {
|
|
85374
|
+
var cellSpanInfos = this._oldSpans[_i];
|
|
85375
|
+
if (cellSpanInfos) {
|
|
85376
|
+
var _cell = this._table.rows[cellSpanInfos.r][cellSpanInfos.c];
|
|
85377
|
+
if (_cell) {
|
|
85378
|
+
_cell.rowSpan = cellSpanInfos.rowSpan;
|
|
85379
|
+
_cell.colSpan = cellSpanInfos.colSpan;
|
|
85328
85380
|
}
|
|
85329
85381
|
}
|
|
85330
|
-
|
|
85331
|
-
|
|
85332
|
-
|
|
85382
|
+
}
|
|
85383
|
+
this._table.countChildNodes();
|
|
85384
|
+
this._table.updateWidth();
|
|
85385
|
+
this._table.update();
|
|
85333
85386
|
}
|
|
85334
85387
|
}, {
|
|
85335
85388
|
key: "redo",
|
|
@@ -85540,15 +85593,18 @@ var TableDeleteParagraphUndoUnit = /*#__PURE__*/function () {
|
|
|
85540
85593
|
/* harmony export */ "x3": function() { return /* binding */ CellInfos; }
|
|
85541
85594
|
/* harmony export */ });
|
|
85542
85595
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27222);
|
|
85543
|
-
/* harmony import */ var
|
|
85544
|
-
/* harmony import */ var
|
|
85545
|
-
/* harmony import */ var
|
|
85546
|
-
/* harmony import */ var
|
|
85547
|
-
/* harmony import */ var
|
|
85548
|
-
/* harmony import */ var
|
|
85549
|
-
/* harmony import */ var
|
|
85550
|
-
/* harmony import */ var
|
|
85551
|
-
/* harmony import */ var
|
|
85596
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80543);
|
|
85597
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81448);
|
|
85598
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(66298);
|
|
85599
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70280);
|
|
85600
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(78255);
|
|
85601
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41539);
|
|
85602
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
85603
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39714);
|
|
85604
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
85605
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(57658);
|
|
85606
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
85607
|
+
|
|
85552
85608
|
|
|
85553
85609
|
|
|
85554
85610
|
|
|
@@ -85556,23 +85612,24 @@ var TableDeleteParagraphUndoUnit = /*#__PURE__*/function () {
|
|
|
85556
85612
|
|
|
85557
85613
|
|
|
85558
85614
|
|
|
85559
|
-
|
|
85560
|
-
|
|
85561
|
-
(0,
|
|
85562
|
-
(0,
|
|
85563
|
-
(0,
|
|
85564
|
-
(0,
|
|
85615
|
+
|
|
85616
|
+
var CellSpanInfos = /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(function CellSpanInfos(r, c, rowSpan, colSpan) {
|
|
85617
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, CellSpanInfos);
|
|
85618
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "r", void 0);
|
|
85619
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "c", void 0);
|
|
85620
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "rowSpan", void 0);
|
|
85621
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "colSpan", void 0);
|
|
85565
85622
|
this.r = r;
|
|
85566
85623
|
this.c = c;
|
|
85567
85624
|
this.rowSpan = rowSpan;
|
|
85568
85625
|
this.colSpan = colSpan;
|
|
85569
85626
|
});
|
|
85570
|
-
var CellInfos = /*#__PURE__*/(0,
|
|
85571
|
-
(0,
|
|
85572
|
-
(0,
|
|
85573
|
-
(0,
|
|
85574
|
-
(0,
|
|
85575
|
-
(0,
|
|
85627
|
+
var CellInfos = /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(function CellInfos(r, c, endRow, endCol, cellNode) {
|
|
85628
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, CellInfos);
|
|
85629
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "r", void 0);
|
|
85630
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "c", void 0);
|
|
85631
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "cellNode", void 0);
|
|
85632
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "needRemerge", void 0);
|
|
85576
85633
|
this.r = r;
|
|
85577
85634
|
this.c = c;
|
|
85578
85635
|
this.cellNode = cellNode;
|
|
@@ -85588,16 +85645,16 @@ var CellInfos = /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_mod
|
|
|
85588
85645
|
});
|
|
85589
85646
|
var TableDeleteRowUndoUnit = /*#__PURE__*/function () {
|
|
85590
85647
|
function TableDeleteRowUndoUnit(hoEditorFactoryID, table, row, count) {
|
|
85591
|
-
(0,
|
|
85592
|
-
(0,
|
|
85593
|
-
(0,
|
|
85594
|
-
(0,
|
|
85595
|
-
(0,
|
|
85596
|
-
(0,
|
|
85597
|
-
(0,
|
|
85598
|
-
(0,
|
|
85599
|
-
(0,
|
|
85600
|
-
(0,
|
|
85648
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, TableDeleteRowUndoUnit);
|
|
85649
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_delCells", void 0);
|
|
85650
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_oldSpans", void 0);
|
|
85651
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_rowInfs", void 0);
|
|
85652
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_hoEditorFactoryID", void 0);
|
|
85653
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_row", void 0);
|
|
85654
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_count", void 0);
|
|
85655
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_table", void 0);
|
|
85656
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_opTime", void 0);
|
|
85657
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_affectText", void 0);
|
|
85601
85658
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
85602
85659
|
this._table = table;
|
|
85603
85660
|
this._oldSpans = new Array();
|
|
@@ -85608,57 +85665,79 @@ var TableDeleteRowUndoUnit = /*#__PURE__*/function () {
|
|
|
85608
85665
|
this._opTime = new Date();
|
|
85609
85666
|
this._affectText = "起始行" + (row + 1).toString() + "行数:" + count.toString();
|
|
85610
85667
|
}
|
|
85611
|
-
(0,
|
|
85668
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TableDeleteRowUndoUnit, [{
|
|
85612
85669
|
key: "isEmpty",
|
|
85613
85670
|
get: function get() {
|
|
85614
85671
|
return false;
|
|
85615
85672
|
}
|
|
85616
85673
|
}, {
|
|
85617
85674
|
key: "undo",
|
|
85618
|
-
value: function
|
|
85619
|
-
var
|
|
85620
|
-
|
|
85621
|
-
|
|
85622
|
-
|
|
85623
|
-
|
|
85624
|
-
|
|
85625
|
-
|
|
85626
|
-
|
|
85627
|
-
|
|
85628
|
-
|
|
85629
|
-
|
|
85630
|
-
|
|
85631
|
-
|
|
85632
|
-
|
|
85633
|
-
|
|
85634
|
-
|
|
85635
|
-
|
|
85636
|
-
|
|
85637
|
-
|
|
85638
|
-
|
|
85639
|
-
|
|
85640
|
-
|
|
85641
|
-
|
|
85642
|
-
|
|
85643
|
-
|
|
85644
|
-
|
|
85645
|
-
|
|
85646
|
-
|
|
85647
|
-
|
|
85675
|
+
value: function () {
|
|
85676
|
+
var _undo = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee() {
|
|
85677
|
+
var iCopyrow, r, i, cellInfo, cell, _r, c, _i, cellSpanInfos, _cell;
|
|
85678
|
+
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
|
|
85679
|
+
while (1) {
|
|
85680
|
+
switch (_context.prev = _context.next) {
|
|
85681
|
+
case 0:
|
|
85682
|
+
iCopyrow = this._row;
|
|
85683
|
+
if (iCopyrow > this._table.rowCount - 1) {
|
|
85684
|
+
iCopyrow = this._table.rowCount - 1;
|
|
85685
|
+
}
|
|
85686
|
+
this._table.insertRows(this._row, this._count, iCopyrow);
|
|
85687
|
+
for (r = this._row; r < this._row + this._count; r++) {
|
|
85688
|
+
this._table.rowInfos[r] = this._rowInfs[r];
|
|
85689
|
+
}
|
|
85690
|
+
for (i = this._delCells.length - 1; i >= 0; i--) {
|
|
85691
|
+
cellInfo = this._delCells[i];
|
|
85692
|
+
this._table.rows[cellInfo.r][cellInfo.c] = cellInfo.cellNode;
|
|
85693
|
+
cell = this._table.rows[cellInfo.r][cellInfo.c];
|
|
85694
|
+
if (cell) {
|
|
85695
|
+
cell.row = this._table.rows[cellInfo.r];
|
|
85696
|
+
this._table.childNodes[cellInfo.r * this._table.colCount + cellInfo.c] = cell;
|
|
85697
|
+
if (cellInfo.needRemerge) {
|
|
85698
|
+
for (_r = cellInfo.r + 1; _r < cellInfo.r + cell.rowSpan; _r++) {
|
|
85699
|
+
for (c = cellInfo.c; c < cellInfo.c + cell.colSpan; c++) {
|
|
85700
|
+
this._table.rows[_r][c] = undefined;
|
|
85701
|
+
}
|
|
85702
|
+
}
|
|
85703
|
+
// this._table.mergeCells(
|
|
85704
|
+
// cellInfo.r,
|
|
85705
|
+
// cellInfo.c,
|
|
85706
|
+
// cell.rowSpan,
|
|
85707
|
+
// cell.colSpan
|
|
85708
|
+
// );
|
|
85709
|
+
}
|
|
85648
85710
|
|
|
85649
|
-
|
|
85650
|
-
|
|
85651
|
-
|
|
85652
|
-
|
|
85653
|
-
|
|
85654
|
-
|
|
85655
|
-
|
|
85711
|
+
cell.drawCell.needUpdate = false;
|
|
85712
|
+
}
|
|
85713
|
+
}
|
|
85714
|
+
for (_i = 0; _i < this._oldSpans.length; _i++) {
|
|
85715
|
+
cellSpanInfos = this._oldSpans[_i];
|
|
85716
|
+
if (cellSpanInfos) {
|
|
85717
|
+
_cell = this._table.rows[cellSpanInfos.r][cellSpanInfos.c];
|
|
85718
|
+
if (_cell) {
|
|
85719
|
+
_cell.rowSpan = cellSpanInfos.rowSpan;
|
|
85720
|
+
_cell.colSpan = cellSpanInfos.colSpan;
|
|
85721
|
+
}
|
|
85722
|
+
}
|
|
85723
|
+
}
|
|
85724
|
+
this._table.countChildNodes();
|
|
85725
|
+
_context.next = 9;
|
|
85726
|
+
return this._table.update();
|
|
85727
|
+
case 9:
|
|
85728
|
+
return _context.abrupt("return");
|
|
85729
|
+
case 10:
|
|
85730
|
+
case "end":
|
|
85731
|
+
return _context.stop();
|
|
85732
|
+
}
|
|
85656
85733
|
}
|
|
85657
|
-
}
|
|
85734
|
+
}, _callee, this);
|
|
85735
|
+
}));
|
|
85736
|
+
function undo() {
|
|
85737
|
+
return _undo.apply(this, arguments);
|
|
85658
85738
|
}
|
|
85659
|
-
|
|
85660
|
-
|
|
85661
|
-
}
|
|
85739
|
+
return undo;
|
|
85740
|
+
}()
|
|
85662
85741
|
}, {
|
|
85663
85742
|
key: "redo",
|
|
85664
85743
|
value: function redo() {
|
|
@@ -85681,6 +85760,7 @@ var TableDeleteRowUndoUnit = /*#__PURE__*/function () {
|
|
|
85681
85760
|
}
|
|
85682
85761
|
}
|
|
85683
85762
|
this._table.deleteRows(this._row, this._count);
|
|
85763
|
+
this._table.countChildNodes();
|
|
85684
85764
|
this._table.update();
|
|
85685
85765
|
}
|
|
85686
85766
|
}, {
|
|
@@ -219435,7 +219515,7 @@ var map = {
|
|
|
219435
219515
|
"./textDialog/TextToLabelDialog.vue": 19722,
|
|
219436
219516
|
"./upload/CanvasImageDialog.vue": 94116,
|
|
219437
219517
|
"./upload/HoFabric.vue": 43008,
|
|
219438
|
-
"./upload/UploadImageDialog.vue":
|
|
219518
|
+
"./upload/UploadImageDialog.vue": 45580,
|
|
219439
219519
|
"./upload/hoFabricRight.vue": 42718
|
|
219440
219520
|
};
|
|
219441
219521
|
|
|
@@ -255666,8 +255746,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
255666
255746
|
var es_number_constructor = __webpack_require__(9653);
|
|
255667
255747
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
255668
255748
|
var es_json_stringify = __webpack_require__(38862);
|
|
255669
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
255670
|
-
var
|
|
255749
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=97be1546&
|
|
255750
|
+
var HoDocvue_type_template_id_97be1546_render = function render() {
|
|
255671
255751
|
var _vm = this,
|
|
255672
255752
|
_c = _vm._self._c;
|
|
255673
255753
|
return _c('div', {
|
|
@@ -255810,7 +255890,7 @@ var HoDocvue_type_template_id_23a1eaaa_render = function render() {
|
|
|
255810
255890
|
}
|
|
255811
255891
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
255812
255892
|
};
|
|
255813
|
-
var
|
|
255893
|
+
var HoDocvue_type_template_id_97be1546_staticRenderFns = [];
|
|
255814
255894
|
|
|
255815
255895
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
255816
255896
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -259316,7 +259396,7 @@ var SignNode = __webpack_require__(24701);
|
|
|
259316
259396
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
259317
259397
|
var ParagraphNode = __webpack_require__(67945);
|
|
259318
259398
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
259319
|
-
/* harmony default export */ var version = ('3.0.
|
|
259399
|
+
/* harmony default export */ var version = ('3.0.14');
|
|
259320
259400
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
259321
259401
|
var PoperTipText = __webpack_require__(15845);
|
|
259322
259402
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -259620,9 +259700,9 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
259620
259700
|
});
|
|
259621
259701
|
},
|
|
259622
259702
|
setActiveDocIndex: function setActiveDocIndex(hoEditorId) {
|
|
259623
|
-
if (!this.hoEditorProvider.activeDocId && hoEditorId !== this.hoEditorProvider.activeDocId) {
|
|
259624
|
-
|
|
259625
|
-
}
|
|
259703
|
+
// if (!this.hoEditorProvider.activeDocId && hoEditorId !== this.hoEditorProvider.activeDocId) {
|
|
259704
|
+
this.$emit('setActiveDocIndex', hoEditorId);
|
|
259705
|
+
// }
|
|
259626
259706
|
},
|
|
259627
259707
|
/**
|
|
259628
259708
|
* 双击弹出层关闭
|
|
@@ -259992,10 +260072,10 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
259992
260072
|
});
|
|
259993
260073
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
259994
260074
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
259995
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
260075
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=97be1546&prod&lang=scss&
|
|
259996
260076
|
// extracted by mini-css-extract-plugin
|
|
259997
260077
|
|
|
259998
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
260078
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=97be1546&prod&lang=scss&
|
|
259999
260079
|
|
|
260000
260080
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
260001
260081
|
|
|
@@ -260008,8 +260088,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
260008
260088
|
|
|
260009
260089
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
260010
260090
|
components_HoDocvue_type_script_lang_js_,
|
|
260011
|
-
|
|
260012
|
-
|
|
260091
|
+
HoDocvue_type_template_id_97be1546_render,
|
|
260092
|
+
HoDocvue_type_template_id_97be1546_staticRenderFns,
|
|
260013
260093
|
false,
|
|
260014
260094
|
null,
|
|
260015
260095
|
null,
|
|
@@ -260360,7 +260440,9 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
260360
260440
|
if (dline.paragraphNode.printAsSinglePage && dline.paragraphNode.drawlines[0] === dline && dTop > 0 && drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
260361
260441
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
260362
260442
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
260363
|
-
|
|
260443
|
+
if (dline.paragraphNode.docId != '') {
|
|
260444
|
+
hoEditorFactory.subDocManger.updateSubDocPageIndexByPath(drawArea.pageIndex + 1, dline.paragraphNode.docId);
|
|
260445
|
+
}
|
|
260364
260446
|
pageIsFull.set(drawArea.index, true);
|
|
260365
260447
|
if (nextLine > 0) {
|
|
260366
260448
|
drawArea.endDline = nextLine - 1;
|
|
@@ -268495,7 +268577,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268495
268577
|
*/
|
|
268496
268578
|
}, {
|
|
268497
268579
|
key: "insertHtmlText",
|
|
268498
|
-
value: function insertHtmlText(strHtml,
|
|
268580
|
+
value: function insertHtmlText(strHtml, value, keyValye, listItems) {
|
|
268499
268581
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268500
268582
|
strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, '</上标>', '<上标/>');
|
|
268501
268583
|
strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, '</下标>', '<下标/>');
|
|
@@ -272025,6 +272107,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
272025
272107
|
}
|
|
272026
272108
|
}
|
|
272027
272109
|
}
|
|
272110
|
+
}, {
|
|
272111
|
+
key: "getMainBounds",
|
|
272112
|
+
value: function getMainBounds() {
|
|
272113
|
+
var hoEditorfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
272114
|
+
var firstPageMainDoc = hoEditorfactory.drawTree.drawPages[0].drawMainDoc;
|
|
272115
|
+
return {
|
|
272116
|
+
width: Math.max(firstPageMainDoc.dWidth, firstPageMainDoc.docWidth),
|
|
272117
|
+
height: Math.min(firstPageMainDoc.dHeight, firstPageMainDoc.docHeight)
|
|
272118
|
+
};
|
|
272119
|
+
}
|
|
272028
272120
|
}]);
|
|
272029
272121
|
return VueController;
|
|
272030
272122
|
}();
|