hoeditor-web 3.0.37 → 3.0.39

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.
@@ -3324,7 +3324,7 @@ function _extends(){return _extends=Object.assign?Object.assign.bind():function(
3324
3324
 
3325
3325
  /***/ }),
3326
3326
 
3327
- /***/ 21184:
3327
+ /***/ 21920:
3328
3328
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3329
3329
 
3330
3330
  "use strict";
@@ -3336,7 +3336,7 @@ __webpack_require__.d(__webpack_exports__, {
3336
3336
  "default": function() { return /* binding */ ControlModal; }
3337
3337
  });
3338
3338
 
3339
- ;// 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/ControlModal.vue?vue&type=template&id=b9b90c34&
3339
+ ;// 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/ControlModal.vue?vue&type=template&id=c3d1bac8&
3340
3340
  var render = function render() {
3341
3341
  var _vm = this,
3342
3342
  _c = _vm._self._c;
@@ -3416,21 +3416,6 @@ var HOEditorFactorys = __webpack_require__(74089);
3416
3416
  }
3417
3417
  },
3418
3418
  props: {
3419
- // controlPropertyd: {
3420
- // required: true,
3421
- // },
3422
- // isDataSource: {
3423
- // required: true,
3424
- // },
3425
- // isCustoms: {
3426
- // required: true,
3427
- // },
3428
- // isTableProperty: {
3429
- // required: true,
3430
- // },
3431
- // isListStyle: {
3432
- // required: true,
3433
- // },
3434
3419
  hoEditorFactoryId: {
3435
3420
  required: true
3436
3421
  },
@@ -8892,7 +8877,7 @@ var component = (0,componentNormalizer/* default */.Z)(
8892
8877
 
8893
8878
  /***/ }),
8894
8879
 
8895
- /***/ 80206:
8880
+ /***/ 93648:
8896
8881
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8897
8882
 
8898
8883
  "use strict";
@@ -8912,7 +8897,7 @@ var es_string_includes = __webpack_require__(32023);
8912
8897
  var es_regexp_exec = __webpack_require__(74916);
8913
8898
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
8914
8899
  var es_string_replace = __webpack_require__(15306);
8915
- ;// 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=7a572170&
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&
8916
8901
 
8917
8902
 
8918
8903
 
@@ -9294,7 +9279,7 @@ var render = function render() {
9294
9279
  };
9295
9280
  var staticRenderFns = [];
9296
9281
 
9297
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=7a572170&
9282
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=6852d403&
9298
9283
 
9299
9284
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
9300
9285
  var toConsumableArray = __webpack_require__(61748);
@@ -11369,7 +11354,8 @@ var type = __webpack_require__(41542);
11369
11354
  dragIndex: 0,
11370
11355
  enterIndex: 0,
11371
11356
  // 保存打开表单时的节点路径
11372
- endPath: ''
11357
+ endPath: '',
11358
+ calendarInstance: null
11373
11359
  };
11374
11360
  },
11375
11361
  computed: {
@@ -11493,8 +11479,9 @@ var type = __webpack_require__(41542);
11493
11479
  if (this.dateTimeStyle.includes('yyyy') || this.dateTimeStyle.includes('MM') || this.dateTimeStyle.includes('dd')) {
11494
11480
  this.$nextTick(function () {
11495
11481
  if (_this2.$refs.datePicker) {
11496
- var calendarInstance = _this2.$refs.datePicker.$refs.picker.$refs.calendarInstance.$el.querySelector('.ant-calendar-input');
11497
- 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);
11498
11485
  }
11499
11486
  });
11500
11487
  }
@@ -11503,6 +11490,18 @@ var type = __webpack_require__(41542);
11503
11490
  // datePickerChange(event) {
11504
11491
  // console.log('datePickerChange ==> ', event.target.value);
11505
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
+ },
11506
11505
  calendarInstanceChange: function calendarInstanceChange(event) {
11507
11506
  var style = this.dateTimeStyle.replace(/dd/g, 'DD').replace(/yyyy/g, 'YYYY');
11508
11507
  var format = this.dateTimeStyle.replace(/[^a-zA-Z]/g, '').replace(/dd/g, 'DD').replace(/yyyy/g, 'YYYY');
@@ -11592,7 +11591,7 @@ var type = __webpack_require__(41542);
11592
11591
  this.sureDate();
11593
11592
  },
11594
11593
  currentDateTime: function currentDateTime() {
11595
- var _this3 = this;
11594
+ var _this4 = this;
11596
11595
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
11597
11596
  var node = this.getCurrentPoperNode();
11598
11597
  var date = this.dateFormat(new Date(), node.controlStyle);
@@ -11614,7 +11613,7 @@ var type = __webpack_require__(41542);
11614
11613
  };
11615
11614
  hoEditorFactory.vueController.updateDateTime(JSON.stringify(params));
11616
11615
  this.$nextTick(function () {
11617
- return _this3.handleClose();
11616
+ return _this4.handleClose();
11618
11617
  });
11619
11618
  },
