hoeditor-web 3.1.9 → 3.1.11

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.
@@ -3596,7 +3596,7 @@ var component = (0,componentNormalizer/* default */.Z)(
3596
3596
 
3597
3597
  /***/ }),
3598
3598
 
3599
- /***/ 62814:
3599
+ /***/ 72727:
3600
3600
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3601
3601
 
3602
3602
  "use strict";
@@ -3608,7 +3608,7 @@ __webpack_require__.d(__webpack_exports__, {
3608
3608
  "default": function() { return /* binding */ BarCodes; }
3609
3609
  });
3610
3610
 
3611
- ;// 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/barCode/BarCodes.vue?vue&type=template&id=15bd5089&
3611
+ ;// 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/barCode/BarCodes.vue?vue&type=template&id=15c46fec&
3612
3612
  var render = function render() {
3613
3613
  var _vm = this,
3614
3614
  _c = _vm._self._c;
@@ -3842,9 +3842,9 @@ var HOEditorFactorys = __webpack_require__(74089);
3842
3842
  // this.dataSource = this.hoEditorProvider.getDataSource();
3843
3843
 
3844
3844
  if (this.controlStatus === 'add') {
3845
- vueController.insertBarcode(this.controlStatus, this.id, this.textContent, this.isDisplayText, this.barcode.src, width, height, '', this.innerIdentifier);
3845
+ vueController.insertBarcode(this.controlStatus, this.id, this.textContent, this.isDisplayText, this.barcode.src, width, height, this.innerIdentifier);
3846
3846
  } else if (this.controlStatus === 'update') {
3847
- vueController.updateBarcode(this.id, this.textContent, this.isDisplayText, this.barcode.src, width, height, this.name, this.innerIdentifier);
3847
+ vueController.updateBarcode(this.id, this.textContent, this.isDisplayText, this.barcode.src, width, height, this.innerIdentifier);
3848
3848
  }
3849
3849
  this.handleClose();
3850
3850
  },
@@ -3859,10 +3859,10 @@ var HOEditorFactorys = __webpack_require__(74089);
3859
3859
  });
3860
3860
  ;// CONCATENATED MODULE: ./src/components/controls/barCode/BarCodes.vue?vue&type=script&lang=js&
3861
3861
  /* harmony default export */ var barCode_BarCodesvue_type_script_lang_js_ = (BarCodesvue_type_script_lang_js_);
3862
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/barCode/BarCodes.vue?vue&type=style&index=0&id=15bd5089&prod&lang=less&
3862
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/barCode/BarCodes.vue?vue&type=style&index=0&id=15c46fec&prod&lang=less&
3863
3863
  // extracted by mini-css-extract-plugin
3864
3864
 
3865
- ;// CONCATENATED MODULE: ./src/components/controls/barCode/BarCodes.vue?vue&type=style&index=0&id=15bd5089&prod&lang=less&
3865
+ ;// CONCATENATED MODULE: ./src/components/controls/barCode/BarCodes.vue?vue&type=style&index=0&id=15c46fec&prod&lang=less&
3866
3866
 
3867
3867
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
3868
3868
  var componentNormalizer = __webpack_require__(70713);
@@ -13529,7 +13529,7 @@ var component = (0,componentNormalizer/* default */.Z)(
13529
13529
 
13530
13530
  /***/ }),
13531
13531
 
13532
- /***/ 68763:
13532
+ /***/ 23875:
13533
13533
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
13534
13534
 
13535
13535
  "use strict";
@@ -13543,7 +13543,7 @@ __webpack_require__.d(__webpack_exports__, {
13543
13543
 
13544
13544
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
13545
13545
  var es_function_name = __webpack_require__(68309);
13546
- ;// 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/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=ddf4f372&
13546
+ ;// 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/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=53dc81b2&
13547
13547
 
13548
13548
  var render = function render() {
13549
13549
  var _vm = this,
@@ -14252,7 +14252,7 @@ var render = function render() {
14252
14252
  };
14253
14253
  var staticRenderFns = [];
14254
14254
 
14255
- ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=ddf4f372&
14255
+ ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=53dc81b2&
14256
14256
 
14257
14257
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
14258
14258
  var objectSpread2 = __webpack_require__(63442);
@@ -14516,6 +14516,7 @@ var defaultBox = {
14516
14516
  v.groupName = _this2.groupName;
14517
14517
  v.controlStyle = _this2.controlType == 'RadioBox' ? 'RadioBox' : 'CheckBox';
14518
14518
  v.groupHasOptions = _this2.groupHasOptions;
14519
+ v.readType = v.readType ? 1 : 0;
14519
14520
  if (v.id === _this2.tableRadio) v.isSelected = true;
14520
14521
  if (v.text == '') return; // 处理单复选文本值为空的情况
14521
14522
  _this2.vueController.insertRadioAndCheckBox('add', JSON.stringify(v));
@@ -14526,6 +14527,7 @@ var defaultBox = {
14526
14527
  v.groupName = _this2.groupName;
14527
14528
  v.controlStyle = _this2.controlType == 'RadioBox' ? 'RadioBox' : 'CheckBox';
14528
14529
  v.groupHasOptions = _this2.groupHasOptions;
14530
+ v.readType = v.readType ? 1 : 0;
14529
14531
  if (v.id === _this2.tableRadio) v.isSelected = true;
14530
14532
  if (v.text == '') return; // 处理单复选文本值为空的情况
14531
14533
  if (v.tableType == 'update') {
@@ -14553,10 +14555,10 @@ var defaultBox = {
14553
14555
  });
14554
14556
  ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=js&
14555
14557
  /* harmony default export */ var radioCheckBox_RadioCheckboxvue_type_script_lang_js_ = (RadioCheckboxvue_type_script_lang_js_);
14556
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=ddf4f372&prod&lang=less&
14558
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=53dc81b2&prod&lang=less&
14557
14559
  // extracted by mini-css-extract-plugin
14558
14560
 
14559
- ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=ddf4f372&prod&lang=less&
14561
+ ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=53dc81b2&prod&lang=less&
14560
14562
 
14561
14563
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
14562
14564
  var componentNormalizer = __webpack_require__(70713);
@@ -37863,7 +37865,7 @@ var Print = /*#__PURE__*/function () {
37863
37865
  key: "printToPDF",
37864
37866
  value: function () {
37865
37867
  var _printToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(hoEditorFactoryID, PDF, type, fileName, reslove, positionY, format, repeatPrintToA5) {
37866
- var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, pageSize, last, pageNumber, startPageNumOver, _iterator, _step, _children$1$drawItems, _children$0$drawItems, index, cpage, children, mainHeight, lastDline, dShape, posIndex, posY, _dShape, svg2pdfOptions, ctx, _cpage$drawDomLevel, _cpage$drawDomLevel2, _cpage$drawDomLevel3, _cpage$drawDomLevel4, _cpage$drawDomLevel5, _cpage$drawDomLevel6, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _cpage$drawDomLevel$s, _svgBox, printStyle, exportHtml, url, link, _last, otherPageNumber, i, name;
37868
+ var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, pageSize, last, pageNumber, startPageNumOver, _iterator, _step, _children$1$drawItems, _children$0$drawItems, index, cpage, children, mainHeight, lastDline, dShape, posIndex, posY, _dShape, svg2pdfOptions, ctx, _cpage$drawDomLevel, _cpage$drawDomLevel2, _cpage$drawDomLevel3, _cpage$drawDomLevel4, _cpage$drawDomLevel5, _cpage$drawDomLevel6, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _cpage$drawDomLevel$s, _last, _svgBox, printStyle, exportHtml, url, link, otherPageNumber, i, name;
37867
37869
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
37868
37870
  while (1) switch (_context3.prev = _context3.next) {
37869
37871
  case 0:
@@ -38107,18 +38109,31 @@ var Print = /*#__PURE__*/function () {
38107
38109
  console.timeEnd('绘制svg和生成pdf');
38108
38110
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
38109
38111
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
38112
+ if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
38113
+ _context3.next = 82;
38114
+ break;
38115
+ }
38116
+ _last = hoEditorFactory.printStatus.printRecord.last();
38117
+ if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
38118
+ _context3.next = 82;
38119
+ break;
38120
+ }
38121
+ message/* default */.Z.info('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录');
38122
+ reslove && reslove('printend');
38123
+ return _context3.abrupt("return");
38124
+ case 82:
38110
38125
  if (!(type === 'html')) {
38111
- _context3.next = 93;
38126
+ _context3.next = 101;
38112
38127
  break;
38113
38128
  }
38114
38129
  if (!(svgBox && svgBox.childNodes.length === 0)) {
38115
- _context3.next = 81;
38130
+ _context3.next = 87;
38116
38131
  break;
38117
38132
  }
38118
38133
  message/* default */.Z.info('无新增内容');
38119
38134
  reslove && reslove('printend');
38120
38135
  return _context3.abrupt("return");
38121
- case 81:
38136
+ case 87:
38122
38137
  printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
38123
38138
  exportHtml = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>".concat(printStyle.innerHTML, "</style>\n </head>\n <body>").concat((_svgBox = svgBox) === null || _svgBox === void 0 ? void 0 : _svgBox.innerHTML, "</body>\n </html>\n ");
38124
38139
  url = window.URL.createObjectURL(new Blob([exportHtml], {
@@ -38135,20 +38150,7 @@ var Print = /*#__PURE__*/function () {
38135
38150
  }, 100);
38136
38151
  reslove && reslove('printend');
38137
38152
  return _context3.abrupt("return");
38138
- case 93:
38139
- if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
38140
- _context3.next = 99;
38141
- break;
38142
- }
38143
- _last = hoEditorFactory.printStatus.printRecord.last();
38144
- if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
38145
- _context3.next = 99;
38146
- break;
38147
- }
38148
- message/* default */.Z.info('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录');
38149
- reslove && reslove('printend');
38150
- return _context3.abrupt("return");
38151
- case 99:
38153
+ case 101:
38152
38154
  if (type === 'pdf') {
38153
38155
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
38154
38156
  PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
@@ -38170,8 +38172,9 @@ var Print = /*#__PURE__*/function () {
38170
38172
  name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
38171
38173
  PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.printSilently);
38172
38174
  }
38175
+ case 102:
38173
38176
  reslove && reslove('printend');
38174
- case 101:
38177
+ case 103:
38175
38178
  case "end":
38176
38179
  return _context3.stop();
38177
38180
  }
@@ -38403,7 +38406,7 @@ var Print = /*#__PURE__*/function () {
38403
38406
  }, {
38404
38407
  key: "printAllNew",
38405
38408
  value: function () {
38406
- var _printAllNew = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(hoEditorFactoryID, reslove, PDF, position, isPrintFirstDoc) {
38409
+ var _printAllNew = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(hoEditorFactoryID, reslove, PDF, position, isPrintFirstDoc, pageNumber) {
38407
38410
  var hoEditorFactory, a4Size, svgBox, last, widthPixes, heightPixes, orientation, formats, format, svg2pdfOptions, firstPageIndex, _iterator4, _step4, _cpage$drawDomLevel14, index, cpage, children, _cpage$drawDomLevel12, pageSize, ctx, _cpage$drawDomLevel13, _ctx7, _ctx6, lastPos;
38408
38411
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context6) {
38409
38412
  while (1) switch (_context6.prev = _context6.next) {
@@ -38452,7 +38455,7 @@ var Print = /*#__PURE__*/function () {
38452
38455
  _iterator4.s();
38453
38456
  case 19:
38454
38457
  if ((_step4 = _iterator4.n()).done) {
38455
- _context6.next = 55;
38458
+ _context6.next = 56;
38456
38459
  break;
38457
38460
  }
38458
38461
  index = _step4.value;
@@ -38461,13 +38464,13 @@ var Print = /*#__PURE__*/function () {
38461
38464
  break;
38462
38465
  }
38463
38466
  message/* default */.Z.info('请进行翻页');
38464
- return _context6.abrupt("continue", 53);
38467
+ return _context6.abrupt("continue", 54);
38465
38468
  case 24:
38466
38469
  if (!(index < firstPageIndex)) {
38467
38470
  _context6.next = 26;
38468
38471
  break;
38469
38472
  }
38470
- return _context6.abrupt("continue", 53);
38473
+ return _context6.abrupt("continue", 54);
38471
38474
  case 26:
38472
38475
  last = index;
38473
38476
  cpage = hoEditorFactory.drawTree.drawPages[index];
@@ -38494,7 +38497,7 @@ var Print = /*#__PURE__*/function () {
38494
38497
  _context6.next = 33;
38495
38498
  break;
38496
38499
  }
38497
- return _context6.abrupt("continue", 53);
38500
+ return _context6.abrupt("continue", 54);
38498
38501
  case 33:
38499
38502
  if (!hoEditorFactory.isUseImagePrint) {
38500
38503
  _context6.next = 46;
@@ -38548,22 +38551,23 @@ var Print = /*#__PURE__*/function () {
38548
38551
  case 51:
38549
38552
  _ctx6 = null;
38550
38553
  case 52:
38554
+ if (pageNumber) pageNumber.value++;
38551
38555
  index > 0 && ((_cpage$drawDomLevel14 = cpage.drawDomLevel) === null || _cpage$drawDomLevel14 === void 0 ? void 0 : _cpage$drawDomLevel14.clearStage());
38552
- case 53:
38556
+ case 54:
38553
38557
  _context6.next = 19;
38554
38558
  break;
38555
- case 55:
38556
- _context6.next = 60;
38559
+ case 56:
38560
+ _context6.next = 61;
38557
38561
  break;
38558
- case 57:
38559
- _context6.prev = 57;
38562
+ case 58:
38563
+ _context6.prev = 58;
38560
38564
  _context6.t0 = _context6["catch"](17);
38561
38565
  _iterator4.e(_context6.t0);
38562
- case 60:
38563
- _context6.prev = 60;
38566
+ case 61:
38567
+ _context6.prev = 61;
38564
38568
  _iterator4.f();
38565
- return _context6.finish(60);
38566
- case 63:
38569
+ return _context6.finish(61);
38570
+ case 64:
38567
38571
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
38568
38572
  hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
38569
38573
  }
@@ -38577,13 +38581,13 @@ var Print = /*#__PURE__*/function () {
38577
38581
  }
38578
38582
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
38579
38583
  reslove();
38580
- case 67:
38584
+ case 68:
38581
38585
  case "end":
38582
38586
  return _context6.stop();
38583
38587
  }
38584
- }, _callee5, null, [[17, 57, 60, 63]]);
38588
+ }, _callee5, null, [[17, 58, 61, 64]]);
38585
38589
  }));
38586
- function printAllNew(_x16, _x17, _x18, _x19, _x20) {
38590
+ function printAllNew(_x16, _x17, _x18, _x19, _x20, _x21) {
38587
38591
  return _printAllNew.apply(this, arguments);
38588
38592
  }
38589
38593
  return printAllNew;
@@ -41150,6 +41154,10 @@ var DocController = /*#__PURE__*/function () {
41150
41154
  }
41151
41155
  }
41152
41156
  }
41157
+ var record = hoEditorFactory.docTree.elementChangeRecords.get(node.id + "|" + node.dataId);
41158
+ if (!record || record.indexOf("add") < 0) {
41159
+ hoEditorFactory.docTree.elementChangeRecords.set(node.id + "|" + node.dataId, "update");
41160
+ }
41153
41161
  return "";
41154
41162
  } else {
41155
41163
  return "";
@@ -41177,6 +41185,11 @@ var DocController = /*#__PURE__*/function () {
41177
41185
  var afterPath = hoEditorFactory.docTree.getNodeLastPath(textInputFieldNode);
41178
41186
  //hoEditorFactory.drawTree.moveCaretToPath(afterPath);
41179
41187
  hoEditorFactory.docTree.curDomRange.setSamePath(afterPath);
41188
+ if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_47__/* .TextInputFieldNode */ .re) {
41189
+ hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + "|" + textInputFieldNode.dataId, "add");
41190
+ } else {
41191
+ hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + "|" + textInputFieldNode.dataId, "add0");
41192
+ }
41180
41193
  return afterPath;
41181
41194
  }
41182
41195
  /**
@@ -41213,7 +41226,8 @@ var DocController = /*#__PURE__*/function () {
41213
41226
  key: "insertBarcode",
41214
41227
  value: function insertBarcode(operType, curDomRange, id, textContent, isDisplayText, imagePath, width, height,
41215
41228
  //bandDataSource: string,
41216
- name, innerIdentifier) {
41229
+ //name: string,
41230
+ innerIdentifier) {
41217
41231
  var domRange = curDomRange.normalize();
41218
41232
  var startPath = domRange.endPath;
41219
41233
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
@@ -41230,7 +41244,9 @@ var DocController = /*#__PURE__*/function () {
41230
41244
  }
41231
41245
  var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
41232
41246
  var rootPath = hoEditorFactory.docTree.getRootPathByNodes(domRange.npStart.roots);
41233
- var barCodeNode = new _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_50__/* .BarcodeNode */ .T(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, id, name, innerIdentifier, textContent, isDisplayText, imagePath, width, height
41247
+ var barCodeNode = new _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_50__/* .BarcodeNode */ .T(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, id,
41248
+ //name,
41249
+ innerIdentifier, textContent, isDisplayText, imagePath, width, height
41234
41250
  //,bandDataSource
41235
41251
  );
41236
41252
  //插入该表达式节点
@@ -41257,15 +41273,7 @@ var DocController = /*#__PURE__*/function () {
41257
41273
  */
41258
41274
  }, {
41259
41275
  key: "insertQrcode",
41260
- value: function insertQrcode(operType, curDomRange, id, textContent, type, correctLevel,
41261
- // dataSourceEnabled: boolean,
41262
- // dataSource: string,
41263
- // format: string,
41264
- // visitPath: string,
41265
- // isReadOnly: boolean,
41266
- // autoUpdate: boolean,
41267
- // execState: string,
41268
- width, height, name, innerIdentifier, isFillBack) {
41276
+ value: function insertQrcode(operType, curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack) {
41269
41277
  var domRange = curDomRange.normalize();
41270
41278
  var startPath = domRange.endPath;
41271
41279
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
@@ -41283,15 +41291,7 @@ var DocController = /*#__PURE__*/function () {
41283
41291
  }
41284
41292
  }
41285
41293
  var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
41286
- var qrcodeNode = new _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_51__/* .QrcodeNode */ .d(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, id, name, innerIdentifier, textContent, type, correctLevel,
41287
- // dataSourceEnabled,
41288
- // dataSource,
41289
- // format,
41290
- // visitPath,
41291
- // isReadOnly,
41292
- // autoUpdate,
41293
- // execState,
41294
- width, height, isFillBack);
41294
+ var qrcodeNode = new _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_51__/* .QrcodeNode */ .d(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, id, name, innerIdentifier, textContent, type, correctLevel, width, height, isFillBack);
41295
41295
  //插入该表达式节点
41296
41296
  if (operType === "add") {
41297
41297
  hoEditorFactory.undoService.begin();
@@ -42439,7 +42439,7 @@ var DocController = /*#__PURE__*/function () {
42439
42439
  key: "insertDownList",
42440
42440
  value: function () {
42441
42441
  var _insertDownList = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().mark(function _callee3(operType, curDomRange, valuesObject, downListContent, styleIndex) {
42442
- var domRange, startPath, oldDataID, oldId, hoEditorFactory, np, node, parentNode, downListNode;
42442
+ var domRange, startPath, oldDataID, oldId, hoEditorFactory, np, node, parentNode, downListNode, record;
42443
42443
  return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee3$(_context3) {
42444
42444
  while (1) switch (_context3.prev = _context3.next) {
42445
42445
  case 0:
@@ -42482,7 +42482,19 @@ var DocController = /*#__PURE__*/function () {
42482
42482
  }
42483
42483
  hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, downListNode));
42484
42484
  hoEditorFactory.undoService.commit();
42485
- case 21:
42485
+ if (operType === "add") {
42486
+ if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_47__/* .TextInputFieldNode */ .re) {
42487
+ hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + "|" + downListNode.dataId, "add");
42488
+ } else {
42489
+ hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + "|" + downListNode.dataId, "add0");
42490
+ }
42491
+ } else {
42492
+ record = hoEditorFactory.docTree.elementChangeRecords.get(downListNode.id + "|" + downListNode.dataId);
42493
+ if (!record || record.indexOf("add") < 0) {
42494
+ hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + "|" + downListNode.dataId, "update");
42495
+ }
42496
+ }
42497
+ case 22:
42486
42498
  case "end":
42487
42499
  return _context3.stop();
42488
42500
  }
@@ -43951,6 +43963,7 @@ var DocTree = /*#__PURE__*/function () {
43951
43963
  //文档属性
43952
43964
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_isSaveValid", false);
43953
43965
  //是否是保存校验
43966
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_elementChangeRecords", void 0);
43954
43967
  // private _curUserIndex: number; //当前用户
43955
43968
  //private _curOnSelectedComment: Comment | null; //当前处于选中状态的批注
43956
43969
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_ctlKey", 0);
@@ -43976,6 +43989,7 @@ var DocTree = /*#__PURE__*/function () {
43976
43989
  this._curOnDragNode = null;
43977
43990
  //this._comments = new Array<Comment>();
43978
43991
  this._userHistories = new Array();
43992
+ this._elementChangeRecords = new Map();
43979
43993
  // this._docProperty = new DocProperty(this);
43980
43994
  // this._curUserIndex = -1;
43981
43995
  //this._curOnSelectedComment = null;
@@ -44129,6 +44143,16 @@ var DocTree = /*#__PURE__*/function () {
44129
44143
  this._userHistories = value;
44130
44144
  }
44131
44145
  }
44146
+ }, {
44147
+ key: "elementChangeRecords",
44148
+ get: function get() {
44149
+ return this._elementChangeRecords;
44150
+ },
44151
+ set: function set(value) {
44152
+ if (value !== this._elementChangeRecords) {
44153
+ this._elementChangeRecords = value;
44154
+ }
44155
+ }
44132
44156
  }, {
44133
44157
  key: "docProperty",
44134
44158
  get: function get() {
@@ -45849,6 +45873,7 @@ var DocTree = /*#__PURE__*/function () {
45849
45873
  this._radioAndCheckBoxsMap = new Map();
45850
45874
  this._curOnDragNode = null;
45851
45875
  this._userHistories = new Array();
45876
+ this._elementChangeRecords = new Map();
45852
45877
  var curPath = this._mainNodes[0].getNodePath();
45853
45878
  this._curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_24__/* .DomRange */ .a(this._hoEditorFactoryID, curPath, curPath);
45854
45879
  }
@@ -47574,7 +47599,7 @@ var PageProperty = /*#__PURE__*/function () {
47574
47599
  /*
47575
47600
  * @Author: your name
47576
47601
  * @Date: 2020-12-24 16:01:16
47577
- * @LastEditTime: 2023-08-23 15:35:57
47602
+ * @LastEditTime: 2023-09-15 15:03:38
47578
47603
  * @LastEditors: liyanan 2441631434@qq.com
47579
47604
  * @Description: In User Settings Edit
47580
47605
  * @FilePath: \hoeditor-web\src\editor\dom\TableProperty.ts
@@ -47600,10 +47625,8 @@ var TableProperty = /*#__PURE__*/function () {
47600
47625
  //用户可删除表格
47601
47626
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_continuePrintBorders", false);
47602
47627
  //续打时打印所有单元格边框
47603
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_layoutFullLine", true);
47604
- //排版时占据整行
47605
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_tightLineSpace", false);
47606
- //压缩表格上下行间距
47628
+ //private _layoutFullLine = true;//排版时占据整行
47629
+ //private _tightLineSpace = false;//压缩表格上下行间距
47607
47630
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isAutoChangeLine", false);
47608
47631
  //表格内是否自动换行
47609
47632
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_autoLineHeight", 0.53);
@@ -47703,22 +47726,6 @@ var TableProperty = /*#__PURE__*/function () {
47703
47726
  set: function set(value) {
47704
47727
  this._continuePrintBorders = value;
47705
47728
  }
47706
- }, {
47707
- key: "layoutFullLine",
47708
- get: function get() {
47709
- return this._layoutFullLine;
47710
- },
47711
- set: function set(value) {
47712
- this._layoutFullLine = value;
47713
- }
47714
- }, {
47715
- key: "tightLineSpace",
47716
- get: function get() {
47717
- return this._tightLineSpace;
47718
- },
47719
- set: function set(value) {
47720
- this._tightLineSpace = value;
47721
- }
47722
47729
  }, {
47723
47730
  key: "isAutoChangeLine",
47724
47731
  get: function get() {
@@ -50407,14 +50414,11 @@ var UserHistory = /*#__PURE__*/function () {
50407
50414
  /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__);
50408
50415
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(57658);
50409
50416
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_11__);
50410
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(68309);
50411
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_12__);
50412
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(9653);
50413
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__);
50414
- /* harmony import */ var _editor_draw_drawNode_DrawBarcodeNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(48396);
50415
- /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(62358);
50416
- /* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(90161);
50417
-
50417
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9653);
50418
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__);
50419
+ /* harmony import */ var _editor_draw_drawNode_DrawBarcodeNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(48396);
50420
+ /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(62358);
50421
+ /* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(90161);
50418
50422
 
50419
50423
 
50420
50424
 
@@ -50530,7 +50534,7 @@ var BandDataSource = /*#__PURE__*/function () {
50530
50534
  ret._visitPath = "";
50531
50535
  ret._isReadOnly = false;
50532
50536
  ret._autoUpdate = false;
50533
- ret._executeStatus = _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_16__/* .ExecuteStatus */ .hc.AlwaysExec;
50537
+ ret._executeStatus = _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_15__/* .ExecuteStatus */ .hc.AlwaysExec;
50534
50538
  return ret;
50535
50539
  }
50536
50540
  }]);
@@ -50540,7 +50544,9 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50540
50544
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(BarcodeNode, _BaseNode);
50541
50545
  var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(BarcodeNode);
50542
50546
  //private _bandDataSource!: BandDataSource; //绑定数据源
50543
- function BarcodeNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id, name, innerIdentifier, textContent, isDisplayText, imagePath, width, height,
50547
+ function BarcodeNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id,
50548
+ //name: string,
50549
+ innerIdentifier, textContent, isDisplayText, imagePath, width, height,
50544
50550
  //bandDataSource: string,
50545
50551
  scaleX, scaleY) {
50546
50552
  var _this;
@@ -50548,8 +50554,7 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50548
50554
  _this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
50549
50555
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_id", void 0);
50550
50556
  //编号
50551
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_name", void 0);
50552
- //名称
50557
+ //private _name!: string;//名称
50553
50558
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_innerIdentifier", void 0);
50554
50559
  //内部标识符
50555
50560
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_textContent", "");
@@ -50562,8 +50567,7 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50562
50567
  //条形码高
50563
50568
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_scaleX", void 0);
50564
50569
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_scaleY", void 0);
50565
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_remark", "");
50566
- //扩展字段
50570
+ //private _remark = ""; //扩展字段
50567
50571
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_imageDataBase64String", "");
50568
50572
  _this._id = id;
50569
50573
  _this._textContent = textContent;
@@ -50573,7 +50577,7 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50573
50577
  _this._height = height;
50574
50578
  _this._scaleX = scaleX ? scaleX : 1;
50575
50579
  _this._scaleY = scaleY ? scaleY : 1;
50576
- _this._name = name ? name : "";
50580
+ //this._name = name ? name : "";
50577
50581
  _this._innerIdentifier = innerIdentifier ? innerIdentifier : "";
50578
50582
  //this._bandDataSource = new BandDataSource();
50579
50583
  //this.setValuesObject(bandDataSource);
@@ -50607,16 +50611,14 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50607
50611
  get: function get() {
50608
50612
  return this._id;
50609
50613
  }
50610
- }, {
50611
- key: "remark",
50612
- get: function get() {
50613
- return this._remark;
50614
- },
50615
- set: function set(value) {
50616
- if (this._remark !== value) {
50617
- this._remark = value;
50618
- }
50619
- }
50614
+ // get remark(): string {
50615
+ // return this._remark;
50616
+ // }
50617
+ // set remark(value: string) {
50618
+ // if (this._remark !== value) {
50619
+ // this._remark = value;
50620
+ // }
50621
+ // }
50620
50622
  }, {
50621
50623
  key: "textContent",
50622
50624
  get: function get() {
@@ -50683,16 +50685,14 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50683
50685
  // this._bandDataSource = value;
50684
50686
  // }
50685
50687
  // }
50686
- }, {
50687
- key: "name",
50688
- get: function get() {
50689
- return this._name;
50690
- },
50691
- set: function set(value) {
50692
- if (this._name !== value) {
50693
- this._name = value;
50694
- }
50695
- }
50688
+ // get name(): string {
50689
+ // return this._name;
50690
+ // }
50691
+ // set name(value: string) {
50692
+ // if (this._name !== value) {
50693
+ // this._name = value;
50694
+ // }
50695
+ // }
50696
50696
  }, {
50697
50697
  key: "innerIdentifier",
50698
50698
  get: function get() {
@@ -50717,7 +50717,7 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50717
50717
  }, {
50718
50718
  key: "node2DrawNodeRange",
50719
50719
  value: function node2DrawNodeRange(startIndex, endIndex) {
50720
- var dNode = new _editor_draw_drawNode_DrawBarcodeNode__WEBPACK_IMPORTED_MODULE_14__/* .DrawBarcodeNode */ .w(this._hoEditorFactoryID, this._rootPath, this, 0, this.textContent, this.isDisplayText, this.imageDataBase64String, this.width, this.height, this.scaleX, this.scaleY);
50720
+ var dNode = new _editor_draw_drawNode_DrawBarcodeNode__WEBPACK_IMPORTED_MODULE_13__/* .DrawBarcodeNode */ .w(this._hoEditorFactoryID, this._rootPath, this, 0, this.textContent, this.isDisplayText, this.imageDataBase64String, this.width, this.height, this.scaleX, this.scaleY);
50721
50721
  this._drawNodes.push(dNode);
50722
50722
  }
50723
50723
  }, {
@@ -50754,21 +50754,29 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50754
50754
  var scaleX = drawBarcodeNode.children[0].scaleX;
50755
50755
  var scaleY = drawBarcodeNode.children[0].scaleY;
50756
50756
  var retObj = {
50757
- nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Jq[this.nodeType],
50757
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_14__/* .NodeType */ .Jq[this.nodeType],
50758
50758
  imageType: "Barcode",
50759
50759
  id: this.id,
50760
- name: this.name,
50761
50760
  innerIdentifier: this.innerIdentifier,
50762
50761
  textContent: this.textContent,
50763
- isDisplayText: this.isDisplayText,
50762
+ //isDisplayText: this.isDisplayText,
50764
50763
  width: width,
50765
50764
  height: height,
50766
- scaleX: scaleX,
50767
- scaleY: scaleY,
50768
- imageDataBase64String: this.imageDataBase64String,
50769
- //andDataSource: this.bandDataSource,
50770
- remark: this.remark
50765
+ //scaleX: scaleX,
50766
+ //scaleY: scaleY,
50767
+ imageDataBase64String: this.imageDataBase64String
50768
+ //remark: this.remark
50771
50769
  };
50770
+
50771
+ if (this.scaleX !== 1) {
50772
+ retObj.scaleX = this.scaleX;
50773
+ }
50774
+ if (this.scaleY !== 1) {
50775
+ retObj.scaleY = this.scaleY;
50776
+ }
50777
+ if (this.isDisplayText) {
50778
+ retObj.isDisplayText = this.isDisplayText;
50779
+ }
50772
50780
  if (isCopy) {
50773
50781
  return retObj;
50774
50782
  }
@@ -50791,17 +50799,15 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
50791
50799
  value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
50792
50800
  var width = Number(json.width);
50793
50801
  var height = Number(json.height);
50794
- var scaleX = Number(json.scaleX);
50795
- var scaleY = Number(json.scaleY);
50802
+ var scaleX = json.scaleX === undefined ? 1 : Number(json.scaleX);
50803
+ var scaleY = json.scaleY === undefined ? 1 : Number(json.scaleY);
50796
50804
  this.transType(json);
50797
50805
  var isDisplayText = !json.isDisplayText ? false : json.isDisplayText;
50798
- return new BarcodeNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Jq.ntImage, json.id, json.name, json.innerIdentifier, json.textContent, isDisplayText, json.imageDataBase64String, width, height,
50799
- //json.bandDataSource,
50800
- scaleX, scaleY);
50806
+ return new BarcodeNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_14__/* .NodeType */ .Jq.ntImage, json.id, json.innerIdentifier, json.textContent, isDisplayText, json.imageDataBase64String, width, height, scaleX, scaleY);
50801
50807
  }
50802
50808
  }]);
50803
50809
  return BarcodeNode;
50804
- }(_BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .BaseNode */ .Hd);
50810
+ }(_BaseNode__WEBPACK_IMPORTED_MODULE_14__/* .BaseNode */ .Hd);
50805
50811
 
50806
50812
  /***/ }),
