hoeditor-web 3.1.160 → 3.1.162

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.
@@ -33321,22 +33321,24 @@ var Caret = /*#__PURE__*/function () {
33321
33321
  value: function setPage(pageIndex) {
33322
33322
  var hoeditorfacotry = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_3__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditoryFactoryID);
33323
33323
  var newPage = hoeditorfacotry.drawTree.drawPages[pageIndex];
33324
- if (this._pageIndex !== pageIndex) {
33325
- if (this._pageIndex >= 0) {
33326
- var oldPage = hoeditorfacotry.drawTree.drawPages[this._pageIndex];
33327
- if (oldPage && oldPage.drawSelectLevel) {
33328
- var canvas = oldPage.drawSelectLevel.selectCanvas;
33329
- if (canvas.parentNode && this.div_cursor.parentNode === canvas.parentNode) {
33330
- canvas.parentNode.removeChild(this.div_cursor);
33324
+ if (newPage) {
33325
+ if (this._pageIndex !== pageIndex) {
33326
+ if (this._pageIndex >= 0) {
33327
+ var oldPage = hoeditorfacotry.drawTree.drawPages[this._pageIndex];
33328
+ if (oldPage && oldPage.drawSelectLevel) {
33329
+ var canvas = oldPage.drawSelectLevel.selectCanvas;
33330
+ if (canvas.parentNode && this.div_cursor.parentNode === canvas.parentNode) {
33331
+ canvas.parentNode.removeChild(this.div_cursor);
33332
+ }
33331
33333
  }
33332
33334
  }
33335
+ this._pageIndex = pageIndex;
33333
33336
  }
33334
- this._pageIndex = pageIndex;
33335
- }
33336
- if (pageIndex >= 0 && newPage.drawSelectLevel) {
33337
- var _canvas = newPage.drawSelectLevel.selectCanvas;
33338
- if (_canvas.parentNode) {
33339
- _canvas.parentNode.appendChild(this.div_cursor);
33337
+ if (pageIndex >= 0 && newPage.drawSelectLevel) {
33338
+ var _canvas = newPage.drawSelectLevel.selectCanvas;
33339
+ if (_canvas.parentNode) {
33340
+ _canvas.parentNode.appendChild(this.div_cursor);
33341
+ }
33340
33342
  }
33341
33343
  }
33342
33344
  }
@@ -36058,13 +36060,11 @@ var Print = /*#__PURE__*/function () {
36058
36060
  }
36059
36061
  return _context4.abrupt("continue", 40);
36060
36062
  case 32:
36061
- // if(hoEditorFactory.vueController.isEmptyPage(index)) {
36062
- // console.log(`第${index + 1}页 ==> ???`);
36063
- // continue;
36064
- // }
36065
36063
  if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
36066
36064
  cpage.drawDomLevel.bindStage();
36067
36065
  cpage.needUpdateStage = true;
36066
+ } else if (cpage.drawDomLevel && cpage.drawDomLevel.stage) {
36067
+ cpage.drawDomLevel.bindStage();
36068
36068
  }
36069
36069
  // 合并续打: 上一页还有空余时续打起始页隐藏页脚
36070
36070
  if (index === hoEditorFactory.startPageNum && positionY) {
@@ -36336,6 +36336,8 @@ var Print = /*#__PURE__*/function () {
36336
36336
  if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
36337
36337
  cpage.drawDomLevel.bindStage();
36338
36338
  cpage.needUpdateStage = true;
36339
+ } else if (cpage.drawDomLevel && cpage.drawDomLevel.stage) {
36340
+ cpage.drawDomLevel.bindStage();
36339
36341
  }
36340
36342
  if (cpage.needUpdateStage && cpage.drawDomLevel && cpage.drawDomLevel.stage) {
36341
36343
  cpage.drawDomLevel.stage.update();
@@ -36424,6 +36426,8 @@ var Print = /*#__PURE__*/function () {
36424
36426
  if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
36425
36427
  cpage.drawDomLevel.bindStage();
36426
36428
  cpage.needUpdateStage = true;
36429
+ } else if (cpage.drawDomLevel && cpage.drawDomLevel.stage) {
36430
+ cpage.drawDomLevel.bindStage();
36427
36431
  }
36428
36432
  if (cpage.needUpdateStage && cpage.drawDomLevel && cpage.drawDomLevel.stage) {
36429
36433
  cpage.drawDomLevel.stage.update();
@@ -36543,6 +36547,8 @@ var Print = /*#__PURE__*/function () {
36543
36547
  if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
36544
36548
  cpage.drawDomLevel.bindStage();
36545
36549
  cpage.needUpdateStage = true;
36550
+ } else if (cpage.drawDomLevel && cpage.drawDomLevel.stage) {
36551
+ cpage.drawDomLevel.bindStage();
36546
36552
  }
36547
36553
  if (cpage.needUpdateStage && cpage.drawDomLevel && cpage.drawDomLevel.stage) {
36548
36554
  cpage.drawDomLevel.stage.update();
@@ -45405,7 +45411,6 @@ var PaintRowLineStyle;
45405
45411
  PaintRowLineStyle[PaintRowLineStyle["dot"] = 4] = "dot";
45406
45412
  })(PaintRowLineStyle || (PaintRowLineStyle = {})); //绘制行线样式{实线,虚线,点划线,双点划线,点线}
45407
45413
  var PageProperty = /*#__PURE__*/function () {
45408
- //批注宽度(像素)
45409
45414
  function PageProperty(hoEditorFactoryID) {
45410
45415
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, PageProperty);
45411
45416
  //private static _instance: PageProperty;
@@ -45420,17 +45425,17 @@ var PageProperty = /*#__PURE__*/function () {
45420
45425
  //打印方向
45421
45426
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_isPaintBorder", false);
45422
45427
  // 是否绘制边框
45423
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_borderColor", "#000000");
45428
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_borderColor", '#000000');
45424
45429
  //边框颜色
45425
45430
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_paintRowLine", PaintRowLineStyle.solid);
45426
45431
  //绘制行线样式
45427
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_pageSize", "A4");
45432
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_pageSize", 'A4');
45428
45433
  //纸张大小
45429
45434
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_widthMm", 210);
45430
45435
  //页宽(毫米)
45431
45436
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_heightMm", 297);
45432
45437
  //页高(毫米)
45433
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_source", "");
45438
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_source", '');
45434
45439
  //来源
45435
45440
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_topMarginMm", 25);
45436
45441
  //页上边距(毫米)
@@ -45458,13 +45463,13 @@ var PageProperty = /*#__PURE__*/function () {
45458
45463
  // 监听画布宽高变化
45459
45464
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_canvasHeadFootPos", void 0);
45460
45465
  // 监听页眉页脚 Y 坐标
45461
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_fontFormat", "宋体");
45466
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_fontFormat", '宋体');
45462
45467
  //字体
45463
45468
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_fontSize", 14);
45464
45469
  //字号
45465
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_fontColor", "#000000");
45470
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_fontColor", '#000000');
45466
45471
  //字体颜色
45467
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_backColor", "transparent");
45472
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_backColor", 'transparent');
45468
45473
  //字体背景颜色
45469
45474
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_paraAlign", _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_13__/* .Align */ .xM.alSpaceEqually);
45470
45475
  //段落对齐方式
@@ -45490,6 +45495,10 @@ var PageProperty = /*#__PURE__*/function () {
45490
45495
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_footerYPixes", void 0);
45491
45496
  //页脚距页边距(像素)
45492
45497
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_commentWidthPixes", void 0);
45498
+ //批注宽度(像素)
45499
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_drawLineUnderline", false);
45500
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_lineUnderlineColor", '#000000');
45501
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_lineUnderlineStyle", 0);
45493
45502
  this._hoEditorFactoryID = hoEditorFactoryID;
45494
45503
  this.mmConversionPx();
45495
45504
  }
@@ -45510,16 +45519,16 @@ var PageProperty = /*#__PURE__*/function () {
45510
45519
  }, {
45511
45520
  key: "setPageProperty",
45512
45521
  value: function setPageProperty(objectValues) {
45513
- if (objectValues !== "") {
45514
- var valuesObj = eval("(" + objectValues + ")");
45522
+ if (objectValues !== '') {
45523
+ var valuesObj = eval('(' + objectValues + ')');
45515
45524
  var assignvalue = function assignvalue(target, source) {
45516
45525
  Object.keys(source).forEach(function (value) {
45517
- if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(target[value]) == "object") {
45518
- if (Object.prototype.toString.call(source[value]) === "[object Object]") {
45526
+ if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(target[value]) == 'object') {
45527
+ if (Object.prototype.toString.call(source[value]) === '[object Object]') {
45519
45528
  assignvalue(target[value], source[value]);
45520
45529
  } else {
45521
- if (source[value] !== "" && source[value] !== null) {
45522
- assignvalue(target[value], eval("(" + source[value] + ")"));
45530
+ if (source[value] !== '' && source[value] !== null) {
45531
+ assignvalue(target[value], eval('(' + source[value] + ')'));
45523
45532
  }
45524
45533
  }
45525
45534
  } else target[value] = source[value];
@@ -45539,7 +45548,7 @@ var PageProperty = /*#__PURE__*/function () {
45539
45548
  while (1) switch (_context.prev = _context.next) {
45540
45549
  case 0:
45541
45550
  hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
45542
- if (type === "text") {
45551
+ if (type === 'text') {
45543
45552
  defaultStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_14__/* .CombineStyle */ .xc(this._hoEditorFactoryID);
45544
45553
  _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_14__/* .CombineStyle */ .xc.makeDefaultStyle(this._hoEditorFactoryID, defaultStyle);
45545
45554
  hoEditorFactory.docTree._defaultCombineStyle = defaultStyle;
@@ -45547,7 +45556,7 @@ var PageProperty = /*#__PURE__*/function () {
45547
45556
  hoEditorFactory.docTree.styles.splice(0, 1);
45548
45557
  hoEditorFactory.docTree.styles.splice(0, 0, firstStyle);
45549
45558
  }
45550
- if (type === "para") {
45559
+ if (type === 'para') {
45551
45560
  hoEditorFactory.docTree._defaultCombineParagraph = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_13__/* .CombineParagraph */ .kh(this._hoEditorFactoryID, null);
45552
45561
  hoEditorFactory.docTree._defaultCombineParagraph.defaultCombineParagraph(hoEditorFactory.docTree._defaultCombineParagraph);
45553
45562
  paragraph = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_13__/* .Paragraph */ .nv(this._hoEditorFactoryID);
@@ -45607,6 +45616,36 @@ var PageProperty = /*#__PURE__*/function () {
45607
45616
  this._paintRowLine = value;
45608
45617
  }
45609
45618
  }
45619
+ }, {
45620
+ key: "drawLineUnderline",
45621
+ get: function get() {
45622
+ return this._drawLineUnderline;
45623
+ },
45624
+ set: function set(value) {
45625
+ if (value !== this._drawLineUnderline) {
45626
+ this._drawLineUnderline = value;
45627
+ }
45628
+ }
45629
+ }, {
45630
+ key: "lineUnderlineColor",
45631
+ get: function get() {
45632
+ return this._lineUnderlineColor;
45633
+ },
45634
+ set: function set(value) {
45635
+ if (value !== this._lineUnderlineColor) {
45636
+ this._lineUnderlineColor = value;
45637
+ }
45638
+ }
45639
+ }, {
45640
+ key: "lineUnderlineStyle",
45641
+ get: function get() {
45642
+ return this._lineUnderlineStyle;
45643
+ },
45644
+ set: function set(value) {
45645
+ if (value !== this._lineUnderlineStyle) {
45646
+ this._lineUnderlineStyle = value;
45647
+ }
45648
+ }
45610
45649
  }, {
45611
45650
  key: "pageSize",
45612
45651
  get: function get() {
@@ -45799,7 +45838,7 @@ var PageProperty = /*#__PURE__*/function () {
45799
45838
  set: function set(value) {
45800
45839
  if (value !== this._fontFormat) {
45801
45840
  this._fontFormat = value;
45802
- this.setDefaultStyle("text");
45841
+ this.setDefaultStyle('text');
45803
45842
  }
45804
45843
  }
45805
45844
  }, {
@@ -45810,7 +45849,7 @@ var PageProperty = /*#__PURE__*/function () {
45810
45849
  set: function set(value) {
45811
45850
  if (value !== this._fontSize) {
45812
45851
  this._fontSize = value;
45813
- this.setDefaultStyle("text");
45852
+ this.setDefaultStyle('text');
45814
45853
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
45815
45854
  var defaultLineHeight = Math.round(hoEditorFactory.getFontHeightByFontSize(this.fontSize));
45816
45855
  hoEditorFactory.defaultLineHeight = defaultLineHeight;
@@ -45824,7 +45863,7 @@ var PageProperty = /*#__PURE__*/function () {
45824
45863
  set: function set(value) {
45825
45864
  if (value !== this._fontColor) {
45826
45865
  this._fontColor = value;
45827
- this.setDefaultStyle("text");
45866
+ this.setDefaultStyle('text');
45828
45867
  }
45829
45868
  }
45830
45869
  }, {
@@ -45835,7 +45874,7 @@ var PageProperty = /*#__PURE__*/function () {
45835
45874
  set: function set(value) {
45836
45875
  if (value !== this._backColor) {
45837
45876
  this._backColor = value;
45838
- this.setDefaultStyle("text");
45877
+ this.setDefaultStyle('text');
45839
45878
  }
45840
45879
  }
45841
45880
  }, {
@@ -45846,7 +45885,7 @@ var PageProperty = /*#__PURE__*/function () {
45846
45885
  set: function set(value) {
45847
45886
  if (value !== this._paraAlign) {
45848
45887
  this._paraAlign = value;
45849
- this.setDefaultStyle("para");
45888
+ this.setDefaultStyle('para');
45850
45889
  }
45851
45890
  }
45852
45891
  }, {
@@ -45857,7 +45896,7 @@ var PageProperty = /*#__PURE__*/function () {
45857
45896
  set: function set(value) {
45858
45897
  if (value !== this._charSpace) {
45859
45898
  this._charSpace = value;
45860
- this.setDefaultStyle("para");
45899
+ this.setDefaultStyle('para');
45861
45900
  }
45862
45901
  }
45863
45902
  }, {
@@ -45868,7 +45907,7 @@ var PageProperty = /*#__PURE__*/function () {
45868
45907
  set: function set(value) {
45869
45908
  if (value !== this._lineHeight) {
45870
45909
  this._lineHeight = value;
45871
- this.setDefaultStyle("para");
45910
+ this.setDefaultStyle('para');
45872
45911
  }
45873
45912
  }
45874
45913
  }, {
@@ -45949,7 +45988,7 @@ var PageProperty = /*#__PURE__*/function () {
45949
45988
  }], [{
45950
45989
  key: "whiteList",
45951
45990
  value: function whiteList() {
45952
- return ["printDirection", "borderColor", "isPaintBorder", "paintRowLine", "pageSize", "widthMm", "heightMm", "source", "topMarginMm", "bottomMarginMm", "leftMarginMm", "rightMarginMm", "headerYMm", "footerYMm", "showFirstPageHead", "showFirstPageFoot", "pageNumber", "isHaveBgImage", "commentWidthMm", "fontFormat", "fontSize", "fontColor", "backColor", "paraAlign", "charSpace", "lineHeight"];
45991
+ return ['drawLineUnderline', 'lineUnderlineColor', 'lineUnderlineStyle', 'printDirection', 'borderColor', 'isPaintBorder', 'paintRowLine', 'pageSize', 'widthMm', 'heightMm', 'source', 'topMarginMm', 'bottomMarginMm', 'leftMarginMm', 'rightMarginMm', 'headerYMm', 'footerYMm', 'showFirstPageHead', 'showFirstPageFoot', 'pageNumber', 'isHaveBgImage', 'commentWidthMm', 'fontFormat', 'fontSize', 'fontColor', 'backColor', 'paraAlign', 'charSpace', 'lineHeight'];
45953
45992
  }
45954
45993
  }]);
45955
45994
  return PageProperty;
@@ -59004,9 +59043,10 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
59004
59043
  //this.name,
59005
59044
  this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle);
59006
59045
  this._drawNodes.push(dNode);
59046
+ var dBoxWidth = dNode.dBoxWidth || dHeight;
59007
59047
  var dNodePrint = new _editor_draw_drawNode_DrawRadioAndCheckBoxPrint__WEBPACK_IMPORTED_MODULE_16__/* .DrawRadioAndCheckBoxPrint */ .w(this._hoEditorFactoryID, this._rootPath, this, 0, this.controlStyle,
59008
59048
  //this.name,
59009
- this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle);
59049
+ this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle, dBoxWidth);
59010
59050
  this._drawNodes.push(dNodePrint);
59011
59051
  }
59012
59052
  }, {
@@ -61046,7 +61086,8 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
61046
61086
  _this$getCellNumber2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getCellNumber, 2),
61047
61087
  bret = _this$getCellNumber2[0],
61048
61088
  value = _this$getCellNumber2[1];
61049
- if (cell.cellProperty.downListProperty) {
61089
+ var downListProperty = cell.cellProperty.downListProperty;
61090
+ if (downListProperty) {
61050
61091
  if (bret) {
61051
61092
  //total+=value;
61052
61093
  if (value !== "") {
@@ -61054,7 +61095,6 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
61054
61095
  }
61055
61096
  } else {
61056
61097
  var cellText = cell.getCellText();
61057
- var downListProperty = cell.cellProperty.downListProperty;
61058
61098
  var listItems = JSON.parse(downListProperty.listItems);
61059
61099
  if (listItems.length === undefined) {
61060
61100
  listItems = Array(JSON.parse(downListProperty.listItems));
@@ -61111,6 +61151,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
61111
61151
  }, {
61112
61152
  key: "getCellNumber",
61113
61153
  value: function getCellNumber(tb, irow, icol) {
61154
+ var _cell$getCellText;
61114
61155
  var ret = "";
61115
61156
  var bret = false;
61116
61157
  var cell = tb.rows[irow][icol];
@@ -61124,6 +61165,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
61124
61165
  // }
61125
61166
  //const strValue = cell.getCellText().replaceAll('\n', '').replaceAll(' ', '').replaceAll('\b', '').replaceAll('\r', '');
61126
61167
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_35__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
61168
+ var cellText = ((_cell$getCellText = cell.getCellText()) === null || _cell$getCellText === void 0 ? void 0 : _cell$getCellText.replace(/\n/g, '')) || '';
61127
61169
  var strValue = hoEditorFactory.unitConvert.replaceAll(cell.getCellText(), '\n', '');
61128
61170
  //如果单元格存在下拉项,取值为下拉项的value,而非节点的text
61129
61171
  if (cell.cellProperty.downListProperty) {
@@ -61146,10 +61188,6 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
61146
61188
  }
61147
61189
  });
61148
61190
  strValue = String(value);
61149
- // strValue = itemObject.value
61150
- // if(strValue === ''){
61151
- // strValue = itemObject.text
61152
- // }
61153
61191
  }
61154
61192
  }
61155
61193
  //针对单元格childNodes节点下嵌套的下拉选择处理
@@ -61182,6 +61220,9 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
61182
61220
  }
61183
61221
  }
61184
61222
  }
61223
+ if (strValue == '' && !isNaN(Number(cellText))) {
61224
+ strValue = cellText;
61225
+ }
61185
61226
  strValue = hoEditorFactory.unitConvert.replaceAll(strValue, ' ', '');
61186
61227
  strValue = hoEditorFactory.unitConvert.replaceAll(strValue, '\b', '');
61187
61228
  strValue = hoEditorFactory.unitConvert.replaceAll(strValue, '\r', '');
@@ -70356,6 +70397,12 @@ var es_array_concat = __webpack_require__(92222);
70356
70397
  var es_array_splice = __webpack_require__(40561);
70357
70398
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
70358
70399
  var es_array_slice = __webpack_require__(47042);
70400
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
70401
+ var es_array_includes = __webpack_require__(26699);
70402
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
70403
+ var es_string_includes = __webpack_require__(32023);
70404
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
70405
+ var es_function_name = __webpack_require__(68309);
70359
70406
  // EXTERNAL MODULE: ./src/yuki-createjs/index.ts
70360
70407
  var yuki_createjs = __webpack_require__(38205);
70361
70408
  // EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawContainer.ts
@@ -70448,6 +70495,8 @@ var TextInputFieldNode = __webpack_require__(65043);
70448
70495
  var DrawRadioAndCheckBox = __webpack_require__(88666);
70449
70496
  // EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawRadioAndCheckBoxPrint.ts
70450
70497
  var DrawRadioAndCheckBoxPrint = __webpack_require__(91757);
70498
+ // EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawPageCell.ts + 1 modules
70499
+ var DrawPageCell = __webpack_require__(59105);
70451
70500
  ;// CONCATENATED MODULE: ./src/editor/draw/DrawLine.ts
70452
70501
 
70453
70502
 
@@ -70470,6 +70519,10 @@ var DrawRadioAndCheckBoxPrint = __webpack_require__(91757);
70470
70519
 
70471
70520
 
70472
70521
 
70522
+
70523
+
70524
+
70525
+
70473
70526
 
70474
70527
 
70475
70528
 
@@ -70493,11 +70546,12 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
70493
70546
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_docHeight", void 0);
70494
70547
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_dBaseY", void 0);
70495
70548
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_maxFontHeight", void 0);
70549
+ (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_underlineShape", void 0);
70496
70550
  _this._paragraphNode = node;
70497
70551
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(node.hoEditorFactoryID);
70498
70552
  _this._dWidth = width;
70499
70553
  _this._actualWidth = 0;
70500
- _this._dHeight = hoEditorFactory.defaultLineHeight;
70554
+ // this._dHeight = hoEditorFactory.defaultLineHeight;
70501
70555
  var paraFontstyle = hoEditorFactory.docTree.styles[node.styleIndex];
70502
70556
  var size = paraFontstyle && paraFontstyle.size ? paraFontstyle.size : hoEditorFactory.docTree.defaultCombineStyle.size;
70503
70557
  _this._maxFontHeight = hoEditorFactory.getFontHeightByFontSize(size);
@@ -70688,9 +70742,7 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
70688
70742
  for (var i = 0; i < this._drawItems.length; i++) {
70689
70743
  var _dItem = this._drawItems[i];
70690
70744
  var dx = _dItem.x;
70691
- var dy = 0;
70692
70745
  var dWidth = _dItem.dWidth + this.charSpace;
70693
- var dBottom = this._dHeight;
70694
70746
  if (x >= dx && x <= dx + dWidth) {
70695
70747
  if (_dItem instanceof DrawTextNode/* DrawTextNode */.v) {
70696
70748
  if (_dItem.node instanceof TextNode/* TextNode */.R) {
@@ -70828,6 +70880,7 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
70828
70880
  this._charSpace = this._paragraphNode.combineParagraph.charSpace;
70829
70881
  this.dWidth = this._dWidth;
70830
70882
  this.dHeight = this._dHeight;
70883
+ this.createdUnderline();
70831
70884
  }
70832
70885
  }, {
70833
70886
  key: "updateLineStyle",
@@ -70906,6 +70959,9 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
70906
70959
  this._dHeight = aHeight + this._maxFontHeight * (this.paragraphNode.combineParagraph.lineSpace - 1);
70907
70960
  }
70908
70961
  this.dHeight = this._dHeight;
70962
+ if (this._underlineShape) {
70963
+ this._underlineShape.y = this.dHeight + 1;
70964
+ }
70909
70965
  var bottompos = dHeight + (this._dHeight - dHeight) / 2;
70910
70966
  for (var j = 0; j < this.drawItems.length; j++) {
70911
70967
  if (this.drawItems[j] instanceof DrawContainer/* DrawContainer */.H) {
@@ -70955,6 +71011,37 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
70955
71011
  get: function get() {
70956
71012
  return this._docHeight;
70957
71013
  }
71014
+ }, {
71015
+ key: "isInTable",
71016
+ value: function isInTable() {
71017
+ var _this$paragraphNode;
71018
+ if (this.parent instanceof DrawPageCell/* DrawPageCell */.k || ((_this$paragraphNode = this.paragraphNode) === null || _this$paragraphNode === void 0 ? void 0 : _this$paragraphNode.parentNode) instanceof CellNode/* CellNode */.D) {
71019
+ return true;
71020
+ }
71021
+ return false;
71022
+ }
71023
+ }, {
71024
+ key: "createdUnderline",
71025
+ value: function createdUnderline() {
71026
+ var _this$paragraphNode2;
71027
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._paragraphNode.hoEditorFactoryID);
71028
+ var isDraw = hoEditorFactory.pageProperty.drawLineUnderline && !this._underlineShape && this.rootPath.includes('main') && !(this.parent instanceof DrawPageCell/* DrawPageCell */.k) && !(((_this$paragraphNode2 = this.paragraphNode) === null || _this$paragraphNode2 === void 0 ? void 0 : _this$paragraphNode2.parentNode) instanceof CellNode/* CellNode */.D);
71029
+ // const isPrint = hoEditorFactory.drawTree.paintStatus == PaintState.psPreview || hoEditorFactory.drawTree.paintStatus == PaintState.psPrint;
71030
+ if (isDraw) {
71031
+ var shape = new createjs.Shape();
71032
+ shape.graphics.clear();
71033
+ var width = Math.max(this.actualWidth, this.dWidth);
71034
+ if (hoEditorFactory.pageProperty.lineUnderlineStyle === 0) {
71035
+ shape.graphics.beginFill(hoEditorFactory.pageProperty.lineUnderlineColor || '#000000').drawRect(0, 0, width, 1).endFill();
71036
+ } else {
71037
+ shape.graphics.beginStroke(hoEditorFactory.pageProperty.lineUnderlineColor || '#000000').setStrokeDash([2, 2]).moveTo(0, 0).lineTo(width, 1).endStroke();
71038
+ }
71039
+ shape.name = 'dline_underline';
71040
+ shape.y = this.dHeight;
71041
+ this._underlineShape = shape;
71042
+ this.addChild(this._underlineShape);
71043
+ }
71044
+ }
70958
71045
  }], [{
70959
71046
  key: "inSameLine",
70960
71047
  value: function inSameLine(dobj1, dobj2) {
@@ -79029,6 +79116,7 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
79029
79116
  (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);
79030
79117
  (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);
79031
79118
  (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), "_charCount", void 0);
79119
+ (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), "dBoxWidth", 0);
79032
79120
  _this._controlStyle = controlStyle;
79033
79121
  if (node.isTransToText) {
79034
79122
  _this._charCount = 1;
@@ -79063,6 +79151,7 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
79063
79151
  }
79064
79152
  var textWidth = _this._dText.getMeasuredWidth();
79065
79153
  var boxwidth = _this._dBox.getMeasuredWidth();
79154
+ _this.dBoxWidth = boxwidth;
79066
79155
  _this.dWidth = textWidth + boxwidth + blockWidth;
79067
79156
  if (node.isEditText) {
79068
79157
  var underLineLen = 40;
@@ -79076,10 +79165,6 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
79076
79165
  }
79077
79166
  _this.dHeight = height;
79078
79167
  _this._textStyle = textStyle;
79079
- // this._border = new createjs.Shape();
79080
- // this._border.graphics.beginFill("red").drawRect(0, 0, this.dWidth, this.dHeight);
79081
- // this._border.y = - this.dHeight;
79082
- //this._mouseOverShape = new createjs.Shape();
79083
79168
  _this.drawRadioAndCheckBox();
79084
79169
  return _this;
79085
79170
  }
@@ -79140,14 +79225,6 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
79140
79225
  key: "drawRadioAndCheckBox",
79141
79226
  value: function drawRadioAndCheckBox() {
79142
79227
  this.clear();
79143
- // const backColor = new createjs.Shape();
79144
- // backColor.graphics.clear();
79145
- // backColor.graphics
79146
- // .beginFill("#ADD8E6")
79147
- // .drawRect(0, 0, this.dWidth, -this.dHeight);
79148
- // backColor.alpha = 0.01;
79149
- // backColor.name = "backColor";
79150
- // this.addChildAt(backColor, 0);
79151
79228
  if (this.boxAlign) {
79152
79229
  this.drawBox();
79153
79230
  if (!this.node.isTransToText && this.text.length > 0) {
@@ -79279,9 +79356,10 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
79279
79356
  var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
79280
79357
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DrawRadioAndCheckBoxPrint, _DrawCombineNode);
79281
79358
  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);
79359
+ // public dBoxWidth: number = 0;
79282
79360
  function DrawRadioAndCheckBoxPrint(hoeditfactoryID, rootPath, node, index, controlStyle,
79283
79361
  //name: string,
79284
- isSelected, boxAlign, numericValue, height, textStyle) {
79362
+ isSelected, boxAlign, numericValue, height, textStyle, dBoxWidth) {
79285
79363
  var _this;
79286
79364
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawRadioAndCheckBoxPrint);
79287
79365
  _this = _super.call(this, hoeditfactoryID, rootPath, node, index);
@@ -79317,12 +79395,12 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
79317
79395
  _this._dBox.graphics.clear().setStrokeStyle(1, 'round', 'round').beginStroke("#000").drawCircle((height - 2) / 2, -height / 2 + 2, (height - 2) / 2).endStroke();
79318
79396
  }
79319
79397
  var textWidth = _this._dText.getMeasuredWidth();
79320
- var boxwidth = height;
79321
79398
  var blockWidth = 0;
79322
79399
  if (_this.text !== "") {
79323
79400
  blockWidth = 6;
79324
79401
  }
79325
- _this.dWidth = textWidth + boxwidth + blockWidth;
79402
+ // this.dBoxWidth = dBoxWidth;
79403
+ _this.dWidth = textWidth + dBoxWidth + blockWidth;
79326
79404
  if (node.isEditText) {
79327
79405
  var underLineLen = 40;
79328
79406
  if (node.appendText.length > 0) {
@@ -79415,54 +79493,57 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
79415
79493
  value: function drawBox() {
79416
79494
  var drawBox;
79417
79495
  drawBox = new createjs.Shape();
79496
+ var textWidth = this._dText.getMeasuredWidth();
79497
+ var x = 0;
79498
+ if (this.boxAlign) {
79499
+ // if(this.controlStyle === "CheckBox"){
79500
+ // x = Math.max(1, this.dBoxWidth - this.dHeight);
79501
+ // } else {
79502
+ x = 1;
79503
+ // }
79504
+ } else {
79505
+ x = textWidth;
79506
+ }
79418
79507
  if (this.controlStyle === "CheckBox") {
79419
79508
  //复选框
79420
79509
  if (this.isSelected) {
79421
79510
  drawBox.graphics.clear().beginStroke(this._textStyle.color).drawRect(0, -this.dHeight + 2, this.dHeight - 2, this.dHeight - 2).endStroke();
79422
- this.addChild(drawBox);
79423
79511
  var line1 = new createjs.Shape();
79424
79512
  var line2 = new createjs.Shape();
79425
79513
  if (this.boxAlign) {
79426
79514
  line1.graphics.beginStroke(this._textStyle.color).moveTo(3, -this.dHeight / 2 + 2).lineTo(this.dHeight / 2 - 1, -2).endStroke();
79427
- this.addChild(line1);
79428
79515
  line2.graphics.beginStroke(this._textStyle.color).moveTo(this.dHeight / 2 - 1, -2).lineTo(this.dHeight - 3, -this.dHeight + 4).endStroke();
79429
- this.addChild(line2);
79516
+ line1.x = x;
79517
+ line2.x = x;
79430
79518
  } else {
79431
- var textWidth = this._dText.getMeasuredWidth();
79432
79519
  line1.graphics.beginStroke(this._textStyle.color).moveTo(3 + textWidth, -this.dHeight / 2 + 2).lineTo(this.dHeight / 2 - 1 + textWidth, -2).endStroke();
79433
- this.addChild(line1);
79434
79520
  line2.graphics.beginStroke(this._textStyle.color).moveTo(this.dHeight / 2 - 1 + textWidth, -2).lineTo(this.dHeight - 3 + textWidth, -this.dHeight + 4).endStroke();
79435
- this.addChild(line2);
79436
79521
  }
79522
+ this.addChild(line1);
79523
+ this.addChild(line2);
79437
79524
  } else {
79438
79525
  drawBox.graphics.clear().beginStroke(this._textStyle.color).drawRect(0, -this.dHeight + 2, this.dHeight - 2, this.dHeight - 2).endStroke();
79439
- this.addChild(drawBox);
79440
79526
  }
79441
79527
  } else {
79442
79528
  //单选框
79443
79529
  if (this.isSelected) {
79444
79530
  drawBox.graphics.clear().setStrokeStyle(1, 'round', 'round').beginStroke(this._textStyle.color).drawCircle((this.dHeight - 2) / 2, -this.dHeight / 2 + 2, (this.dHeight - 2) / 2).endStroke();
79445
- this.addChild(drawBox);
79446
79531
  var dot = new createjs.Shape();
79447
79532
  if (this.boxAlign) {
79448
- dot.graphics.clear().beginStroke(this._textStyle.color).beginFill(this._textStyle.color).drawCircle((this.dHeight - 2) / 2 + 1, -this.dHeight / 2 + 2, 1).endStroke();
79533
+ dot.graphics.clear().beginStroke(this._textStyle.color).beginFill(this._textStyle.color).drawCircle((this.dHeight - 2) / 2 + x, -this.dHeight / 2 + 2, 1).endStroke();
79449
79534
  this.addChild(dot);
79450
79535
  } else {
79451
- dot.graphics.clear().beginStroke(this._textStyle.color).beginFill(this._textStyle.color).drawCircle((this.dHeight - 2) / 2 + this._dText.getMeasuredWidth(), -this.dHeight / 2 + 2, 1).endStroke();
79536
+ dot.graphics.clear().beginStroke(this._textStyle.color).beginFill(this._textStyle.color).drawCircle((this.dHeight - 2) / 2 + textWidth, -this.dHeight / 2 + 2, 1).endStroke();
79452
79537
  this.addChild(dot);
79453
79538
  }
79454
79539
  } else {
79455
79540
  drawBox.graphics.clear().setStrokeStyle(1, 'round', 'round').beginStroke(this._textStyle.color).drawCircle((this.dHeight - 2) / 2, -this.dHeight / 2 + 2, (this.dHeight - 2) / 2).endStroke();
79456
- this.addChild(drawBox);
79457
79541
  }
79458
79542
  }
79459
79543
  drawBox.name = "box";
79460
- if (this.boxAlign) {
79461
- drawBox.x = 1;
79462
- } else {
79463
- drawBox.x = this._dText.getMeasuredWidth();
79464
- }
79544
+ drawBox.x = x;
79465
79545
  drawBox.y = this.y;
79546
+ this.addChild(drawBox);
79466
79547
  }
79467
79548
  }, {
79468
79549
  key: "drawText",
@@ -84032,6 +84113,8 @@ var PageProperty = __webpack_require__(65847);
84032
84113
 
84033
84114
 
84034
84115
 
84116
+
84117
+
84035
84118
  var DrawPage = /*#__PURE__*/function () {
84036
84119
  function DrawPage(hoeditorfacotryID, index //,
84037
84120
  //doc: DocTree,
@@ -84400,21 +84483,11 @@ var DrawPage = /*#__PURE__*/function () {
84400
84483
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
84401
84484
  while (1) switch (_context.prev = _context.next) {
84402
84485
  case 0:
84403
- // const isHaveBgImage = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.isHaveBgImage;
84404
- // if (!isHaveBgImage) {
84405
84486
  //TODO:如果没有设置背景或者背景为空时绘制白色背景
84406
84487
  if (!this._background) this._background = new createjs.Shape();
84407
84488
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
84408
84489
  this._background.graphics.clear();
84409
- backColor = hoEditorFactory.drawTree.paintStatus === PaintState.psPreview ? '#FFFFFF' : '#FFFFFF'; // this._background.graphics
84410
- // .beginFill(backColor)
84411
- // .drawRect(
84412
- // 0,
84413
- // 0,
84414
- // hoEditorFactory.pageProperty.widthPixes,
84415
- // hoEditorFactory.pageProperty.heightPixes
84416
- // )
84417
- // .closePath();
84490
+ backColor = hoEditorFactory.drawTree.paintStatus === PaintState.psPreview ? '#FFFFFF' : '#FFFFFF';
84418
84491
  this._background.graphics.beginFill(backColor).drawRect(0, 0, hoEditorFactory.pageProperty.canvasParams.width, hoEditorFactory.pageProperty.canvasParams.height).closePath();
84419
84492
  if (this._domLevel && this._domLevel.stage) {
84420
84493
  this.drawDocContainer.addChildAt(this._background, 0);
@@ -84430,6 +84503,20 @@ var DrawPage = /*#__PURE__*/function () {
84430
84503
  }
84431
84504
  return paintBackGround;
84432
84505
  }()
84506
+ }, {
84507
+ key: "paintChild",
84508
+ value: function paintChild(paintStatus) {
84509
+ var dline = this.drawMainDoc.children[this.drawMainDoc.children.length - 1];
84510
+ if (dline instanceof DrawLine/* DrawLine */.a) {
84511
+ if (dline.children.length == 1 && dline.children[0].name == 'dline_underline') {
84512
+ if (paintStatus === PaintState.psPreview || paintStatus === PaintState.psPrint) {
84513
+ dline.children[0].alpha = 0;
84514
+ } else {
84515
+ dline.children[0].alpha = 1;
84516
+ }
84517
+ }
84518
+ }
84519
+ }
84433
84520
  }, {
84434
84521
  key: "removeBackGroud",
84435
84522
  value: function removeBackGroud() {
@@ -85558,6 +85645,10 @@ var DrawTree = /*#__PURE__*/function () {
85558
85645
  _aCell$table$getCellI2 = (0,slicedToArray/* default */.Z)(_aCell$table$getCellI, 2),
85559
85646
  r = _aCell$table$getCellI2[0],
85560
85647
  c = _aCell$table$getCellI2[1];
85648
+ if (!aCell.table.rowInfos[r + aCell.rowSpan - 1]) {
85649
+ console.warn("行信息不存在", r, c);
85650
+ return null;
85651
+ }
85561
85652
  if (r >= 0) {
85562
85653
  var rowPorperty = aCell.table.rowInfos[r + aCell.rowSpan - 1].rowProperty;
85563
85654
  if (rowPorperty.rowHeight > 0 && rowPorperty.isLockRowHeight) {
@@ -87228,13 +87319,9 @@ var DrawTree = /*#__PURE__*/function () {
87228
87319
  value: function getStagePosition(dPage, dPlace, x, y) {
87229
87320
  var hoeditfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
87230
87321
  if (dPage.drawDomLevel) {
87231
- // const dPlace = dPage.drawDomLevel.activeDrawRect;
87232
- // console.log("x:" + x + ";y:" + y);
87233
- var stage = dPage.drawDomLevel.stage;
87234
87322
  //转换为区域坐标
87235
87323
  var pt = dPlace.globalToLocal(x, y);
87236
87324
  var aPage = dPage;
87237
- // const dItems = dPlace.drawLines;
87238
87325
  //处理跨页空单元格
87239
87326
  if (dPlace instanceof DrawPageCell/* DrawPageCell */.k && dPlace.isEmpty()) {
87240
87327
  var aPrevPlace;
@@ -87265,11 +87352,6 @@ var DrawTree = /*#__PURE__*/function () {
87265
87352
  }
87266
87353
  }
87267
87354
  }
87268
- // if (dPlace instanceof DrawCell) {
87269
- // dItems = (dPlace as DrawCell).drawLxines;
87270
- // } else {
87271
- // dItems = dPlace.children;
87272
- // }
87273
87355
  var dLine = dPlace.getDlineByPos(dPlace.children, pt.x, pt.y);
87274
87356
  if (!dLine) {
87275
87357
  return null;
@@ -87279,8 +87361,6 @@ var DrawTree = /*#__PURE__*/function () {
87279
87361
  var aPlace = dLine.getDrawPageCellByPos(newPt.x, newPt.y);
87280
87362
  return this.getStagePosition(dPage, aPlace, x, y);
87281
87363
  }
87282
- var dNode;
87283
- var node;
87284
87364
  var linePt = dLine.globalToLocal(x, y);
87285
87365
  var index;
87286
87366
  if (pt.y > dLine.y + dLine.dHeight + dLine.paragraphNode.combineParagraph.lineSpace) {
@@ -208365,14 +208445,17 @@ var DrawDomLevel = /*#__PURE__*/function () {
208365
208445
  }, {
208366
208446
  key: "bindStage",
208367
208447
  value: function bindStage(isPrint) {
208448
+ var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
208449
+ var dPage = hoeditorfactory.drawTree.drawPages[this._pageIndex];
208450
+ if (this._pageIndex == hoeditorfactory.drawTree.drawPages.length - 1) {
208451
+ dPage.paintChild(hoeditorfactory.drawTree.paintStatus);
208452
+ }
208368
208453
  if (!this._domStage) {
208369
- var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
208370
208454
  this._domCanvas.width = hoeditorfactory.pageProperty.canvasParams.width;
208371
208455
  this._domCanvas.height = hoeditorfactory.pageProperty.canvasParams.height;
208372
208456
  this._domStage = new createjs.Stage(this._domCanvas);
208373
208457
  this._domStage.scaleX = DrawConfig/* DrawConfig */.f.instance().scale;
208374
208458
  this._domStage.scaleY = DrawConfig/* DrawConfig */.f.instance().scale;
208375
- var dPage = hoeditorfactory.drawTree.drawPages[this._pageIndex];
208376
208459
  var keys = (0,esm_toConsumableArray/* default */.Z)(hoeditorfactory.drawPageTree.needUpdateMainDocInfo.keys()).sort(function (a, b) {
208377
208460
  if (a > b) {
208378
208461
  return 1;
@@ -208396,21 +208479,12 @@ var DrawDomLevel = /*#__PURE__*/function () {
208396
208479
  hoeditorfactory.subDocManger.repaintPageMarkNodes(dPage.drawHeader, SubDocManger/* HeaderFooterType */.pi.hftHead);
208397
208480
  hoeditorfactory.subDocManger.paintSubDoc(dPage.pageIndex, SubDocManger/* HeaderFooterType */.pi.hftFoot);
208398
208481
  hoeditorfactory.subDocManger.repaintPageMarkNodes(dPage.drawFooter, SubDocManger/* HeaderFooterType */.pi.hftFoot);
208399
- // dPage.drawDocContainer.addChild(dPage.drawHeader);
208400
208482
  dPage.drawHeader.x = hoeditorfactory.pageProperty.leftMarginPixes;
208401
- // dPage.drawHeader.y = hoeditorfactory.pageProperty.headerYPixes;
208402
- // // this._domStage.addChildAt(this._drawMainDoc, 0);
208403
208483
  dPage.drawMainDoc.x = hoeditorfactory.pageProperty.leftMarginPixes;
208404
- // dPage.drawMainDoc.y = this._mainDocTop; // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.topMarginPixes +
208405
- // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.headerYPixes;
208406
- // dPage.drawDocContainer.addChild(dPage.drawFooter);
208407
208484
  dPage.drawFooter.x = hoeditorfactory.pageProperty.leftMarginPixes;
208408
- // dPage.drawFooter.y =
208409
- // hoeditorfactory.pageProperty.heightPixes -
208410
- // hoeditorfactory.pageProperty.bottomMarginPixes;
208411
208485
  dPage.drawDocContainer.addChild(dPage.drawMainDoc);
208412
- } else {
208413
- if (isPrint) this._domStage.update();
208486
+ } else if (isPrint) {
208487
+ this._domStage.update();
208414
208488
  }
208415
208489
  }
208416
208490
  }, {
@@ -210502,7 +210576,7 @@ var TextNode = __webpack_require__(27198);
210502
210576
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
210503
210577
  var ParagraphNode = __webpack_require__(67945);
210504
210578
  ;// CONCATENATED MODULE: ./src/components/version.ts
210505
- /* harmony default export */ var version = ('3.1.160');
210579
+ /* harmony default export */ var version = ('3.1.162');
210506
210580
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
210507
210581
  var PoperTipText = __webpack_require__(84531);
210508
210582
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -216025,6 +216099,9 @@ var StructureConvert = /*#__PURE__*/function () {
216025
216099
  pageProperty.paraAlign = pageSettings.paraAlign ? Number(pageSettings.paraAlign) : 3;
216026
216100
  pageProperty.charSpace = pageSettings.charSpace ? Number(pageSettings.charSpace) : 0;
216027
216101
  pageProperty.lineHeight = pageSettings.lineHeight ? Number(pageSettings.lineHeight) : 1.25;
216102
+ pageProperty.drawLineUnderline = pageSettings.drawLineUnderline === "true" ? true : false;
216103
+ pageProperty.lineUnderlineColor = pageSettings.lineUnderlineColor || '#000000';
216104
+ pageProperty.lineUnderlineStyle = pageSettings.lineUnderlineStyle == 1 ? 1 : 0;
216028
216105
  // hoEditorFactory.pageProperty = pageProperty;
216029
216106
  }
216030
216107
 
@@ -220936,12 +221013,14 @@ var VueController = /*#__PURE__*/function () {
220936
221013
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
220937
221014
  var scaleXY = DrawConfig/* DrawConfig */.f.instance().scale;
220938
221015
  var drawPage = hoEditorFactory.drawTree.drawPages[pageIndex];
220939
- for (var j = 0; j < drawPage.selectContainer.children.length; j++) {
220940
- var child = drawPage.selectContainer.children[j];
220941
- if (child.name && child.name.includes("mask")) {
220942
- var bounds = child.getBounds();
220943
- if (stageY > bounds.y * scaleXY && stageY < bounds.y * scaleXY + bounds.height * scaleXY) {
220944
- return false;
221016
+ if (drawPage) {
221017
+ for (var j = 0; j < drawPage.selectContainer.children.length; j++) {
221018
+ var child = drawPage.selectContainer.children[j];
221019
+ if (child.name && child.name.includes("mask")) {
221020
+ var bounds = child.getBounds();
221021
+ if (stageY > bounds.y * scaleXY && stageY < bounds.y * scaleXY + bounds.height * scaleXY) {
221022
+ return false;
221023
+ }
220945
221024
  }
220946
221025
  }
220947
221026
  }
@@ -239649,7 +239728,7 @@ var localforage_default = /*#__PURE__*/__webpack_require__.n(localforage);
239649
239728
  var HoLocalStorage = /*#__PURE__*/function () {
239650
239729
  // 增加页面刷新时缓存未保存的病历数据
239651
239730
  function HoLocalStorage(hoEditorFactoryID) {
239652
- var _window;
239731
+ var _this$getChromeWebvie;
239653
239732
  (0,esm_classCallCheck/* default */.Z)(this, HoLocalStorage);
239654
239733
  (0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
239655
239734
  (0,esm_defineProperty/* default */.Z)(this, "_key", void 0);
@@ -239693,7 +239772,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
239693
239772
  // name: "_ho_web",
239694
239773
  // storeName: this._storeName,
239695
239774
  // });
239696
- (_window = window) === null || _window === void 0 || (_window = _window.chrome) === null || _window === void 0 || (_window = _window.webview) === null || _window === void 0 ? void 0 : _window.addEventListener('message', function (e) {
239775
+ (_this$getChromeWebvie = this.getChromeWebview()) === null || _this$getChromeWebvie === void 0 ? void 0 : _this$getChromeWebvie.addEventListener('message', function (e) {
239697
239776
  if (e && e.data) {
239698
239777
  var res = JSON.parse(e.data);
239699
239778
  // console.log('res-----', res);
@@ -239717,10 +239796,25 @@ var HoLocalStorage = /*#__PURE__*/function () {
239717
239796
  }
239718
239797
  });
239719
239798
  }
239720
- // set ho_web(value: any) {
239721
- // this._ho_web = value;
239722
- // }
239723
239799
  (0,esm_createClass/* default */.Z)(HoLocalStorage, [{
239800
+ key: "getChromeWebview",
239801
+ value: function getChromeWebview() {
239802
+ var _chromes;
239803
+ var chromes;
239804
+ try {
239805
+ if (window.top) {
239806
+ chromes = window.top.chrome;
239807
+ }
239808
+ } catch (error) {
239809
+ console.error(error);
239810
+ chromes = undefined;
239811
+ }
239812
+ return (_chromes = chromes) === null || _chromes === void 0 ? void 0 : _chromes.webview;
239813
+ }
239814
+ // set ho_web(value: any) {
239815
+ // this._ho_web = value;
239816
+ // }
239817
+ }, {
239724
239818
  key: "initHoWebSql",
239725
239819
  value: function initHoWebSql() {
239726
239820
  localforage_default().config({
@@ -239752,7 +239846,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
239752
239846
  }, {
239753
239847
  key: "getLocalXmlList",
239754
239848
  value: function getLocalXmlList(callBack) {
239755
- var _window2;
239849
+ var _this$getChromeWebvie2;
239756
239850
  this.callBack = callBack;
239757
239851
  var hoEditfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
239758
239852
  var data = {
@@ -239765,7 +239859,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
239765
239859
  }
239766
239860
  }
239767
239861
  };
239768
- (_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.chrome) === null || _window2 === void 0 || (_window2 = _window2.webview) === null || _window2 === void 0 ? void 0 : _window2.postMessage(data);
239862
+ (_this$getChromeWebvie2 = this.getChromeWebview()) === null || _this$getChromeWebvie2 === void 0 ? void 0 : _this$getChromeWebvie2.postMessage(data);
239769
239863
  }
239770
239864
  // 获取key的数据 => { data, keyInfo }
239771
239865
  }, {
@@ -239779,7 +239873,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
239779
239873
  }, {
239780
239874
  key: "loadLocalXml",
239781
239875
  value: function loadLocalXml(item, callBack) {
239782
- var _window3;
239876
+ var _this$getChromeWebvie3;
239783
239877
  this.callBackForLoad = callBack;
239784
239878
  var data = {
239785
239879
  exec: 'emr',
@@ -239791,7 +239885,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
239791
239885
  }
239792
239886
  }
239793
239887
  };
239794
- (_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.chrome) === null || _window3 === void 0 || (_window3 = _window3.webview) === null || _window3 === void 0 ? void 0 : _window3.postMessage(data);
239888
+ (_this$getChromeWebvie3 = this.getChromeWebview()) === null || _this$getChromeWebvie3 === void 0 ? void 0 : _this$getChromeWebvie3.postMessage(data);
239795
239889
  }
239796
239890
  }, {
239797
239891
  key: "removeLocalStorage",
@@ -239822,18 +239916,19 @@ var HoLocalStorage = /*#__PURE__*/function () {
239822
239916
  }, {
239823
239917
  key: "autoSaveLocalStorage",
239824
239918
  value: function autoSaveLocalStorage() {
239825
- var _window4,
239919
+ var _this$getChromeWebvie4,
239826
239920
  _this4 = this;
239827
239921
  if (this._lastSaveTime && new Date().getTime() - this._lastSaveTime <= this._intervalsTime) {
239828
239922
  return;
239829
239923
  }
239830
- var HoBrowser = (_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.chrome) === null || _window4 === void 0 ? void 0 : _window4.webview;
239924
+ var HoBrowser = (_this$getChromeWebvie4 = this.getChromeWebview()) === null || _this$getChromeWebvie4 === void 0 ? void 0 : _this$getChromeWebvie4.webview;
239831
239925
  var saveTime = (0,plugins_util/* dateFormat */.vc)(new Date());
239832
239926
  var hoEditfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
239833
239927
  this._key = hoEditfactory.userInfo.id + hoEditfactory.docTree.docProperty.patientID + hoEditfactory.docTree.docProperty.title;
239834
239928
  if (HoBrowser) {
239835
239929
  this._lastSaveTime = new Date(saveTime).getTime();
239836
239930
  if (hoEditfactory && hoEditfactory.vueController.isModifyDoc()) {
239931
+ var _this$getChromeWebvie5;
239837
239932
  var data = {
239838
239933
  exec: 'emr',
239839
239934
  data: {
@@ -239846,7 +239941,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
239846
239941
  }
239847
239942
  };
239848
239943
  // console.log('SaveEmrData', data);
239849
- window.chrome.webview.postMessage(data);
239944
+ (_this$getChromeWebvie5 = this.getChromeWebview()) === null || _this$getChromeWebvie5 === void 0 ? void 0 : _this$getChromeWebvie5.postMessage(data);
239850
239945
  }
239851
239946
  } else if (this._networkConnectionStatus) {
239852
239947
  // 网络连接正常情况下正常缓存
@@ -243740,8 +243835,8 @@ var UpdateDocument_component = (0,componentNormalizer/* default */.Z)(
243740
243835
  )
243741
243836
 
243742
243837
  /* harmony default export */ var UpdateDocument = (UpdateDocument_component.exports);
243743
- ;// 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/toolbar/PageSetting.vue?vue&type=template&id=4294664e&
243744
- var PageSettingvue_type_template_id_4294664e_render = function render() {
243838
+ ;// 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/toolbar/PageSetting.vue?vue&type=template&id=077d9a5e&
243839
+ var PageSettingvue_type_template_id_077d9a5e_render = function render() {
243745
243840
  var _vm = this,
243746
243841
  _c = _vm._self._c;
243747
243842
  return _c('div', {
@@ -243787,7 +243882,11 @@ var PageSettingvue_type_template_id_4294664e_render = function render() {
243787
243882
  staticStyle: {
243788
243883
  "margin": "0 10px 10px 10px"
243789
243884
  }
243790
- }, [_c('legend', [_vm._v("页边距    毫米")]), _c('ul', {
243885
+ }, [_c('legend', {
243886
+ staticStyle: {
243887
+ "width": "81px"
243888
+ }
243889
+ }, [_vm._v("页边距    毫米")]), _c('ul', {
243791
243890
  staticClass: "page-spacing"
243792
243891
  }, [_c('li', {
243793
243892
  staticClass: "page-spacing-item",
@@ -243819,7 +243918,7 @@ var PageSettingvue_type_template_id_4294664e_render = function render() {
243819
243918
  staticClass: "page-spacing-form"
243820
243919
  }, [_c('span', {
243821
243920
  staticClass: "labels"
243822
- }, [_vm._v("(L)")]), _c('a-input-number', {
243921
+ }, [_vm._v("(B)")]), _c('a-input-number', {
243823
243922
  staticStyle: {
243824
243923
  "text-align": "left"
243825
243924
  },
@@ -243830,22 +243929,17 @@ var PageSettingvue_type_template_id_4294664e_render = function render() {
243830
243929
  "min": 0
243831
243930
  },
243832
243931
  model: {
243833
- value: _vm.property.leftMarginMm,
243932
+ value: _vm.property.bottomMarginMm,
243834
243933
  callback: function callback($$v) {
243835
- _vm.$set(_vm.property, "leftMarginMm", $$v);
243934
+ _vm.$set(_vm.property, "bottomMarginMm", $$v);
243836
243935
  },
243837
- expression: "property.leftMarginMm"
243838
- }
243839
- })], 1)]), _c('li', {
243840
- staticClass: "page-spacing-item",
243841
- staticStyle: {
243842
- "justify-content": "space-between"
243936
+ expression: "property.bottomMarginMm"
243843
243937
  }
243844
- }, [_c('div', {
243938
+ })], 1), _c('div', {
243845
243939
  staticClass: "page-spacing-form"
243846
243940
  }, [_c('span', {
243847
243941
  staticClass: "labels"
243848
- }, [_vm._v("(B)")]), _c('a-input-number', {
243942
+ }, [_vm._v("(L)")]), _c('a-input-number', {
243849
243943
  staticStyle: {
243850
243944
  "text-align": "left"
243851
243945
  },
@@ -243856,11 +243950,11 @@ var PageSettingvue_type_template_id_4294664e_render = function render() {
243856
243950
  "min": 0
243857
243951
  },
243858
243952
  model: {
243859
- value: _vm.property.bottomMarginMm,
243953
+ value: _vm.property.leftMarginMm,
243860
243954
  callback: function callback($$v) {
243861
- _vm.$set(_vm.property, "bottomMarginMm", $$v);
243955
+ _vm.$set(_vm.property, "leftMarginMm", $$v);
243862
243956
  },
243863
- expression: "property.bottomMarginMm"
243957
+ expression: "property.leftMarginMm"
243864
243958
  }
243865
243959
  })], 1), _c('div', {
243866
243960
  staticClass: "page-spacing-form"
@@ -243887,7 +243981,11 @@ var PageSettingvue_type_template_id_4294664e_render = function render() {
243887
243981
  staticClass: "print-settings"
243888
243982
  }, [_c('fieldset', {
243889
243983
  staticClass: "fieldset print-direction-item"
243890
- }, [_c('legend', [_vm._v("打印方向")]), _c('div', {
243984
+ }, [_c('legend', {
243985
+ staticStyle: {
243986
+ "width": "50px"
243987
+ }
243988
+ }, [_vm._v("打印方向")]), _c('div', {
243891
243989
  class: _vm.property.printDirection === 0 ? 'print-direction is-actived' : 'print-direction',
243892
243990
  on: {
243893
243991
  "click": function click($event) {
@@ -243937,7 +244035,8 @@ var PageSettingvue_type_template_id_4294664e_render = function render() {
243937
244035
  staticClass: "control-item",
243938
244036
  staticStyle: {
243939
244037
  "padding": "0",
243940
- "margin-left": "10px"
244038
+ "margin-left": "10px",
244039
+ "justify-content": "space-between"
243941
244040
  }
243942
244041
  }, [_c('fieldset', {
243943
244042
  staticClass: "fieldset",
@@ -243946,7 +244045,11 @@ var PageSettingvue_type_template_id_4294664e_render = function render() {
243946
244045
  "padding": "0 10px",
243947
244046
  "margin": "0"
243948
244047
  }
243949
- }, [_c('legend', [_vm._v("纸张    毫米")]), _c('ul', {
244048
+ }, [_c('legend', {
244049
+ staticStyle: {
244050
+ "width": "64px"
244051
+ }
244052
+ }, [_vm._v("纸张    毫米")]), _c('ul', {
243950
244053
  staticClass: "control-list"
243951
244054
  }, [_c('li', {
243952
244055
  staticClass: "control-item"
@@ -244040,7 +244143,11 @@ var PageSettingvue_type_template_id_4294664e_render = function render() {
244040
244143
  "width": "250px",
244041
244144
  "padding": "0 10px 10px"
244042
244145
  }
244043
- }, [_c('legend', [_vm._v("边框")]), _c('div', {
244146
+ }, [_c('legend', {
244147
+ staticStyle: {
244148
+ "width": "28px"
244149
+ }
244150
+ }, [_vm._v("边框")]), _c('div', {
244044
244151
  staticClass: "control-item"
244045
244152
  }, [_c('a-checkbox', {
244046
244153
  model: {
@@ -244069,11 +244176,55 @@ var PageSettingvue_type_template_id_4294664e_render = function render() {
244069
244176
  attrs: {
244070
244177
  "labelWidth": "64px",
244071
244178
  "defaultStyle": _vm.property.paintRowLine,
244072
- "placeholder": "绘制行线"
244179
+ "placeholder": "边框样式"
244073
244180
  },
244074
244181
  on: {
244075
244182
  "change": _vm.printStyleChange
244076
244183
  }
244184
+ })], 1), _c('fieldset', {
244185
+ staticClass: "fieldset",
244186
+ staticStyle: {
244187
+ "width": "250px",
244188
+ "padding": "0 10px 10px"
244189
+ }
244190
+ }, [_c('legend', {
244191
+ staticStyle: {
244192
+ "width": "28px"
244193
+ }
244194
+ }, [_vm._v("行线")]), _c('div', {
244195
+ staticClass: "control-item"
244196
+ }, [_c('a-checkbox', {
244197
+ model: {
244198
+ value: _vm.property.drawLineUnderline,
244199
+ callback: function callback($$v) {
244200
+ _vm.$set(_vm.property, "drawLineUnderline", $$v);
244201
+ },
244202
+ expression: "property.drawLineUnderline"
244203
+ }
244204
+ }, [_vm._v("绘制行线")])], 1), _c('div', {
244205
+ staticClass: "control-item"
244206
+ }, [_c('span', {
244207
+ staticClass: "label",
244208
+ staticStyle: {
244209
+ "width": "64px"
244210
+ }
244211
+ }, [_vm._v("线条颜色")]), _c('ho-color-picker', {
244212
+ model: {
244213
+ value: _vm.property.lineUnderlineColor,
244214
+ callback: function callback($$v) {
244215
+ _vm.$set(_vm.property, "lineUnderlineColor", $$v);
244216
+ },
244217
+ expression: "property.lineUnderlineColor"
244218
+ }
244219
+ })], 1), _c('PrintLineStyle', {
244220
+ attrs: {
244221
+ "labelWidth": "64px",
244222
+ "defaultStyle": _vm.property.lineUnderlineStyle,
244223
+ "placeholder": "线条样式"
244224
+ },
244225
+ on: {
244226
+ "change": _vm.underlineStyleChange
244227
+ }
244077
244228
  })], 1)])])])]), _c('a-tab-pane', {
244078
244229
  key: "second",
244079
244230
  attrs: {
@@ -244084,7 +244235,11 @@ var PageSettingvue_type_template_id_4294664e_render = function render() {
244084
244235
  staticStyle: {
244085
244236
  "padding": "0 10px 10px"
244086
244237
  }
244087
- }, [_c('legend', [_vm._v("页眉    毫米")]), _c('div', {
244238
+ }, [_c('legend', {
244239
+ staticStyle: {
244240
+ "width": "72px"
244241
+ }
244242
+ }, [_vm._v("页眉    毫米")]), _c('div', {
244088
244243
  staticClass: "control-item"
244089
244244
  }, [_vm._v("距页边界:")]), _c('div', {
244090
244245
  staticClass: "control-item"
@@ -244130,7 +244285,11 @@ var PageSettingvue_type_template_id_4294664e_render = function render() {
244130
244285
  staticStyle: {
244131
244286
  "padding": "0 10px 10px"
244132
244287
  }
244133
- }, [_c('legend', [_vm._v("页脚    毫米")]), _c('div', {
244288
+ }, [_c('legend', {
244289
+ staticStyle: {
244290
+ "width": "72px"
244291
+ }
244292
+ }, [_vm._v("页脚    毫米")]), _c('div', {
244134
244293
  staticClass: "control-item"
244135
244294
  }, [_vm._v("距页边界:")]), _c('div', {
244136
244295
  staticClass: "control-item"
@@ -244176,7 +244335,11 @@ var PageSettingvue_type_template_id_4294664e_render = function render() {
244176
244335
  staticStyle: {
244177
244336
  "padding": "0 10px 10px"
244178
244337
  }
244179
- }, [_c('legend', [_vm._v("页数")]), _c('div', {
244338
+ }, [_c('legend', {
244339
+ staticStyle: {
244340
+ "width": "28px"
244341
+ }
244342
+ }, [_vm._v("页数")]), _c('div', {
244180
244343
  staticClass: "control-item"
244181
244344
  }, [_c('span', {
244182
244345
  staticClass: "label",
@@ -244217,7 +244380,7 @@ var PageSettingvue_type_template_id_4294664e_render = function render() {
244217
244380
  }
244218
244381
  }, [_vm._v("取消")])], 1)])]);
244219
244382
  };
244220
- var PageSettingvue_type_template_id_4294664e_staticRenderFns = [];
244383
+ var PageSettingvue_type_template_id_077d9a5e_staticRenderFns = [];
244221
244384
 
244222
244385
  // EXTERNAL MODULE: ./src/components/mixins/appendToBody.ts
244223
244386
  var appendToBody = __webpack_require__(95677);
@@ -244258,7 +244421,7 @@ var HoColorPicker = __webpack_require__(10306);
244258
244421
  alignList: ['left', 'both', 'right', 'both'],
244259
244422
  lineHeightList: [1.25, 1.5, 2, 2.5, 3],
244260
244423
  fontSpacingList: [0, 1, 2, 3],
244261
- paperStyle: [['自定义', [210, 297]], ['A3', [297, 420]], ['A4', [210, 297]], ['A5', [148, 210]], ['A6', [105, 148]], ['B4', [250, 353]], ['B5', [176, 250]], ['B6', [125, 176]], ['16K', [195, 270]], ['16K', [185, 265]]],
244424
+ paperStyle: [['自定义', [210, 297]], ['A3', [297, 420]], ['A4', [210, 297]], ['A5', [148, 210]], ['A6', [105, 148]], ['B4', [250, 353]], ['B5', [176, 250]], ['B6', [125, 176]], ['16K', [195, 270]], ['16K-1', [185, 265]]],
244262
244425
  property: {
244263
244426
  pageSize: 'A4',
244264
244427
  source: '0',
@@ -244276,8 +244439,7 @@ var HoColorPicker = __webpack_require__(10306);
244276
244439
  pageNumber: 1,
244277
244440
  borderColor: '#FFFFFF',
244278
244441
  paintRowLine: 0,
244279
- isPaintBorder: false
244280
-
244442
+ isPaintBorder: false,
244281
244443
  // fontFormat: "微软雅黑",
244282
244444
  // fontSize: 14,
244283
244445
  // fontColor: "#000000",
@@ -244286,8 +244448,11 @@ var HoColorPicker = __webpack_require__(10306);
244286
244448
  // paraAlign: 3,
244287
244449
  // charSpace: 1,
244288
244450
  // lineHeight: 1.25,
244289
- },
244290
244451
 
244452
+ drawLineUnderline: false,
244453
+ lineUnderlineColor: '#000000',
244454
+ lineUnderlineStyle: 0
244455
+ },
244291
244456
  textActiveName: 'first',
244292
244457
  backFile: null,
244293
244458
  backImgUrl: '',
@@ -244341,6 +244506,9 @@ var HoColorPicker = __webpack_require__(10306);
244341
244506
  printStyleChange: function printStyleChange(style) {
244342
244507
  this.property.paintRowLine = style;
244343
244508
  },
244509
+ underlineStyleChange: function underlineStyleChange(style) {
244510
+ this.property.lineUnderlineStyle = style;
244511
+ },
244344
244512
  handleClose: function handleClose() {
244345
244513
  this.$emit('closePageSetting', false);
244346
244514
  },
@@ -244355,7 +244523,7 @@ var HoColorPicker = __webpack_require__(10306);
244355
244523
  params.fontColor = 'transparent';
244356
244524
  }
244357
244525
  this.vueController.setPageProperty(JSON.stringify((0,objectSpread2/* default */.Z)({}, params)));
244358
- this.vueController.fullRedraw();
244526
+ this.vueController.rebuildAll();
244359
244527
  this.handleClose();
244360
244528
  },
244361
244529
  toolModalDown: function toolModalDown(e) {
@@ -244365,10 +244533,10 @@ var HoColorPicker = __webpack_require__(10306);
244365
244533
  });
244366
244534
  ;// CONCATENATED MODULE: ./src/components/toolbar/PageSetting.vue?vue&type=script&lang=js&
244367
244535
  /* harmony default export */ var toolbar_PageSettingvue_type_script_lang_js_ = (PageSettingvue_type_script_lang_js_);
244368
- ;// 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/toolbar/PageSetting.vue?vue&type=style&index=0&id=4294664e&prod&lang=less&
244536
+ ;// 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/toolbar/PageSetting.vue?vue&type=style&index=0&id=077d9a5e&prod&lang=less&
244369
244537
  // extracted by mini-css-extract-plugin
244370
244538
 
244371
- ;// CONCATENATED MODULE: ./src/components/toolbar/PageSetting.vue?vue&type=style&index=0&id=4294664e&prod&lang=less&
244539
+ ;// CONCATENATED MODULE: ./src/components/toolbar/PageSetting.vue?vue&type=style&index=0&id=077d9a5e&prod&lang=less&
244372
244540
 
244373
244541
  ;// CONCATENATED MODULE: ./src/components/toolbar/PageSetting.vue
244374
244542
 
@@ -244381,8 +244549,8 @@ var HoColorPicker = __webpack_require__(10306);
244381
244549
 
244382
244550
  var PageSetting_component = (0,componentNormalizer/* default */.Z)(
244383
244551
  toolbar_PageSettingvue_type_script_lang_js_,
244384
- PageSettingvue_type_template_id_4294664e_render,
244385
- PageSettingvue_type_template_id_4294664e_staticRenderFns,
244552
+ PageSettingvue_type_template_id_077d9a5e_render,
244553
+ PageSettingvue_type_template_id_077d9a5e_staticRenderFns,
244386
244554
  false,
244387
244555
  null,
244388
244556
  null,