11620
11619
  sureDate: function sureDate() {
@@ -11694,12 +11693,12 @@ var type = __webpack_require__(41542);
11694
11693
  * 互斥列表选择
11695
11694
  */
11696
11695
  mutexSelectItemsChange: function mutexSelectItemsChange(value) {
11697
- var _this4 = this;
11696
+ var _this5 = this;
11698
11697
  if (value.length > 0) {
11699
11698
  this.poperSelectList.forEach(function (v) {
11700
11699
  if (value.includes(v.id)) {
11701
11700
  v.selected = true;
11702
- _this4.mutexType = String(v.type);
11701
+ _this5.mutexType = String(v.type);
11703
11702
  } else {
11704
11703
  v.selected = false;
11705
11704
  }
@@ -11708,7 +11707,7 @@ var type = __webpack_require__(41542);
11708
11707
  } else if (value.length === 0) {
11709
11708
  this.poperSelectList.forEach(function (v) {
11710
11709
  v.selected = false;
11711
- _this4.mutexType = '';
11710
+ _this5.mutexType = '';
11712
11711
  });
11713
11712
  this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
11714
11713
  }
@@ -11717,7 +11716,7 @@ var type = __webpack_require__(41542);
11717
11716
  * 选择
11718
11717
  */
11719
11718
  selectItemsChange: function selectItemsChange(value) {
11720
- var _this5 = this;
11719
+ var _this6 = this;
11721
11720
  if (!this.isAllowMultiSelect) {
11722
11721
  var item = {};
11723
11722
  var selectItemIndex = 0;
@@ -11739,12 +11738,12 @@ var type = __webpack_require__(41542);
11739
11738
  this.poperSelectList.map(function (v) {
11740
11739
  if (value.target.id == v.id) {
11741
11740
  v.selected = value.target.checked;
11742
- if (v.selected && _this5.selectedList.filter(function (m) {
11741
+ if (v.selected && _this6.selectedList.filter(function (m) {
11743
11742
  return m.id == v.id;
11744
11743
  }).length == 0) {
11745
- _this5.selectedList.push(v);
11744
+ _this6.selectedList.push(v);
11746
11745
  } else {
11747
- _this5.selectedList = _this5.selectedList.filter(function (m) {
11746
+ _this6.selectedList = _this6.selectedList.filter(function (m) {
11748
11747
  return m.id != v.id;
11749
11748
  });
11750
11749
  }
@@ -11762,7 +11761,7 @@ var type = __webpack_require__(41542);
11762
11761
  }
11763
11762
  },
11764
11763
  selectItems: function selectItems(item, index) {
11765
- var _this6 = this;
11764
+ var _this7 = this;
11766
11765
  if (!this.isAllowMultiSelect) {
11767
11766
  this.poperSelectList.forEach(function (v) {
11768
11767
  v.selected = false;
@@ -11777,13 +11776,13 @@ var type = __webpack_require__(41542);
11777
11776
  v.selected = !v.selected;
11778
11777
  }
11779
11778
  if (v.selected) {
11780
- if (_this6.isCanSearch && _this6.selectedList.filter(function (m) {
11779
+ if (_this7.isCanSearch && _this7.selectedList.filter(function (m) {
11781
11780
  return m.id == v.id;
11782
11781
  }).length == 0) {
11783
- _this6.selectedList.push(v);
11782
+ _this7.selectedList.push(v);
11784
11783
  }
11785
11784
  } else {
11786
- if (_this6.isCanSearch) _this6.selectedList = _this6.selectedList.filter(function (m) {
11785
+ if (_this7.isCanSearch) _this7.selectedList = _this7.selectedList.filter(function (m) {
11787
11786
  return m.id != v.id;
11788
11787
  });
11789
11788
  }
@@ -11794,12 +11793,12 @@ var type = __webpack_require__(41542);
11794
11793
  },
11795
11794
  // 全选
11796
11795
  allSelect: function allSelect() {
11797
- var _this7 = this;
11796
+ var _this8 = this;
11798
11797
  this.selectedList = [];
11799
11798
  this.poperSelectList.forEach(function (v) {
11800
11799
  v.selected = true;
11801
- _this7.selectedList.push(v);
11802
- _this7.selectedIds.push(v.id);
11800
+ _this8.selectedList.push(v);
11801
+ _this8.selectedIds.push(v.id);
11803
11802
  });
11804
11803
  this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
11805
11804
  },
@@ -11820,7 +11819,7 @@ var type = __webpack_require__(41542);
11820
11819
  },
11821
11820
  // 选中
11822
11821
  sureSelect: function sureSelect() {
11823
- var _this8 = this;
11822
+ var _this9 = this;
11824
11823
  console.time('下拉选中时间');
11825
11824
  var text = '';
11826
11825
  var keyValue = '';
@@ -11848,7 +11847,7 @@ var type = __webpack_require__(41542);
11848
11847
  text += v.text + ',';
11849
11848
  textArr.push(v.text);
11850
11849
  }
11851
- if (_this8.isAllowMultiSelect && _this8.isMultiLinesDisplay && !_this8.mutexSelect) {
11850
+ if (_this9.isAllowMultiSelect && _this9.isMultiLinesDisplay && !_this9.mutexSelect) {
11852
11851
  text += '\n';
11853
11852
  }
11854
11853
  keyValue += v.id + ',';
@@ -11890,7 +11889,7 @@ var type = __webpack_require__(41542);
11890
11889
  } else if (currentPoperNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
11891
11890
  text = text.replace(/,/g, currentPoperNode.downListProperty.splitCharacter);
11892
11891
  Object.keys(this.textParam).map(function (v) {
11893
- _this8.textParam[v] = currentPoperNode[v];
11892
+ _this9.textParam[v] = currentPoperNode[v];
11894
11893
  });
11895
11894
  this.textParam.text = text;
11896
11895
  this.textParam.keyValue = keyValue;
@@ -11912,7 +11911,7 @@ var type = __webpack_require__(41542);
11912
11911
  // 元素联动内容延时关闭下拉选项,防止双击把光标移动到联动元素外
11913
11912
  if (selected.length === 1 && selected[0].text.indexOf('<元素>') !== -1) {
11914
11913
  setTimeout(function () {
11915
- _this8.handleClose();
11914
+ _this9.handleClose();
11916
11915
  }, 200);
11917
11916
  } else {
11918
11917
  this.handleClose();
@@ -11958,10 +11957,10 @@ var type = __webpack_require__(41542);
11958
11957
  });
11959
11958
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
11960
11959
  /* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
11961
- ;// 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=7a572170&prod&lang=scss&
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&
11962
11961
  // extracted by mini-css-extract-plugin
11963
11962
 
11964
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=7a572170&prod&lang=scss&
11963
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=6852d403&prod&lang=scss&
11965
11964
 
11966
11965
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
11967
11966
  var componentNormalizer = __webpack_require__(70713);
@@ -44498,10 +44497,10 @@ var PageProperty = /*#__PURE__*/function () {
44498
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);
44499
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);
44500
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", "");
44501
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_topMarginMm", 12.7);
44502
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_bottomMarginMm", 12.7);
44503
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_leftMarginMm", 12.7);
44504
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_rightMarginMm", 12.7);
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);
44505
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);
44506
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);
44507
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);
@@ -72306,7 +72305,7 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
72306
72305
  if (rect) {
72307
72306
  var dWidth = rect.width;
72308
72307
  var dHeight = rect.height;
72309
- if (0 < pos.x && pos.x < dWidth && pos.y >= 0 && pos.y <= dHeight) {
72308
+ if (0 < pos.x && pos.x < dWidth && pos.y >= 0 && Math.abs(pos.y - dHeight) < 3) {
72310
72309
  inYrange = true;
72311
72310
  // this._dObj.cursor = "s-resize";
72312
72311
  // this.setBoundsYMoveable(e.stageY, dWidth);
@@ -72355,13 +72354,13 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
72355
72354
  var selectContainer = dPage.selectContainer;
72356
72355
  if (selectContainer) {
72357
72356
  ResizeDrawTableObj._dashLine.uncache();
72357
+ ResizeDrawTableObj._dashLine.visible = true;
72358
72358
  ResizeDrawTableObj._dashLine.graphics.clear().beginFill("#FFFFFF").drawRect(0, 0, hoEditorFactory.pageProperty.widthPixes, 6);
72359
72359
  ResizeDrawTableObj._dashLine.graphics.setStrokeDash([2, 1], 0).beginStroke("#000000").drawRect(0, 3, hoEditorFactory.pageProperty.widthPixes, 1);
72360
72360
  ResizeDrawTableObj._dashLine.cache(0, 0, hoEditorFactory.pageProperty.widthPixes, 6);
72361
72361
  var pos = this._dObj.localToGlobal(0, 0);
72362
72362
  ResizeDrawTableObj._dashLine.x = 0;
72363
72363
  ResizeDrawTableObj._dashLine.y = pos.y / DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + (this._dObj.getBounds() ? this._dObj.getBounds().height : 0) - 3;
72364
- ResizeDrawTableObj._dashLine.visible = true;
72365
72364
  // const hitArea = new createjs.Shape();
72366
72365
  // this._dashLine.hitArea = hitArea;
72367
72366
  // hitArea.graphics
@@ -72519,6 +72518,7 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
72519
72518
  ResizeDrawTableObj._dashLine.stage.removeChild(ResizeDrawTableObj._dashLine);
72520
72519
  }
72521
72520
  ResizeDrawTableObj._dashLine.visible = false;
72521
+ this._dObj.cursor = "default";
72522
72522
  }
72523
72523
  }
72524
72524
  }
@@ -195559,7 +195559,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
195559
195559
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
195560
195560
 
195561
195561
  var map = {
195562
- "./ControlModal.vue": 21184,
195562
+ "./ControlModal.vue": 21920,
195563
195563
  "./barCode/BarCodes.vue": 20329,
195564
195564
  "./colorPicker/HoColorPicker.vue": 91351,
195565
195565
  "./colorPicker/HoColorPickers.vue": 84214,
@@ -195577,7 +195577,7 @@ var map = {
195577
195577
  "./pageInfoes/PageInfoes.vue": 17481,
195578
195578
  "./paragraph/ParagraphDialog.vue": 54949,
195579
195579
  "./poperSelect/PoperMark.vue": 71472,
195580
- "./poperSelect/PoperSelect.vue": 80206,
195580
+ "./poperSelect/PoperSelect.vue": 93648,
195581
195581
  "./poperTipText/PoperTipText.vue": 15845,
195582
195582
  "./popers/Poper.vue": 57937,
195583
195583
  "./popers/Title.vue": 89987,
@@ -196729,6 +196729,14 @@ function _unsupportedIterableToArray(o, minLen) {
196729
196729
  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);
196730
196730
  }
196731
196731
 
196732
+ /***/ }),
196733
+
196734
+ /***/ 91520:
196735
+ /***/ (function(module) {
196736
+
196737
+ "use strict";
196738
+ 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}]}');
196739
+
196732
196740
  /***/ })
196733
196741
 
196734
196742
  /******/ });
@@ -231704,7 +231712,7 @@ Input.install = function (Vue) {
231704
231712
 
231705
231713
 
231706
231714
  /* 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]);
231707
- ;// 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=74fc3d07&
231715
+ ;// 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=7a9c6e06&
231708
231716
  var render = function render() {
231709
231717
  var _vm = this,
231710
231718
  _c = _vm._self._c;
@@ -231822,8 +231830,8 @@ var es_string_match = __webpack_require__(4723);
231822
231830
  var es_number_constructor = __webpack_require__(9653);
231823
231831
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
231824
231832
  var es_json_stringify = __webpack_require__(38862);
231825
- ;// 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=4072b7f7&
231826
- var HoDocvue_type_template_id_4072b7f7_render = function render() {
231833
+ ;// 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=1e74a76d&
231834
+ var HoDocvue_type_template_id_1e74a76d_render = function render() {
231827
231835
  var _vm = this,
231828
231836
  _c = _vm._self._c;
231829
231837
  return _c('div', {
@@ -231969,7 +231977,7 @@ var HoDocvue_type_template_id_4072b7f7_render = function render() {
231969
231977
  }
231970
231978
  }, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
231971
231979
  };
231972
- var HoDocvue_type_template_id_4072b7f7_staticRenderFns = [];
231980
+ var HoDocvue_type_template_id_1e74a76d_staticRenderFns = [];
231973
231981
 
231974
231982
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
231975
231983
  var es_array_filter = __webpack_require__(57327);
@@ -233482,7 +233490,7 @@ var DrawPage = __webpack_require__(72722);
233482
233490
  // EXTERNAL MODULE: ./src/plugins/util.ts
233483
233491
  var plugins_util = __webpack_require__(62783);
233484
233492
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
233485
- var PoperSelect = __webpack_require__(80206);
233493
+ var PoperSelect = __webpack_require__(93648);
233486
233494
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
233487
233495
  var PoperMark = __webpack_require__(71472);
233488
233496
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
@@ -235181,7 +235189,7 @@ var ParagraphNode = __webpack_require__(67945);
235181
235189
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
235182
235190
  var MarkNode = __webpack_require__(57727);
235183
235191
  ;// CONCATENATED MODULE: ./src/components/version.ts
235184
- /* harmony default export */ var version = ('3.0.37');
235192
+ /* harmony default export */ var version = ('3.0.39');
235185
235193
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
235186
235194
  var PoperTipText = __webpack_require__(15845);
235187
235195
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -235538,7 +235546,7 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235538
235546
  if (hoEditorFactory.drawTree.paintStatus == 1) {
235539
235547
  if (node.nodeType == 18) {
235540
235548
  // 跳转元素
235541
- this.$emit("leftclick", {
235549
+ this.$emit('leftclick', {
235542
235550
  name: node.name,
235543
235551
  linkId: node.fileId,
235544
235552
  nodeType: node.nodeType,
@@ -235576,7 +235584,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235576
235584
  if (this.poperType) return false;
235577
235585
  if (type !== 'dblclick') return false;
235578
235586
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
235579
- if (hoEditorFactory.drawTree.paintStatus === 5) {
235587
+ var paintStatus = hoEditorFactory.drawTree.paintStatus;
235588
+ if (paintStatus === 5 || paintStatus == 2) {
235580
235589
  return false;
235581
235590
  }
235582
235591
  this.domRange = {
@@ -235584,7 +235593,7 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235584
235593
  endPath: hoEditorFactory.docTree.curDomRange.normalize().endPath
235585
235594
  };
235586
235595
  if (node instanceof SignNode/* SignNode */.N) {
235587
- if (hoEditorFactory.drawTree.paintStatus === 0 && !node.imgSrc && !node.fingerPrintSrc) {
235596
+ if (paintStatus === 0 && !node.imgSrc && !node.fingerPrintSrc) {
235588
235597
  this.hoEditorProvider.setControlProperty('sign', 'update', '');
235589
235598
  return;
235590
235599
  }
@@ -235593,16 +235602,30 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235593
235602
  if (node.fingerPrintSrc || node.imgSrc && !node.fingerPrintSrc && node.customProperty && !node.customProperty.created_date) return false;
235594
235603
  this.$emit('dblNodeClick', {
235595
235604
  node: this.getCurrentSelectNode,
235596
- type: 'sign'
235605
+ type: 'sign',
235606
+ paintStatus: paintStatus
235597
235607
  });
235598
235608
  this.poperType = '';
235599
235609
  return false;
235600
235610
  }
235601
- if (hoEditorFactory.drawTree.paintStatus === 4) {
235611
+ if (paintStatus === 4) {
235612
+ if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
235613
+ var parentNode = node.parentNode;
235614
+ if (Number(parentNode.inputFieldType) === 0 && !parentNode.canModifyContent) {
235615
+ this.$emit('dblNodeClick', {
235616
+ node: this.getCurrentSelectNode,
235617
+ type: 'modify_node',
235618
+ paintStatus: paintStatus
235619
+ });
235620
+ this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
235621
+ return false;
235622
+ }
235623
+ return false;
235624
+ }
235602
235625
  return false;
235603
235626
  }
235604
235627
  if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
235605
- if (hoEditorFactory.drawTree.paintStatus === 0) {
235628
+ if (paintStatus === 0) {
235606
235629
  this.hoEditorProvider.setControlProperty('date', 'update', '');
235607
235630
  return;
235608
235631
  }
@@ -235612,7 +235635,7 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235612
235635
  this.computedPoperPosition(node, pageIndex);
235613
235636
  this.poperType = 'datePoper';
235614
235637
  } else if (node instanceof DownListNode/* DownListNode */.yF) {
235615
- if (hoEditorFactory.drawTree.paintStatus === 0) {
235638
+ if (paintStatus === 0) {
235616
235639
  this.hoEditorProvider.setControlProperty('select', 'update', '');
235617
235640
  return;
235618
235641
  }
@@ -235632,40 +235655,43 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235632
235655
  this.$emit('dblNodeClick', {
235633
235656
  node: this.getCurrentSelectNode,
235634
235657
  type: 'downlist',
235635
- callback: callback
235658
+ callback: callback,
235659
+ paintStatus: paintStatus
235636
235660
  });
235637
235661
  } else {
235638
235662
  callback(undefined);
235639
235663
  }
235640
235664
  } else if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
235641
235665
  // 文本域
235642
- var parentNode = node.parentNode;
235643
- if (Number(parentNode.inputFieldType) === 0) {
235644
- if (parentNode.canModifyContent) {
235666
+ var _parentNode = node.parentNode;
235667
+ if (Number(_parentNode.inputFieldType) === 0) {
235668
+ if (_parentNode.canModifyContent) {
235645
235669
  this.$emit('dblNodeClick', {
235646
235670
  node: this.getCurrentSelectNode,
235647
- type: 'text'
235671
+ type: 'text',
235672
+ paintStatus: paintStatus
235648
235673
  });
235649
235674
  } else {
235650
235675
  this.$emit('dblNodeClick', {
235651
235676
  node: this.getCurrentSelectNode,
235652
- type: 'modify_node'
235677
+ type: 'modify_node',
235678
+ paintStatus: paintStatus
235653
235679
  });
235654
235680
  }
235655
235681
  this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
235656
235682
  return false;
235657
235683
  }
235658
- if (parentNode.readOnlyStatus === 0 && parentNode.text.replace(/\s*/g, '') !== '') {
235684
+ if (_parentNode.readOnlyStatus === 0 && _parentNode.text.replace(/\s*/g, '') !== '') {
235659
235685
  return false;
235660
235686
  }
235661
- if (Number(parentNode.inputFieldType) === 2) {
235662
- if (hoEditorFactory.drawTree.paintStatus === 0) {
235687
+ if (Number(_parentNode.inputFieldType) === 2) {
235688
+ if (paintStatus === 0) {
235663
235689
  this.hoEditorProvider.setControlProperty('date', 'update', '');
235664
235690
  return;
235665
235691
  }
235666
235692
  this.poperType = 'datePoper';
235667
- } else if (Number(parentNode.inputFieldType) === 1) {
235668
- if (hoEditorFactory.drawTree.paintStatus === 0) {
235693
+ } else if (Number(_parentNode.inputFieldType) === 1) {
235694
+ if (paintStatus === 0) {
235669
235695
  this.hoEditorProvider.setControlProperty('text', 'update', '');
235670
235696
  return;
235671
235697
  }
@@ -235674,29 +235700,31 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235674
235700
  if (Array.isArray(list) && list.length > 0) {
235675
235701
  _this5.poperSelectList = list;
235676
235702
  } else {
235677
- _this5.poperSelectList = JSON.parse(parentNode.downListProperty.listItems);
235703
+ _this5.poperSelectList = JSON.parse(_parentNode.downListProperty.listItems);
235678
235704
  }
235679
235705
  _this5.poperType = 'selectPoper';
235680
235706
  };
235681
- if (parentNode.customProperty && parentNode.customProperty.hasThirdData == true) {
235707
+ if (_parentNode.customProperty && _parentNode.customProperty.hasThirdData == true) {
235682
235708
  this.$emit('dblNodeClick', {
235683
235709
  node: this.getCurrentSelectNode,
235684
235710
  type: 'textlist',
235685
- callback: _callback
235711
+ callback: _callback,
235712
+ paintStatus: paintStatus
235686
235713
  });
235687
235714
  } else {
235688
235715
  _callback(undefined);
235689
235716
  }
235690
235717
  }
235691
235718
  } else if (node.parentNode instanceof CellNode/* CellNode */.D && node.nodeType !== BaseNode/* NodeType.ntMedicalExpression */.Jq.ntMedicalExpression && node.nodeType !== BaseNode/* NodeType.ntImage */.Jq.ntImage) {
235692
- this.handleCellNode(node, node.parentNode, pageIndex);
235719
+ this.handleCellNode(node, node.parentNode, pageIndex, paintStatus);
235693
235720
  } else if (node instanceof CellNode/* CellNode */.D) {
235694
235721
  this.handleForm('update');
235695
235722
  } else if (node instanceof ImageNode/* ImageNode */.H) {
235696
235723
  this.poperType = '';
235697
235724
  this.$emit('dblNodeClick', {
235698
235725
  node: this.getCurrentSelectNode,
235699
- type: 'edit-image'
235726
+ type: 'edit-image',
235727
+ paintStatus: paintStatus
235700
235728
  });
235701
235729
  } else {
235702
235730
  this.hoEditorProvider.setDblclickNodeValue(node, 'dblclick');
@@ -235724,7 +235752,7 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235724
235752
  * 2. 单元格日期设置显示当前日期时间时
235725
235753
  * 3. 单元格下拉列表项只有一项时
235726
235754
  */
235727
- handleCellNode: function handleCellNode(node, cellNode, pageIndex) {
235755
+ handleCellNode: function handleCellNode(node, cellNode, pageIndex, paintStatus) {
235728
235756
  var colProperty = cellNode.table.colInfos[cellNode.row.indexOf(cellNode)].colProperty;
235729
235757
  var cellProperty = cellNode.cellProperty;
235730
235758
  var isCreatePoper = true;
@@ -235749,7 +235777,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235749
235777
  type: 'table-sign'
235750
235778
  };
235751
235779
  },
235752
- type: 'table-sign'
235780
+ type: 'table-sign',
235781
+ paintStatus: paintStatus
235753
235782
  });
235754
235783
  isCreatePoper = false;
235755
235784
  this.poperType = '';
@@ -235867,10 +235896,10 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235867
235896
  });
235868
235897
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
235869
235898
  /* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
235870
- ;// 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=4072b7f7&prod&lang=scss&
235899
+ ;// 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=1e74a76d&prod&lang=scss&
235871
235900
  // extracted by mini-css-extract-plugin
235872
235901
 
235873
- ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=4072b7f7&prod&lang=scss&
235902
+ ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=1e74a76d&prod&lang=scss&
235874
235903
 
235875
235904
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue
235876
235905
 
@@ -235883,8 +235912,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
235883
235912
 
235884
235913
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
235885
235914
  components_HoDocvue_type_script_lang_js_,
235886
- HoDocvue_type_template_id_4072b7f7_render,
235887
- HoDocvue_type_template_id_4072b7f7_staticRenderFns,
235915
+ HoDocvue_type_template_id_1e74a76d_render,
235916
+ HoDocvue_type_template_id_1e74a76d_staticRenderFns,
235888
235917
  false,
235889
235918
  null,
235890
235919
  null,
@@ -242433,6 +242462,7 @@ var comment = __webpack_require__(32980);
242433
242462
 
242434
242463
 
242435
242464
 
242465
+
242436
242466
 
242437
242467
 
242438
242468
  var VueController = /*#__PURE__*/function () {
@@ -244125,6 +244155,66 @@ var VueController = /*#__PURE__*/function () {
244125
244155
  var defaultProperty = hoEditorFactory.docTree.docProperty;
244126
244156
  hoEditorFactory.docTree.docProperty = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, defaultProperty), doc);
244127
244157
  }
244158
+ /**
244159
+ * 设置全局参数
244160
+ */
244161
+ }, {
244162
+ key: "setHoEditorFactoryParams",
244163
+ value: function setHoEditorFactoryParams(params, commonParams) {
244164
+ if (params) {
244165
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
244166
+ Object.keys(params).forEach(function (key) {
244167
+ hoEditorFactory[key] = params[key];
244168
+ });
244169
+ }
244170
+ if (commonParams) {
244171
+ Object.keys(commonParams).forEach(function (key) {
244172
+ commonParamList.set(key, commonParams[key]);
244173
+ });
244174
+ }
244175
+ }
244176
+ /**
244177
+ * 设置页面属性
244178
+ */
244179
+ }, {
244180
+ key: "setHoEditorFactoryPageProperty",
244181
+ value: function setHoEditorFactoryPageProperty(pageProperty) {
244182
+ if (pageProperty) {
244183
+ var _property$fontFormat;
244184
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
244185
+ var property = (0,objectSpread2/* default */.Z)({}, pageProperty);
244186
+ // 字体
244187
+ property.fontFormat = property.fontFormat ? (_property$fontFormat = property.fontFormat) === null || _property$fontFormat === void 0 ? void 0 : _property$fontFormat.match(/[\u4e00-\u9fa5]/g).join('') : '宋体';
244188
+ // 字号
244189
+
244190
+ if (isNaN(Number(property.fontSize))) {
244191
+ var fontSizes = (__webpack_require__(91520)/* .fontSizes */ .CH);
244192
+ fontSizes.forEach(function (v) {
244193
+ if (v.name === property.fontSize) {
244194
+ property.fontSize = Number(v.value);
244195
+ }
244196
+ });
244197
+ if (isNaN(Number(property.fontSize))) property.fontSize = 14;
244198
+ } else {
244199
+ property.fontSize = Number(property.fontSize);
244200
+ }
244201
+ // 字间距
244202
+ property.charSpace = property.charSpace ? hoEditorFactory === null || hoEditorFactory === void 0 ? void 0 : hoEditorFactory.unitConvert.mmConversionPx(Number(property.charSpace) * 10, true) : 0;
244203
+ // 行高
244204
+ property.lineHeight = Number(property.lineHeight) ? Number(property.lineHeight) : 1.25;
244205
+ // 复制粘贴基准值
244206
+ if (pageProperty.pasteBase === true || pageProperty.pasteBase === false) {
244207
+ hoEditorFactory.pasteBase = pageProperty.pasteBase;
244208
+ } else {
244209
+ hoEditorFactory.pasteBase = false;
244210
+ }
244211
+ // 删除property中多余的 签名高度 | 复制粘贴基准值 | 元素背景颜色
244212
+ delete property.signHeight;
244213
+ delete property.pasteBase;
244214
+ delete property.elementBackColor;
244215
+ hoEditorFactory.pageProperty.setPageProperty(JSON.stringify(property));
244216
+ }
244217
+ }
244128
244218
  /**
244129
244219
  *
244130
244220
  * @param type 测试 另存为
@@ -244406,6 +244496,7 @@ var VueController = /*#__PURE__*/function () {
244406
244496
  hoEditorFactory.isHideComments = true;
244407
244497
  hoEditorFactory.drawTree.paintStatus = status;
244408
244498
  hoEditorFactory.printStatus.printRange = 2;
244499
+ //console.log("setEditorStatus ==> ", status, printStatus)
244409
244500
  if (status == 2 && printStatus != undefined) {
244410
244501
  hoEditorFactory.printStatus.printRange = printStatus;
244411
244502
  } else {
@@ -245096,10 +245187,13 @@ var VueController = /*#__PURE__*/function () {
245096
245187
  strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, '</下标>', '<下标/>');
245097
245188
  result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
245098
245189
  if (!result) {
245099
- _context.next = 35;
245190
+ _context.next = 36;
245100
245191
  break;
245101
245192
  }
245102
245193
  nodes = hoEditorFactory.htmlConverter.parseHtmlString(strHtml);
245194
+ if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
245195
+ nodes.splice(0, 1);
245196
+ }
245103
245197
  for (i = 0; i < nodes.length; i++) {
245104
245198
  //插入检查检验等要求插入的文本样式和插入位置的文本样式保持一致
245105
245199
  node = nodes[i];
@@ -245112,23 +245206,23 @@ var VueController = /*#__PURE__*/function () {
245112
245206
  }
245113
245207
  }
245114
245208
  if (!(value && keyValue && listItems)) {
245115
- _context.next = 34;
245209
+ _context.next = 35;
245116
245210
  break;
245117
245211
  }
245118
245212
  startPath = hoEditorFactory.docTree.curDomRange.normalize().startPath;
245119
245213
  parentNode = hoEditorFactory.docTree.getParentNode(startPath);
245120
245214
  if (!(parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1 && parentNode.insCheckSyncUpdateList)) {
245121
- _context.next = 34;
245215
+ _context.next = 35;
245122
245216
  break;
245123
245217
  }
245124
245218
  downListProperty = parentNode.downListProperty;
245125
245219
  if (!downListProperty.allowMultiSelected) {
245126
- _context.next = 34;
245220
+ _context.next = 35;
245127
245221
  break;
245128
245222
  }
245129
245223
  arr = downListProperty.listItems ? JSON.parse(downListProperty.listItems) : [];
245130
245224
  if (!clear) {
245131
- _context.next = 28;
245225
+ _context.next = 29;
245132
245226
  break;
245133
245227
  }
245134
245228
  parentNode.value = '';
@@ -245142,12 +245236,12 @@ var VueController = /*#__PURE__*/function () {
245142
245236
  if (!canModifyContent) {
245143
245237
  parentNode.canModifyContent = true;
245144
245238
  }
245145
- _context.next = 26;
245239
+ _context.next = 27;
245146
245240
  return hoEditorFactory.docController.deleteRange(range, true, 'update');
245147
- case 26:
245241
+ case 27:
245148
245242
  parentNode.canModifyContent = canModifyContent;
245149
245243
  hoEditorFactory.docTree.curDomRange.setSamePath(spath);
245150
- case 28:
245244
+ case 29:
245151
245245
  parentNode.text = strHtml;
245152
245246
  parentNode.value = parentNode.value ? parentNode.value + ',' + value : value;
245153
245247
  parentNode.keyValue = parentNode.keyValue ? parentNode.keyValue + ',' + keyValue : keyValue;
@@ -245156,9 +245250,9 @@ var VueController = /*#__PURE__*/function () {
245156
245250
  if (nodes[nodes.length - 1] instanceof ParagraphNode/* ParagraphNode */.C) {
245157
245251
  nodes.splice(nodes.length - 1, 1);
245158
245252
  }
245159
- case 34:
245160
- hoEditorFactory.docController.parseNodeData(nodes);
245161
245253
  case 35:
245254
+ hoEditorFactory.docController.parseNodeData(nodes);
245255
+ case 36:
245162
245256
  case "end":
245163
245257
  return _context.stop();
245164
245258
  }
@@ -248137,21 +248231,6 @@ var VueController = /*#__PURE__*/function () {
248137
248231
  getAllNodes(mainNodes);
248138
248232
  return isHasDoctorSign;
248139
248233
  }
248140
- }, {
248141
- key: "setHoEditorFactoryParams",
248142
- value: function setHoEditorFactoryParams(params, commonParams) {
248143
- if (params) {
248144
- var _hoEditorFactory2 = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
248145
- Object.keys(params).forEach(function (key) {
248146
- _hoEditorFactory2[key] = params[key];
248147
- });
248148
- }
248149
- if (commonParams) {
248150
- Object.keys(commonParams).forEach(function (key) {
248151
- commonParamList.set(key, commonParams[key]);
248152
- });
248153
- }
248154
- }
248155
248234
  }, {
248156
248235
  key: "getIsSetFont",
248157
248236
  value: function getIsSetFont() {
@@ -248943,7 +249022,7 @@ var VueController = /*#__PURE__*/function () {
248943
249022
  var startNode = hoEditorFactory.docTree.curDomRange.normalize().npStart.node;
248944
249023
  for (var i = 0; i < findTextArr.length; i++) {
248945
249024
  var findText = findTextArr[i];
248946
- if (findText == "") continue;
249025
+ if (findText == '') continue;
248947
249026
  var sNode = startNode;
248948
249027
  if (startNode) {
248949
249028
  sNode = startNode.rootNodes[0];
@@ -248968,10 +249047,10 @@ var VueController = /*#__PURE__*/function () {
248968
249047
  apath = hoEditorFactory.docTree.getNodeFirstPath((_np$node = np.node) === null || _np$node === void 0 ? void 0 : _np$node.nextLeaf());
248969
249048
  nodeLastPath = hoEditorFactory.docTree.getNodeLastPath((_np$node2 = np.node) === null || _np$node2 === void 0 ? void 0 : _np$node2.nextLeaf());
248970
249049
  } else {
248971
- var arr = apath.split("/");
249050
+ var arr = apath.split('/');
248972
249051
  var value = parseInt(arr[arr.length - 1]);
248973
249052
  arr[arr.length - 1] = (value + 1).toString();
248974
- apath = arr.join("/");
249053
+ apath = arr.join('/');
248975
249054
  }
248976
249055
  }
248977
249056
  paths.push([pathArr[j], apath]);
@@ -248982,7 +249061,7 @@ var VueController = /*#__PURE__*/function () {
248982
249061
  var pathArray = paths[k];
248983
249062
  var sPath = pathArray[0];
248984
249063
  var ePath = pathArray[1];
248985
- if (sPath == "" || ePath == "") continue;
249064
+ if (sPath == '' || ePath == '') continue;
248986
249065
  var pStartPoint = StagePosition/* StagePosition.getStagePosByPath */.M.getStagePosByPath(this._hoEditorFactoryID, sPath);
248987
249066
  var pEndPoint = StagePosition/* StagePosition.getStagePosByPath */.M.getStagePosByPath(this._hoEditorFactoryID, ePath);
248988
249067
  var selectRange = new SelectRange/* SelectRange */.E(this.hoEditorFactoryID);
@@ -248997,14 +249076,14 @@ var VueController = /*#__PURE__*/function () {
248997
249076
  }, {
248998
249077
  key: "getAllFindPath",
248999
249078
  value: function getAllFindPath(nodesMap, indexsMap) {
249000
- var returnPath = "";
249079
+ var returnPath = '';
249001
249080
  var pathArr = [];
249002
249081
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
249003
249082
  indexsMap.forEach(function (valueStr) {
249004
249083
  if (valueStr) {
249005
- var paraIndex = valueStr.split("|")[0];
249006
- var textCount = valueStr.split("|")[1];
249007
- var strIndex = parseInt(valueStr.split("|")[2]);
249084
+ var paraIndex = valueStr.split('|')[0];
249085
+ var textCount = valueStr.split('|')[1];
249086
+ var strIndex = parseInt(valueStr.split('|')[2]);
249008
249087
  var _iterator2 = (0,createForOfIteratorHelper/* default */.Z)(nodesMap),
249009
249088
  _step2;
249010
249089
  try {
@@ -249012,17 +249091,17 @@ var VueController = /*#__PURE__*/function () {
249012
249091
  var _step2$value = (0,esm_slicedToArray/* default */.Z)(_step2.value, 2),
249013
249092
  key = _step2$value[0],
249014
249093
  value = _step2$value[1];
249015
- var startIndex = parseInt(key.split("|")[2]);
249016
- if (key.split("|")[0] === paraIndex && key.split("|")[1] === textCount && strIndex >= startIndex) {
249094
+ var startIndex = parseInt(key.split('|')[2]);
249095
+ if (key.split('|')[0] === paraIndex && key.split('|')[1] === textCount && strIndex >= startIndex) {
249017
249096
  var np = hoEditorFactory.docTree.findNodePositionByPath(value);
249018
249097
  if (np && np.node) {
249019
249098
  if (np.node instanceof TextNode/* TextNode */.R) {
249020
249099
  if (strIndex < startIndex + np.node.text.length) {
249021
249100
  var lastPath = strIndex - startIndex - 1;
249022
249101
  if (lastPath >= 0) {
249023
- var _pathArr = value.split("/");
249102
+ var _pathArr = value.split('/');
249024
249103
  _pathArr[_pathArr.length - 1] = lastPath.toString();
249025
- returnPath = _pathArr.join("/");
249104
+ returnPath = _pathArr.join('/');
249026
249105
  } else {
249027
249106
  //搜索文本在节点的开始位置 需要返回上一个节点的结束位置路径
249028
249107
  var preNode = np.node.previousLeaf();
@@ -254020,10 +254099,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
254020
254099
  this._networkConnectionStatus = navigator.onLine;
254021
254100
  navigators.connection.onchange = function () {
254022
254101
  _this6._networkConnectionStatus = navigator.onLine;
254023
- _this6.offLineIntervalCacheXml();
254024
254102
  if (navigator.onLine) {
254025
- console.warn('网络连接状态变化:已连接', navigators.connection.rtt, navigator.onLine);
254103
+ // console.warn('网络连接状态变化:已连接', navigators.connection.rtt, navigator.onLine);
254026
254104
  } else {
254105
+ _this6.offLineIntervalCacheXml();
254027
254106
  console.warn('网络连接状态变化:已中断', navigators.connection.rtt, navigator.onLine);
254028
254107
  }
254029
254108
  };
@@ -255110,7 +255189,7 @@ var HoFooter_component = (0,componentNormalizer/* default */.Z)(
255110
255189
 
255111
255190
  /* harmony default export */ var HoFooter = (HoFooter_component.exports);
255112
255191
  // EXTERNAL MODULE: ./src/components/controls/ControlModal.vue + 3 modules
255113
- var ControlModal = __webpack_require__(21184);
255192
+ var ControlModal = __webpack_require__(21920);
255114
255193
  // EXTERNAL MODULE: ./src/components/controls/findReplace/FindReplace.vue + 5 modules
255115
255194
  var FindReplace = __webpack_require__(25918);
255116
255195
  ;// CONCATENATED MODULE: ./src/components/controls/findReplace/index.ts
@@ -255137,8 +255216,8 @@ var DeleteImageNodeList = /*#__PURE__*/function () {
255137
255216
  return DeleteImageNodeList;
255138
255217
  }();
255139
255218
  (0,esm_defineProperty/* default */.Z)(DeleteImageNodeList, "_instance", void 0);
255140
- ;// CONCATENATED MODULE: ./src/assets/json/font.json
255141
- var font_namespaceObject = 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}]}');
255219
+ // EXTERNAL MODULE: ./src/assets/json/font.json
255220
+ var font = __webpack_require__(91520);
255142
255221
  ;// CONCATENATED MODULE: ./src/components/mixins/tableformula.ts
255143
255222
  var formularType = {
255144
255223
  0: 'sum',
@@ -255210,7 +255289,9 @@ var commondata = __webpack_require__(76285);
255210
255289
  customProperty: {},
255211
255290
  paragraphCustomProperty: {},
255212
255291
  deleteImageNodeList: {},
255213
- pageProperty: {},
255292
+ pageProperty: {
255293
+ default: function _default() {}
255294
+ },
255214
255295
  superiorSigns: {},
255215
255296
  // 上级医生签名 bce01 数组
255216
255297
 
@@ -255482,7 +255563,7 @@ var commondata = __webpack_require__(76285);
255482
255563
  pageProperty: {
255483
255564
  deep: true,
255484
255565
  handler: function handler(pageProperty) {
255485
- if (pageProperty) this.initPageProperty((0,objectSpread2/* default */.Z)({}, pageProperty));
255566
+ if (pageProperty && Object.keys(pageProperty).length > 0) this.initPageProperty((0,objectSpread2/* default */.Z)({}, pageProperty));
255486
255567
  }
255487
255568
  },
255488
255569
  docProperty: {
@@ -255656,7 +255737,7 @@ var commondata = __webpack_require__(76285);
255656
255737
  if (!commondata/* CommonData.instance */.G.instance().modalStatusObject) {
255657
255738
  commondata/* CommonData.instance */.G.instance().modalStatusObject = _this3.modalStatusObject;
255658
255739
  }
255659
- if (_this3.pageProperty) _this3.initPageProperty((0,objectSpread2/* default */.Z)({}, _this3.pageProperty));
255740
+ if (_this3.pageProperty && Object.keys(_this3.pageProperty).length > 0) _this3.initPageProperty((0,objectSpread2/* default */.Z)({}, _this3.pageProperty));
255660
255741
  });
255661
255742
  },
255662
255743
  methods: {
@@ -255827,7 +255908,7 @@ var commondata = __webpack_require__(76285);
255827
255908
 
255828
255909
  // 字号
255829
255910
  if (isNaN(Number(property.fontSize))) {
255830
- font_namespaceObject.CH.forEach(function (v) {
255911
+ font/* fontSizes.forEach */.CH.forEach(function (v) {
255831
255912
  if (v.name === property.fontSize) {
255832
255913
  property.fontSize = Number(v.value);
255833
255914
  }
@@ -256046,10 +256127,10 @@ var commondata = __webpack_require__(76285);
256046
256127
  });
256047
256128
  ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
256048
256129
  /* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
256049
- ;// 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=74fc3d07&prod&lang=scss&media=print&
256130
+ ;// 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=7a9c6e06&prod&lang=scss&media=print&
256050
256131
  // extracted by mini-css-extract-plugin
256051
256132
 
256052
- ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=74fc3d07&prod&lang=scss&media=print&
256133
+ ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=7a9c6e06&prod&lang=scss&media=print&
256053
256134
 
256054
256135
  ;// CONCATENATED MODULE: ./src/components/HoDocs.vue
256055
256136
 
@@ -257016,8 +257097,8 @@ var HoColorPickers = __webpack_require__(84214);
257016
257097
  },
257017
257098
  data: function data() {
257018
257099
  return {
257019
- fontFamily: font_namespaceObject.TN,
257020
- fontSize: font_namespaceObject.CH,
257100
+ fontFamily: font/* fontFamilys */.TN,
257101
+ fontSize: font/* fontSizes */.CH,
257021
257102
  isSuperScript: false,
257022
257103
  isSubScript: false,
257023
257104
  familySelected: '微软雅黑',
@@ -257062,7 +257143,7 @@ var HoColorPickers = __webpack_require__(84214);
257062
257143
  this.color = val.color;
257063
257144
  this.isSuperScript = val.script === 2 ? true : false;
257064
257145
  this.isSubScript = val.script === 1 ? true : false;
257065
- var familyArr = font_namespaceObject.TN.filter(function (v) {
257146
+ var familyArr = font/* fontFamilys.filter */.TN.filter(function (v) {
257066
257147
  if (v.ch === val.font) {
257067
257148
  return v;
257068
257149
  }
@@ -257075,7 +257156,7 @@ var HoColorPickers = __webpack_require__(84214);
257075
257156
  en: ''
257076
257157
  };
257077
257158
  }
257078
- var fontSizeArr = font_namespaceObject.CH.filter(function (v) {
257159
+ var fontSizeArr = font/* fontSizes.filter */.CH.filter(function (v) {
257079
257160
  if (v.value === val.size) return v;
257080
257161
  });
257081
257162
  if (Array.isArray(fontSizeArr) && fontSizeArr.length !== 0) {
@@ -258369,8 +258450,8 @@ var HoColorPicker = __webpack_require__(91351);
258369
258450
  },
258370
258451
  data: function data() {
258371
258452
  return {
258372
- fontFamily: font_namespaceObject.TN,
258373
- fontSize: font_namespaceObject.CH,
258453
+ fontFamily: font/* fontFamilys */.TN,
258454
+ fontSize: font/* fontSizes */.CH,
258374
258455
  alignList: ['left', 'both', 'right', 'both'],
258375
258456
  lineHeightList: [1.25, 1.5, 2, 2.5, 3],
258376
258457
  fontSpacingList: [0, 1, 2, 3],