50807
50813
 
@@ -52427,15 +52433,15 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
52427
52433
  if (cellPropertyJson["gridLineDisplay"] === "true,true,true,true") {
52428
52434
  delete cellPropertyJson["gridLineDisplay"];
52429
52435
  }
52430
- }
52431
- // else if (keysName[k] === "dataSource") {
52432
- // if (this.cellProperty.dataSource === undefined || (cellPropertyJson["dataSource"] === "")) {
52433
- // delete cellPropertyJson["dataSource"];
52434
- // }
52435
- // }
52436
- else {
52437
- if (cellPropertyJson[keysName[k]] === defaultCellPropJson[keysName[k]]) {
52438
- delete cellPropertyJson[keysName[k]];
52436
+ } else {
52437
+ if (keysName[k] === "backColor") {
52438
+ if (cellPropertyJson["backColor"].toString().toLowerCase() === defaultCellPropJson["backColor"].toString().toLowerCase()) {
52439
+ delete cellPropertyJson["backColor"];
52440
+ }
52441
+ } else {
52442
+ if (cellPropertyJson[keysName[k]] === defaultCellPropJson[keysName[k]]) {
52443
+ delete cellPropertyJson[keysName[k]];
52444
+ }
52439
52445
  }
52440
52446
  }
52441
52447
  }
@@ -52456,19 +52462,35 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
52456
52462
  }
52457
52463
  }
52458
52464
  var cellText = this.getCellText(clearSign);
52459
- return {
52465
+ var retObj = {
52460
52466
  nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_31__/* .NodeType */ .Jq[this.nodeType],
52461
- borderVisible: this.borderVisible.toString(),
52462
- crossLineType: CrossLineType[this.crossLineType],
52463
- rowSpan: this.rowSpan,
52464
- colSpan: this.colSpan,
52467
+ //borderVisible: this.borderVisible.toString(),
52468
+ //crossLineType: CrossLineType[this.crossLineType],
52469
+ //rowSpan: this.rowSpan,
52470
+ //colSpan: this.colSpan,
52465
52471
  childNodes: childNodes,
52466
52472
  rowNo: rowNo,
52467
52473
  colNo: colNo,
52468
- cellProperty: cellPropertyJson,
52474
+ //cellProperty: cellPropertyJson,
52469
52475
  isModified: false,
52470
52476
  text: cellText
52471
52477
  };
52478
+ if (this.borderVisible.toString() !== "true,true,true,true") {
52479
+ retObj.borderVisible = this.borderVisible.toString();
52480
+ }
52481
+ if (this.crossLineType !== CrossLineType.ctNone) {
52482
+ retObj.crossLineType = CrossLineType[this.crossLineType];
52483
+ }
52484
+ if (this.rowSpan !== 1) {
52485
+ retObj.rowSpan = this.rowSpan;
52486
+ }
52487
+ if (this.colSpan !== 1) {
52488
+ retObj.colSpan = this.colSpan;
52489
+ }
52490
+ if (Object.keys(cellPropertyJson).length > 0) {
52491
+ retObj.cellProperty = cellPropertyJson;
52492
+ }
52493
+ return retObj;
52472
52494
  }
52473
52495
  }, {
52474
52496
  key: "removeChild",
@@ -52672,16 +52694,18 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
52672
52694
  }
