hoeditor-web 3.0.38 → 3.0.40
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 +13054 -2
- package/lib/hoeditor.umd.js +213 -143
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
- package/lib/lib0324.zip +0 -0
package/lib/hoeditor.umd.js
CHANGED
|
@@ -8877,7 +8877,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
8877
8877
|
|
|
8878
8878
|
/***/ }),
|
|
8879
8879
|
|
|
8880
|
-
/***/
|
|
8880
|
+
/***/ 93648:
|
|
8881
8881
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8882
8882
|
|
|
8883
8883
|
"use strict";
|
|
@@ -8897,7 +8897,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
8897
8897
|
var es_regexp_exec = __webpack_require__(74916);
|
|
8898
8898
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
8899
8899
|
var es_string_replace = __webpack_require__(15306);
|
|
8900
|
-
;// 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/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
8900
|
+
;// 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/poperSelect/PoperSelect.vue?vue&type=template&id=6852d403&
|
|
8901
8901
|
|
|
8902
8902
|
|
|
8903
8903
|
|
|
@@ -9279,7 +9279,7 @@ var render = function render() {
|
|
|
9279
9279
|
};
|
|
9280
9280
|
var staticRenderFns = [];
|
|
9281
9281
|
|
|
9282
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9282
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=6852d403&
|
|
9283
9283
|
|
|
9284
9284
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
9285
9285
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -11354,7 +11354,8 @@ var type = __webpack_require__(41542);
|
|
|
11354
11354
|
dragIndex: 0,
|
|
11355
11355
|
enterIndex: 0,
|
|
11356
11356
|
// 保存打开表单时的节点路径
|
|
11357
|
-
endPath: ''
|
|
11357
|
+
endPath: '',
|
|
11358
|
+
calendarInstance: null
|
|
11358
11359
|
};
|
|
11359
11360
|
},
|
|
11360
11361
|
computed: {
|
|
@@ -11478,8 +11479,9 @@ var type = __webpack_require__(41542);
|
|
|
11478
11479
|
if (this.dateTimeStyle.includes('yyyy') || this.dateTimeStyle.includes('MM') || this.dateTimeStyle.includes('dd')) {
|
|
11479
11480
|
this.$nextTick(function () {
|
|
11480
11481
|
if (_this2.$refs.datePicker) {
|
|
11481
|
-
|
|
11482
|
-
calendarInstance.addEventListener('input', _this2.calendarInstanceChange);
|
|
11482
|
+
_this2.calendarInstance = _this2.$refs.datePicker.$refs.picker.$refs.calendarInstance.$el.querySelector('.ant-calendar-input');
|
|
11483
|
+
_this2.calendarInstance.addEventListener('input', _this2.calendarInstanceChange);
|
|
11484
|
+
_this2.calendarInstance.addEventListener('keydown', _this2.calendarInstanceKeydown);
|
|
11483
11485
|
}
|
|
11484
11486
|
});
|
|
11485
11487
|
}
|
|
@@ -11488,6 +11490,18 @@ var type = __webpack_require__(41542);
|
|
|
11488
11490
|
// datePickerChange(event) {
|
|
11489
11491
|
// console.log('datePickerChange ==> ', event.target.value);
|
|
11490
11492
|
// },
|
|
11493
|
+
calendarInstanceKeydown: function calendarInstanceKeydown(event) {
|
|
11494
|
+
var _this3 = this;
|
|
11495
|
+
if (event && event.keyCode == 13) {
|
|
11496
|
+
this.$nextTick(function () {
|
|
11497
|
+
if (_this3.calendarInstance) {
|
|
11498
|
+
_this3.calendarInstance.removeEventListener('input', _this3.calendarInstanceChange);
|
|
11499
|
+
_this3.calendarInstance.removeEventListener('input', _this3.calendarInstanceChange);
|
|
11500
|
+
}
|
|
11501
|
+
_this3.sureDate();
|
|
11502
|
+
});
|
|
11503
|
+
}
|
|
11504
|
+
},
|
|
11491
11505
|
calendarInstanceChange: function calendarInstanceChange(event) {
|
|
11492
11506
|
var style = this.dateTimeStyle.replace(/dd/g, 'DD').replace(/yyyy/g, 'YYYY');
|
|
11493
11507
|
var format = this.dateTimeStyle.replace(/[^a-zA-Z]/g, '').replace(/dd/g, 'DD').replace(/yyyy/g, 'YYYY');
|
|
@@ -11577,7 +11591,7 @@ var type = __webpack_require__(41542);
|
|
|
11577
11591
|
this.sureDate();
|
|
11578
11592
|
},
|
|
11579
11593
|
currentDateTime: function currentDateTime() {
|
|
11580
|
-
var
|
|
11594
|
+
var _this4 = this;
|
|
11581
11595
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
11582
11596
|
var node = this.getCurrentPoperNode();
|
|
11583
11597
|
var date = this.dateFormat(new Date(), node.controlStyle);
|
|
@@ -11599,7 +11613,7 @@ var type = __webpack_require__(41542);
|
|
|
11599
11613
|
};
|
|
11600
11614
|
hoEditorFactory.vueController.updateDateTime(JSON.stringify(params));
|
|
11601
11615
|
this.$nextTick(function () {
|
|
11602
|
-
return
|
|
11616
|
+
return _this4.handleClose();
|
|
11603
11617
|
});
|
|
11604
11618
|
},
|
|
11605
11619
|
sureDate: function sureDate() {
|
|
@@ -11679,12 +11693,12 @@ var type = __webpack_require__(41542);
|
|
|
11679
11693
|
* 互斥列表选择
|
|
11680
11694
|
*/
|
|
11681
11695
|
mutexSelectItemsChange: function mutexSelectItemsChange(value) {
|
|
11682
|
-
var
|
|
11696
|
+
var _this5 = this;
|
|
11683
11697
|
if (value.length > 0) {
|
|
11684
11698
|
this.poperSelectList.forEach(function (v) {
|
|
11685
11699
|
if (value.includes(v.id)) {
|
|
11686
11700
|
v.selected = true;
|
|
11687
|
-
|
|
11701
|
+
_this5.mutexType = String(v.type);
|
|
11688
11702
|
} else {
|
|
11689
11703
|
v.selected = false;
|
|
11690
11704
|
}
|
|
@@ -11693,7 +11707,7 @@ var type = __webpack_require__(41542);
|
|
|
11693
11707
|
} else if (value.length === 0) {
|
|
11694
11708
|
this.poperSelectList.forEach(function (v) {
|
|
11695
11709
|
v.selected = false;
|
|
11696
|
-
|
|
11710
|
+
_this5.mutexType = '';
|
|
11697
11711
|
});
|
|
11698
11712
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
11699
11713
|
}
|
|
@@ -11702,7 +11716,7 @@ var type = __webpack_require__(41542);
|
|
|
11702
11716
|
* 选择
|
|
11703
11717
|
*/
|
|
11704
11718
|
selectItemsChange: function selectItemsChange(value) {
|
|
11705
|
-
var
|
|
11719
|
+
var _this6 = this;
|
|
11706
11720
|
if (!this.isAllowMultiSelect) {
|
|
11707
11721
|
var item = {};
|
|
11708
11722
|
var selectItemIndex = 0;
|
|
@@ -11724,12 +11738,12 @@ var type = __webpack_require__(41542);
|
|
|
11724
11738
|
this.poperSelectList.map(function (v) {
|
|
11725
11739
|
if (value.target.id == v.id) {
|
|
11726
11740
|
v.selected = value.target.checked;
|
|
11727
|
-
if (v.selected &&
|
|
11741
|
+
if (v.selected && _this6.selectedList.filter(function (m) {
|
|
11728
11742
|
return m.id == v.id;
|
|
11729
11743
|
}).length == 0) {
|
|
11730
|
-
|
|
11744
|
+
_this6.selectedList.push(v);
|
|
11731
11745
|
} else {
|
|
11732
|
-
|
|
11746
|
+
_this6.selectedList = _this6.selectedList.filter(function (m) {
|
|
11733
11747
|
return m.id != v.id;
|
|
11734
11748
|
});
|
|
11735
11749
|
}
|
|
@@ -11747,7 +11761,7 @@ var type = __webpack_require__(41542);
|
|
|
11747
11761
|
}
|
|
11748
11762
|
},
|
|
11749
11763
|
selectItems: function selectItems(item, index) {
|
|
11750
|
-
var
|
|
11764
|
+
var _this7 = this;
|
|
11751
11765
|
if (!this.isAllowMultiSelect) {
|
|
11752
11766
|
this.poperSelectList.forEach(function (v) {
|
|
11753
11767
|
v.selected = false;
|
|
@@ -11762,13 +11776,13 @@ var type = __webpack_require__(41542);
|
|
|
11762
11776
|
v.selected = !v.selected;
|
|
11763
11777
|
}
|
|
11764
11778
|
if (v.selected) {
|
|
11765
|
-
if (
|
|
11779
|
+
if (_this7.isCanSearch && _this7.selectedList.filter(function (m) {
|
|
11766
11780
|
return m.id == v.id;
|
|
11767
11781
|
}).length == 0) {
|
|
11768
|
-
|
|
11782
|
+
_this7.selectedList.push(v);
|
|
11769
11783
|
}
|
|
11770
11784
|
} else {
|
|
11771
|
-
if (
|
|
11785
|
+
if (_this7.isCanSearch) _this7.selectedList = _this7.selectedList.filter(function (m) {
|
|
11772
11786
|
return m.id != v.id;
|
|
11773
11787
|
});
|
|
11774
11788
|
}
|
|
@@ -11779,12 +11793,12 @@ var type = __webpack_require__(41542);
|
|
|
11779
11793
|
},
|
|
11780
11794
|
// 全选
|
|
11781
11795
|
allSelect: function allSelect() {
|
|
11782
|
-
var
|
|
11796
|
+
var _this8 = this;
|
|
11783
11797
|
this.selectedList = [];
|
|
11784
11798
|
this.poperSelectList.forEach(function (v) {
|
|
11785
11799
|
v.selected = true;
|
|
11786
|
-
|
|
11787
|
-
|
|
11800
|
+
_this8.selectedList.push(v);
|
|
11801
|
+
_this8.selectedIds.push(v.id);
|
|
11788
11802
|
});
|
|
11789
11803
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
11790
11804
|
},
|
|
@@ -11805,7 +11819,7 @@ var type = __webpack_require__(41542);
|
|
|
11805
11819
|
},
|
|
11806
11820
|
// 选中
|
|
11807
11821
|
sureSelect: function sureSelect() {
|
|
11808
|
-
var
|
|
11822
|
+
var _this9 = this;
|
|
11809
11823
|
console.time('下拉选中时间');
|
|
11810
11824
|
var text = '';
|
|
11811
11825
|
var keyValue = '';
|
|
@@ -11833,7 +11847,7 @@ var type = __webpack_require__(41542);
|
|
|
11833
11847
|
text += v.text + ',';
|
|
11834
11848
|
textArr.push(v.text);
|
|
11835
11849
|
}
|
|
11836
|
-
if (
|
|
11850
|
+
if (_this9.isAllowMultiSelect && _this9.isMultiLinesDisplay && !_this9.mutexSelect) {
|
|
11837
11851
|
text += '\n';
|
|
11838
11852
|
}
|
|
11839
11853
|
keyValue += v.id + ',';
|
|
@@ -11875,7 +11889,7 @@ var type = __webpack_require__(41542);
|
|
|
11875
11889
|
} else if (currentPoperNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
11876
11890
|
text = text.replace(/,/g, currentPoperNode.downListProperty.splitCharacter);
|
|
11877
11891
|
Object.keys(this.textParam).map(function (v) {
|
|
11878
|
-
|
|
11892
|
+
_this9.textParam[v] = currentPoperNode[v];
|
|
11879
11893
|
});
|
|
11880
11894
|
this.textParam.text = text;
|
|
11881
11895
|
this.textParam.keyValue = keyValue;
|
|
@@ -11897,7 +11911,7 @@ var type = __webpack_require__(41542);
|
|
|
11897
11911
|
// 元素联动内容延时关闭下拉选项,防止双击把光标移动到联动元素外
|
|
11898
11912
|
if (selected.length === 1 && selected[0].text.indexOf('<元素>') !== -1) {
|
|
11899
11913
|
setTimeout(function () {
|
|
11900
|
-
|
|
11914
|
+
_this9.handleClose();
|
|
11901
11915
|
}, 200);
|
|
11902
11916
|
} else {
|
|
11903
11917
|
this.handleClose();
|
|
@@ -11943,10 +11957,10 @@ var type = __webpack_require__(41542);
|
|
|
11943
11957
|
});
|
|
11944
11958
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
11945
11959
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
11946
|
-
;// 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/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
11960
|
+
;// 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/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=6852d403&prod&lang=scss&
|
|
11947
11961
|
// extracted by mini-css-extract-plugin
|
|
11948
11962
|
|
|
11949
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
11963
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=6852d403&prod&lang=scss&
|
|
11950
11964
|
|
|
11951
11965
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
11952
11966
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -44483,10 +44497,10 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
44483
44497
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_widthMm", 210);
|
|
44484
44498
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_heightMm", 297);
|
|
44485
44499
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_source", "");
|
|
44486
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_topMarginMm",
|
|
44487
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_bottomMarginMm",
|
|
44488
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_leftMarginMm",
|
|
44489
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_rightMarginMm",
|
|
44500
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_topMarginMm", 25);
|
|
44501
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_bottomMarginMm", 10);
|
|
44502
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_leftMarginMm", 15);
|
|
44503
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_rightMarginMm", 15);
|
|
44490
44504
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_headerYMm", 3);
|
|
44491
44505
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_footerYMm", 3);
|
|
44492
44506
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_showFirstPageHead", true);
|
|
@@ -58685,6 +58699,10 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58685
58699
|
var imgHeight = isClearSign ? 0 : Number(json.imgHeight);
|
|
58686
58700
|
var isTemplate = json.isTemplate === true || json.isTemplate === "true" ? true : false;
|
|
58687
58701
|
var attribute = json.attribute ? Number(json.attribute) : 0;
|
|
58702
|
+
// 处理otherProperties参数传错导致fingerPrintSrc属性错误问题
|
|
58703
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(json.fingerPrintSrc) == 'object') {
|
|
58704
|
+
json.fingerPrintSrc = '';
|
|
58705
|
+
}
|
|
58688
58706
|
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType.ntSign */ .Jq.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, json.isFront, json.allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute, json.connectChar, json.otherProperties);
|
|
58689
58707
|
signNode.PNGToJPG = json.PNGToJPG == 1 ? 1 : 0;
|
|
58690
58708
|
// if (json.id != "") {
|
|
@@ -68429,6 +68447,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
68429
68447
|
this._endDline = -2;
|
|
68430
68448
|
}
|
|
68431
68449
|
isFull = true;
|
|
68450
|
+
this._docHeight -= aTop;
|
|
68432
68451
|
// this.clearOverDitem(dlines, nextDline);
|
|
68433
68452
|
return [isFull, dTop, restHeight];
|
|
68434
68453
|
} else {
|
|
@@ -70490,10 +70509,11 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
|
|
|
70490
70509
|
var valignTop = 0;
|
|
70491
70510
|
if (startDline === 0) {
|
|
70492
70511
|
var aHeight = this._cell.drawCell.calcCellHeight();
|
|
70512
|
+
var cellMaxHeigth = Math.min(maxHeight, aHeight);
|
|
70493
70513
|
if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_13__/* .VAlign.vatop */ .TR.vatop) {
|
|
70494
70514
|
valignTop = 0;
|
|
70495
|
-
} else if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_13__/* .VAlign.vacenter */ .TR.vacenter &&
|
|
70496
|
-
valignTop = (
|
|
70515
|
+
} else if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_13__/* .VAlign.vacenter */ .TR.vacenter && cellMaxHeigth > this._cell.drawCell.docHeight) {
|
|
70516
|
+
valignTop = (cellMaxHeigth - this._cell.drawCell.docHeight) / 2;
|
|
70497
70517
|
} else if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_13__/* .VAlign.vabottom */ .TR.vabottom && aHeight > this._cell.drawCell.docHeight) {
|
|
70498
70518
|
valignTop = aHeight - this._cell.drawCell.docHeight;
|
|
70499
70519
|
}
|
|
@@ -72291,7 +72311,7 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
|
|
|
72291
72311
|
if (rect) {
|
|
72292
72312
|
var dWidth = rect.width;
|
|
72293
72313
|
var dHeight = rect.height;
|
|
72294
|
-
if (0 < pos.x && pos.x < dWidth && pos.y >= 0 && pos.y
|
|
72314
|
+
if (0 < pos.x && pos.x < dWidth && pos.y >= 0 && Math.abs(pos.y - dHeight) < 3) {
|
|
72295
72315
|
inYrange = true;
|
|
72296
72316
|
// this._dObj.cursor = "s-resize";
|
|
72297
72317
|
// this.setBoundsYMoveable(e.stageY, dWidth);
|
|
@@ -72340,13 +72360,13 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
|
|
|
72340
72360
|
var selectContainer = dPage.selectContainer;
|
|
72341
72361
|
if (selectContainer) {
|
|
72342
72362
|
ResizeDrawTableObj._dashLine.uncache();
|
|
72363
|
+
ResizeDrawTableObj._dashLine.visible = true;
|
|
72343
72364
|
ResizeDrawTableObj._dashLine.graphics.clear().beginFill("#FFFFFF").drawRect(0, 0, hoEditorFactory.pageProperty.widthPixes, 6);
|
|
72344
72365
|
ResizeDrawTableObj._dashLine.graphics.setStrokeDash([2, 1], 0).beginStroke("#000000").drawRect(0, 3, hoEditorFactory.pageProperty.widthPixes, 1);
|
|
72345
72366
|
ResizeDrawTableObj._dashLine.cache(0, 0, hoEditorFactory.pageProperty.widthPixes, 6);
|
|
72346
72367
|
var pos = this._dObj.localToGlobal(0, 0);
|
|
72347
72368
|
ResizeDrawTableObj._dashLine.x = 0;
|
|
72348
72369
|
ResizeDrawTableObj._dashLine.y = pos.y / DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + (this._dObj.getBounds() ? this._dObj.getBounds().height : 0) - 3;
|
|
72349
|
-
ResizeDrawTableObj._dashLine.visible = true;
|
|
72350
72370
|
// const hitArea = new createjs.Shape();
|
|
72351
72371
|
// this._dashLine.hitArea = hitArea;
|
|
72352
72372
|
// hitArea.graphics
|
|
@@ -72504,6 +72524,7 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
|
|
|
72504
72524
|
ResizeDrawTableObj._dashLine.stage.removeChild(ResizeDrawTableObj._dashLine);
|
|
72505
72525
|
}
|
|
72506
72526
|
ResizeDrawTableObj._dashLine.visible = false;
|
|
72527
|
+
this._dObj.cursor = "default";
|
|
72507
72528
|
}
|
|
72508
72529
|
}
|
|
72509
72530
|
}
|
|
@@ -195562,7 +195583,7 @@ var map = {
|
|
|
195562
195583
|
"./pageInfoes/PageInfoes.vue": 17481,
|
|
195563
195584
|
"./paragraph/ParagraphDialog.vue": 54949,
|
|
195564
195585
|
"./poperSelect/PoperMark.vue": 71472,
|
|
195565
|
-
"./poperSelect/PoperSelect.vue":
|
|
195586
|
+
"./poperSelect/PoperSelect.vue": 93648,
|
|
195566
195587
|
"./poperTipText/PoperTipText.vue": 15845,
|
|
195567
195588
|
"./popers/Poper.vue": 57937,
|
|
195568
195589
|
"./popers/Title.vue": 89987,
|
|
@@ -196714,6 +196735,14 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
196714
196735
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(o, minLen);
|
|
196715
196736
|
}
|
|
196716
196737
|
|
|
196738
|
+
/***/ }),
|
|
196739
|
+
|
|
196740
|
+
/***/ 91520:
|
|
196741
|
+
/***/ (function(module) {
|
|
196742
|
+
|
|
196743
|
+
"use strict";
|
|
196744
|
+
module.exports = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun","family":"宋体, SimSun"},{"ch":"arial","en":"arial","family":"arial"},{"ch":"Times New Roman","en":"Times New Roman","family":"Times New Roman"}],"CH":[{"name":"初号","value":42,"px":56},{"name":"小初","value":36,"px":48},{"name":"一号","value":26,"px":35},{"name":"小一","value":24,"px":32},{"name":"二号","value":22,"px":29},{"name":"小二","value":18,"px":24},{"name":"三号","value":16,"px":22},{"name":"小三","value":15,"px":21},{"name":"四号","value":14,"px":19},{"name":"小四","value":12,"px":16},{"name":"五号","value":10.5,"px":14},{"name":"小五","value":9,"px":12},{"name":"六号","value":7.5,"px":10},{"name":"小六","value":6.5,"px":8},{"name":"七号","value":5.5,"px":7},{"name":"八号","value":5,"px":6}]}');
|
|
196745
|
+
|
|
196717
196746
|
/***/ })
|
|
196718
196747
|
|
|
196719
196748
|
/******/ });
|
|
@@ -231689,7 +231718,7 @@ Input.install = function (Vue) {
|
|
|
231689
231718
|
|
|
231690
231719
|
|
|
231691
231720
|
/* harmony default export */ var antd = ([es_button, input, input_number, es_checkbox, date_picker, time_picker, es_radio, es_select, es_tabs, es_dropdown, es_menu, es_upload, tooltip, table, popover, es_icon/* default */.Z, config_provider]);
|
|
231692
|
-
;// 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/HoDocs.vue?vue&type=template&id=
|
|
231721
|
+
;// 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/HoDocs.vue?vue&type=template&id=1ebd4c64&
|
|
231693
231722
|
var render = function render() {
|
|
231694
231723
|
var _vm = this,
|
|
231695
231724
|
_c = _vm._self._c;
|
|
@@ -231807,8 +231836,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
231807
231836
|
var es_number_constructor = __webpack_require__(9653);
|
|
231808
231837
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
231809
231838
|
var es_json_stringify = __webpack_require__(38862);
|
|
231810
|
-
;// 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=
|
|
231811
|
-
var
|
|
231839
|
+
;// 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=c172646e&
|
|
231840
|
+
var HoDocvue_type_template_id_c172646e_render = function render() {
|
|
231812
231841
|
var _vm = this,
|
|
231813
231842
|
_c = _vm._self._c;
|
|
231814
231843
|
return _c('div', {
|
|
@@ -231954,7 +231983,7 @@ var HoDocvue_type_template_id_1e74a76d_render = function render() {
|
|
|
231954
231983
|
}
|
|
231955
231984
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
231956
231985
|
};
|
|
231957
|
-
var
|
|
231986
|
+
var HoDocvue_type_template_id_c172646e_staticRenderFns = [];
|
|
231958
231987
|
|
|
231959
231988
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
231960
231989
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -232487,55 +232516,43 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232487
232516
|
this._oldRange = hoeditorfactory.docTree.curDomRange.clone();
|
|
232488
232517
|
var startPos = hoeditorfactory.drawTree.getStagePosition(dPage, dPage.activeDrawRect, aevent.stageX, aevent.stageY);
|
|
232489
232518
|
if (startPos) {
|
|
232490
|
-
|
|
232491
|
-
|
|
232492
|
-
|
|
232493
|
-
|
|
232494
|
-
|
|
232495
|
-
|
|
232496
|
-
|
|
232497
|
-
|
|
232498
|
-
|
|
232499
|
-
|
|
232500
|
-
// });
|
|
232501
|
-
if (nodePath !== startPos.path) {
|
|
232502
|
-
var drawNode = curOnDragNode.drawNodes[0];
|
|
232503
|
-
for (var d = drawNode.children.length - 1; d >= 0; d--) {
|
|
232504
|
-
if (drawNode.children[d].name !== curOnDragNode.id) {
|
|
232505
|
-
drawNode.children.splice(d, 1);
|
|
232519
|
+
if (aevent.nativeEvent.button === 0) {
|
|
232520
|
+
var curOnDragNode = hoeditorfactory.docTree.curOnDragNode;
|
|
232521
|
+
if (curOnDragNode) {
|
|
232522
|
+
var nodePath = curOnDragNode.getNodePath();
|
|
232523
|
+
if (nodePath !== startPos.path) {
|
|
232524
|
+
var drawNode = curOnDragNode.drawNodes[0];
|
|
232525
|
+
for (var d = drawNode.children.length - 1; d >= 0; d--) {
|
|
232526
|
+
if (drawNode.children[d].name !== curOnDragNode.id) {
|
|
232527
|
+
drawNode.children.splice(d, 1);
|
|
232528
|
+
}
|
|
232506
232529
|
}
|
|
232530
|
+
hoeditorfactory.docTree.curOnDragNode = null;
|
|
232531
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(dPage.pageIndex);
|
|
232507
232532
|
}
|
|
232508
|
-
hoeditorfactory.docTree.curOnDragNode = null;
|
|
232509
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(dPage.pageIndex);
|
|
232510
232533
|
}
|
|
232511
|
-
|
|
232512
|
-
|
|
232513
|
-
|
|
232514
|
-
|
|
232515
|
-
|
|
232516
|
-
|
|
232517
|
-
|
|
232518
|
-
|
|
232519
|
-
|
|
232520
|
-
|
|
232521
|
-
|
|
232522
|
-
|
|
232523
|
-
|
|
232524
|
-
|
|
232525
|
-
|
|
232526
|
-
|
|
232527
|
-
|
|
232528
|
-
value.alpha = 0.5;
|
|
232529
|
-
}
|
|
232530
|
-
});
|
|
232534
|
+
var curComment = hoeditorfactory.drawTree.curOnSelectedComment;
|
|
232535
|
+
if (curComment) {
|
|
232536
|
+
var endDrawNode = curComment.eNode.drawNodes[0];
|
|
232537
|
+
var drawArea = hoeditorfactory.drawPageTree.getMainRootArea(endDrawNode);
|
|
232538
|
+
if (!drawArea) return false;
|
|
232539
|
+
for (var i = 0; i < drawArea.children.length; i++) {
|
|
232540
|
+
var child = drawArea.children[i];
|
|
232541
|
+
if (child instanceof createjs.Shape && curComment.id === child.name) {
|
|
232542
|
+
child.alpha = 0.5;
|
|
232543
|
+
}
|
|
232544
|
+
if (child instanceof createjs.Container && curComment.id === child.name) {
|
|
232545
|
+
child.children.forEach(function (value) {
|
|
232546
|
+
if (value.name === 'back') {
|
|
232547
|
+
value.alpha = 0.5;
|
|
232548
|
+
}
|
|
232549
|
+
});
|
|
232550
|
+
}
|
|
232531
232551
|
}
|
|
232552
|
+
hoeditorfactory.drawTree.curOnSelectedComment = null;
|
|
232553
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(dPage.pageIndex);
|
|
232532
232554
|
}
|
|
232533
|
-
hoeditorfactory.drawTree.curOnSelectedComment = null;
|
|
232534
|
-
//drawArea.stage.update();
|
|
232535
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(dPage.pageIndex);
|
|
232536
|
-
//dline.stage.update();
|
|
232537
232555
|
}
|
|
232538
|
-
|
|
232539
232556
|
hoeditorfactory.drawTree.selectRange.spStart = startPos;
|
|
232540
232557
|
hoeditorfactory.drawTree.selectRange.spEnd = startPos;
|
|
232541
232558
|
hoeditorfactory.docTree.curDomRange.setSamePath(startPos.path);
|
|
@@ -232592,6 +232609,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232592
232609
|
}
|
|
232593
232610
|
} else if (aevent.nativeEvent.button === 2) {
|
|
232594
232611
|
hoeditorfactory.drawTree.selectRange.beginRangeSelect = false;
|
|
232612
|
+
this.mouseDownHandle(aevent);
|
|
232595
232613
|
}
|
|
232596
232614
|
return true;
|
|
232597
232615
|
}
|
|
@@ -233467,7 +233485,7 @@ var DrawPage = __webpack_require__(72722);
|
|
|
233467
233485
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
233468
233486
|
var plugins_util = __webpack_require__(62783);
|
|
233469
233487
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
233470
|
-
var PoperSelect = __webpack_require__(
|
|
233488
|
+
var PoperSelect = __webpack_require__(93648);
|
|
233471
233489
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
233472
233490
|
var PoperMark = __webpack_require__(71472);
|
|
233473
233491
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -235166,7 +235184,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
235166
235184
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
235167
235185
|
var MarkNode = __webpack_require__(57727);
|
|
235168
235186
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
235169
|
-
/* harmony default export */ var version = ('3.0.
|
|
235187
|
+
/* harmony default export */ var version = ('3.0.40');
|
|
235170
235188
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
235171
235189
|
var PoperTipText = __webpack_require__(15845);
|
|
235172
235190
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -235873,10 +235891,10 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
235873
235891
|
});
|
|
235874
235892
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
235875
235893
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
235876
|
-
;// 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=
|
|
235894
|
+
;// 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=c172646e&prod&lang=scss&
|
|
235877
235895
|
// extracted by mini-css-extract-plugin
|
|
235878
235896
|
|
|
235879
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
235897
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=c172646e&prod&lang=scss&
|
|
235880
235898
|
|
|
235881
235899
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
235882
235900
|
|
|
@@ -235889,8 +235907,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
235889
235907
|
|
|
235890
235908
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
235891
235909
|
components_HoDocvue_type_script_lang_js_,
|
|
235892
|
-
|
|
235893
|
-
|
|
235910
|
+
HoDocvue_type_template_id_c172646e_render,
|
|
235911
|
+
HoDocvue_type_template_id_c172646e_staticRenderFns,
|
|
235894
235912
|
false,
|
|
235895
235913
|
null,
|
|
235896
235914
|
null,
|
|
@@ -242439,6 +242457,7 @@ var comment = __webpack_require__(32980);
|
|
|
242439
242457
|
|
|
242440
242458
|
|
|
242441
242459
|
|
|
242460
|
+
|
|
242442
242461
|
|
|
242443
242462
|
|
|
242444
242463
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -244131,6 +244150,66 @@ var VueController = /*#__PURE__*/function () {
|
|
|
244131
244150
|
var defaultProperty = hoEditorFactory.docTree.docProperty;
|
|
244132
244151
|
hoEditorFactory.docTree.docProperty = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, defaultProperty), doc);
|
|
244133
244152
|
}
|
|
244153
|
+
/**
|
|
244154
|
+
* 设置全局参数
|
|
244155
|
+
*/
|
|
244156
|
+
}, {
|
|
244157
|
+
key: "setHoEditorFactoryParams",
|
|
244158
|
+
value: function setHoEditorFactoryParams(params, commonParams) {
|
|
244159
|
+
if (params) {
|
|
244160
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
244161
|
+
Object.keys(params).forEach(function (key) {
|
|
244162
|
+
hoEditorFactory[key] = params[key];
|
|
244163
|
+
});
|
|
244164
|
+
}
|
|
244165
|
+
if (commonParams) {
|
|
244166
|
+
Object.keys(commonParams).forEach(function (key) {
|
|
244167
|
+
commonParamList.set(key, commonParams[key]);
|
|
244168
|
+
});
|
|
244169
|
+
}
|
|
244170
|
+
}
|
|
244171
|
+
/**
|
|
244172
|
+
* 设置页面属性
|
|
244173
|
+
*/
|
|
244174
|
+
}, {
|
|
244175
|
+
key: "setHoEditorFactoryPageProperty",
|
|
244176
|
+
value: function setHoEditorFactoryPageProperty(pageProperty) {
|
|
244177
|
+
if (pageProperty) {
|
|
244178
|
+
var _property$fontFormat;
|
|
244179
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
244180
|
+
var property = (0,objectSpread2/* default */.Z)({}, pageProperty);
|
|
244181
|
+
// 字体
|
|
244182
|
+
property.fontFormat = property.fontFormat ? (_property$fontFormat = property.fontFormat) === null || _property$fontFormat === void 0 ? void 0 : _property$fontFormat.match(/[\u4e00-\u9fa5]/g).join('') : '宋体';
|
|
244183
|
+
// 字号
|
|
244184
|
+
|
|
244185
|
+
if (isNaN(Number(property.fontSize))) {
|
|
244186
|
+
var fontSizes = (__webpack_require__(91520)/* .fontSizes */ .CH);
|
|
244187
|
+
fontSizes.forEach(function (v) {
|
|
244188
|
+
if (v.name === property.fontSize) {
|
|
244189
|
+
property.fontSize = Number(v.value);
|
|
244190
|
+
}
|
|
244191
|
+
});
|
|
244192
|
+
if (isNaN(Number(property.fontSize))) property.fontSize = 14;
|
|
244193
|
+
} else {
|
|
244194
|
+
property.fontSize = Number(property.fontSize);
|
|
244195
|
+
}
|
|
244196
|
+
// 字间距
|
|
244197
|
+
property.charSpace = property.charSpace ? hoEditorFactory === null || hoEditorFactory === void 0 ? void 0 : hoEditorFactory.unitConvert.mmConversionPx(Number(property.charSpace) * 10, true) : 0;
|
|
244198
|
+
// 行高
|
|
244199
|
+
property.lineHeight = Number(property.lineHeight) ? Number(property.lineHeight) : 1.25;
|
|
244200
|
+
// 复制粘贴基准值
|
|
244201
|
+
if (pageProperty.pasteBase === true || pageProperty.pasteBase === false) {
|
|
244202
|
+
hoEditorFactory.pasteBase = pageProperty.pasteBase;
|
|
244203
|
+
} else {
|
|
244204
|
+
hoEditorFactory.pasteBase = false;
|
|
244205
|
+
}
|
|
244206
|
+
// 删除property中多余的 签名高度 | 复制粘贴基准值 | 元素背景颜色
|
|
244207
|
+
delete property.signHeight;
|
|
244208
|
+
delete property.pasteBase;
|
|
244209
|
+
delete property.elementBackColor;
|
|
244210
|
+
hoEditorFactory.pageProperty.setPageProperty(JSON.stringify(property));
|
|
244211
|
+
}
|
|
244212
|
+
}
|
|
244134
244213
|
/**
|
|
244135
244214
|
*
|
|
244136
244215
|
* @param type 测试 另存为
|
|
@@ -244412,6 +244491,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
244412
244491
|
hoEditorFactory.isHideComments = true;
|
|
244413
244492
|
hoEditorFactory.drawTree.paintStatus = status;
|
|
244414
244493
|
hoEditorFactory.printStatus.printRange = 2;
|
|
244494
|
+
//console.log("setEditorStatus ==> ", status, printStatus)
|
|
244415
244495
|
if (status == 2 && printStatus != undefined) {
|
|
244416
244496
|
hoEditorFactory.printStatus.printRange = printStatus;
|
|
244417
244497
|
} else {
|
|
@@ -245102,10 +245182,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
245102
245182
|
strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, '</下标>', '<下标/>');
|
|
245103
245183
|
result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
245104
245184
|
if (!result) {
|
|
245105
|
-
_context.next =
|
|
245185
|
+
_context.next = 36;
|
|
245106
245186
|
break;
|
|
245107
245187
|
}
|
|
245108
245188
|
nodes = hoEditorFactory.htmlConverter.parseHtmlString(strHtml);
|
|
245189
|
+
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
245190
|
+
nodes.splice(0, 1);
|
|
245191
|
+
}
|
|
245109
245192
|
for (i = 0; i < nodes.length; i++) {
|
|
245110
245193
|
//插入检查检验等要求插入的文本样式和插入位置的文本样式保持一致
|
|
245111
245194
|
node = nodes[i];
|
|
@@ -245118,23 +245201,23 @@ var VueController = /*#__PURE__*/function () {
|
|
|
245118
245201
|
}
|
|
245119
245202
|
}
|
|
245120
245203
|
if (!(value && keyValue && listItems)) {
|
|
245121
|
-
_context.next =
|
|
245204
|
+
_context.next = 35;
|
|
245122
245205
|
break;
|
|
245123
245206
|
}
|
|
245124
245207
|
startPath = hoEditorFactory.docTree.curDomRange.normalize().startPath;
|
|
245125
245208
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
245126
245209
|
if (!(parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1 && parentNode.insCheckSyncUpdateList)) {
|
|
245127
|
-
_context.next =
|
|
245210
|
+
_context.next = 35;
|
|
245128
245211
|
break;
|
|
245129
245212
|
}
|
|
245130
245213
|
downListProperty = parentNode.downListProperty;
|
|
245131
245214
|
if (!downListProperty.allowMultiSelected) {
|
|
245132
|
-
_context.next =
|
|
245215
|
+
_context.next = 35;
|
|
245133
245216
|
break;
|
|
245134
245217
|
}
|
|
245135
245218
|
arr = downListProperty.listItems ? JSON.parse(downListProperty.listItems) : [];
|
|
245136
245219
|
if (!clear) {
|
|
245137
|
-
_context.next =
|
|
245220
|
+
_context.next = 29;
|
|
245138
245221
|
break;
|
|
245139
245222
|
}
|
|
245140
245223
|
parentNode.value = '';
|
|
@@ -245148,12 +245231,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
245148
245231
|
if (!canModifyContent) {
|
|
245149
245232
|
parentNode.canModifyContent = true;
|
|
245150
245233
|
}
|
|
245151
|
-
_context.next =
|
|
245234
|
+
_context.next = 27;
|
|
245152
245235
|
return hoEditorFactory.docController.deleteRange(range, true, 'update');
|
|
245153
|
-
case
|
|
245236
|
+
case 27:
|
|
245154
245237
|
parentNode.canModifyContent = canModifyContent;
|
|
245155
245238
|
hoEditorFactory.docTree.curDomRange.setSamePath(spath);
|
|
245156
|
-
case
|
|
245239
|
+
case 29:
|
|
245157
245240
|
parentNode.text = strHtml;
|
|
245158
245241
|
parentNode.value = parentNode.value ? parentNode.value + ',' + value : value;
|
|
245159
245242
|
parentNode.keyValue = parentNode.keyValue ? parentNode.keyValue + ',' + keyValue : keyValue;
|
|
@@ -245162,9 +245245,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
245162
245245
|
if (nodes[nodes.length - 1] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
245163
245246
|
nodes.splice(nodes.length - 1, 1);
|
|
245164
245247
|
}
|
|
245165
|
-
case 34:
|
|
245166
|
-
hoEditorFactory.docController.parseNodeData(nodes);
|
|
245167
245248
|
case 35:
|
|
245249
|
+
hoEditorFactory.docController.parseNodeData(nodes);
|
|
245250
|
+
case 36:
|
|
245168
245251
|
case "end":
|
|
245169
245252
|
return _context.stop();
|
|
245170
245253
|
}
|
|
@@ -248143,21 +248226,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
248143
248226
|
getAllNodes(mainNodes);
|
|
248144
248227
|
return isHasDoctorSign;
|
|
248145
248228
|
}
|
|
248146
|
-
}, {
|
|
248147
|
-
key: "setHoEditorFactoryParams",
|
|
248148
|
-
value: function setHoEditorFactoryParams(params, commonParams) {
|
|
248149
|
-
if (params) {
|
|
248150
|
-
var _hoEditorFactory2 = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
248151
|
-
Object.keys(params).forEach(function (key) {
|
|
248152
|
-
_hoEditorFactory2[key] = params[key];
|
|
248153
|
-
});
|
|
248154
|
-
}
|
|
248155
|
-
if (commonParams) {
|
|
248156
|
-
Object.keys(commonParams).forEach(function (key) {
|
|
248157
|
-
commonParamList.set(key, commonParams[key]);
|
|
248158
|
-
});
|
|
248159
|
-
}
|
|
248160
|
-
}
|
|
248161
248229
|
}, {
|
|
248162
248230
|
key: "getIsSetFont",
|
|
248163
248231
|
value: function getIsSetFont() {
|
|
@@ -248949,7 +249017,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
248949
249017
|
var startNode = hoEditorFactory.docTree.curDomRange.normalize().npStart.node;
|
|
248950
249018
|
for (var i = 0; i < findTextArr.length; i++) {
|
|
248951
249019
|
var findText = findTextArr[i];
|
|
248952
|
-
if (findText ==
|
|
249020
|
+
if (findText == '') continue;
|
|
248953
249021
|
var sNode = startNode;
|
|
248954
249022
|
if (startNode) {
|
|
248955
249023
|
sNode = startNode.rootNodes[0];
|
|
@@ -248974,10 +249042,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
248974
249042
|
apath = hoEditorFactory.docTree.getNodeFirstPath((_np$node = np.node) === null || _np$node === void 0 ? void 0 : _np$node.nextLeaf());
|
|
248975
249043
|
nodeLastPath = hoEditorFactory.docTree.getNodeLastPath((_np$node2 = np.node) === null || _np$node2 === void 0 ? void 0 : _np$node2.nextLeaf());
|
|
248976
249044
|
} else {
|
|
248977
|
-
var arr = apath.split(
|
|
249045
|
+
var arr = apath.split('/');
|
|
248978
249046
|
var value = parseInt(arr[arr.length - 1]);
|
|
248979
249047
|
arr[arr.length - 1] = (value + 1).toString();
|
|
248980
|
-
apath = arr.join(
|
|
249048
|
+
apath = arr.join('/');
|
|
248981
249049
|
}
|
|
248982
249050
|
}
|
|
248983
249051
|
paths.push([pathArr[j], apath]);
|
|
@@ -248988,7 +249056,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
248988
249056
|
var pathArray = paths[k];
|
|
248989
249057
|
var sPath = pathArray[0];
|
|
248990
249058
|
var ePath = pathArray[1];
|
|
248991
|
-
if (sPath ==
|
|
249059
|
+
if (sPath == '' || ePath == '') continue;
|
|
248992
249060
|
var pStartPoint = StagePosition/* StagePosition.getStagePosByPath */.M.getStagePosByPath(this._hoEditorFactoryID, sPath);
|
|
248993
249061
|
var pEndPoint = StagePosition/* StagePosition.getStagePosByPath */.M.getStagePosByPath(this._hoEditorFactoryID, ePath);
|
|
248994
249062
|
var selectRange = new SelectRange/* SelectRange */.E(this.hoEditorFactoryID);
|
|
@@ -249003,14 +249071,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
249003
249071
|
}, {
|
|
249004
249072
|
key: "getAllFindPath",
|
|
249005
249073
|
value: function getAllFindPath(nodesMap, indexsMap) {
|
|
249006
|
-
var returnPath =
|
|
249074
|
+
var returnPath = '';
|
|
249007
249075
|
var pathArr = [];
|
|
249008
249076
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
249009
249077
|
indexsMap.forEach(function (valueStr) {
|
|
249010
249078
|
if (valueStr) {
|
|
249011
|
-
var paraIndex = valueStr.split(
|
|
249012
|
-
var textCount = valueStr.split(
|
|
249013
|
-
var strIndex = parseInt(valueStr.split(
|
|
249079
|
+
var paraIndex = valueStr.split('|')[0];
|
|
249080
|
+
var textCount = valueStr.split('|')[1];
|
|
249081
|
+
var strIndex = parseInt(valueStr.split('|')[2]);
|
|
249014
249082
|
var _iterator2 = (0,createForOfIteratorHelper/* default */.Z)(nodesMap),
|
|
249015
249083
|
_step2;
|
|
249016
249084
|
try {
|
|
@@ -249018,17 +249086,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
249018
249086
|
var _step2$value = (0,esm_slicedToArray/* default */.Z)(_step2.value, 2),
|
|
249019
249087
|
key = _step2$value[0],
|
|
249020
249088
|
value = _step2$value[1];
|
|
249021
|
-
var startIndex = parseInt(key.split(
|
|
249022
|
-
if (key.split(
|
|
249089
|
+
var startIndex = parseInt(key.split('|')[2]);
|
|
249090
|
+
if (key.split('|')[0] === paraIndex && key.split('|')[1] === textCount && strIndex >= startIndex) {
|
|
249023
249091
|
var np = hoEditorFactory.docTree.findNodePositionByPath(value);
|
|
249024
249092
|
if (np && np.node) {
|
|
249025
249093
|
if (np.node instanceof TextNode/* TextNode */.R) {
|
|
249026
249094
|
if (strIndex < startIndex + np.node.text.length) {
|
|
249027
249095
|
var lastPath = strIndex - startIndex - 1;
|
|
249028
249096
|
if (lastPath >= 0) {
|
|
249029
|
-
var _pathArr = value.split(
|
|
249097
|
+
var _pathArr = value.split('/');
|
|
249030
249098
|
_pathArr[_pathArr.length - 1] = lastPath.toString();
|
|
249031
|
-
returnPath = _pathArr.join(
|
|
249099
|
+
returnPath = _pathArr.join('/');
|
|
249032
249100
|
} else {
|
|
249033
249101
|
//搜索文本在节点的开始位置 需要返回上一个节点的结束位置路径
|
|
249034
249102
|
var preNode = np.node.previousLeaf();
|
|
@@ -254026,10 +254094,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
254026
254094
|
this._networkConnectionStatus = navigator.onLine;
|
|
254027
254095
|
navigators.connection.onchange = function () {
|
|
254028
254096
|
_this6._networkConnectionStatus = navigator.onLine;
|
|
254029
|
-
_this6.offLineIntervalCacheXml();
|
|
254030
254097
|
if (navigator.onLine) {
|
|
254031
|
-
console.warn('网络连接状态变化:已连接', navigators.connection.rtt, navigator.onLine);
|
|
254098
|
+
// console.warn('网络连接状态变化:已连接', navigators.connection.rtt, navigator.onLine);
|
|
254032
254099
|
} else {
|
|
254100
|
+
_this6.offLineIntervalCacheXml();
|
|
254033
254101
|
console.warn('网络连接状态变化:已中断', navigators.connection.rtt, navigator.onLine);
|
|
254034
254102
|
}
|
|
254035
254103
|
};
|
|
@@ -255143,8 +255211,8 @@ var DeleteImageNodeList = /*#__PURE__*/function () {
|
|
|
255143
255211
|
return DeleteImageNodeList;
|
|
255144
255212
|
}();
|
|
255145
255213
|
(0,esm_defineProperty/* default */.Z)(DeleteImageNodeList, "_instance", void 0);
|
|
255146
|
-
|
|
255147
|
-
var
|
|
255214
|
+
// EXTERNAL MODULE: ./src/assets/json/font.json
|
|
255215
|
+
var font = __webpack_require__(91520);
|
|
255148
255216
|
;// CONCATENATED MODULE: ./src/components/mixins/tableformula.ts
|
|
255149
255217
|
var formularType = {
|
|
255150
255218
|
0: 'sum',
|
|
@@ -255216,7 +255284,9 @@ var commondata = __webpack_require__(76285);
|
|
|
255216
255284
|
customProperty: {},
|
|
255217
255285
|
paragraphCustomProperty: {},
|
|
255218
255286
|
deleteImageNodeList: {},
|
|
255219
|
-
pageProperty: {
|
|
255287
|
+
pageProperty: {
|
|
255288
|
+
default: function _default() {}
|
|
255289
|
+
},
|
|
255220
255290
|
superiorSigns: {},
|
|
255221
255291
|
// 上级医生签名 bce01 数组
|
|
255222
255292
|
|
|
@@ -255488,7 +255558,7 @@ var commondata = __webpack_require__(76285);
|
|
|
255488
255558
|
pageProperty: {
|
|
255489
255559
|
deep: true,
|
|
255490
255560
|
handler: function handler(pageProperty) {
|
|
255491
|
-
if (pageProperty) this.initPageProperty((0,objectSpread2/* default */.Z)({}, pageProperty));
|
|
255561
|
+
if (pageProperty && Object.keys(pageProperty).length > 0) this.initPageProperty((0,objectSpread2/* default */.Z)({}, pageProperty));
|
|
255492
255562
|
}
|
|
255493
255563
|
},
|
|
255494
255564
|
docProperty: {
|
|
@@ -255662,7 +255732,7 @@ var commondata = __webpack_require__(76285);
|
|
|
255662
255732
|
if (!commondata/* CommonData.instance */.G.instance().modalStatusObject) {
|
|
255663
255733
|
commondata/* CommonData.instance */.G.instance().modalStatusObject = _this3.modalStatusObject;
|
|
255664
255734
|
}
|
|
255665
|
-
if (_this3.pageProperty) _this3.initPageProperty((0,objectSpread2/* default */.Z)({}, _this3.pageProperty));
|
|
255735
|
+
if (_this3.pageProperty && Object.keys(_this3.pageProperty).length > 0) _this3.initPageProperty((0,objectSpread2/* default */.Z)({}, _this3.pageProperty));
|
|
255666
255736
|
});
|
|
255667
255737
|
},
|
|
255668
255738
|
methods: {
|
|
@@ -255833,7 +255903,7 @@ var commondata = __webpack_require__(76285);
|
|
|
255833
255903
|
|
|
255834
255904
|
// 字号
|
|
255835
255905
|
if (isNaN(Number(property.fontSize))) {
|
|
255836
|
-
|
|
255906
|
+
font/* fontSizes.forEach */.CH.forEach(function (v) {
|
|
255837
255907
|
if (v.name === property.fontSize) {
|
|
255838
255908
|
property.fontSize = Number(v.value);
|
|
255839
255909
|
}
|
|
@@ -256052,10 +256122,10 @@ var commondata = __webpack_require__(76285);
|
|
|
256052
256122
|
});
|
|
256053
256123
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
256054
256124
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
256055
|
-
;// 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/HoDocs.vue?vue&type=style&index=0&id=
|
|
256125
|
+
;// 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/HoDocs.vue?vue&type=style&index=0&id=1ebd4c64&prod&lang=scss&media=print&
|
|
256056
256126
|
// extracted by mini-css-extract-plugin
|
|
256057
256127
|
|
|
256058
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
256128
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=1ebd4c64&prod&lang=scss&media=print&
|
|
256059
256129
|
|
|
256060
256130
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
256061
256131
|
|
|
@@ -257022,8 +257092,8 @@ var HoColorPickers = __webpack_require__(84214);
|
|
|
257022
257092
|
},
|
|
257023
257093
|
data: function data() {
|
|
257024
257094
|
return {
|
|
257025
|
-
fontFamily:
|
|
257026
|
-
fontSize:
|
|
257095
|
+
fontFamily: font/* fontFamilys */.TN,
|
|
257096
|
+
fontSize: font/* fontSizes */.CH,
|
|
257027
257097
|
isSuperScript: false,
|
|
257028
257098
|
isSubScript: false,
|
|
257029
257099
|
familySelected: '微软雅黑',
|
|
@@ -257068,7 +257138,7 @@ var HoColorPickers = __webpack_require__(84214);
|
|
|
257068
257138
|
this.color = val.color;
|
|
257069
257139
|
this.isSuperScript = val.script === 2 ? true : false;
|
|
257070
257140
|
this.isSubScript = val.script === 1 ? true : false;
|
|
257071
|
-
var familyArr =
|
|
257141
|
+
var familyArr = font/* fontFamilys.filter */.TN.filter(function (v) {
|
|
257072
257142
|
if (v.ch === val.font) {
|
|
257073
257143
|
return v;
|
|
257074
257144
|
}
|
|
@@ -257081,7 +257151,7 @@ var HoColorPickers = __webpack_require__(84214);
|
|
|
257081
257151
|
en: ''
|
|
257082
257152
|
};
|
|
257083
257153
|
}
|
|
257084
|
-
var fontSizeArr =
|
|
257154
|
+
var fontSizeArr = font/* fontSizes.filter */.CH.filter(function (v) {
|
|
257085
257155
|
if (v.value === val.size) return v;
|
|
257086
257156
|
});
|
|
257087
257157
|
if (Array.isArray(fontSizeArr) && fontSizeArr.length !== 0) {
|
|
@@ -258375,8 +258445,8 @@ var HoColorPicker = __webpack_require__(91351);
|
|
|
258375
258445
|
},
|
|
258376
258446
|
data: function data() {
|
|
258377
258447
|
return {
|
|
258378
|
-
fontFamily:
|
|
258379
|
-
fontSize:
|
|
258448
|
+
fontFamily: font/* fontFamilys */.TN,
|
|
258449
|
+
fontSize: font/* fontSizes */.CH,
|
|
258380
258450
|
alignList: ['left', 'both', 'right', 'both'],
|
|
258381
258451
|
lineHeightList: [1.25, 1.5, 2, 2.5, 3],
|
|
258382
258452
|
fontSpacingList: [0, 1, 2, 3],
|