52673
52695
  }], [{
52674
52696
  key: "json2Node",
52675
- value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign) {
52697
+ value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows,
52698
+ //defaultCellProperty: any,
52699
+ isPaste, isClearSign) {
52676
52700
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_24__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
52677
52701
  var rowNo = parseInt(json.rowNo);
52678
52702
  var colNo = parseInt(json.colNo);
52679
52703
  aRow = rowsMap.get(rowNo);
52680
52704
  var cellNode = new CellNode(hoEditorFactoryID, rootNodes, tableNode, aRow, undefined, rowNo, colNo, 1, 1, new _TableProperty__WEBPACK_IMPORTED_MODULE_29__/* .CellProperty */ .$W(""));
52681
52705
  var cellProperty = json.cellProperty;
52682
- if (cellProperty === "") {
52683
- cellProperty = JSON.parse("{}");
52684
- }
52706
+ // if (cellProperty === "") {
52707
+ // cellProperty = JSON.parse("{}");
52708
+ // }
52685
52709
  var assignvalue = function assignvalue(target, source) {
52686
52710
  Object.keys(source).forEach(function (value) {
52687
52711
  if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target[value]) == "object") {
@@ -52721,7 +52745,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
52721
52745
  ;
52722
52746
  });
52723
52747
  };
52724
- assignvalue(cellNode.cellProperty, cellProperty);
52748
+ if (cellProperty && Object.keys(cellProperty).length > 0) {
52749
+ assignvalue(cellNode.cellProperty, cellProperty);
52750
+ }
52725
52751
  aRow.splice(colNo, 1);
52726
52752
  aRow.splice(colNo, 0, cellNode);
52727
52753
  //aRow.push(cellNode);
@@ -52732,10 +52758,10 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
52732
52758
  // }
52733
52759
  // }
52734
52760
  cellNode.initBlankDoc();
52735
- cellNode.rowSpan = Number(json.rowSpan);
52736
- cellNode.colSpan = Number(json.colSpan);
52737
- cellNode.borderVisible = json.borderVisible;
52738
- cellNode.crossLineType = Number(CrossLineType[json.crossLineType]);
52761
+ cellNode.rowSpan = json.rowSpan === undefined ? 1 : Number(json.rowSpan);
52762
+ cellNode.colSpan = json.colSpan === undefined ? 1 : Number(json.colSpan);
52763
+ cellNode.borderVisible = json.borderVisible === undefined ? "true,true,true,true" : json.borderVisible;
52764
+ cellNode.crossLineType = json.crossLineType === undefined ? 0 : Number(CrossLineType[json.crossLineType]);
52739
52765
  rows[rowNo] = aRow;
52740
52766
  cellNode.row = aRow;
52741
52767
  rows[rowNo][colNo] = cellNode;
@@ -52883,7 +52909,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
52883
52909
  /*
52884
52910
  * @Author: your name
52885
52911
  * @Date: 2020-11-18 11:43:06
52886
- * @LastEditTime: 2023-06-30 16:37:49
52912
+ * @LastEditTime: 2023-09-14 11:16:12
52887
52913
  * @LastEditors: liyanan 2441631434@qq.com
52888
52914
  * @Description: In User Settings Edit
52889
52915
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\ControlNode.ts
@@ -52917,7 +52943,7 @@ var ControlNode = /*#__PURE__*/function (_BaseNode) {
52917
52943
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_name", void 0);
52918
52944
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_text", void 0);
52919
52945
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_labelText", void 0);
52920
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_title", void 0);
52946
+ //protected _title!: string;
52921
52947
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_styleIndex", void 0);
52922
52948
  // protected _checkCascadeObject!: string;
52923
52949
  // protected _unCheckCascadeObject!: string;
@@ -53046,16 +53072,14 @@ var ControlNode = /*#__PURE__*/function (_BaseNode) {
53046
53072
  this._text = value;
53047
53073
  }
53048
53074
  }
53049
- }, {
53050
- key: "title",
53051
- get: function get() {
53052
- return this._title;
53053
- },
53054
- set: function set(value) {
53055
- if (this._title !== value) {
53056
- this._title = value;
53057
- }
53058
- }
53075
+ // get title(): string {
53076
+ // return this._title;
53077
+ // }
53078
+ // set title(value: string) {
53079
+ // if (this._title !== value) {
53080
+ // this._title = value;
53081
+ // }
53082
+ // }
53059
53083
  }, {
53060
53084
  key: "styleIndex",
53061
53085
  get: function get() {
@@ -53192,6 +53216,14 @@ var ControlNode = /*#__PURE__*/function (_BaseNode) {
53192
53216
  value: function _delete(operType, nodeType) {
53193
53217
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys */ .b.instance().getFactory(this.hoEditorFactoryID);
53194
53218
  if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_9__/* .PaintState */ .Dh.psDesign || this.isAllowDelete) {
53219
+ if (nodeType === "DownList") {
53220
+ var record = hoEditorFactory.docTree.elementChangeRecords.get(this.id + "|" + this.dataId);
53221
+ if (record && record.indexOf("add") >= 0) {
53222
+ hoEditorFactory.docTree.elementChangeRecords.delete(this.id + "|" + this.dataId);
53223
+ } else {
53224
+ hoEditorFactory.docTree.elementChangeRecords.set(this.id + "|" + this.dataId, "delete");
53225
+ }
53226
+ }
53195
53227
  return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(ControlNode.prototype), "delete", this).call(this);
53196
53228
  } else {
53197
53229
  if (operType !== "update") {
@@ -53328,45 +53360,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
53328
53360
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_controlStyle", "");
53329
53361
  _this._styleIndex = styleIndex;
53330
53362
  _this.remark = "";
53331
- // if (valuesObj["id"] !== undefined) {
53332
- // this._id = valuesObj["id"];
53333
- // }
53334
53363
  _this._type = _ControlNode__WEBPACK_IMPORTED_MODULE_25__/* .ControlType */ .C.ctDateTime;
53335
- // if (valuesObj["name"] !== undefined) {
53336
- // this._name = valuesObj["name"];
53337
- // }
53338
- // if (valuesObj["controlStyle"] !== undefined) {
53339
- // this._controlStyle = valuesObj["controlStyle"];
53340
- // }
53341
- // if (valuesObj["labelText"] !== undefined) {
53342
- // this._labelText = valuesObj["labelText"];
53343
- // }
53344
- // if (this._labelText === "") {
53345
- // this.labelText = this._name !== "" ? this.name : this._controlStyle;
53346
- // }
53347
- // if (valuesObj["text"] !== undefined && valuesObj["text"] !== null && valuesObj["text"] !== '') {
53348
- // this._text = valuesObj["text"];
53349
- // } else {
53350
- // this._text = this._labelText !== "" && this._labelText !== undefined && this._labelText != null ? this._labelText : " ";
53351
- // }
53352
- // if (valuesObj["title"] !== undefined) {
53353
- // this._title = valuesObj["title"];
53354
- // }
53355
- // if (valuesObj["tipText"] !== undefined) {
53356
- // this._tipText = valuesObj["tipText"];
53357
- // }
53358
- // if (valuesObj["isAllowDelete"] !== undefined) {
53359
- // this._isAllowDelete = valuesObj["isAllowDelete"];
53360
- // }
53361
- // if (valuesObj["isReadOnly"] !== undefined) {
53362
- // this._isReadOnly = valuesObj["isReadOnly"];
53363
- // }
53364
- // if (valuesObj["readType"] !== undefined) {
53365
- // this._readType = valuesObj["readType"];
53366
- // }
53367
- // if (valuesObj["dataId"] !== undefined) {
53368
- // this.dataId = valuesObj["dataId"];
53369
- // }
53370
53364
  _this.customProperty = new Object();
53371
53365
  _this.setValuesObject(valuesObject);
53372
53366
  if (!_this.dataId) {
@@ -53577,7 +53571,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
53577
53571
  name: this.name,
53578
53572
  text: isClearValue || this.text === this.name ? "" : this.text,
53579
53573
  labelText: this.labelText,
53580
- title: this.title,
53574
+ //title: this.title,
53581
53575
  styleIndex: this.styleIndex,
53582
53576
  tipText: this.tipText,
53583
53577
  isAllowDelete: this.isAllowDelete,
@@ -53602,22 +53596,44 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
53602
53596
  innerIdentifier: this.innerIdentifier,
53603
53597
  dataMetaIdentifier: this.dataMetaIdentifier,
53604
53598
  identifierFormat: this.identifierFormat,
53605
- isSynchro: this.isSynchro,
53599
+ //isSynchro: this.isSynchro,
53606
53600
  controlStyle: this.controlStyle.replace("hh", "HH"),
53607
53601
  name: this.name,
53608
53602
  text: isClearValue || this.text === this.name ? "" : this.text,
53609
53603
  labelText: this.labelText,
53610
- title: this.title,
53604
+ //title: this.title,
53611
53605
  styleIndex: this.styleIndex,
53612
- tipText: this.tipText,
53613
- isAllowDelete: this.isAllowDelete,
53614
- isReadOnly: this.isReadOnly,
53606
+ //tipText: this.tipText,
53607
+ //isAllowDelete: this.isAllowDelete,
53608
+ //isReadOnly: this.isReadOnly,
53615
53609
  readType: this.readType,
53616
- customProperty: this.customProperty,
53617
- notReplaceElement: this.notReplaceElement,
53618
- notSelectTime: this.notSelectTime,
53619
- remark: this.remark
53610
+ customProperty: this.customProperty
53611
+ //notReplaceElement: this.notReplaceElement,
53612
+ //notSelectTime: this.notSelectTime,
53613
+ //remark: this.remark,
53620
53614
  };
53615
+
53616
+ if (this.isSynchro) {
53617
+ retObj.isSynchro = this.isSynchro;
53618
+ }
53619
+ if (this.tipText) {
53620
+ retObj.tipText = this.tipText;
53621
+ }
53622
+ if (this.isAllowDelete) {
53623
+ retObj.isAllowDelete = this.isAllowDelete;
53624
+ }
53625
+ if (this.isReadOnly) {
53626
+ retObj.isReadOnly = this.isReadOnly;
53627
+ }
53628
+ if (this.notReplaceElement) {
53629
+ retObj.notReplaceElement = this.notReplaceElement;
53630
+ }
53631
+ if (this.notSelectTime) {
53632
+ retObj.notSelectTime = this.notSelectTime;
53633
+ }
53634
+ if (this.remark) {
53635
+ retObj.remark = this.remark;
53636
+ }
53621
53637
  var paga = {
53622
53638
  "DateTimeNode": retObj
53623
53639
  };
@@ -53644,6 +53660,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
53644
53660
  json.isSynchro = !json.isSynchro ? false : json.isSynchro;
53645
53661
  json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
53646
53662
  json.isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
53663
+ json.notReplaceElement = !json.notReplaceElement ? false : json.notReplaceElement;
53647
53664
  json.notSelectTime = !json.notSelectTime ? false : json.notSelectTime;
53648
53665
  json.type = parseInt(_ControlNode__WEBPACK_IMPORTED_MODULE_25__/* .ControlType */ .C[json.type]);
53649
53666
  json.controlStyle = json.controlStyle.replace("hh", "HH");
@@ -54210,7 +54227,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
54210
54227
  var ret = new DownListNodeInstance();
54211
54228
  ret.Id = this.id !== undefined ? this.id : ret.Id;
54212
54229
  ret.Name = this.name !== undefined ? this.name : ret.Name;
54213
- ret.Title = this.title !== undefined ? this.title : ret.Title;
54230
+ //ret.Title = this.title !== undefined ? this.title : ret.Title;
54214
54231
  ret.Text = this.text !== undefined ? this.text : ret.Text;
54215
54232
  ret.KeyValue = this.keyValue !== undefined ? this.keyValue : ret.KeyValue;
54216
54233
  ret.TipText = this.tipText !== undefined ? this.tipText : ret.TipText;
@@ -54381,7 +54398,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
54381
54398
  text: this.keyValue == "" ? "" : this.text,
54382
54399
  keyValue: this.keyValue,
54383
54400
  value: this.value,
54384
- title: this.title,
54401
+ //title: this.title,
54385
54402
  styleIndex: this.styleIndex,
54386
54403
  tipText: this.tipText,
54387
54404
  labelText: this.labelText,
@@ -54409,25 +54426,46 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
54409
54426
  innerIdentifier: this.innerIdentifier,
54410
54427
  dataMetaIdentifier: this.dataMetaIdentifier,
54411
54428
  identifierFormat: this.identifierFormat,
54412
- isSynchro: this.isSynchro,
54429
+ //isSynchro: this.isSynchro,
54413
54430
  name: this.name,
54414
54431
  text: this.keyValue == "" ? "" : this.text,
54415
54432
  keyValue: this.keyValue,
54416
54433
  value: this.value,
54417
- title: this.title,
54434
+ //title: this.title,
54418
54435
  styleIndex: this.styleIndex,
54419
- tipText: this.tipText,
54436
+ //tipText: this.tipText,
54420
54437
  labelText: this.labelText,
54421
- isAllowDelete: this.isAllowDelete,
54422
- isReadOnly: this.isReadOnly,
54423
- mutexSelect: this.mutexSelect,
54424
- allowMultiSelect: this.allowMultiSelect,
54438
+ //isAllowDelete: this.isAllowDelete,
54439
+ //isReadOnly: this.isReadOnly,
54440
+ //mutexSelect: this.mutexSelect,
54441
+ //allowMultiSelect: this.allowMultiSelect,
54425
54442
  readType: this.readType,
54426
54443
  downLists: downLists,
54427
54444
  //dataSource: this.bandDataSource,
54428
- remark: this.remark,
54445
+ //remark: this.remark,
54429
54446
  customProperty: this.customProperty
54430
54447
  };
54448
+ if (this.isSynchro) {
54449
+ retObj.isSynchro = this.isSynchro;
54450
+ }
54451
+ if (this.tipText) {
54452
+ retObj.tipText = this.tipText;
54453
+ }
54454
+ if (this.isAllowDelete) {
54455
+ retObj.isAllowDelete = this.isAllowDelete;
54456
+ }
54457
+ if (this.isReadOnly) {
54458
+ retObj.isReadOnly = this.isReadOnly;
54459
+ }
54460
+ if (this.mutexSelect) {
54461
+ retObj.mutexSelect = this.mutexSelect;
54462
+ }
54463
+ if (this.allowMultiSelect) {
54464
+ retObj.allowMultiSelect = this.allowMultiSelect;
54465
+ }
54466
+ if (this.remark) {
54467
+ retObj.remark = this.remark;
54468
+ }
54431
54469
  var paga = {
54432
54470
  "DownListNode": retObj
54433
54471
  };
@@ -55384,8 +55422,8 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
55384
55422
  var drawImageNode = this.drawNodes[0];
55385
55423
  var width = drawImageNode.dWidth;
55386
55424
  var height = drawImageNode.dHeight;
55387
- var scaleX = drawImageNode.children[0].scaleX;
55388
- var scaleY = drawImageNode.children[0].scaleY;
55425
+ //const scaleX = drawImageNode.children[0].scaleX;
55426
+ //const scaleY = drawImageNode.children[0].scaleY;
55389
55427
  var retObj = {
55390
55428
  nodeType: BaseNode/* NodeType */.Jq[this.nodeType],
55391
55429
  imageType: "Image",
@@ -55394,12 +55432,25 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
55394
55432
  height: height,
55395
55433
  //scaleX: scaleX,
55396
55434
  //scaleY: scaleY,
55397
- imageDataBase64String: this.imageDataBase64String,
55398
- isFormula: this.isFormula,
55399
- remark: this.remark,
55400
- markImage: this.markImage,
55401
- imageJson: this.imageJson
55435
+ imageDataBase64String: this.imageDataBase64String
55436
+ //isFormula: this.isFormula,
55437
+ //remark: this.remark,
55438
+ //markImage: this.markImage,
55439
+ //imageJson: this.imageJson
55402
55440
  };
55441
+
55442
+ if (this.isFormula) {
55443
+ retObj.isFormula = this.isFormula;
55444
+ }
55445
+ if (this.remark) {
55446
+ retObj.remark = this.remark;
55447
+ }
55448
+ if (this.markImage) {
55449
+ retObj.markImage = this.markImage;
55450
+ }
55451
+ if (this.imageJson) {
55452
+ retObj.imageJson = this.imageJson;
55453
+ }
55403
55454
  if (isCopy) {
55404
55455
  return retObj;
55405
55456
  }
@@ -55573,7 +55624,7 @@ var DrawTree = __webpack_require__(51760);
55573
55624
  * @Author: liyanan 2441631434@qq.com
55574
55625
  * @Date: 2023-03-17 14:00:18
55575
55626
  * @LastEditors: liyanan 2441631434@qq.com
55576
- * @LastEditTime: 2023-03-17 17:53:26
55627
+ * @LastEditTime: 2023-05-09 16:23:54
55577
55628
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\JumpButtonNode.ts
55578
55629
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
55579
55630
  */
@@ -55629,15 +55680,6 @@ var JumpButtonNode = /*#__PURE__*/function (_BaseNode) {
55629
55680
  }, {
55630
55681
  key: "node2DrawNodeRange",
55631
55682
  value: function node2DrawNodeRange() {
55632
- //const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
55633
- // const textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
55634
- // let cbStyle;
55635
- // if (textStyle) {
55636
- // cbStyle = textStyle.combineStyle;
55637
- // } else {
55638
- // cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
55639
- // }
55640
- //const dHeight = hoEditorFactory.getFontHeightByFontSize(14);
55641
55683
  var dNode = new DrawJumpButton(this._hoEditorFactoryID, this._rootPath, this, this.name);
55642
55684
  this._drawNodes.push(dNode);
55643
55685
  }
@@ -55895,9 +55937,13 @@ var LabelNode = /*#__PURE__*/function (_ControlNode) {
55895
55937
  var retObj = {
55896
55938
  nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType */ .Jq[this.nodeType],
55897
55939
  text: this.text,
55898
- styleIndex: this.styleIndex,
55899
- associatedElement: this.associatedElement
55940
+ styleIndex: this.styleIndex
55941
+ //associatedElement: this.associatedElement,
55900
55942
  };
55943
+
55944
+ if (this.associatedElement) {
55945
+ retObj.associatedElement = this.associatedElement;
55946
+ }
55901
55947
  if (isCopy) {
55902
55948
  return retObj;
55903
55949
  }
@@ -57073,9 +57119,13 @@ var MenstrualHistoryNode = /*#__PURE__*/function (_MedicalExpressionNod) {
57073
57119
  menseDays: this.menseDays,
57074
57120
  cycleDays: this.cycleDays,
57075
57121
  menarcheAge: this.menarcheAge,
57076
- menoPauseAge: this.menoPauseAge,
57077
- remark: this.remark
57122
+ menoPauseAge: this.menoPauseAge
57123
+ //remark: this.remark,
57078
57124
  };
57125
+
57126
+ if (this.remark !== "") {
57127
+ retObj.remark = this.remark;
57128
+ }
57079
57129
  if (isCopy) {
57080
57130
  return retObj;
57081
57131
  }
@@ -58085,16 +58135,32 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58085
58135
  };
58086
58136
  return paga;
58087
58137
  }
58138
+ var paraNode = {
58139
+ //"ParagraphNode": {
58140
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Jq[this.nodeType],
58141
+ styleIndex: this._paraNo,
58142
+ textStyleNo: this.styleIndex
58143
+ //printAsSinglePage: this.printAsSinglePage,
58144
+ //forceChangeHeader: this.forceChangeHeader,
58145
+ //docId: this.docId,
58146
+ //customProperty: this.customProperty
58147
+ //}
58148
+ };
58149
+
58150
+ if (this.printAsSinglePage) {
58151
+ paraNode.printAsSinglePage = this.printAsSinglePage;
58152
+ }
58153
+ if (this.forceChangeHeader) {
58154
+ paraNode.forceChangeHeader = this.forceChangeHeader;
58155
+ }
58156
+ if (this.docId !== "") {
58157
+ paraNode.docId = this.docId;
58158
+ }
58159
+ if (Object.keys(this.customProperty).length > 0) {
58160
+ paraNode.customProperty = this.customProperty;
58161
+ }
58088
58162
  return {
58089
- "ParagraphNode": {
58090
- nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Jq[this.nodeType],
58091
- styleIndex: this._paraNo,
58092
- textStyleNo: this.styleIndex,
58093
- printAsSinglePage: this.printAsSinglePage,
58094
- forceChangeHeader: this.forceChangeHeader,
58095
- docId: this.docId,
58096
- customProperty: this.customProperty
58097
- }
58163
+ "ParagraphNode": paraNode
58098
58164
  };
58099
58165
  }
58100
58166
  }, {
@@ -58352,9 +58418,13 @@ var PermanentTeethMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
58352
58418
  topLeftSelected: this.topLeftSelected.toString(),
58353
58419
  topRightSelected: this.topRightSelected.toString(),
58354
58420
  bottomLeftSelected: this.bottomLeftSelected.toString(),
58355
- bottomRightSelected: this.bottomRightSelected.toString(),
58356
- remark: this.remark
58421
+ bottomRightSelected: this.bottomRightSelected.toString()
58422
+ //remark: this.remark,
58357
58423
  };
58424
+
58425
+ if (this.remark !== "") {
58426
+ retObj.remark = this.remark;
58427
+ }
58358
58428
  if (isCopy) {
58359
58429
  return retObj;
58360
58430
  }
@@ -58566,9 +58636,13 @@ var PrimaryTeethMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
58566
58636
  topLeftSelected: this.topLeftSelected.toString(),
58567
58637
  topRightSelected: this.topRightSelected.toString(),
58568
58638
  bottomLeftSelected: this.bottomLeftSelected.toString(),
58569
- bottomRightSelected: this.bottomRightSelected.toString(),
58570
- remark: this.remark
58639
+ bottomRightSelected: this.bottomRightSelected.toString()
58640
+ //remark: this.remark,
58571
58641
  };
58642
+
58643
+ if (this.remark !== "") {
58644
+ retObj.remark = this.remark;
58645
+ }
58572
58646
  if (isCopy) {
58573
58647
  return retObj;
58574
58648
  }
@@ -58624,8 +58698,8 @@ var PrimaryTeethMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
58624
58698
  /*
58625
58699
  * @Author: your name
58626
58700
  * @Date: 2020-10-28 15:50:18
58627
- * @LastEditTime: 2022-03-25 10:05:10
58628
- * @LastEditors: Please set LastEditors
58701
+ * @LastEditTime: 2023-09-14 11:03:19
58702
+ * @LastEditors: liyanan 2441631434@qq.com
58629
58703
  * @Description: 瞳孔图
58630
58704
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\PupilMap.ts
58631
58705
  */
@@ -58810,6 +58884,9 @@ var PupilMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
58810
58884
  value7: this.value7,
58811
58885
  remark: this.remark
58812
58886
  };
58887
+ if (this.remark !== "") {
58888
+ retObj.remark = this.remark;
58889
+ }
58813
58890
  if (isCopy) {
58814
58891
  return retObj;
58815
58892
  }
@@ -58995,7 +59072,7 @@ var BaseNode = __webpack_require__(62358);
58995
59072
  /*
58996
59073
  * @Author: your name
58997
59074
  * @Date: 2020-11-13 08:51:37
58998
- * @LastEditTime: 2023-06-30 15:24:31
59075
+ * @LastEditTime: 2023-09-14 17:38:33
58999
59076
  * @LastEditors: liyanan 2441631434@qq.com
59000
59077
  * @Description: In User Settings Edit
59001
59078
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\QrcodeNode.ts
@@ -59005,18 +59082,7 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59005
59082
  (0,inherits/* default */.Z)(QrcodeNode, _BaseNode);
59006
59083
  var _super = (0,createSuper/* default */.Z)(QrcodeNode);
59007
59084
  //是否回填
59008
- function QrcodeNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id, name, innerIdentifier, textContent, type, correctLevel,
59009
- // dataSourceEnabled: boolean,
59010
- // dataSource: string,
59011
- // format: string,
59012
- // visitPath: string,
59013
- // isReadOnly: boolean,
59014
- // autoUpdate: boolean,
59015
- // execState: string,
59016
- width, height,
59017
- //scaleX?: number,
59018
- //scaleY?: number
59019
- isFillBack) {
59085
+ function QrcodeNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id, name, innerIdentifier, textContent, type, correctLevel, width, height, isFillBack) {
59020
59086
  var _this;
59021
59087
  (0,classCallCheck/* default */.Z)(this, QrcodeNode);
59022
59088
  _this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
@@ -59032,32 +59098,16 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59032
59098
  //类型
59033
59099
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_correctLevel", "M");
59034
59100
  //纠错能力
59035
- // private _dataSourceEnabled = true; //数据源绑定设置有效
59036
- // private _dataSource = ""; //数据源
59037
- // private _format = ""; //格式化
59038
- // private _visitPath = ""; //访问路径
59039
- // private _isReadOnly = false; //只读,不能回填
59040
- // private _autoUpdate = false; //自动更新,当加载文档或者数据源发生改变时自动更新数值
59041
- // private _execState = ""; //执行状态
59042
59101
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_width", void 0);
59043
59102
  //宽
59044
59103
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_height", void 0);
59045
59104
  //高
59046
- (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_remark", "");
59047
- //扩展字段
59048
59105
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_imageDataBase64String", "");
59049
59106
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_isFillBack", false);
59050
59107
  _this._id = id;
59051
59108
  _this._textContent = textContent;
59052
59109
  _this._type = type;
59053
59110
  _this._correctLevel = correctLevel;
59054
- // this._dataSourceEnabled = dataSourceEnabled;
59055
- // this._dataSource = dataSource;
59056
- // this._format = format;
59057
- // this._visitPath = visitPath;
59058
- // this._isReadOnly = isReadOnly;
59059
- // this._autoUpdate = autoUpdate;
59060
- // this._execState = execState;
59061
59111
  _this._width = width;
59062
59112
  _this._height = height;
59063
59113
  _this._name = name ? name : "";
@@ -59076,16 +59126,6 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59076
59126
  get: function get() {
59077
59127
  return this._id;
59078
59128
  }
59079
- }, {
59080
- key: "remark",
59081
- get: function get() {
59082
- return this._remark;
59083
- },
59084
- set: function set(value) {
59085
- if (this._remark !== value) {
59086
- this._remark = value;
59087
- }
59088
- }
59089
59129
  }, {
59090
59130
  key: "textContent",
59091
59131
  get: function get() {
@@ -59107,27 +59147,6 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59107
59147
  get: function get() {
59108
59148
  return this._correctLevel;
59109
59149
  }
59110
- // get dataSource(): string {
59111
- // return this._dataSource;
59112
- // }
59113
- // get format(): string {
59114
- // return this._format;
59115
- // }
59116
- // get visitPath(): string {
59117
- // return this._visitPath;
59118
- // }
59119
- // get isReadOnly(): boolean {
59120
- // return this._isReadOnly;
59121
- // }
59122
- // get autoUpdate(): boolean {
59123
- // return this._autoUpdate;
59124
- // }
59125
- // get execState(): string {
59126
- // return this._execState;
59127
- // }
59128
- // get dataSourceEnabled(): boolean {
59129
- // return this._dataSourceEnabled;
59130
- // }
59131
59150
  }, {
59132
59151
  key: "width",
59133
59152
  get: function get() {
@@ -59263,26 +59282,23 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59263
59282
  nodeType: BaseNode/* NodeType */.Jq[this.nodeType],
59264
59283
  imageType: "Qrcode",
59265
59284
  id: this.id,
59266
- name: this.name,
59285
+ //name: this.name,
59267
59286
  innerIdentifier: this.innerIdentifier,
59268
59287
  textContent: isClearValue && this.isFillBack ? "" : this.textContent,
59269
59288
  type: this.type,
59270
59289
  correctLevel: this.correctLevel,
59271
- // dataSourceEnabled: this.dataSourceEnabled,
59272
- // dataSource: this.dataSource,
59273
- // format: this.format,
59274
- // visitPath: this.visitPath,
59275
- // isReadOnly: this.isReadOnly,
59276
- // autoUpdate: this.autoUpdate,
59277
- // execState: this.execState,
59278
59290
  width: width,
59279
59291
  height: height,
59280
- remark: this.remark,
59281
- //scaleX: scaleX,
59282
- //scaleY: scaleY,
59283
- imageDataBase64String: this.imageDataBase64String,
59284
- isFillBack: this.isFillBack
59292
+ imageDataBase64String: this.imageDataBase64String
59293
+ //isFillBack: this.isFillBack
59285
59294
  };
59295
+
59296
+ if (this.name) {
59297
+ retObj.name = this.name;
59298
+ }
59299
+ if (this.isFillBack) {
59300
+ retObj.isFillBack = this.isFillBack;
59301
+ }
59286
59302
  if (isCopy) {
59287
59303
  return retObj;
59288
59304
  }
@@ -59301,23 +59317,8 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59301
59317
  this.transType(json);
59302
59318
  var width = Number(json.width);
59303
59319
  var height = Number(json.height);
59304
- //const scaleX = Number(json.scaleX);
59305
- //const scaleY = Number(json.scaleY);
59306
- // const dataSourceEnabled = !json.dataSourceEnabled
59307
- // ? false
59308
- // : json.dataSourceEnabled;
59309
- // const isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
59310
- // const autoUpdate = !json.autoUpdate ? false : json.autoUpdate;
59311
59320
  var isFillBack = !json.isFillBack ? false : json.isFillBack;
59312
- return new QrcodeNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Jq.ntImage, json.id, json.name, json.innerIdentifier, json.textContent, json.type, json.correctLevel,
59313
- // dataSourceEnabled,
59314
- // json.dataSource,
59315
- // json.format,
59316
- // json.visitPath,
59317
- // isReadOnly,
59318
- // autoUpdate,
59319
- // json.execState,
59320
- width, height, isFillBack);
59321
+ return new QrcodeNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Jq.ntImage, json.id, json.name ? json.name : "", json.innerIdentifier, json.textContent, json.type, json.correctLevel, width, height, isFillBack);
59321
59322
  }
59322
59323
  }]);
59323
59324
  return QrcodeNode;
@@ -59340,16 +59341,16 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
59340
59341
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(70280);
59341
59342
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66298);
59342
59343
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(78255);
59343
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(68309);
59344
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7__);
59345
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41539);
59346
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
59347
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(54747);
59348
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9__);
59349
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(47941);
59350
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10__);
59351
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(39714);
59352
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11__);
59344
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41539);
59345
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__);
59346
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54747);
59347
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8__);
59348
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(47941);
59349
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_9__);
59350
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(39714);
59351
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__);
59352
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(68309);
59353
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__);
59353
59354
  /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9653);
59354
59355
  /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__);
59355
59356
  /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(57658);
@@ -59504,9 +59505,9 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
59504
59505
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "id", void 0);
59505
59506
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "dataId", void 0);
59506
59507
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "type", void 0);
59507
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "name", void 0);
59508
+ //private name!: string;
59508
59509
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "text", void 0);
59509
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "title", void 0);
59510
+ //private title!: string;
59510
59511
  //private checkCascadeObject!: string;
59511
59512
  //private unCheckCascadeObject!: string;
59512
59513
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "controlStyle", void 0);
@@ -59566,16 +59567,14 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
59566
59567
  this.type = value;
59567
59568
  }
59568
59569
  }
59569
- }, {
59570
- key: "Name",
59571
- get: function get() {
59572
- return this.name;
59573
- },
59574
- set: function set(value) {
59575
- if (this.name !== value) {
59576
- this.name = value;
59577
- }
59578
- }
59570
+ // get Name(): string {
59571
+ // return this.name;
59572
+ // }
59573
+ // set Name(value: string) {
59574
+ // if (this.name !== value) {
59575
+ // this.name = value;
59576
+ // }
59577
+ // }
59579
59578
  }, {
59580
59579
  key: "Text",
59581
59580
  get: function get() {
@@ -59586,16 +59585,14 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
59586
59585
  this.text = value;
59587
59586
  }
59588
59587
  }
59589
- }, {
59590
- key: "Title",
59591
- get: function get() {
59592
- return this.title;
59593
- },
59594
- set: function set(value) {
59595
- if (this.title !== value) {
59596
- this.title = value;
59597
- }
59598
- }
59588
+ // get Title(): string {
59589
+ // return this.title;
59590
+ // }
59591
+ // set Title(value: string) {
59592
+ // if (this.title !== value) {
59593
+ // this.title = value;
59594
+ // }
59595
+ // }
59599
59596
  // get CheckCascadeObject(): string {
59600
59597
  // return this.checkCascadeObject;
59601
59598
  // }
@@ -59766,9 +59763,9 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
59766
59763
  ret.id = "";
59767
59764
  ret.dataId = "";
59768
59765
  ret.type = _ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlType */ .C.ctRadioAndCheckBox;
59769
- ret.name = "";
59766
+ //ret.name = "";
59770
59767
  ret.text = "";
59771
- ret.title = "复选框";
59768
+ //ret.title = "复选框";
59772
59769
  // ret.checkCascadeObject = "";
59773
59770
  // ret.unCheckCascadeObject = "";
59774
59771
  ret.controlStyle = "CheckBox";
@@ -60074,7 +60071,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60074
60071
  ret.NumericValue = this.numericValue !== undefined ? this.numericValue : ret.NumericValue;
60075
60072
  ret.Id = this.id !== undefined ? this.id : ret.Id;
60076
60073
  ret.Type = this.type !== undefined ? this.type : ret.Type;
60077
- ret.Title = this.title !== undefined ? this.title : ret.Title;
60074
+ //ret.Title = this.title !== undefined ? this.title : ret.Title;
60078
60075
  ret.Text = this.text !== undefined ? this.text : ret.Text;
60079
60076
  // ret.CheckCascadeObject =
60080
60077
  // this.checkCascadeObject !== undefined
@@ -60084,7 +60081,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60084
60081
  // this.unCheckCascadeObject !== undefined
60085
60082
  // ? this.unCheckCascadeObject
60086
60083
  // : ret.UnCheckCascadeObject;
60087
- ret.Name = this.name !== undefined ? this.name : ret.Name;
60084
+ //ret.Name = this.name !== undefined ? this.name : ret.Name;
60088
60085
  ret.ReadType = this.readType !== undefined ? this.readType : ret.ReadType;
60089
60086
  ret.IsEditText = this.isEditText !== undefined ? this.isEditText : ret.IsEditText;
60090
60087
  ret.AppendText = this.appendText !== undefined ? this.appendText : ret.AppendText;
@@ -60116,9 +60113,13 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60116
60113
  this.styleIndex = 0;
60117
60114
  }
60118
60115
  var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
60119
- var dNode = new _editor_draw_drawNode_DrawRadioAndCheckBox__WEBPACK_IMPORTED_MODULE_15__/* .DrawRadioAndCheckBox */ .e(this._hoEditorFactoryID, this._rootPath, this, 0, this.controlStyle, this.name, this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle);
60116
+ var dNode = new _editor_draw_drawNode_DrawRadioAndCheckBox__WEBPACK_IMPORTED_MODULE_15__/* .DrawRadioAndCheckBox */ .e(this._hoEditorFactoryID, this._rootPath, this, 0, this.controlStyle,
60117
+ //this.name,
60118
+ this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle);
60120
60119
  this._drawNodes.push(dNode);
60121
- var dNodePrint = new _editor_draw_drawNode_DrawRadioAndCheckBoxPrint__WEBPACK_IMPORTED_MODULE_16__/* .DrawRadioAndCheckBoxPrint */ .w(this._hoEditorFactoryID, this._rootPath, this, 0, this.controlStyle, this.name, this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle);
60120
+ var dNodePrint = new _editor_draw_drawNode_DrawRadioAndCheckBoxPrint__WEBPACK_IMPORTED_MODULE_16__/* .DrawRadioAndCheckBoxPrint */ .w(this._hoEditorFactoryID, this._rootPath, this, 0, this.controlStyle,
60121
+ //this.name,
60122
+ this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle);
60122
60123
  this._drawNodes.push(dNodePrint);
60123
60124
  }
60124
60125
  }, {
@@ -60185,9 +60186,9 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60185
60186
  }, {
60186
60187
  key: "node2Json",
60187
60188
  value: function node2Json(range, isCopy, type) {
60188
- var name = "";
60189
- if (this.controlStyle === "RadioBox") name = "RB";
60190
- if (this.controlStyle === "CheckBox") name = "CB";
60189
+ //let name = "";
60190
+ //if (this.controlStyle === "RadioBox") name = "RB";
60191
+ //if (this.controlStyle === "CheckBox") name = "CB";
60191
60192
  if (isCopy) {
60192
60193
  return {
60193
60194
  nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq[_BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq.ntControl],
@@ -60195,9 +60196,9 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60195
60196
  controlStyle: this.controlStyle,
60196
60197
  id: this.id,
60197
60198
  dataId: this.dataId,
60198
- name: this.name,
60199
+ //name: this.name,
60199
60200
  text: this.text,
60200
- title: this.title,
60201
+ //title: this.title,
60201
60202
  styleIndex: this.styleIndex,
60202
60203
  //checkCascadeObject: this.checkCascadeObject,
60203
60204
  //unCheckCascadeObject: this.unCheckCascadeObject,
@@ -60229,28 +60230,62 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60229
60230
  id: this.id,
60230
60231
  parentId: parentid,
60231
60232
  dataId: this.dataId,
60232
- name: this.name,
60233
+ //name: this.name,
60233
60234
  text: this.text,
60234
- title: this.title,
60235
+ //title: this.title,
60235
60236
  styleIndex: this.styleIndex,
60236
60237
  //checkCascadeObject: this.checkCascadeObject,
60237
60238
  //unCheckCascadeObject: this.unCheckCascadeObject,
60238
- tipText: this.tipText,
60239
- isAllowDelete: this.isAllowDelete,
60239
+ //tipText: this.tipText,
60240
+ //isAllowDelete: this.isAllowDelete,
60240
60241
  groupName: this.groupName,
60241
60242
  isSelected: this.isSelected,
60242
- boxAlign: this.boxAlign,
60243
- numericValue: this.numericValue,
60244
- additionalData: this.additionalData,
60245
- isTransToText: this.isTransToText,
60246
- groupHasOptions: this.groupHasOptions,
60247
- isEditText: this.isEditText,
60248
- appendText: this.appendText,
60249
- readType: this.readType,
60250
- associatedElement: this.associatedElement,
60243
+ //boxAlign: this.boxAlign,
60244
+ //numericValue: this.numericValue,
60245
+ //additionalData: this.additionalData,
60246
+ //isTransToText: this.isTransToText,
60247
+ //groupHasOptions: this.groupHasOptions,
60248
+ //isEditText: this.isEditText,
60249
+ //appendText: this.appendText,
60250
+ readType: this.readType
60251
+ //associatedElement: this.associatedElement,
60251
60252
  //bandDataSource: this.bandDataSource,
60252
- remark: this.remark
60253
+ //remark: this.remark,
60253
60254
  };
60255
+
60256
+ if (this.tipText) {
60257
+ retObj.tipText = this.tipText;
60258
+ }
60259
+ if (this.isAllowDelete) {
60260
+ retObj.isAllowDelete = this.isAllowDelete;
60261
+ }
60262
+ if (!this.boxAlign) {
60263
+ retObj.boxAlign = this.boxAlign;
60264
+ }
60265
+ if (this.numericValue && this.numericValue !== "0") {
60266
+ retObj.numericValue = this.numericValue;
60267
+ }
60268
+ if (this.additionalData) {
60269
+ retObj.additionalData = this.additionalData;
60270
+ }
60271
+ if (this.isTransToText) {
60272
+ retObj.isTransToText = this.isTransToText;
60273
+ }
60274
+ if (this.groupHasOptions) {
60275
+ retObj.groupHasOptions = this.groupHasOptions;
60276
+ }
60277
+ if (this.isEditText) {
60278
+ retObj.isEditText = this.isEditText;
60279
+ }
60280
+ if (this.appendText) {
60281
+ retObj.appendText = this.appendText;
60282
+ }
60283
+ if (this.associatedElement) {
60284
+ retObj.associatedElement = this.associatedElement;
60285
+ }
60286
+ if (this.remark) {
60287
+ retObj.remark = this.remark;
60288
+ }
60254
60289
  var paga = {
60255
60290
  "RadioAndCheckBoxNode": retObj
60256
60291
  };
@@ -60286,11 +60321,11 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
60286
60321
  }
60287
60322
  json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
60288
60323
  json.isSelected = !json.isSelected ? false : json.isSelected.text != undefined ? json.isSelected.text : json.isSelected;
60289
- json.boxAlign = !json.boxAlign ? false : json.boxAlign;
60324
+ json.boxAlign = json.boxAlign === undefined ? true : json.boxAlign;
60290
60325
  json.isEditText = !json.isEditText ? false : json.isEditText;
60291
60326
  json.isTransToText = !json.isTransToText ? false : json.isTransToText;
60292
60327
  json.groupHasOptions = !json.groupHasOptions ? false : json.groupHasOptions;
60293
- json.numericValue = Number(json.numericValue);
60328
+ json.numericValue = json.numericValue === undefined ? '0' : Number(json.numericValue);
60294
60329
  var styleIndex = Number(json.styleIndex);
60295
60330
  json.type = parseInt(_ControlNode__WEBPACK_IMPORTED_MODULE_21__/* .ControlType */ .C[json.type]);
60296
60331
  json.readType = json.readType ? Number(json.readType) : -1;
@@ -61952,10 +61987,13 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
61952
61987
  nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_34__/* .NodeType */ .Jq[this.nodeType],
61953
61988
  text: this._formulaStr,
61954
61989
  styleIndex: this.styleIndex,
61955
- hideZero: this._hideZero,
61990
+ //hideZero: this._hideZero,
61956
61991
  formularType: this.formularType,
61957
61992
  customProperty: this.customProperty
61958
61993
  };
61994
+ if (!this.hideZero) {
61995
+ retObj.hideZero = this.hideZero;
61996
+ }
61959
61997
  if (isCopy) {
61960
61998
  return retObj;
61961
61999
  }
@@ -62898,7 +62936,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
62898
62936
  key: "json2Node",
62899
62937
  value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
62900
62938
  var styleIndex = Number(json.styleIndex);
62901
- var hideZero = !json.hideZero ? false : json.hideZero;
62939
+ var hideZero = json.hideZero === undefined ? true : json.hideZero;
62902
62940
  var formularType = FormularType.ftSum;
62903
62941
  if (json.formularType) {
62904
62942
  formularType = Number(json.formularType);
@@ -62958,10 +62996,10 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
62958
62996
  /* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_19__);
62959
62997
  /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(39714);
62960
62998
  /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_20__);
62961
- /* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(23157);
62962
- /* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_21__);
62963
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(9653);
62964
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_22__);
62999
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(9653);
63000
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_21__);
63001
+ /* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(23157);
63002
+ /* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_22__);
62965
63003
  /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(66992);
62966
63004
  /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_23__);
62967
63005
  /* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(51532);
@@ -62983,9 +63021,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
62983
63021
  /* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(32629);
62984
63022
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(74089);
62985
63023
  /* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(51760);
62986
- /* harmony import */ var _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(91404);
62987
- /* harmony import */ var _editor_draw_drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(15694);
62988
-
63024
+ /* harmony import */ var _editor_draw_drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(15694);
62989
63025
 
62990
63026
 
62991
63027
 
@@ -64490,26 +64526,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
64490
64526
  cols = pto.col;
64491
64527
  if (to.colSpan > 1) {
64492
64528
  cols = pto.col + to.colSpan - 1;
64493
- } //else {
64494
- // const tableProperty = {
64495
- // canAddRow: this.tableProperty.canAddRow,
64496
- // canAddCol: this.tableProperty.canAddCol,
64497
- // canAdjustRowHeight: this.tableProperty.canAdjustRowHeight,
64498
- // canAdjustRowWidth: this.tableProperty.canAdjustRowWidth,
64499
- // canDeleteRow: this.tableProperty.canDeleteRow,
64500
- // canDeleteTable: this.tableProperty.canDeleteTable,
64501
- // continuePrintBorders: this.tableProperty.continuePrintBorders,
64502
- // customProperties: this.tableProperty.customProperties,
64503
- // layoutFullLine: this.tableProperty.layoutFullLine,
64504
- // tightLineSpace: this.tableProperty.tightLineSpace,
64505
- // isAutoChangeLine: this.tableProperty.isAutoChangeLine,
64506
- // autoLineHeight: this.tableProperty.autoLineHeight,
64507
- // fixedOnePage: this.tableProperty.fixedOnePage,
64508
- // isUsePopEdit: this.tableProperty.isUsePopEdit,
64509
- // isSignLock: this.tableProperty.isSignLock,
64510
- // isLock: this.tableProperty.isLock
64511
- // };
64512
- //}
64529
+ }
64513
64530
  }
64514
64531
  //for (let i = pfrom.row; i <= this.rowInfos.length-1; i++) {
64515
64532
  for (var i = pfrom.row; i <= rows; i++) {
@@ -64539,24 +64556,23 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
64539
64556
  if (rowInfo.rowProperty.customProperties.length === 0) {
64540
64557
  delete rowPropertyJson["customProperties"];
64541
64558
  }
64542
- }
64543
- // else if (keysName[k] === "dataSource") {
64544
- // if (rowInfo.rowProperty.dataSource === undefined) {
64545
- // delete rowPropertyJson["dataSource"];
64546
- // }
64547
- // }
64548
- else {
64559
+ } else {
64549
64560
  if (rowPropertyJson[keysName[k]] === defaultRowPropJson[keysName[k]]) {
64550
64561
  delete rowPropertyJson[keysName[k]];
64551
64562
  }
64552
64563
  }
64553
64564
  }
64554
- rowInfosArray.push({
64555
- rowHeight: rowInfo.rowHeight,
64565
+ var rowProp = {
64566
+ rowHeight: rowInfo.rowHeight
64556
64567
  //heightFixed: rowInfo.heightFixed,
64557
64568
  //rowBaseDTop: rowInfo.rowBaseDTop,
64558
- rowProperty: rowPropertyJson
64559
- });
64569
+ //rowProperty: rowPropertyJson
64570
+ };
64571
+
64572
+ if (Object.keys(rowPropertyJson).length > 0) {
64573
+ rowProp.rowProperty = rowPropertyJson;
64574
+ }
64575
+ rowInfosArray.push(rowProp);
64560
64576
  }
64561
64577
  var defaultColProp = {
64562
64578
  editorProperty: _TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .EditorProperty */ .YS[_TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .EditorProperty */ .YS.None],
@@ -64596,17 +64612,31 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
64596
64612
  };
64597
64613
  var colPropertyJson = JSON.parse(JSON.stringify(colProperty));
64598
64614
  var colKeysName = Object.keys(defaultColProp);
64615
+ if (colInfo.colProperty.customProperties.length === 0 || colInfo.colProperty.customProperties[0].length === 0) {
64616
+ delete colPropertyJson["customProperties"];
64617
+ }
64599
64618
  for (var _k = 0; _k < colKeysName.length; _k++) {
64600
64619
  if (colPropertyJson[colKeysName[_k]] === defaultColPropJson[colKeysName[_k]]) {
64601
64620
  delete colPropertyJson[colKeysName[_k]];
64602
64621
  }
64603
64622
  }
64604
- colInfosArray.push({
64605
- colWidth: colInfo.colWidth,
64606
- widthFixed: colInfo.widthFixed,
64607
- dLeft: colInfo.dLeft,
64608
- colProperty: colPropertyJson
64609
- });
64623
+ var cinfo = {
64624
+ colWidth: colInfo.colWidth
64625
+ //widthFixed: colInfo.widthFixed,
64626
+ //dLeft: colInfo.dLeft,
64627
+ //colProperty: colPropertyJson
64628
+ };
64629
+
64630
+ if (colInfo.widthFixed) {
64631
+ cinfo.widthFixed = colInfo.widthFixed;
64632
+ }
64633
+ if (colInfo.dLeft > 0) {
64634
+ cinfo.dLeft = colInfo.dLeft;
64635
+ }
64636
+ if (Object.keys(colPropertyJson).length > 0) {
64637
+ cinfo.colProperty = colPropertyJson;
64638
+ }
64639
+ colInfosArray.push(cinfo);
64610
64640
  }
64611
64641
  var defaultCellProp = {
64612
64642
  //title: "",
@@ -64623,7 +64653,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
64623
64653
  customProperties: "",
64624
64654
  //lightCellBorders: false,
64625
64655
  //dataSource: "",
64626
- backColor: "transparent",
64656
+ backColor: "#FFFFFF",
64627
64657
  editorProperty: _TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .EditorProperty */ .YS.None,
64628
64658
  downListProperty: "",
64629
64659
  dateTimeProperty: "",
@@ -64719,79 +64749,114 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
64719
64749
  }
64720
64750
  }
64721
64751
  }
64752
+ //const rowInfos = { defaultRowProperty: defaultRowProp, item: rowInfosArray };
64753
+ //const colInfos = { defaultColProperty: defaultColProp, item: colInfosArray };
64754
+ //const childNodes = { defaultCellProperty: defaultCellProp, item: rowArrays };
64722
64755
  var rowInfos = {
64723
- defaultRowProperty: defaultRowProp,
64724
64756
  item: rowInfosArray
64725
64757
  };
64726
64758
  var colInfos = {
64727
- defaultColProperty: defaultColProp,
64728
64759
  item: colInfosArray
64729
64760
  };
64730
64761
  var childNodes = {
64731
- defaultCellProperty: defaultCellProp,
64732
64762
  item: rowArrays
64733
64763
  };
64734
64764
  var customProperties = {
64735
64765
  customProperty: Array(this.tableProperty.customProperties)
64736
64766
  };
64737
- // const childNodes = [...rowArrays];
64738
- //const rowCount = Math.abs(pfrom.row - pto.row) + 1;
64739
- //const colCount = Math.abs(pfrom.col - pto.col) + 1;
64740
- //const rowCount = Math.abs(pfrom.row - rowInfos.item.length);
64741
- //const colCount = Math.abs(pfrom.col - colInfos.item.length);
64742
64767
  var rowCount = rowInfos.item.length;
64743
64768
  var colCount = colInfos.item.length;
64744
- var tableProperty = {
64745
- canAddRow: this.tableProperty.canAddRow,
64746
- canAddCol: this.tableProperty.canAddCol,
64747
- canAdjustRowHeight: this.tableProperty.canAdjustRowHeight,
64748
- canAdjustRowWidth: this.tableProperty.canAdjustRowWidth,
64749
- canDeleteRow: this.tableProperty.canDeleteRow,
64750
- canDeleteTable: this.tableProperty.canDeleteTable,
64751
- continuePrintBorders: this.tableProperty.continuePrintBorders,
64752
- //customProperties: this.tableProperty.customProperties,
64753
- customProperties: customProperties,
64754
- layoutFullLine: this.tableProperty.layoutFullLine,
64755
- tightLineSpace: this.tableProperty.tightLineSpace,
64756
- isAutoChangeLine: this.tableProperty.isAutoChangeLine,
64757
- autoLineHeight: this.tableProperty.autoLineHeight,
64758
- fixedOnePage: this.tableProperty.fixedOnePage,
64759
- isUsePopEdit: this.tableProperty.isUsePopEdit,
64760
- isSignLock: this.tableProperty.isSignLock,
64761
- isLock: this.tableProperty.isLock
64762
- };
64769
+ // const tableProperty = {
64770
+ // canAddRow: this.tableProperty.canAddRow,
64771
+ // canAddCol: this.tableProperty.canAddCol,
64772
+ // canAdjustRowHeight: this.tableProperty.canAdjustRowHeight,
64773
+ // canAdjustRowWidth: this.tableProperty.canAdjustRowWidth,
64774
+ // canDeleteRow: this.tableProperty.canDeleteRow,
64775
+ // canDeleteTable: this.tableProperty.canDeleteTable,
64776
+ // continuePrintBorders: this.tableProperty.continuePrintBorders,
64777
+ // customProperties,
64778
+ // layoutFullLine: this.tableProperty.layoutFullLine,
64779
+ // tightLineSpace: this.tableProperty.tightLineSpace,
64780
+ // isAutoChangeLine: this.tableProperty.isAutoChangeLine,
64781
+ // autoLineHeight: this.tableProperty.autoLineHeight,
64782
+ // fixedOnePage: this.tableProperty.fixedOnePage,
64783
+ // isUsePopEdit: this.tableProperty.isUsePopEdit,
64784
+ // isSignLock: this.tableProperty.isSignLock,
64785
+ // isLock: this.tableProperty.isLock,
64786
+ // };
64787
+ var tableProperty = {};
64788
+ if (this.tableProperty.canAdjustRowHeight) {
64789
+ tableProperty.canAdjustRowHeight = this.tableProperty.canAdjustRowHeight;
64790
+ }
64791
+ if (this.tableProperty.canAdjustRowWidth) {
64792
+ tableProperty.canAdjustRowWidth = this.tableProperty.canAdjustRowWidth;
64793
+ }
64794
+ if (!this.tableProperty.canAddRow) {
64795
+ tableProperty.canAddRow = this.tableProperty.canAddRow;
64796
+ }
64797
+ if (this.tableProperty.canAddCol === false) {
64798
+ tableProperty.canAddCol = this.tableProperty.canAddCol;
64799
+ }
64800
+ if (!this.tableProperty.canDeleteRow) {
64801
+ tableProperty.canDeleteRow = this.tableProperty.canDeleteRow;
64802
+ }
64803
+ if (!this.tableProperty.canDeleteTable) {
64804
+ tableProperty.canDeleteTable = this.tableProperty.canDeleteTable;
64805
+ }
64806
+ if (this.tableProperty.continuePrintBorders) {
64807
+ tableProperty.continuePrintBorders = this.tableProperty.continuePrintBorders;
64808
+ }
64809
+ if (this.tableProperty.isAutoChangeLine) {
64810
+ tableProperty.isAutoChangeLine = this.tableProperty.isAutoChangeLine;
64811
+ }
64812
+ if (this.tableProperty.autoLineHeight.toString() !== '0.53') {
64813
+ tableProperty.autoLineHeight = Number(this.tableProperty.autoLineHeight);
64814
+ }
64815
+ if (this.tableProperty.fixedOnePage) {
64816
+ tableProperty.fixedOnePage = this.tableProperty.fixedOnePage;
64817
+ }
64818
+ if (this.tableProperty.isUsePopEdit) {
64819
+ tableProperty.isUsePopEdit = this.tableProperty.isUsePopEdit;
64820
+ }
64821
+ if (this.tableProperty.isSignLock) {
64822
+ tableProperty.isSignLock = this.tableProperty.isSignLock;
64823
+ }
64824
+ if (this.tableProperty.isLock) {
64825
+ tableProperty.isLock = this.tableProperty.isLock;
64826
+ }
64827
+ if (this.tableProperty.customProperties.length > 0 && this.tableProperty.customProperties[0]) {
64828
+ tableProperty.customProperties = customProperties;
64829
+ }
64763
64830
  var retJson = {
64764
64831
  nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_28__/* .NodeType */ .Jq[this.nodeType],
64765
64832
  rowCount: rowCount,
64766
64833
  colCount: colCount,
64767
- borderVisible: this.borderVisible.toString(),
64768
- borderWidth: this._borderWidth,
64769
- headerRowCount: this.headerRowCount,
64770
- tableProperty: tableProperty,
64834
+ //borderVisible: this.borderVisible.toString(),
64835
+ //borderWidth: this._borderWidth,
64836
+ //headerRowCount: this.headerRowCount,
64837
+ //tableProperty: tableProperty,
64771
64838
  rowInfos: rowInfos,
64772
64839
  colInfos: colInfos,
64773
64840
  childNodes: childNodes
64774
64841
  };
64842
+ if (this.borderVisible.toString() !== "true,true,true,true") {
64843
+ retJson.borderVisible = this.borderVisible.toString();
64844
+ }
64845
+ if (this.borderWidth !== 1) {
64846
+ retJson.borderWidth = this.borderWidth;
64847
+ }
64848
+ if (this.headerRowCount !== 0) {
64849
+ retJson.headerRowCount = this.headerRowCount;
64850
+ }
64851
+ if (Object.keys(tableProperty).length > 0) {
64852
+ retJson.tableProperty = tableProperty;
64853
+ }
64775
64854
  if (isCopy) {
64776
64855
  return retJson;
64777
64856
  }
64778
64857
  return {
64779
64858
  "TableNode": retJson
64780
64859
  };
64781
- // return {
64782
- // nodeType: NodeType[this.nodeType],
64783
- // rowCount, //: this.rowCount,
64784
- // colCount, //: this.colCount,
64785
- // borderVisible: this.borderVisible.toString(),
64786
- // borderWidth: this._borderWidth,
64787
- // headerRowCount: this.headerRowCount,
64788
- // tableProperty: tableProperty,
64789
- // rowInfos,
64790
- // colInfos,
64791
- // //paragraphNode: this._paragraphNode.node2Json(),
64792
- // // cellNodes: cellNodes,
64793
- // childNodes,
64794
- // };
64795
64860
  }
64796
64861
  }, {
64797
64862
  key: "calcRowSpanColsSpan",
@@ -64910,7 +64975,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
64910
64975
  var mainArea = hoEditorFactory.drawPageTree.getMainRootArea(this.drawTable.drawPageTables[0]);
64911
64976
  if (mainArea) {
64912
64977
  var drawTop = this.drawTable.drawPageTables[0].y;
64913
- if (mainArea.contains(this.drawTable.drawPageTables[0]) && this.drawTable.drawPageTables[0] instanceof _editor_draw_drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_41__/* .DrawPageTable */ .ox && this.drawTable.drawPageTables[0].table.drawTable.drawPageTables.indexOf(this.drawTable.drawPageTables[0]) > 0) {
64978
+ if (mainArea.contains(this.drawTable.drawPageTables[0]) && this.drawTable.drawPageTables[0] instanceof _editor_draw_drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_40__/* .DrawPageTable */ .ox && this.drawTable.drawPageTables[0].table.drawTable.drawPageTables.indexOf(this.drawTable.drawPageTables[0]) > 0) {
64914
64979
  drawTop = 0;
64915
64980
  }
64916
64981
  hoEditorFactory.drawPageTree.update(mainArea, dpos[0].drawRoots, drawTop, dpos[0].index, dpos[0].index);
@@ -65428,29 +65493,31 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65428
65493
  key: "json2Node",
65429
65494
  value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
65430
65495
  json = this.transType(json);
65431
- var tableProperty = json.tableProperty;
65432
- tableProperty.customProperties = Array.isArray(tableProperty.customProperties.customProperty) ? tableProperty.customProperties.customProperty : Array(tableProperty.customProperties.customProperty);
65433
- tableProperty.tightLineSpace = tableProperty["tightLineSpace"] || false;
65434
- tableProperty.layoutFullLinisAutoChangeLineidth = tableProperty["canAdjustRowWidth"] || false;
65435
- tableProperty.canAdjustRowHeight = tableProperty["canAdjustRowHeight"] || false;
65436
- tableProperty.fixedOnePage = tableProperty["fixedOnePage"] || false;
65437
- tableProperty.isUsePopEdit = tableProperty["isUsePopEdit"] || false;
65438
- tableProperty.isAutoChangeLine = tableProperty["isAutoChangeLine"] || false;
65439
- tableProperty.autoLineHeight = tableProperty["autoLineHeight"] || 0.53;
65440
- tableProperty.autoLineHeightPx = _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_40__/* .UnitConvert */ .P.instance.mmConversionPx(parseFloat(tableProperty.autoLineHeight) * 10, false);
65441
- tableProperty.isSignLock = tableProperty["isSignLock"] || false;
65442
- tableProperty.isLock = tableProperty["isLock"] || false;
65443
- // console.log("json2node", 1);
65496
+ var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .TableProperty */ .vE("");
65497
+ if (json.tableProperty) {
65498
+ tableProperty.canAdjustRowHeight = json.tableProperty["canAdjustRowHeight"] || false;
65499
+ tableProperty.canAdjustRowWidth = json.tableProperty["canAdjustRowWidth"] || false;
65500
+ tableProperty.canAddRow = json.tableProperty["canAddRow"] || true;
65501
+ tableProperty.canAddCol = json.tableProperty["canAddCol"] || true;
65502
+ tableProperty.canDeleteRow = json.tableProperty["canDeleteRow"] || true;
65503
+ tableProperty.canDeleteTable = json.tableProperty["canDeleteTable"] || true;
65504
+ tableProperty.continuePrintBorders = json.tableProperty["continuePrintBorders"] || false;
65505
+ tableProperty.isAutoChangeLine = json.tableProperty["isAutoChangeLine"] || false;
65506
+ tableProperty.autoLineHeight = json.tableProperty["autoLineHeight"] ? Number(json.tableProperty["autoLineHeight"]) : 0.53;
65507
+ tableProperty.fixedOnePage = json.tableProperty["fixedOnePage"] || false;
65508
+ tableProperty.isUsePopEdit = json.tableProperty["isUsePopEdit"] || false;
65509
+ tableProperty.isSignLock = json.tableProperty["isSignLock"] || false;
65510
+ tableProperty.isLock = json.tableProperty["isLock"] || false;
65511
+ tableProperty.customProperties = json.tableProperty.customProperties ? Array.isArray(json.tableProperty.customProperties.customProperty) ? json.tableProperty.customProperties.customProperty : Array(json.tableProperty.customProperties.customProperty) : "";
65512
+ }
65444
65513
  var tableNode = new TableNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, Number(json.rowCount), Number(json.colCount), tableProperty);
65445
- // console.log("json2node", 2);
65446
65514
  tableNode.rowCount = Number(json.rowCount);
65447
65515
  tableNode.colCount = Number(json.colCount);
65448
- tableNode.borderVisible = json.borderVisible;
65449
- tableNode._borderWidth = Number(json.borderWidth);
65450
- tableNode.headerRowCount = Number(json.headerRowCount);
65451
- // console.log("json2node", 3);
65516
+ tableNode.borderVisible = json.borderVisible === undefined ? "true,true,true,true" : json.borderVisible;
65517
+ tableNode._borderWidth = json.borderWidth === undefined ? 1 : Number(json.borderWidth);
65518
+ tableNode.headerRowCount = json.headerRowCount === undefined ? 0 : Number(json.headerRowCount);
65452
65519
  //行高处理
65453
- var defaultRowProp = json.rowInfos.defaultRowProperty;
65520
+ //const defaultRowProp = json.rowInfos.defaultRowProperty;
65454
65521
  var rowInfosArr = json.rowInfos.item;
65455
65522
  if (!rowInfosArr.length) {
65456
65523
  rowInfosArr = Array(json.rowInfos.item);
@@ -65458,9 +65525,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65458
65525
  var _loop = function _loop() {
65459
65526
  var rowInfo = rowInfosArr[i];
65460
65527
  tableNode.rowInfos[i].rowHeight = Number(rowInfo.rowHeight);
65461
- //rowInfo.heightFixed = rowInfo["heightFixed"] || false;
65462
- //tableNode.rowInfos[i].heightFixed = rowInfo.heightFixed;
65463
- //tableNode.rowInfos[i].rowBaseDTop = rowInfo.rowBaseDTop;
65464
65528
  var rowProperty = rowInfo.rowProperty;
65465
65529
  var assignvalue = function assignvalue(target, source) {
65466
65530
  Object.keys(source).forEach(function (value) {
@@ -65493,33 +65557,15 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65493
65557
  }
65494
65558
  });
65495
65559
  };
65496
- assignvalue(tableNode.rowInfos[i].rowProperty, rowProperty);
65497
- // tableNode.rowInfos[i].rowProperty.tabKeyInsNewLine =
65498
- // rowProperty["tabKeyInsNewLine"] || false;
65499
- // tableNode.rowInfos[i].rowProperty.printCellBg =
65500
- // rowProperty["printCellBg"] || false;
65501
- // tableNode.rowInfos[i].rowProperty.printCellBorders =
65502
- // rowProperty["printCellBorders"] || false;
65503
- // tableNode.rowInfos[i].rowProperty.forcedPageBreak =
65504
- // rowProperty["forcedPageBreak"] || false;
65505
- // tableNode.rowInfos[i].rowProperty.sameLineCanAcrossPages =
65506
- // rowProperty["sameLineCanAcrossPages"] || false;
65507
- // tableNode.rowInfos[i].rowProperty.repeatAsTitleAtPageTop =
65508
- // rowProperty["repeatAsTitleAtPageTop"] || false;
65509
- // tableNode.rowInfos[i].rowProperty.isAutoRaiseHeight =
65510
- // rowProperty["isAutoRaiseHeight"] || false;
65511
- // tableNode.rowInfos[i].rowProperty.isSpecifyHeight =
65512
- // rowProperty["isSpecifyHeight"] || false;
65513
- // tableNode.rowInfos[i].rowProperty.rowHeight = Number(
65514
- // rowProperty["rowHeight"]
65515
- // );
65560
+ if (rowProperty && Object.keys(rowProperty).length > 0) {
65561
+ assignvalue(tableNode.rowInfos[i].rowProperty, rowProperty);
65562
+ }
65516
65563
  };
65517
65564
  for (var i = 0; i < rowInfosArr.length; i++) {
65518
65565
  _loop();
65519
65566
  }
65520
- // console.log("json2node", 4);
65521
65567
  //列宽处理
65522
- var defaultColProp = json.colInfos.defaultColProperty;
65568
+ //const defaultColProp = json.colInfos.defaultColProperty;
65523
65569
  var colInfosArr = json.colInfos.item;
65524
65570
  if (!colInfosArr.length) {
65525
65571
  colInfosArr = Array(json.colInfos.item);
@@ -65528,18 +65574,18 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65528
65574
  var colInfo = colInfosArr[_i6];
65529
65575
  tableNode.colInfos[_i6].colWidth = Number(colInfo.colWidth);
65530
65576
  tableNode.colInfos[_i6].widthFixed = colInfo["widthFixed"] || false;
65531
- tableNode.colInfos[_i6].dLeft = Number(colInfo.dLeft);
65577
+ tableNode.colInfos[_i6].dLeft = colInfo.dLeft === undefined ? 0 : Number(colInfo.dLeft);
65532
65578
  var colProperty = colInfo.colProperty;
65533
65579
  if (colProperty) {
65534
65580
  if (colProperty.align) {
65535
65581
  tableNode.colInfos[_i6].colProperty.align = Number(_TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .VAlign */ .TR[colProperty.align]);
65536
65582
  } else {
65537
- tableNode.colInfos[_i6].colProperty.align = Number(_TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .VAlign */ .TR[defaultColProp.align]);
65583
+ tableNode.colInfos[_i6].colProperty.align = _TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .VAlign */ .TR.vatop;
65538
65584
  }
65539
65585
  if (colProperty.editorProperty) {
65540
65586
  tableNode.colInfos[_i6].colProperty.editorProperty = Number(_TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .EditorProperty */ .YS[colProperty.editorProperty]);
65541
65587
  } else {
65542
- tableNode.colInfos[_i6].colProperty.editorProperty = Number(_TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .EditorProperty */ .YS[defaultColProp.editorProperty]);
65588
+ tableNode.colInfos[_i6].colProperty.editorProperty = _TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .EditorProperty */ .YS.None;
65543
65589
  }
65544
65590
  tableNode.colInfos[_i6].colProperty.width = colProperty.width ? Number(colProperty.width) : 0;
65545
65591
  tableNode.colInfos[_i6].colProperty.isSpecifyWidth = colProperty.isSpecifyWidth;
@@ -65566,13 +65612,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65566
65612
  }
65567
65613
  }
65568
65614
  }
65569
- // console.log("json2node", 5);
65570
65615
  //单元格处理
65571
65616
  var rows = tableNode.rows;
65572
- // let cellNodes = json.childNodes;
65573
- // if (cellNodes.length === undefined) {
65574
- // cellNodes = Array(cellNodes);
65575
- // }
65576
65617
  var transArr = function transArr(info) {
65577
65618
  var row = new Array();
65578
65619
  if (!Array.isArray(info.childNodes.item)) {
@@ -65613,8 +65654,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65613
65654
  return cells;
65614
65655
  };
65615
65656
  var cellNodes = transArr(json); //table.childNodes.childNodes
65616
- // console.log("json2node", 7);
65617
- // console.log(cellNodes);
65618
65657
  var existMap = new Map();
65619
65658
  var rowsMap = new Map();
65620
65659
  for (var _i7 = 0; _i7 < cellNodes.length; _i7++) {
@@ -65625,7 +65664,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65625
65664
  rowsMap.set(rowNo, _aRow);
65626
65665
  }
65627
65666
  rowsMap.delete(NaN);
65628
- var defaultCellProperty = json.childNodes.defaultCellProperty;
65667
+ //const defaultCellProperty = json.childNodes.defaultCellProperty;
65629
65668
  var aRow;
65630
65669
  for (var s = 0; s < cellNodes.length; s++) {
65631
65670
  var _node = cellNodes[s];
@@ -65633,14 +65672,12 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65633
65672
  var _rowNo = parseInt(_node.rowNo);
65634
65673
  var colNo = parseInt(_node.colNo);
65635
65674
  existMap.set(_rowNo + "-" + colNo, 1);
65636
- aRow = _CellNode__WEBPACK_IMPORTED_MODULE_27__/* .CellNode */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign);
65675
+ aRow = _CellNode__WEBPACK_IMPORTED_MODULE_27__/* .CellNode */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows,
65676
+ //defaultCellProperty,
65677
+ isPaste, isClearSign);
65637
65678
  }
65638
65679
  }
65639
- // console.log("json2node", 8);
65640
- //console.log(existMap);
65641
65680
  //删除掉不存在的合并节点
65642
- // for (let x = 0; x < tableNode.rows.length; x++) {
65643
- //for (let y = 0; y < tableNode.rows[x].length; y++) {
65644
65681
  for (var x = 0; x < tableNode._rowCount; x++) {
65645
65682
  for (var y = 0; y < tableNode._colCount; y++) {
65646
65683
  if (!existMap.get(x + "-" + y)) {
@@ -65827,7 +65864,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
65827
65864
  /*
65828
65865
  * @Author: your name
65829
65866
  * @Date: 2020-11-03 15:17:54
65830
- * @LastEditTime: 2023-08-25 11:39:25
65867
+ * @LastEditTime: 2023-09-14 16:25:00
65831
65868
  * @LastEditors: liyanan 2441631434@qq.com
65832
65869
  * @Description: In User Settings Edit
65833
65870
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
@@ -66279,8 +66316,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
66279
66316
  //允许被删除
66280
66317
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_enableGlobalColor", true);
66281
66318
  //启用全局文本颜色
66282
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_defaultValue", '');
66283
- //默认值
66319
+ //private _defaultValue = ''; //默认值
66284
66320
  //private _importStyle!: ImportStyle;//输入样式
66285
66321
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_downListProperty", void 0);
66286
66322
  //下拉列表属性
@@ -66598,16 +66634,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
66598
66634
  this._enableGlobalColor = value;
66599
66635
  }
66600
66636
  }
66601
- }, {
66602
- key: "defaultValue",
66603
- get: function get() {
66604
- return this._defaultValue;
66605
- },
66606
- set: function set(value) {
66607
- if (this._defaultValue !== value) {
66608
- this._defaultValue = value;
66609
- }
66610
- }
66637
+ // get defaultValue(): string {
66638
+ // return this._defaultValue;
66639
+ // }
66640
+ // set defaultValue(value: string) {
66641
+ // if (this._defaultValue !== value) {
66642
+ // this._defaultValue = value;
66643
+ // }
66644
+ // }
66611
66645
  // get importStyle(): ImportStyle {
66612
66646
  // return this._importStyle;
66613
66647
  // }
@@ -67364,6 +67398,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
67364
67398
  value: function _delete(operType) {
67365
67399
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(this.hoEditorFactoryID);
67366
67400
  if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_32__/* .PaintState */ .Dh.psDesign || this.isAllowDelete) {
67401
+ var record = hoEditorFactory.docTree.elementChangeRecords.get(this.id + "|" + this.dataId);
67402
+ if (record && record.indexOf("add") >= 0) {
67403
+ hoEditorFactory.docTree.elementChangeRecords.delete(this.id + "|" + this.dataId);
67404
+ } else {
67405
+ hoEditorFactory.docTree.elementChangeRecords.set(this.id + "|" + this.dataId, "delete");
67406
+ }
67367
67407
  return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
67368
67408
  } else {
67369
67409
  if (operType !== 'update') {
@@ -67596,7 +67636,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
67596
67636
  canModifyContent: this.canModifyContent,
67597
67637
  isAllowDelete: this.isAllowDelete,
67598
67638
  enableGlobalColor: this.enableGlobalColor,
67599
- defaultValue: this.defaultValue,
67639
+ //defaultValue: this.defaultValue,
67600
67640
  downListProperty: this.downListProperty,
67601
67641
  //dataVerifyFormat: this.dataVerifyFormat,
67602
67642
  //bandDataSource: this.bandDataSource,
@@ -67625,34 +67665,76 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
67625
67665
  innerIdentifier: this.innerIdentifier,
67626
67666
  dataMetaIdentifier: this.dataMetaIdentifier,
67627
67667
  identifierFormat: this.identifierFormat,
67628
- isSynchro: this.isSynchro,
67668
+ //isSynchro: this.isSynchro,
67629
67669
  text: this.text,
67630
67670
  keyValue: this.keyValue,
67631
67671
  value: this.value,
67632
67672
  name: this.name,
67633
- tipText: this.tipText,
67673
+ //tipText: this.tipText,
67634
67674
  labelText: this.labelText,
67635
- //readOnlyStatus: this.readOnlyStatus,
67636
- fixedWidth: this.fixedWidth,
67637
- isCentered: this.isCentered,
67638
- canModifyContent: this.canModifyContent,
67639
- isAllowDelete: this.isAllowDelete,
67640
- enableGlobalColor: this.enableGlobalColor,
67641
- defaultValue: this.defaultValue,
67642
- downListProperty: this.downListProperty,
67643
- //dataVerifyFormat: this.dataVerifyFormat,
67644
- //bandDataSource: this.bandDataSource,
67675
+ //fixedWidth: this.fixedWidth,
67676
+ //isCentered: this.isCentered,
67677
+ //canModifyContent: this.canModifyContent,
67678
+ //isAllowDelete: this.isAllowDelete,
67679
+ //enableGlobalColor: this.enableGlobalColor,
67680
+ //defaultValue: this.defaultValue,
67681
+ //downListProperty: this.downListProperty,
67645
67682
  customProperty: this.customProperty,
67646
- alignWithBlocked: this.alignWithBlocked,
67683
+ //alignWithBlocked: this.alignWithBlocked,
67647
67684
  readType: this.readType,
67648
- insCheckSyncUpdateList: this.insCheckSyncUpdateList,
67649
- hideDuringPrint: this.hideDuringPrint,
67650
- notReplaceElement: this.notReplaceElement,
67651
- valueArea: this.valueArea,
67652
- includesKeyword: this.includesKeyword,
67653
- isElementLink: this.isElementLink,
67685
+ //insCheckSyncUpdateList: this.insCheckSyncUpdateList,
67686
+ //hideDuringPrint: this.hideDuringPrint,
67687
+ //notReplaceElement: this.notReplaceElement,
67688
+ //valueArea: this.valueArea,
67689
+ //includesKeyword: this.includesKeyword,
67690
+ //isElementLink: this.isElementLink,
67654
67691
  childNodes: childNodes
67655
67692
  };
67693
+ if (this.isSynchro) {
67694
+ retObj.isSynchro = this.isSynchro;
67695
+ }
67696
+ if (this.tipText) {
67697
+ retObj.tipText = this.tipText;
67698
+ }
67699
+ if (this.fixedWidth > 0) {
67700
+ retObj.fixedWidth = this.fixedWidth;
67701
+ }
67702
+ if (this.isCentered) {
67703
+ retObj.isCentered = this.isCentered;
67704
+ }
67705
+ if (!this.canModifyContent) {
67706
+ retObj.canModifyContent = this.canModifyContent;
67707
+ }
67708
+ if (this.isAllowDelete) {
67709
+ retObj.isAllowDelete = this.isAllowDelete;
67710
+ }
67711
+ if (this.enableGlobalColor) {
67712
+ retObj.enableGlobalColor = this.enableGlobalColor;
67713
+ }
67714
+ if (this.inputFieldType === 1) {
67715
+ retObj.downListProperty = this.downListProperty;
67716
+ }
67717
+ if (this.alignWithBlocked) {
67718
+ retObj.alignWithBlocked = this.alignWithBlocked;
67719
+ }
67720
+ if (this.insCheckSyncUpdateList) {
67721
+ retObj.insCheckSyncUpdateList = this.insCheckSyncUpdateList;
67722
+ }
67723
+ if (this.hideDuringPrint) {
67724
+ retObj.hideDuringPrint = this.hideDuringPrint;
67725
+ }
67726
+ if (this.notReplaceElement) {
67727
+ retObj.notReplaceElement = this.notReplaceElement;
67728
+ }
67729
+ if (this.valueArea !== "[]") {
67730
+ retObj.valueArea = this.valueArea;
67731
+ }
67732
+ if (this.includesKeyword !== "[]") {
67733
+ retObj.includesKeyword = this.includesKeyword;
67734
+ }
67735
+ if (this.isElementLink) {
67736
+ retObj.isElementLink = this.isElementLink;
67737
+ }
67656
67738
  return {
67657
67739
  TextInputFieldNode: retObj
67658
67740
  };
@@ -67728,22 +67810,25 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
67728
67810
  // }
67729
67811
  json.dataId = hoEditorFactory.gernerateCode.generateID('Field');
67730
67812
  }
67731
- json.canModifyContent = !json.canModifyContent ? false : json.canModifyContent;
67813
+ json.canModifyContent = json.canModifyContent === undefined ? true : json.canModifyContent;
67732
67814
  json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
67733
67815
  json.enableGlobalColor = !json.enableGlobalColor ? false : json.enableGlobalColor;
67734
- json.fixedWidth = Number(json.fixedWidth);
67816
+ json.fixedWidth = Number(json.fixedWidth === undefined ? 0 : json.fixedWidth);
67735
67817
  json.isCentered = !json.isCentered ? false : json.isCentered;
67736
67818
  json.inputFieldType = InputFieldType[json.inputFieldType];
67737
- json.downListProperty._allowMultiSelected = json.downListProperty.allowMultiSelected ? json.downListProperty.allowMultiSelected : json.downListProperty._allowMultiSelected;
67738
- json.downListProperty._isMultiLinesDisplay = json.downListProperty.isMultiLinesDisplay ? json.downListProperty.isMultiLinesDisplay : json.downListProperty._isMultiLinesDisplay == "true" || json.downListProperty._isMultiLinesDisplay == true ? true : false;
67819
+ if (json.inputFieldType == 1) {
67820
+ json.downListProperty._allowMultiSelected = json.downListProperty.allowMultiSelected ? json.downListProperty.allowMultiSelected : json.downListProperty._allowMultiSelected;
67821
+ json.downListProperty._isMultiLinesDisplay = json.downListProperty.isMultiLinesDisplay ? json.downListProperty.isMultiLinesDisplay : json.downListProperty._isMultiLinesDisplay == "true" || json.downListProperty._isMultiLinesDisplay == true ? true : false;
67822
+ json.downListProperty._mutexSelect = json.downListProperty.mutexSelect ? json.downListProperty.mutexSelect : json.downListProperty._mutexSelect == "true" || json.downListProperty._mutexSelect == true ? true : false;
67823
+ }
67739
67824
  json.alignWithBlocked = !json.alignWithBlocked ? false : json.alignWithBlocked;
67740
67825
  json.isSynchro = !json.isSynchro ? false : json.isSynchro;
67741
67826
  json.readType = json.readType ? Number(json.readType) : -1;
67742
67827
  json.insCheckSyncUpdateList = !json.insCheckSyncUpdateList ? false : json.insCheckSyncUpdateList;
67743
67828
  json.hideDuringPrint = !json.hideDuringPrint ? false : json.hideDuringPrint;
67744
67829
  json.notReplaceElement = !json.notReplaceElement ? false : json.notReplaceElement;
67745
- json.includesKeyword = !json.includesKeyword ? false : json.includesKeyword;
67746
- json.valueArea = !json.valueArea ? false : json.valueArea;
67830
+ json.includesKeyword = !json.includesKeyword ? "[]" : json.includesKeyword;
67831
+ json.valueArea = !json.valueArea ? "[]" : json.valueArea;
67747
67832
  json.isElementLink = !json.isElementLink ? false : json.isElementLink;
67748
67833
  var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_44__/* .NodeType */ .Jq.ntField, json);
67749
67834
  // this.insertChild
@@ -77789,12 +77874,14 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
77789
77874
  var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
77790
77875
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DrawRadioAndCheckBox, _DrawCombineNode);
77791
77876
  var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(DrawRadioAndCheckBox);
77792
- function DrawRadioAndCheckBox(hoeditfactoryID, rootPath, node, index, controlStyle, name, isSelected, boxAlign, numericValue, height, textStyle) {
77877
+ function DrawRadioAndCheckBox(hoeditfactoryID, rootPath, node, index, controlStyle,
77878
+ //name: string,
77879
+ isSelected, boxAlign, numericValue, height, textStyle) {
77793
77880
  var _this;
77794
77881
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawRadioAndCheckBox);
77795
77882
  _this = _super.call(this, hoeditfactoryID, rootPath, node, index);
77796
77883
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_controlStyle", void 0);
77797
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_name", void 0);
77884
+ //private _name!: string;
77798
77885
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_isSelected", void 0);
77799
77886
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_boxAlign", void 0);
77800
77887
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_numericValue", void 0);
@@ -77805,7 +77892,7 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
77805
77892
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dAppendText", void 0);
77806
77893
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dUnderLine", void 0);
77807
77894
  _this._controlStyle = controlStyle;
77808
- _this._name = name;
77895
+ //this._name = name;
77809
77896
  _this._isSelected = isSelected;
77810
77897
  _this._boxAlign = boxAlign;
77811
77898
  _this._numericValue = numericValue;
@@ -77858,11 +77945,9 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
77858
77945
  get: function get() {
77859
77946
  return this._controlStyle;
77860
77947
  }
77861
- }, {
77862
- key: "nameStr",
77863
- get: function get() {
77864
- return this._name;
77865
- }
77948
+ // get nameStr(): string {
77949
+ // return this._name;
77950
+ // }
77866
77951
  }, {
77867
77952
  key: "dBox",
77868
77953
  get: function get() {
@@ -78046,12 +78131,14 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
78046
78131
  var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
78047
78132
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DrawRadioAndCheckBoxPrint, _DrawCombineNode);
78048
78133
  var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(DrawRadioAndCheckBoxPrint);
78049
- function DrawRadioAndCheckBoxPrint(hoeditfactoryID, rootPath, node, index, controlStyle, name, isSelected, boxAlign, numericValue, height, textStyle) {
78134
+ function DrawRadioAndCheckBoxPrint(hoeditfactoryID, rootPath, node, index, controlStyle,
78135
+ //name: string,
78136
+ isSelected, boxAlign, numericValue, height, textStyle) {
78050
78137
  var _this;
78051
78138
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawRadioAndCheckBoxPrint);
78052
78139
  _this = _super.call(this, hoeditfactoryID, rootPath, node, index);
78053
78140
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_controlStyle", void 0);
78054
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_name", void 0);
78141
+ //private _name!: string;
78055
78142
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_isSelected", void 0);
78056
78143
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_boxAlign", void 0);
78057
78144
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_numericValue", void 0);
@@ -78062,7 +78149,7 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
78062
78149
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dAppendText", void 0);
78063
78150
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dUnderLine", void 0);
78064
78151
  _this._controlStyle = controlStyle;
78065
- _this._name = name;
78152
+ //this._name = name;
78066
78153
  _this._isSelected = isSelected;
78067
78154
  _this._boxAlign = boxAlign;
78068
78155
  _this._numericValue = numericValue;
@@ -78102,11 +78189,9 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
78102
78189
  get: function get() {
78103
78190
  return this._controlStyle;
78104
78191
  }
78105
- }, {
78106
- key: "nameStr",
78107
- get: function get() {
78108
- return this._name;
78109
- }
78192
+ // get nameStr(): string {
78193
+ // return this._name;
78194
+ // }
78110
78195
  }, {
78111
78196
  key: "dBox",
78112
78197
  get: function get() {
@@ -88556,7 +88641,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
88556
88641
  key: "doRedo",
88557
88642
  value: function () {
88558
88643
  var _doRedo = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)().mark(function _callee2() {
88559
- var strPath, hoeditorFactory, np, siblings, currNode, parentPath, getSlibs, index, pre, startPath, changeEvent, result, toPath, next;
88644
+ var strPath, hoeditorFactory, np, siblings, currNode, parentPath, getSlibs, index, pre, startPath, changeEvent, result, toPath;
88560
88645
  return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
88561
88646
  while (1) switch (_context2.prev = _context2.next) {
88562
88647
  case 0:
@@ -88630,31 +88715,34 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
88630
88715
  result = hoeditorFactory.docTree.deleteNode(currNode, this._operType);
88631
88716
  toPath = changeEvent.beforeChangePath;
88632
88717
  if (!result) {
88633
- _context2.next = 32;
88718
+ _context2.next = 31;
88634
88719
  break;
88635
88720
  }
88636
- next = index == siblings.length ? null : siblings[index];
88637
- changeEvent.afterChangePath = next ? hoeditorFactory.docTree.getNodeLastPath(next) : changeEvent.beforeChangePath;
88638
- _context2.next = 29;
88721
+ //const next = index == siblings.length ? null : siblings[index];
88722
+ // changeEvent.afterChangePath = next
88723
+ // ? hoeditorFactory.docTree.getNodeLastPath(next)
88724
+ // : changeEvent.beforeChangePath;
88725
+ changeEvent.afterChangePath = toPath;
88726
+ _context2.next = 28;
88639
88727
  return hoeditorFactory.docTree.change(changeEvent);
88640
- case 29:
88728
+ case 28:
88641
88729
  toPath = changeEvent.beforeChangePath;
88642
- _context2.next = 33;
88730
+ _context2.next = 32;
88643
88731
  break;
88644
- case 32:
88732
+ case 31:
88645
88733
  toPath = this.strBeforePath;
88646
- case 33:
88734
+ case 32:
88647
88735
  hoeditorFactory.docTree.curDomRange.setSamePath(toPath);
88648
88736
  hoeditorFactory.drawTree.moveCaretToPath(toPath);
88649
88737
  this.strBeforePath = pre ? hoeditorFactory.docTree.getNodeLastPath(pre) : parentPath;
88650
- _context2.next = 38;
88738
+ _context2.next = 37;
88651
88739
  return this.ParentRepaint();
88652
- case 38:
88740
+ case 37:
88653
88741
  if (currNode instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_19__/* .SignNode */ .N && (hoeditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psEdit || hoeditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_20__/* .PaintState */ .Dh.psReview)) {
88654
88742
  hoeditorFactory.undoService.stack.splice(hoeditorFactory.undoService.stack.length - 1, 1);
88655
88743
  hoeditorFactory.undoService._position--;
88656
88744
  }
88657
- case 39:
88745
+ case 38:
88658
88746
  case "end":
88659
88747
  return _context2.stop();
88660
88748
  }
@@ -176972,7 +177060,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
176972
177060
 
176973
177061
  var map = {
176974
177062
  "./ControlModal.vue": 77004,
176975
- "./barCode/BarCodes.vue": 62814,
177063
+ "./barCode/BarCodes.vue": 72727,
176976
177064
  "./colorPicker/HoColorPicker.vue": 10306,
176977
177065
  "./colorPicker/HoColorPickers.vue": 98181,
176978
177066
  "./commentDialog/CommentDialog.vue": 61720,
@@ -176995,7 +177083,7 @@ var map = {
176995
177083
  "./popers/Title.vue": 85516,
176996
177084
  "./printstyle/PrintLineStyle.vue": 51484,
176997
177085
  "./qrCode/QrCode.vue": 93973,
176998
- "./radioCheckBox/RadioCheckbox.vue": 68763,
177086
+ "./radioCheckBox/RadioCheckbox.vue": 23875,
176999
177087
  "./selectDialog/SelectDialog.vue": 76913,
177000
177088
  "./sign/Sign.vue": 64207,
177001
177089
  "./table/TableCellPoper.vue": 2043,
@@ -214444,8 +214532,8 @@ var es_string_match = __webpack_require__(4723);
214444
214532
  var es_number_constructor = __webpack_require__(9653);
214445
214533
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
214446
214534
  var es_json_stringify = __webpack_require__(38862);
214447
- ;// 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=9bd6cea8&
214448
- var HoDocvue_type_template_id_9bd6cea8_render = function render() {
214535
+ ;// 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=4d76cdc3&
214536
+ var HoDocvue_type_template_id_4d76cdc3_render = function render() {
214449
214537
  var _vm = this,
214450
214538
  _c = _vm._self._c;
214451
214539
  return _c('div', {
@@ -214593,7 +214681,7 @@ var HoDocvue_type_template_id_9bd6cea8_render = function render() {
214593
214681
  }
214594
214682
  }, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
214595
214683
  };
214596
- var HoDocvue_type_template_id_9bd6cea8_staticRenderFns = [];
214684
+ var HoDocvue_type_template_id_4d76cdc3_staticRenderFns = [];
214597
214685
 
214598
214686
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
214599
214687
  var es_array_filter = __webpack_require__(57327);
@@ -214973,7 +215061,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
214973
215061
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
214974
215062
  dPage = hoEditorFactory.drawTree.drawPages[this._pageIndex];
214975
215063
  if (!(aevent.currentTarget === this.stage)) {
214976
- _context.next = 45;
215064
+ _context.next = 49;
214977
215065
  break;
214978
215066
  }
214979
215067
  oldDPage = hoEditorFactory.drawTree.activePage;
@@ -215015,7 +215103,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
215015
215103
  //this._drawPage.drawDomLevel.activeDrawRect,
215016
215104
  aevent.stageX, aevent.stageY);
215017
215105
  if (!startPos) {
215018
- _context.next = 45;
215106
+ _context.next = 49;
215019
215107
  break;
215020
215108
  }
215021
215109
  if (!(!isSameArea && startPos.page)) {
@@ -215035,7 +215123,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
215035
215123
  case 30:
215036
215124
  np = hoEditorFactory.docTree.findNodePositionByPath(startPos.path);
215037
215125
  if (!(np && np.node)) {
215038
- _context.next = 45;
215126
+ _context.next = 49;
215039
215127
  break;
215040
215128
  }
215041
215129
  prevNode = np.node.prevSibling();
@@ -215051,29 +215139,34 @@ var DrawSelectLevel = /*#__PURE__*/function () {
215051
215139
  hoEditorFactory.docTree.selectChange(selectChangeEvent);
215052
215140
  hoEditorFactory.docTree.curDomRange = newRange;
215053
215141
  }
215054
- if (np.node.nodeType === BaseNode/* NodeType */.Jq.ntMedicalExpression || np.node.nodeType === BaseNode/* NodeType */.Jq.ntControl && !(np.node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || ((_np$node$parentNode = np.node.parentNode) === null || _np$node$parentNode === void 0 ? void 0 : _np$node$parentNode.nodeType) === BaseNode/* NodeType */.Jq.ntField || np.node.nodeType === BaseNode/* NodeType */.Jq.ntSign || np.node.nodeType === BaseNode/* NodeType */.Jq.ntGestation || np.node.nodeType === BaseNode/* NodeType */.Jq.ntImage) {
215055
- nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
215056
- hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
215142
+ if (!(np.node.nodeType === BaseNode/* NodeType */.Jq.ntMedicalExpression || np.node.nodeType === BaseNode/* NodeType */.Jq.ntControl && !(np.node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || ((_np$node$parentNode = np.node.parentNode) === null || _np$node$parentNode === void 0 ? void 0 : _np$node$parentNode.nodeType) === BaseNode/* NodeType */.Jq.ntField || np.node.nodeType === BaseNode/* NodeType */.Jq.ntSign || np.node.nodeType === BaseNode/* NodeType */.Jq.ntGestation || np.node.nodeType === BaseNode/* NodeType */.Jq.ntImage)) {
215143
+ _context.next = 39;
215144
+ break;
215057
215145
  }
215146
+ nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
215147
+ hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
215148
+ _context.next = 49;
215149
+ break;
215150
+ case 39:
215058
215151
  if (!(np.node.parentNode instanceof CellNode/* CellNode */.D)) {
215059
- _context.next = 45;
215152
+ _context.next = 49;
215060
215153
  break;
215061
215154
  }
215062
215155
  cellNode = np.node.parentNode;
215063
215156
  colInfos = cellNode.table.colInfos[np.node.parentNode.row.indexOf(np.node.parentNode)];
215064
215157
  if (colInfos.isAllowEdit) {
215065
- _context.next = 40;
215158
+ _context.next = 44;
215066
215159
  break;
215067
215160
  }
215068
215161
  return _context.abrupt("return");
215069
- case 40:
215162
+ case 44:
215070
215163
  rowInfos = cellNode.table.rowInfos[np.node.parentNode.table.rows.indexOf(np.node.parentNode.row)];
215071
215164
  if (!(!rowInfos.isAllowEdit || rowInfos.rowProperty.repeatAsTitleAtPageTop)) {
215072
- _context.next = 43;
215165
+ _context.next = 47;
215073
215166
  break;
215074
215167
  }
215075
215168
  return _context.abrupt("return");
215076
- case 43:
215169
+ case 47:
215077
215170
  colProperty = colInfos.colProperty;
215078
215171
  if (cellNode.table.tableProperty.isUsePopEdit && colProperty.editorProperty !== TableProperty/* EditorProperty */.YS.Sign) {
215079
215172
  _nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(cellNode, 'dblclick', this._pageIndex);
@@ -215119,9 +215212,9 @@ var DrawSelectLevel = /*#__PURE__*/function () {
215119
215212
  }
215120
215213
  }
215121
215214
  }
215122
- case 45:
215215
+ case 49:
215123
215216
  return _context.abrupt("return", true);
215124
- case 46:
215217
+ case 50:
215125
215218
  case "end":
215126
215219
  return _context.stop();
215127
215220
  }
@@ -217593,7 +217686,7 @@ var TextNode = __webpack_require__(27198);
217593
217686
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
217594
217687
  var ParagraphNode = __webpack_require__(67945);
217595
217688
  ;// CONCATENATED MODULE: ./src/components/version.ts
217596
- /* harmony default export */ var version = ('3.1.9');
217689
+ /* harmony default export */ var version = ('3.1.11');
217597
217690
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
217598
217691
  var PoperTipText = __webpack_require__(50987);
217599
217692
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -218036,151 +218129,152 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
218036
218129
  });
218037
218130
  this.poperType = '';
218038
218131
  return;
218039
- }
218040
- if (paintStatus === 4) {
218041
- if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
218042
- var parentNode = node.parentNode;
218043
- if (Number(parentNode.inputFieldType) === 0) {
218044
- this.$emit('dblNodeClick', {
218045
- setActiveDoc: this.setActiveDocIndex,
218046
- node: this.getCurrentSelectNode,
218047
- type: 'modify_node',
218048
- paintStatus: paintStatus
218049
- });
218050
- this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
218132
+ } else {
218133
+ if (paintStatus === 4) {
218134
+ if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
218135
+ var parentNode = node.parentNode;
218136
+ if (Number(parentNode.inputFieldType) === 0) {
218137
+ this.$emit('dblNodeClick', {
218138
+ setActiveDoc: this.setActiveDocIndex,
218139
+ node: this.getCurrentSelectNode,
218140
+ type: 'modify_node',
218141
+ paintStatus: paintStatus
218142
+ });
218143
+ this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
218144
+ return false;
218145
+ }
218051
218146
  return false;
218052
218147
  }
218053
218148
  return false;
218054
218149
  }
218055
- return false;
218056
- }
218057
- if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
218058
- if (paintStatus === 0) {
218059
- this.hoEditorProvider.setControlProperty('date', 'update', '');
218060
- this.hoEditorProvider.setUpdateNodeValue(node);
218061
- return;
218062
- }
218063
- if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
218064
- return false;
218065
- }
218066
- this.computedPoperPosition(node, pageIndex);
218067
- this.poperType = 'datePoper';
218068
- } else if (node instanceof DownListNode/* DownListNode */.yF) {
218069
- if (paintStatus === 0) {
218070
- this.hoEditorProvider.setControlProperty('select', 'update', '');
218071
- return;
218072
- }
218073
- if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
218074
- return;
218075
- }
218076
- var callback = function callback(list) {
218077
- _this5.computedPoperPosition(node, pageIndex);
218078
- if (Array.isArray(list) && list.length > 0) {
218079
- _this5.poperSelectList = list;
218080
- } else {
218081
- _this5.poperSelectList = node.downListContent ? node.downListContent : [];
218082
- }
218083
- _this5.poperType = 'selectPoper';
218084
- };
218085
- if (node.customProperty && node.customProperty.hasThirdData == true) {
218086
- this.$emit('dblNodeClick', {
218087
- setActiveDoc: this.setActiveDocIndex,
218088
- node: this.getCurrentSelectNode,
218089
- type: 'downlist',
218090
- callback: callback,
218091
- paintStatus: paintStatus
218092
- });
218093
- } else {
218094
- callback(undefined);
218095
- }
218096
- } else if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
218097
- // 文本域
218098
- var _parentNode = node.parentNode;
218099
- if (Number(_parentNode.inputFieldType) === 0) {
218100
- if (_parentNode.canModifyContent) {
218101
- this.$emit('dblNodeClick', {
218102
- setActiveDoc: this.setActiveDocIndex,
218103
- node: this.getCurrentSelectNode,
218104
- type: 'text',
218105
- paintStatus: paintStatus
218106
- });
218107
- } else {
218108
- this.$emit('dblNodeClick', {
218109
- setActiveDoc: this.setActiveDocIndex,
218110
- node: this.getCurrentSelectNode,
218111
- type: 'modify_node',
218112
- paintStatus: paintStatus
218113
- });
218114
- }
218115
- this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
218116
- return false;
218117
- }
218118
- if (_parentNode.readOnlyStatus === 0 && _parentNode.text.replace(/\s*/g, '') !== '') {
218119
- return false;
218120
- }
218121
- if (Number(_parentNode.inputFieldType) === 2) {
218150
+ if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
218122
218151
  if (paintStatus === 0) {
218123
218152
  this.hoEditorProvider.setControlProperty('date', 'update', '');
218153
+ this.hoEditorProvider.setUpdateNodeValue(node);
218124
218154
  return;
218125
218155
  }
218156
+ if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
218157
+ return false;
218158
+ }
218159
+ this.computedPoperPosition(node, pageIndex);
218126
218160
  this.poperType = 'datePoper';
218127
- } else if (Number(_parentNode.inputFieldType) === 1) {
218128
- var _parentNode$downListP, _parentNode$downListP2, _parentNode$downListP3;
218161
+ } else if (node instanceof DownListNode/* DownListNode */.yF) {
218129
218162
  if (paintStatus === 0) {
218130
- this.hoEditorProvider.setControlProperty('text', 'update', '');
218131
- this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
218163
+ this.hoEditorProvider.setControlProperty('select', 'update', '');
218132
218164
  return;
218133
218165
  }
218134
- var text = node.text.replace(/ /g, '');
218135
- var lists = (_parentNode$downListP = _parentNode.downListProperty) !== null && _parentNode$downListP !== void 0 && _parentNode$downListP.listItems ? JSON.parse((_parentNode$downListP2 = _parentNode.downListProperty) === null || _parentNode$downListP2 === void 0 ? void 0 : _parentNode$downListP2.listItems) : [];
218136
- var allowMultiSelected = ((_parentNode$downListP3 = _parentNode.downListProperty) === null || _parentNode$downListP3 === void 0 ? void 0 : _parentNode$downListP3.allowMultiSelected) || false;
218137
- var childs = _parentNode.childNodes.filter(function (v) {
218138
- return v.nodeType != 5 && v.nodeType != 2;
218139
- });
218140
- if (childs.length > 0 && text != _parentNode.name && text !== '' && !allowMultiSelected && lists.length > 0) {
218141
- if (lists.filter(function (v) {
218142
- return v.text.includes('<元素>');
218143
- }).length > 0) {
218144
- return;
218145
- }
218166
+ if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
218167
+ return;
218146
218168
  }
218147
- var _callback = function _callback(list) {
218169
+ var callback = function callback(list) {
218148
218170
  _this5.computedPoperPosition(node, pageIndex);
218149
218171
  if (Array.isArray(list) && list.length > 0) {
218150
218172
  _this5.poperSelectList = list;
218151
218173
  } else {
218152
- _this5.poperSelectList = lists.filter(function (v) {
218153
- return v.value || v.text;
218154
- });
218174
+ _this5.poperSelectList = node.downListContent ? node.downListContent : [];
218155
218175
  }
218156
218176
  _this5.poperType = 'selectPoper';
218157
218177
  };
218158
- if (_parentNode.customProperty && _parentNode.customProperty.hasThirdData == true) {
218178
+ if (node.customProperty && node.customProperty.hasThirdData == true) {
218159
218179
  this.$emit('dblNodeClick', {
218160
218180
  setActiveDoc: this.setActiveDocIndex,
218161
218181
  node: this.getCurrentSelectNode,
218162
- type: 'textlist',
218163
- callback: _callback,
218182
+ type: 'downlist',
218183
+ callback: callback,
218164
218184
  paintStatus: paintStatus
218165
218185
  });
218166
218186
  } else {
218167
- _callback(undefined);
218187
+ callback(undefined);
218188
+ }
218189
+ } else if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
218190
+ // 文本域
218191
+ var _parentNode = node.parentNode;
218192
+ if (Number(_parentNode.inputFieldType) === 0) {
218193
+ if (_parentNode.canModifyContent) {
218194
+ this.$emit('dblNodeClick', {
218195
+ setActiveDoc: this.setActiveDocIndex,
218196
+ node: this.getCurrentSelectNode,
218197
+ type: 'text',
218198
+ paintStatus: paintStatus
218199
+ });
218200
+ } else {
218201
+ this.$emit('dblNodeClick', {
218202
+ setActiveDoc: this.setActiveDocIndex,
218203
+ node: this.getCurrentSelectNode,
218204
+ type: 'modify_node',
218205
+ paintStatus: paintStatus
218206
+ });
218207
+ }
218208
+ this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
218209
+ return false;
218210
+ }
218211
+ if (_parentNode.readOnlyStatus === 0 && _parentNode.text.replace(/\s*/g, '') !== '') {
218212
+ return false;
218213
+ }
218214
+ if (Number(_parentNode.inputFieldType) === 2) {
218215
+ if (paintStatus === 0) {
218216
+ this.hoEditorProvider.setControlProperty('date', 'update', '');
218217
+ return;
218218
+ }
218219
+ this.poperType = 'datePoper';
218220
+ } else if (Number(_parentNode.inputFieldType) === 1) {
218221
+ var _parentNode$downListP, _parentNode$downListP2, _parentNode$downListP3;
218222
+ if (paintStatus === 0) {
218223
+ this.hoEditorProvider.setControlProperty('text', 'update', '');
218224
+ this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
218225
+ return;
218226
+ }
218227
+ var text = node.text.replace(/ /g, '');
218228
+ var lists = (_parentNode$downListP = _parentNode.downListProperty) !== null && _parentNode$downListP !== void 0 && _parentNode$downListP.listItems ? JSON.parse((_parentNode$downListP2 = _parentNode.downListProperty) === null || _parentNode$downListP2 === void 0 ? void 0 : _parentNode$downListP2.listItems) : [];
218229
+ var allowMultiSelected = ((_parentNode$downListP3 = _parentNode.downListProperty) === null || _parentNode$downListP3 === void 0 ? void 0 : _parentNode$downListP3.allowMultiSelected) || false;
218230
+ var childs = _parentNode.childNodes.filter(function (v) {
218231
+ return v.nodeType != 5 && v.nodeType != 2;
218232
+ });
218233
+ if (childs.length > 0 && text != _parentNode.name && text !== '' && !allowMultiSelected && lists.length > 0) {
218234
+ if (lists.filter(function (v) {
218235
+ return v.text.includes('<元素>');
218236
+ }).length > 0) {
218237
+ return;
218238
+ }
218239
+ }
218240
+ var _callback = function _callback(list) {
218241
+ _this5.computedPoperPosition(node, pageIndex);
218242
+ if (Array.isArray(list) && list.length > 0) {
218243
+ _this5.poperSelectList = list;
218244
+ } else {
218245
+ _this5.poperSelectList = lists.filter(function (v) {
218246
+ return v.value || v.text;
218247
+ });
218248
+ }
218249
+ _this5.poperType = 'selectPoper';
218250
+ };
218251
+ if (_parentNode.customProperty && _parentNode.customProperty.hasThirdData == true) {
218252
+ this.$emit('dblNodeClick', {
218253
+ setActiveDoc: this.setActiveDocIndex,
218254
+ node: this.getCurrentSelectNode,
218255
+ type: 'textlist',
218256
+ callback: _callback,
218257
+ paintStatus: paintStatus
218258
+ });
218259
+ } else {
218260
+ _callback(undefined);
218261
+ }
218168
218262
  }
218263
+ } else if (node.parentNode instanceof CellNode/* CellNode */.D && node.nodeType !== BaseNode/* NodeType */.Jq.ntMedicalExpression && node.nodeType !== BaseNode/* NodeType */.Jq.ntImage) {
218264
+ this.handleCellNode(node, node.parentNode, pageIndex, paintStatus);
218265
+ } else if (node instanceof CellNode/* CellNode */.D) {
218266
+ this.handleForm('update');
218267
+ } else if (node instanceof ImageNode/* ImageNode */.H) {
218268
+ this.poperType = '';
218269
+ this.$emit('dblNodeClick', {
218270
+ setActiveDoc: this.setActiveDocIndex,
218271
+ node: this.getCurrentSelectNode,
218272
+ type: 'edit-image',
218273
+ paintStatus: paintStatus
218274
+ });
218275
+ } else {
218276
+ this.hoEditorProvider.setDblclickNodeValue(node, 'dblclick');
218169
218277
  }
218170
- } else if (node.parentNode instanceof CellNode/* CellNode */.D && node.nodeType !== BaseNode/* NodeType */.Jq.ntMedicalExpression && node.nodeType !== BaseNode/* NodeType */.Jq.ntImage) {
218171
- this.handleCellNode(node, node.parentNode, pageIndex, paintStatus);
218172
- } else if (node instanceof CellNode/* CellNode */.D) {
218173
- this.handleForm('update');
218174
- } else if (node instanceof ImageNode/* ImageNode */.H) {
218175
- this.poperType = '';
218176
- this.$emit('dblNodeClick', {
218177
- setActiveDoc: this.setActiveDocIndex,
218178
- node: this.getCurrentSelectNode,
218179
- type: 'edit-image',
218180
- paintStatus: paintStatus
218181
- });
218182
- } else {
218183
- this.hoEditorProvider.setDblclickNodeValue(node, 'dblclick');
218184
218278
  }
218185
218279
  },
218186
218280
  createAddCellButton: function createAddCellButton(node, pageIndex) {
@@ -218353,10 +218447,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
218353
218447
  });
218354
218448
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
218355
218449
  /* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
218356
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=9bd6cea8&prod&lang=less&
218450
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=4d76cdc3&prod&lang=less&
218357
218451
  // extracted by mini-css-extract-plugin
218358
218452
 
218359
- ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=9bd6cea8&prod&lang=less&
218453
+ ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=4d76cdc3&prod&lang=less&
218360
218454
 
218361
218455
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue
218362
218456
 
@@ -218369,8 +218463,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
218369
218463
 
218370
218464
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
218371
218465
  components_HoDocvue_type_script_lang_js_,
218372
- HoDocvue_type_template_id_9bd6cea8_render,
218373
- HoDocvue_type_template_id_9bd6cea8_staticRenderFns,
218466
+ HoDocvue_type_template_id_4d76cdc3_render,
218467
+ HoDocvue_type_template_id_4d76cdc3_staticRenderFns,
218374
218468
  false,
218375
218469
  null,
218376
218470
  null,
@@ -220702,8 +220796,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
220702
220796
  value: function generateTableProperty(jnode) {
220703
220797
  jquery_default()(jnode).attr;
220704
220798
  var tableProperty = new TableProperty/* TableProperty */.vE('');
220705
- tableProperty.tightLineSpace = tableProperty['tightLineSpace'] || false;
220706
- tableProperty.layoutFullLine = tableProperty['layoutFullLine'] || false;
220707
220799
  tableProperty.continuePrintBorders = tableProperty['continuePrintBorders'] || false;
220708
220800
  tableProperty.canDeleteTable = tableProperty['canDeleteTable'] || false;
220709
220801
  tableProperty.canDeleteRow = tableProperty['canDeleteRow'] || false;
@@ -225990,14 +226082,15 @@ var VueController = /*#__PURE__*/function () {
225990
226082
  key: "insertBarcode",
225991
226083
  value: function insertBarcode(operType, id, textContent, isDisplayText, imagePath, width, height,
225992
226084
  //bandDataSource: string,
225993
- name, innerIdentifier) {
226085
+ //name: string,
226086
+ innerIdentifier) {
225994
226087
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
225995
226088
  var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
225996
226089
  var startPath = _curDomRange.normalize().startPath;
225997
226090
  var endPath = _curDomRange.normalize().endPath;
225998
226091
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertBarcode);
225999
226092
  if (hoEditorFactory.docTree.changing(changingEvent)) {
226000
- hoEditorFactory.docController.insertBarcode('add', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier);
226093
+ hoEditorFactory.docController.insertBarcode('add', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, innerIdentifier);
226001
226094
  }
226002
226095
  }
226003
226096
  /**
@@ -226011,14 +226104,14 @@ var VueController = /*#__PURE__*/function () {
226011
226104
  */
226012
226105
  }, {
226013
226106
  key: "updateBarcode",
226014
- value: function updateBarcode(id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier) {
226107
+ value: function updateBarcode(id, textContent, isDisplayText, imagePath, width, height, innerIdentifier) {
226015
226108
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
226016
226109
  var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
226017
226110
  var startPath = _curDomRange.normalize().startPath;
226018
226111
  var endPath = _curDomRange.normalize().endPath;
226019
226112
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.updateBarcode);
226020
226113
  if (hoEditorFactory.docTree.changing(changingEvent)) {
226021
- HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode('update', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier);
226114
+ HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode('update', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, innerIdentifier);
226022
226115
  }
226023
226116
  }
226024
226117
  /**
@@ -226040,30 +226133,14 @@ var VueController = /*#__PURE__*/function () {
226040
226133
  */
226041
226134
  }, {
226042
226135
  key: "insertQrcode",
226043
- value: function insertQrcode(operType, id, textContent, type, correctLevel,
226044
- // dataSourceEnabled: boolean,
226045
- // dataSource: string,
226046
- // format: string,
226047
- // visitPath: string,
226048
- // isReadOnly: boolean,
226049
- // autoUpdate: boolean,
226050
- // execState: string,
226051
- width, height, name, innerIdentifier, isFillBack) {
226136
+ value: function insertQrcode(operType, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack) {
226052
226137
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
226053
226138
  var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
226054
226139
  var startPath = _curDomRange.normalize().startPath;
226055
226140
  var endPath = _curDomRange.normalize().endPath;
226056
226141
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertQrcode);
226057
226142
  if (hoEditorFactory.docTree.changing(changingEvent)) {
226058
- HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('add', _curDomRange, id, textContent, type, correctLevel,
226059
- // dataSourceEnabled,
226060
- // dataSource,
226061
- // format,
226062
- // visitPath,
226063
- // isReadOnly,
226064
- // autoUpdate,
226065
- // execState,
226066
- width, height, name, innerIdentifier, isFillBack);
226143
+ HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('add', _curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack);
226067
226144
  }
226068
226145
  }
226069
226146
  /**
@@ -226084,30 +226161,14 @@ var VueController = /*#__PURE__*/function () {
226084
226161
  */
226085
226162
  }, {
226086
226163
  key: "updateQrcode",
226087
- value: function updateQrcode(id, textContent, type, correctLevel,
226088
- // dataSourceEnabled: boolean,
226089
- // dataSource: string,
226090
- // format: string,
226091
- // visitPath: string,
226092
- // isReadOnly: boolean,
226093
- // autoUpdate: boolean,
226094
- // execState: string,
226095
- width, height, name, innerIdentifier, isFillBack) {
226164
+ value: function updateQrcode(id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack) {
226096
226165
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
226097
226166
  var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
226098
226167
  var startPath = _curDomRange.normalize().startPath;
226099
226168
  var endPath = _curDomRange.normalize().endPath;
226100
226169
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.updateQrcode);
226101
226170
  if (hoEditorFactory.docTree.changing(changingEvent)) {
226102
- HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('update', _curDomRange, id, textContent, type, correctLevel,
226103
- // dataSourceEnabled,
226104
- // dataSource,
226105
- // format,
226106
- // visitPath,
226107
- // isReadOnly,
226108
- // autoUpdate,
226109
- // execState,
226110
- width, height, name, innerIdentifier, isFillBack);
226171
+ HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('update', _curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack);
226111
226172
  }
226112
226173
  }
226113
226174
  /**
@@ -229601,9 +229662,12 @@ var VueController = /*#__PURE__*/function () {
229601
229662
  */
229602
229663
  }, {
229603
229664
  key: "updateElementById",
229604
- value: function updateElementById(id, eleJson) {
229665
+ value: function updateElementById(id, eleJson, name) {
229605
229666
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
229606
229667
  var node = this.getNodeByID('all', id);
229668
+ if (!node && name) {
229669
+ node = this.getNodesByName('all', false, name)[0];
229670
+ }
229607
229671
  if (node) {
229608
229672
  //eleJson = JSON.parse(eleJson);
229609
229673
  if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re || node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof DownListNode/* DownListNode */.yF) {
@@ -229633,10 +229697,10 @@ var VueController = /*#__PURE__*/function () {
229633
229697
  var toPath = hoEditorFactory.docTree.getNodeLastPath(newNode);
229634
229698
  hoEditorFactory.drawTree.moveCaretToPath(toPath);
229635
229699
  } else {
229636
- throw new Error('根据元素id:' + id + '定位到的元素非可回填元素');
229700
+ console.warn('根据元素id:' + id + '和元素name:' + name + '定位到的元素非可回填元素');
229637
229701
  }
229638
229702
  } else {
229639
- throw new Error('根据元素id:' + id + '未找到对应的元素');
229703
+ console.warn('根据元素id:' + id + '和元素name:' + name + '未找到对应的元素');
229640
229704
  }
229641
229705
  }
229642
229706
  //更新回填元素的文本内容 更正元素
@@ -231273,8 +231337,6 @@ var VueController = /*#__PURE__*/function () {
231273
231337
  canDeleteTable: node.tableProperty.canDeleteTable,
231274
231338
  continuePrintBorders: node.tableProperty.continuePrintBorders,
231275
231339
  customProperties: customProperties,
231276
- layoutFullLine: node.tableProperty.layoutFullLine,
231277
- tightLineSpace: node.tableProperty.tightLineSpace,
231278
231340
  isAutoChangeLine: node.tableProperty.isAutoChangeLine,
231279
231341
  autoLineHeight: node.tableProperty.autoLineHeight,
231280
231342
  fixedOnePage: node.tableProperty.fixedOnePage,
@@ -232377,6 +232439,24 @@ var VueController = /*#__PURE__*/function () {
232377
232439
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
232378
232440
  return hoEditorFactory.editController.canIsEdit(hoEditorFactory);
232379
232441
  }
232442
+ }, {
232443
+ key: "getElementChangeRecords",
232444
+ value: function getElementChangeRecords() {
232445
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
232446
+ var recordArr = new Array();
232447
+ var records = hoEditorFactory.docTree.elementChangeRecords;
232448
+ records.forEach(function (value, key) {
232449
+ if (value !== "add0") {
232450
+ var record = {
232451
+ "type": value,
232452
+ "id": key.split("|")[0],
232453
+ "dataid": key.split("|")[1]
232454
+ };
232455
+ recordArr.push(record);
232456
+ }
232457
+ });
232458
+ return recordArr;
232459
+ }
232380
232460
  }]);
232381
232461
  return VueController;
232382
232462
  }();
@@ -233822,7 +233902,7 @@ var ElementController = /*#__PURE__*/function () {
233822
233902
  /*
233823
233903
  * @Author: your name
233824
233904
  * @Date: 2021-07-31 10:10:30
233825
- * @LastEditTime: 2023-08-08 18:09:19
233905
+ * @LastEditTime: 2023-09-14 17:03:18
233826
233906
  * @LastEditors: liyanan 2441631434@qq.com
233827
233907
  * @Description: In User Settings Edit
233828
233908
  * @FilePath: \hoeditor-web\src\editor\externalCall\NodeController.ts
@@ -234135,9 +234215,9 @@ var NodeController = /*#__PURE__*/function () {
234135
234215
  */
234136
234216
  }, {
234137
234217
  key: "insertBarcode",
234138
- value: function insertBarcode(id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier) {
234218
+ value: function insertBarcode(id, textContent, isDisplayText, imagePath, width, height, innerIdentifier) {
234139
234219
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
234140
- hoEditorFactory.vueController.insertBarcode('add', id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier);
234220
+ hoEditorFactory.vueController.insertBarcode('add', id, textContent, isDisplayText, imagePath, width, height, innerIdentifier);
234141
234221
  }
234142
234222
  /**
234143
234223
  * 修改条形码
@@ -234150,9 +234230,9 @@ var NodeController = /*#__PURE__*/function () {
234150
234230
  */
234151
234231
  }, {
234152
234232
  key: "updateBarcode",
234153
- value: function updateBarcode(id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier) {
234233
+ value: function updateBarcode(id, textContent, isDisplayText, imagePath, width, height, innerIdentifier) {
234154
234234
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
234155
- hoEditorFactory.vueController.updateBarcode(id, textContent, isDisplayText, imagePath, width, height, name, innerIdentifier);
234235
+ hoEditorFactory.vueController.updateBarcode(id, textContent, isDisplayText, imagePath, width, height, innerIdentifier);
234156
234236
  }
234157
234237
  /**
234158
234238
  * 插入二维码
@@ -236659,7 +236739,7 @@ var PrintController = /*#__PURE__*/function () {
236659
236739
  value: function () {
236660
236740
  var _pintAllToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee8(xmlList, callback, params) {
236661
236741
  var _this6 = this;
236662
- var hoEditorFactory, beforePrintStatus, xml, xmlIndex, mergeList, position, continuousid, options, toPrint, createSvg;
236742
+ var hoEditorFactory, beforePrintStatus, xml, xmlIndex, mergeList, position, continuousid, options, pageNumber, toPrint, createSvg;
236663
236743
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee8$(_context8) {
236664
236744
  while (1) switch (_context8.prev = _context8.next) {
236665
236745
  case 0:
@@ -236679,15 +236759,18 @@ var PrintController = /*#__PURE__*/function () {
236679
236759
  };
236680
236760
  this.PDF = null;
236681
236761
  this.PDF = new jspdf/* default */.ZP(options);
236762
+ pageNumber = {
236763
+ value: 0
236764
+ };
236682
236765
  toPrint = /*#__PURE__*/function () {
236683
236766
  var _ref3 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee6() {
236684
236767
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee6$(_context6) {
236685
236768
  while (1) switch (_context6.prev = _context6.next) {
236686
236769
  case 0:
236687
236770
  if (params && continuousid && Array.isArray(params.notPrintDocId) && params.notPrintDocId.length > 0 && params.notPrintDocId.includes(continuousid)) {
236688
- PrintStatus/* Print */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position, true);
236771
+ PrintStatus/* Print */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position, true, pageNumber);
236689
236772
  } else {
236690
- PrintStatus/* Print */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position);
236773
+ PrintStatus/* Print */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position, false, pageNumber);
236691
236774
  }
236692
236775
  case 1:
236693
236776
  case "end":
@@ -236701,7 +236784,7 @@ var PrintController = /*#__PURE__*/function () {
236701
236784
  }();
236702
236785
  createSvg = /*#__PURE__*/function () {
236703
236786
  var _ref4 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee7() {
236704
- var _this6$PDF, name;
236787
+ var otherPageNumber, i, _this6$PDF, _this6$PDF2, name;
236705
236788
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee7$(_context7) {
236706
236789
  while (1) switch (_context7.prev = _context7.next) {
236707
236790
  case 0:
@@ -236753,7 +236836,16 @@ var PrintController = /*#__PURE__*/function () {
236753
236836
  }));
236754
236837
  hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
236755
236838
  hoEditorFactory.vueController.openXml(xml);
236756
- (_this6$PDF = _this6.PDF) === null || _this6$PDF === void 0 ? void 0 : _this6$PDF.deletePage(1);
236839
+ otherPageNumber = _this6.PDF.internal.getNumberOfPages() - pageNumber.value;
236840
+ if (otherPageNumber >= 2) {
236841
+ for (i = 0; i < otherPageNumber; i++) {
236842
+ (_this6$PDF = _this6.PDF) === null || _this6$PDF === void 0 ? void 0 : _this6$PDF.deletePage(1);
236843
+ }
236844
+ console.warn("\u5220\u6389".concat(otherPageNumber, "\u9875\u7A7A\u767D\u9875"));
236845
+ } else if (otherPageNumber <= 1) {
236846
+ (_this6$PDF2 = _this6.PDF) === null || _this6$PDF2 === void 0 ? void 0 : _this6$PDF2.deletePage(1);
236847
+ console.warn("\u5220\u63891\u9875\u7A7A\u767D\u9875");
236848
+ }
236757
236849
  name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
236758
236850
  PrintStatus/* Print */.Kh.openDataUriInWindow(_this6.PDF, name, hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.printSilently);
236759
236851
  _this6.clearJsPDF();
@@ -236769,7 +236861,7 @@ var PrintController = /*#__PURE__*/function () {
236769
236861
  };
236770
236862
  }();
236771
236863
  createSvg();
236772
- case 15:
236864
+ case 16:
236773
236865
  case "end":
236774
236866
  return _context8.stop();
236775
236867
  }