hoeditor-web 2.0.76 → 2.0.77

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.
@@ -14785,8 +14785,9 @@ var DocController = /*#__PURE__*/function () {
14785
14785
  if (node.text !== "") {
14786
14786
  node.childNodes.splice(1, node.childNodes.length - 2);
14787
14787
  var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, node, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, values["text"], hoEditorFactory.docTree.curStyleIndex);
14788
- node.childNodes.splice(1, 0, textNode);
14789
- changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(textNode); //changeEvent.afterChangePath = ePath;
14788
+ node.childNodes.splice(1, 0, textNode); //changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(textNode);
14789
+
14790
+ changeEvent.afterChangePath = ePath;
14790
14791
  }
14791
14792
  } else {
14792
14793
  //changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(node);
@@ -14797,6 +14798,10 @@ var DocController = /*#__PURE__*/function () {
14797
14798
  node.update();
14798
14799
  var pnode = node.parentNode;
14799
14800
 
14801
+ if (pnode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
14802
+ pnode.update();
14803
+ }
14804
+
14800
14805
  do {
14801
14806
  var _pnode;
14802
14807
 
@@ -14810,9 +14815,9 @@ var DocController = /*#__PURE__*/function () {
14810
14815
  } while ((_pnode = pnode) !== null && _pnode !== void 0 && _pnode.parentNode);
14811
14816
 
14812
14817
  if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
14813
- pnode.drawCell.needUpdate = true; //增加判断只有多页表格才更新table.update,以处理编辑元素 卡慢问题
14814
-
14818
+ //增加判断只有多页表格才更新table.update,以处理编辑元素 卡慢问题
14815
14819
  if (pnode.drawCell.drawPageCells.length > 1) {
14820
+ pnode.drawCell.needUpdate = true;
14816
14821
  pnode.table.update();
14817
14822
  }
14818
14823
  }
@@ -15594,6 +15599,9 @@ var DocController = /*#__PURE__*/function () {
15594
15599
  value: function setCellProperty(objectValues, cellNode) {
15595
15600
  var cellProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .CellProperty */ .$W(objectValues);
15596
15601
  cellNode.cellProperty = cellProperty;
15602
+ cellNode.drawCell.drawPageCells.forEach(function (pcell) {
15603
+ pcell.valignTop = pcell.calcValignTop();
15604
+ });
15597
15605
  }
15598
15606
  /**
15599
15607
  * 在当前页面添加页眉
@@ -26003,9 +26011,11 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
26003
26011
  key: "range",
26004
26012
  value: function range() {
26005
26013
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_21__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
26014
+ var spath = hoEditorFactory.docTree.getNodeFirstPath(this);
26015
+ var epath = hoEditorFactory.docTree.getNodeLastPath(this);
26006
26016
  return {
26007
- from: hoEditorFactory.docTree.getNodeFirstPath(this),
26008
- to: hoEditorFactory.docTree.getNodeLastPath(this)
26017
+ from: spath,
26018
+ to: epath
26009
26019
  };
26010
26020
  }
26011
26021
  }, {
@@ -38851,7 +38861,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
38851
38861
  /*
38852
38862
  * @Author: your name
38853
38863
  * @Date: 2020-11-03 15:17:54
38854
- * @LastEditTime: 2022-07-13 14:11:55
38864
+ * @LastEditTime: 2022-07-28 09:25:18
38855
38865
  * @LastEditors: liyanan 2441631434@qq.com
38856
38866
  * @Description: In User Settings Edit
38857
38867
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
@@ -40200,6 +40210,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
40200
40210
 
40201
40211
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
40202
40212
  var endnode = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
40213
+ var isEnd = false;
40203
40214
 
40204
40215
  for (var index = 0; index < this.childNodes.length; index++) {
40205
40216
  var value = this.childNodes[index];
@@ -40225,11 +40236,20 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
40225
40236
  value.placeDNodeAfterDrawLine(paraNode, aline, endPath);
40226
40237
  aline = value.drawTable;
40227
40238
  } else {
40228
- if (value == this.EndMarkNode) break;
40239
+ if (value == this.EndMarkNode) {
40240
+ isEnd = true;
40241
+ break;
40242
+ }
40243
+
40229
40244
  aline = value.placeDNode2DrawLine(droots, paraNode, aline, start, start + value.getLength() - 1, endPath);
40230
40245
  }
40231
40246
 
40232
- if (_NodePosition__WEBPACK_IMPORTED_MODULE_35__/* .NodePosition.treePathCompare */ .F.treePathCompare(endPath, hoEditorFactory.docTree.getNodeLastPath(value)) <= 0) break;
40247
+ var nodePath = hoEditorFactory.docTree.getNodeLastPath(value);
40248
+ var cresult = _NodePosition__WEBPACK_IMPORTED_MODULE_35__/* .NodePosition.treePathCompare */ .F.treePathCompare(endPath, nodePath);
40249
+
40250
+ if (cresult <= 0) {
40251
+ break;
40252
+ }
40233
40253
  }
40234
40254
 
40235
40255
  aline.fitLines();
@@ -40260,8 +40280,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
40260
40280
  }
40261
40281
  }
40262
40282
 
40263
- this.EndMarkNode.node2DrawNode();
40264
- aline = this.EndMarkNode.placeDNode2DrawLine(droots, paraNode, aline, start, start + this.EndMarkNode.getLength() - 1, endPath);
40283
+ if (isEnd) {
40284
+ this.EndMarkNode.node2DrawNode();
40285
+ aline = this.EndMarkNode.placeDNode2DrawLine(droots, paraNode, aline, start, start + this.EndMarkNode.getLength() - 1, endPath);
40286
+ }
40287
+
40265
40288
  return aline.paragraphNode.getLastDrawline();
40266
40289
  }
40267
40290
  }, {
@@ -48357,13 +48380,19 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
48357
48380
  _this._leftBorder = new createjs.Rectangle(dLeft, dTop, 2, dHeight);
48358
48381
  _this._rightBorder = new createjs.Rectangle(dLeft + dWidth - 2, dTop, 2, dHeight);
48359
48382
  _this._bottomBorder = new createjs.Rectangle(dLeft, dTop + dHeight - 2, dWidth, 2);
48360
- if (paintImidiate === undefined || paintImidiate) _this.paintArea(_this._cell.drawCell.drawLines, startLine, 0);
48383
+ var innerTop = 0;
48384
+
48385
+ if (_this._cell.drawCell.drawPageCells.length == 0) {
48386
+ innerTop = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(_this._cell.cellProperty.cellInnerMargin[0] * 10, true);
48387
+ }
48388
+
48389
+ if (paintImidiate === undefined || paintImidiate) _this.paintArea(_this._cell.drawCell.drawLines, startLine, innerTop);
48361
48390
 
48362
48391
  var rowIndex = _this._cell.table.rows.indexOf(_this._cell.row);
48363
48392
 
48364
48393
  var colIndex = _this._cell.row.indexOf(_this._cell);
48365
48394
 
48366
- _this._valignTop = 0; // let maxWidth = 0;
48395
+ _this._valignTop = innerTop; // let maxWidth = 0;
48367
48396
  // let maxHeight = 0;
48368
48397
  // if (colIndex + this._cell.colSpan - 1 === this._cell.table.colCount - 1) {
48369
48398
  // maxWidth = -1;
@@ -48469,8 +48498,23 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
48469
48498
  }, {
48470
48499
  key: "updateDHeight",
48471
48500
  value: function updateDHeight() {
48472
- if (this._docHeight > this._dHeight) {
48473
- this._dHeight = this._docHeight;
48501
+ var innerBottom = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[1] * 10, true);
48502
+ var innerTop = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[0] * 10, true);
48503
+ var index = this.cell.drawCell.drawPageCells.indexOf(this);
48504
+ var docHeight = 0;
48505
+
48506
+ if (index == 0 || index == this.cell.drawCell.drawPageCells.length - 1) {
48507
+ if (index == 0 && index == this.cell.drawCell.drawPageCells.length - 1) {
48508
+ docHeight = innerTop + this.docHeight + innerBottom;
48509
+ } else if (index == 0) {
48510
+ docHeight = innerTop + this.docHeight;
48511
+ } else if (index == this.cell.drawCell.drawPageCells.length - 1) {
48512
+ docHeight = innerBottom + this.docHeight;
48513
+ }
48514
+ }
48515
+
48516
+ if (docHeight > this._dHeight) {
48517
+ this._dHeight = docHeight;
48474
48518
  }
48475
48519
 
48476
48520
  if (this._dHeight > this._maxHeight) {
@@ -48972,17 +49016,25 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
48972
49016
  }, {
48973
49017
  key: "calcValignTop",
48974
49018
  value: function calcValignTop() {
48975
- var valignTop = 0;
49019
+ var index = this.cell.drawCell.drawPageCells.indexOf(this);
49020
+ var innerTop = 0;
49021
+
49022
+ if (index == 0) {
49023
+ innerTop = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[0] * 10, true);
49024
+ }
49025
+
49026
+ var valignTop = innerTop;
48976
49027
 
48977
49028
  if (this._cell.cellProperty.align === TableProperty/* VAlign.vatop */.TR.vatop) {
48978
- valignTop = 0;
49029
+ valignTop = innerTop;
48979
49030
  } else if (this._cell.cellProperty.align === TableProperty/* VAlign.vacenter */.TR.vacenter) {
48980
49031
  var aHeight = this.calcCellHeight();
48981
49032
  if (aHeight > this._cell.drawCell.docHeight) valignTop = (aHeight - this._cell.drawCell.docHeight) / 2;
48982
49033
  } else if (this._cell.cellProperty.align === TableProperty/* VAlign.vabottom */.TR.vabottom) {
48983
49034
  var _aHeight = this.calcCellHeight();
48984
49035
 
48985
- if (_aHeight > this._cell.drawCell.docHeight) valignTop = _aHeight - this._cell.drawCell.docHeight;
49036
+ var innerBottom = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[1] * 10, true);
49037
+ if (_aHeight > this._cell.drawCell.docHeight) valignTop = _aHeight - this._cell.drawCell.docHeight - innerBottom;
48986
49038
  }
48987
49039
 
48988
49040
  return valignTop;
@@ -49952,12 +50004,25 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49952
50004
 
49953
50005
  if (cell.rowSpan + r - 1 === row) {
49954
50006
  var partCell = cell.drawCell.getDrawPageCell(this);
50007
+ var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._table.hoEditorFactoryID);
49955
50008
 
49956
50009
  if (partCell) {
49957
50010
  // const dobj = partCell.lastDrawLine;
49958
- var dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_9__/* .gDefaultRowHeight */ .dT, partCell.docHeight);
50011
+ var innerTop = hoeditorfactory.unitConvert.mmConversionPx(partCell.cell.cellProperty.cellInnerMargin[0] * 10, true);
50012
+ var innerBottom = hoeditorfactory.unitConvert.mmConversionPx(partCell.cell.cellProperty.cellInnerMargin[1] * 10, true);
50013
+ var dHeight = 0;
49959
50014
  var index = partCell.cell.drawCell.drawPageCells.indexOf(partCell);
49960
50015
 
50016
+ if (index == 0 || index == partCell.cell.drawCell.drawPageCells.length - 1) {
50017
+ if (index == 0 && index == partCell.cell.drawCell.drawPageCells.length - 1) {
50018
+ dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_9__/* .gDefaultRowHeight */ .dT, innerTop + partCell.docHeight + innerBottom);
50019
+ } else if (index == 0) {
50020
+ dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_9__/* .gDefaultRowHeight */ .dT, innerTop + partCell.docHeight);
50021
+ } else if (index == partCell.cell.drawCell.drawPageCells.length - 1) {
50022
+ dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_9__/* .gDefaultRowHeight */ .dT, innerBottom + partCell.docHeight);
50023
+ }
50024
+ }
50025
+
49961
50026
  if (index === partCell.cell.drawCell.drawPageCells.length - 1 || this._table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop) {
49962
50027
  if (cell.table.rowInfos[row].rowProperty.isSpecifyHeight) {
49963
50028
  var aHeight = cell.table.rowInfos[row].rowHeight;
@@ -51807,7 +51872,12 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51807
51872
  _fingerImage.onload = function () {
51808
51873
  var fingerWidth = 256;
51809
51874
  var fingerHeight = _fingerImage.naturalHeight !== 0 ? _fingerImage.naturalHeight : _fingerImage.height;
51810
- var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15;
51875
+ var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15; // 已经缩放过的指纹图片 不需要再次缩放
51876
+
51877
+ if (fingerWidth !== _fingerImage.naturalWidth) {
51878
+ fingerscale = 1;
51879
+ }
51880
+
51811
51881
  _fingerBitmap.scaleX = fingerscale;
51812
51882
  _fingerBitmap.scaleY = fingerscale;
51813
51883
  _fingerBitmap.y = -fingerHeight * fingerscale;
@@ -200615,15 +200685,15 @@ var DrawSelectLevel = /*#__PURE__*/function () {
200615
200685
  // });
200616
200686
 
200617
200687
  /* case PaintState.psPreview: {
200618
- break;
200619
- }
200620
- case PaintState.psPrint: {
200621
- break;
200622
- } default: {
200623
- //this.mouseClick(aevent);
200624
- break;
200625
- }
200626
- }
200688
+ break;
200689
+ }
200690
+ case PaintState.psPrint: {
200691
+ break;
200692
+ } default: {
200693
+ //this.mouseClick(aevent);
200694
+ break;
200695
+ }
200696
+ }
200627
200697
  });*/
200628
200698
  // this.mainBackGround.addEventListener("click", (aevent: any) => {
200629
200699
  // this.mouseClick(aevent);
@@ -200679,7 +200749,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
200679
200749
  } // }
200680
200750
 
200681
200751
 
200682
- this._selectStage.addEventListener("stagemousedown", function (aevent) {
200752
+ this._selectStage.addEventListener('stagemousedown', function (aevent) {
200683
200753
  // this.mouseDown(aevent)
200684
200754
  switch (hoEditorFactory.drawTree.paintStatus) {
200685
200755
  case DrawTree/* PaintState.psPreview */.Dh.psPreview:
@@ -200703,7 +200773,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
200703
200773
  }
200704
200774
  });
200705
200775
 
200706
- this._selectStage.addEventListener("stagemouseup", function (aevent) {
200776
+ this._selectStage.addEventListener('stagemouseup', function (aevent) {
200707
200777
  // this.mouseup(aevent);
200708
200778
  switch (hoEditorFactory.drawTree.paintStatus) {
200709
200779
  case DrawTree/* PaintState.psPreview */.Dh.psPreview:
@@ -200727,7 +200797,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
200727
200797
  }
200728
200798
  });
200729
200799
 
200730
- this._selectStage.addEventListener("stagemousemove", function (aevent) {
200800
+ this._selectStage.addEventListener('stagemousemove', function (aevent) {
200731
200801
  switch (hoEditorFactory.drawTree.paintStatus) {
200732
200802
  case DrawTree/* PaintState.psPreview */.Dh.psPreview:
200733
200803
  {
@@ -200842,7 +200912,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
200842
200912
  key: "mouseDblClick",
200843
200913
  value: function () {
200844
200914
  var _mouseDblClick = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(aevent) {
200845
- var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos, np, _np$node$parentNode, prevNode, oldRange, startPath, endPath, newRange, selectChangeEvent, nodeNeedModifyEvent, cellNode, colInfos, rowInfos, colProperty, _nodeNeedModifyEvent, _nodeNeedModifyEvent2;
200915
+ var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos, np, _np$node$parentNode, prevNode, oldRange, startPath, endPath, newRange, selectChangeEvent, nodeNeedModifyEvent, cellNode, colInfos, rowInfos, colProperty, _nodeNeedModifyEvent, _nodeNeedModifyEvent2, dPageTable, dPageCell, pos, docHeight, dHeight, index, i, dLastObj, distance, aHeight, count, str, j, _oldRange, _endPath, _newRange;
200846
200916
 
200847
200917
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
200848
200918
  while (1) {
@@ -200962,7 +201032,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
200962
201032
  }
200963
201033
 
200964
201034
  if (np.node.nodeType === BaseNode/* NodeType.ntMedicalExpression */.Jq.ntMedicalExpression || np.node.nodeType === BaseNode/* NodeType.ntControl */.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.ntField */.Jq.ntField || np.node.nodeType === BaseNode/* NodeType.ntSign */.Jq.ntSign || np.node.nodeType === BaseNode/* NodeType.ntGestation */.Jq.ntGestation || np.node.nodeType === BaseNode/* NodeType.ntImage */.Jq.ntImage) {
200965
- nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, "dblclick", this._pageIndex);
201035
+ nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
200966
201036
  hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
200967
201037
  }
200968
201038
 
@@ -200995,47 +201065,53 @@ var DrawSelectLevel = /*#__PURE__*/function () {
200995
201065
  colProperty = colInfos.colProperty;
200996
201066
 
200997
201067
  if (colProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || colProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
200998
- _nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, "dblclick", this._pageIndex);
201068
+ _nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
200999
201069
  hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent);
201000
201070
  } else if (cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
201001
- _nodeNeedModifyEvent2 = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, "dblclick", this._pageIndex);
201071
+ _nodeNeedModifyEvent2 = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
201002
201072
  hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent2);
201003
- } // else if (cellNode.table.tableProperty.isAutoChangeLine) {
201004
- // //处理自动换行表格,双击时光标跳到指定双击位置
201005
- // const dPageTable = cellNode.table.drawTable.getDrawTableByPageIndex(dPage.pageIndex);
201006
- // if (dPageTable) {
201007
- // const dPageCell = cellNode.drawCell.getDrawPageCell(dPageTable);
201008
- // if (dPageCell) {
201009
- // const pos = dPageCell.globalToLocal(aevent.stageX, aevent.stageY);
201010
- // let docHeight = 0;
201011
- // let dHeight = 0;
201012
- // const index = cellNode.drawCell.drawPageCells.indexOf(dPageCell);
201013
- // for (let i = 0; i < index; i++) {
201014
- // docHeight += cellNode.drawCell.drawPageCells[i].docHeight;
201015
- // dHeight += cellNode.drawCell.drawPageCells[i].dHeight
201016
- // }
201017
- // const dLastObj = cellNode.drawCell.drawLines[cellNode.drawCell.drawLines.length - 1]
201018
- // if (dLastObj.dTop + dLastObj.docHeight < dHeight + pos.y) {
201019
- // const distance = pos.y + dHeight - (dLastObj.dTop + dLastObj.dHeight)
201020
- // const aHeight = cellNode.table.tableProperty.autoLineHeightPx;
201021
- // const count = Math.floor(distance / aHeight);
201022
- // let str = "";
201023
- // for (let j = 0; j < count; j++) {
201024
- // str += "\n"
201025
- // }
201026
- // if (str != "") {
201027
- // const oldRange = hoEditorFactory.docTree.curDomRange.clone();
201028
- // const endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
201029
- // const newRange = new DomRange(hoEditorFactory.hoEditorFactoryId, endPath, endPath);
201030
- // hoEditorFactory.drawTree.moveCaretToPath(endPath);
201031
- // hoEditorFactory.docTree.curDomRange = newRange;
201032
- // hoEditorFactory.docController.insertPlainTextAfterPath(endPath, str);
201033
- // }
201034
- // }
201035
- // }
201036
- // }
201037
- // }
201073
+ } else if (cellNode.table.tableProperty.isAutoChangeLine) {
201074
+ //处理自动换行表格,双击时光标跳到指定双击位置
201075
+ dPageTable = cellNode.table.drawTable.getDrawTableByPageIndex(dPage.pageIndex);
201076
+
201077
+ if (dPageTable) {
201078
+ dPageCell = cellNode.drawCell.getDrawPageCell(dPageTable);
201079
+
201080
+ if (dPageCell) {
201081
+ pos = dPageCell.globalToLocal(aevent.stageX, aevent.stageY);
201082
+ docHeight = 0;
201083
+ dHeight = 0;
201084
+ index = cellNode.drawCell.drawPageCells.indexOf(dPageCell);
201085
+
201086
+ for (i = 0; i < index; i++) {
201087
+ docHeight += cellNode.drawCell.drawPageCells[i].docHeight;
201088
+ dHeight += cellNode.drawCell.drawPageCells[i].dHeight;
201089
+ }
201090
+
201091
+ dLastObj = cellNode.drawCell.drawLines[cellNode.drawCell.drawLines.length - 1];
201038
201092
 
201093
+ if (dLastObj.dTop + dLastObj.docHeight < dHeight + pos.y) {
201094
+ distance = pos.y + dHeight - (dLastObj.dTop + dLastObj.dHeight);
201095
+ aHeight = cellNode.table.tableProperty.autoLineHeightPx;
201096
+ count = Math.floor(distance / aHeight);
201097
+ str = '';
201098
+
201099
+ for (j = 0; j < count; j++) {
201100
+ str += '\n';
201101
+ }
201102
+
201103
+ if (str != '') {
201104
+ _oldRange = hoEditorFactory.docTree.curDomRange.clone();
201105
+ _endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
201106
+ _newRange = new DomRange/* DomRange */.a(hoEditorFactory.hoEditorFactoryId, _endPath, _endPath);
201107
+ hoEditorFactory.drawTree.moveCaretToPath(_endPath);
201108
+ hoEditorFactory.docTree.curDomRange = _newRange;
201109
+ hoEditorFactory.docController.insertPlainTextAfterPath(_endPath, str);
201110
+ }
201111
+ }
201112
+ }
201113
+ }
201114
+ }
201039
201115
 
201040
201116
  case 45:
201041
201117
  return _context.abrupt("return", true);
@@ -201176,7 +201252,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
201176
201252
 
201177
201253
  if (child instanceof createjs.Container && curComment.id === child.name) {
201178
201254
  child.children.forEach(function (value) {
201179
- if (value.name === "back") {
201255
+ if (value.name === 'back') {
201180
201256
  value.alpha = 0.5;
201181
201257
  }
201182
201258
  });
@@ -201253,21 +201329,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
201253
201329
 
201254
201330
  if (!dPage.drawDomLevel) {
201255
201331
  return false;
201256
- } // const oldEvent = aevent as createjs.MouseEvent;
201257
- // const newEvent = new createjs.MouseEvent(
201258
- // oldEvent.type,
201259
- // oldEvent.bubbles,
201260
- // oldEvent.cancelable,
201261
- // oldEvent.stageX,
201262
- // oldEvent.stageY,
201263
- // oldEvent.nativeEvent,
201264
- // oldEvent.pointerID,
201265
- // oldEvent.primary,
201266
- // oldEvent.rawX,
201267
- // oldEvent.rawY
201268
- // );
201269
- // this._drawPage.drawDomLevel.stage.dispatchEvent(newEvent);
201270
-
201332
+ }
201271
201333
 
201272
201334
  if (hoeditorfactory.drawTree.activePage !== dPage) {
201273
201335
  hoeditorfactory.drawTree.activePage = dPage;
@@ -201288,6 +201350,16 @@ var DrawSelectLevel = /*#__PURE__*/function () {
201288
201350
  var endPos = hoeditorfactory.drawTree.getStagePosition(dPage, dPage.activeDrawRect, aevent.stageX, aevent.stageY);
201289
201351
 
201290
201352
  if (endPos) {
201353
+ // const startLine = Number(hoeditorfactory.docTree.curDomRange.startPath.split('/')[1]);
201354
+ // const endLine = Number(endPos.path.split('/')[1]);
201355
+ // const listNode = document.querySelector('.ho-editor-list') as HTMLDivElement;
201356
+ // if (listNode) {
201357
+ // if (startLine - endLine > 8) {
201358
+ // listNode.scrollTo(0, listNode.scrollTop - 10);
201359
+ // } else if(startLine - endLine < -8) {
201360
+ // listNode.scrollTo(0, listNode.scrollTop + 10);
201361
+ // }
201362
+ // }
201291
201363
  hoeditorfactory.docTree.curDomRange.endPath = endPos.path;
201292
201364
  hoeditorfactory.drawTree.selectRange.spEnd = endPos;
201293
201365
  hoeditorfactory.drawTree.drawSelectRange();
@@ -201366,7 +201438,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
201366
201438
 
201367
201439
  if (np && np.node) {
201368
201440
  var buttonCount = parseInt(aevent.nativeEvent.button);
201369
- var clickType = buttonCount === 0 ? "leftclick" : buttonCount === 2 ? "rightclick" : "centerclick";
201441
+ var clickType = buttonCount === 0 ? 'leftclick' : buttonCount === 2 ? 'rightclick' : 'centerclick';
201370
201442
  var nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, clickType, startPos.page ? startPos.page.pageIndex : this._pageIndex);
201371
201443
  hoeditorfactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
201372
201444
  }
@@ -207547,7 +207619,7 @@ var SignNode = __webpack_require__(78975);
207547
207619
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
207548
207620
  var ParagraphNode = __webpack_require__(13880);
207549
207621
  ;// CONCATENATED MODULE: ./src/components/version.ts
207550
- /* harmony default export */ var version = ('2.0.76');
207622
+ /* harmony default export */ var version = ('2.0.77');
207551
207623
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
207552
207624
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
207553
207625
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -228572,9 +228644,9 @@ var ExpressionForm_component = normalizeComponent(
228572
228644
  ;// CONCATENATED MODULE: ./src/components/controls/expressionForm/index.ts
228573
228645
 
228574
228646
  /* harmony default export */ var expressionForm = (ExpressionForm);
228575
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=6f230d8e&scoped=true&
228576
- var RadioCheckboxvue_type_template_id_6f230d8e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:'control-modal-contents radio-checkbox-modal ' + _vm.animationClassName,style:({ width: _vm.boxGroup === 1 ? '1060px' : '500px' })},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v(_vm._s(_vm.controlType === 'RadioBox' ? '单选框' : '复选框')+_vm._s(_vm.boxGroup === 1 ? '组' : ''))]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("类型")]),_c('el-radio',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":1},model:{value:(_vm.boxGroup),callback:function ($$v) {_vm.boxGroup=$$v},expression:"boxGroup"}},[_vm._v("多项")]),_c('el-radio',{staticStyle:{"margin-left":"30px"},attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":0},model:{value:(_vm.boxGroup),callback:function ($$v) {_vm.boxGroup=$$v},expression:"boxGroup"}},[_vm._v("单项")])],1),(_vm.boxGroup === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"名称"},model:{value:(_vm.groupName),callback:function ($$v) {_vm.groupName=$$v},expression:"groupName"}})],1):_vm._e(),(_vm.boxGroup === 1)?_c('li',{staticClass:"control-item",staticStyle:{"padding":"0"}},[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.radioCheckBoxGroup,"height":"300px"}},[_c('el-table-column',{attrs:{"label":"文本","width":"160"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"文本"},on:{"input":_vm.addNewItem},model:{value:(scope.row.text),callback:function ($$v) {_vm.$set(scope.row, "text", $$v)},expression:"scope.row.text"}})]}}],null,false,3552177280)}),_c('el-table-column',{attrs:{"label":"提示文本","width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"提示文本"},model:{value:(scope.row.tipText),callback:function ($$v) {_vm.$set(scope.row, "tipText", $$v)},expression:"scope.row.tipText"}})]}}],null,false,2396764658)}),_c('el-table-column',{attrs:{"label":"数值","width":"80"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"数值"},model:{value:(scope.row.numericValue),callback:function ($$v) {_vm.$set(scope.row, "numericValue", $$v)},expression:"scope.row.numericValue"}})]}}],null,false,3789767535)}),_c('el-table-column',{attrs:{"label":"内部标识符","width":"120"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"内部标识符"},model:{value:(scope.row.innerIdentifier),callback:function ($$v) {_vm.$set(scope.row, "innerIdentifier", $$v)},expression:"scope.row.innerIdentifier"}})]}}],null,false,1119088692)}),_c('el-table-column',{attrs:{"label":"数据元标识符","width":"120"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"数据元标识符"},model:{value:(scope.row.dataMetaIdentifier),callback:function ($$v) {_vm.$set(scope.row, "dataMetaIdentifier", $$v)},expression:"scope.row.dataMetaIdentifier"}})]}}],null,false,479119831)}),_c('el-table-column',{attrs:{"label":"表示格式","width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"表示格式"},model:{value:(scope.row.identifierFormat),callback:function ($$v) {_vm.$set(scope.row, "identifierFormat", $$v)},expression:"scope.row.identifierFormat"}})]}}],null,false,241604674)}),_c('el-table-column',{attrs:{"label":"默认选中","width":"40"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(_vm.controlType === 'RadioBox')?_c('el-radio',{staticClass:"table-radio",attrs:{"label":scope.row.id},model:{value:(_vm.tableRadio),callback:function ($$v) {_vm.tableRadio=$$v},expression:"tableRadio"}}):_vm._e(),(_vm.controlType === 'CheckBox')?_c('el-checkbox',{model:{value:(scope.row.isSelected),callback:function ($$v) {_vm.$set(scope.row, "isSelected", $$v)},expression:"scope.row.isSelected"}}):_vm._e()]}}],null,false,1265273066)}),_c('el-table-column',{attrs:{"label":"勾选框左对齐","width":"54"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.boxAlign),callback:function ($$v) {_vm.$set(scope.row, "boxAlign", $$v)},expression:"scope.row.boxAlign"}})]}}],null,false,599012276)}),_c('el-table-column',{attrs:{"label":"内容转文本","width":"54"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.isTransToText),callback:function ($$v) {_vm.$set(scope.row, "isTransToText", $$v)},expression:"scope.row.isTransToText"}})]}}],null,false,1354544746)}),_c('el-table-column',{attrs:{"label":"编辑文本","width":"40"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.isEditText),callback:function ($$v) {_vm.$set(scope.row, "isEditText", $$v)},expression:"scope.row.isEditText"}})]}}],null,false,3019799127)}),_c('el-table-column',{attrs:{"label":"可以删除","width":"40"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.isAllowDelete),callback:function ($$v) {_vm.$set(scope.row, "isAllowDelete", $$v)},expression:"scope.row.isAllowDelete"}})]}}],null,false,2012793206)}),_c('el-table-column',{attrs:{"label":"自动回填","width":"40"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.readType),callback:function ($$v) {_vm.$set(scope.row, "readType", $$v)},expression:"scope.row.readType"}})]}}],null,false,373021414)}),_c('el-table-column',{scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.deleteCurrentRow(scope.row.id)}}},[_vm._v("删除")])]}}],null,false,1240557165)})],1)],1):_vm._e(),(_vm.boxGroup === 0)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.radioCheckbox.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内部标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"内部标识符"},model:{value:(_vm.radioCheckbox.innerIdentifier),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "innerIdentifier", $$v)},expression:"radioCheckbox.innerIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据元标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"数据元标识符"},model:{value:(_vm.radioCheckbox.dataMetaIdentifier),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "dataMetaIdentifier", $$v)},expression:"radioCheckbox.dataMetaIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("表示格式")]),_c('el-input',{attrs:{"size":"mini","placeholder":"表示格式"},model:{value:(_vm.radioCheckbox.identifierFormat),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "identifierFormat", $$v)},expression:"radioCheckbox.identifierFormat"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"名称"},model:{value:(_vm.radioCheckbox.groupName),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "groupName", $$v)},expression:"radioCheckbox.groupName"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("文本")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"文本"},model:{value:(_vm.radioCheckbox.text),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "text", $$v)},expression:"radioCheckbox.text"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("提示文本")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"提示文本"},model:{value:(_vm.radioCheckbox.tipText),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "tipText", $$v)},expression:"radioCheckbox.tipText"}})],1),_c('li',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isSelected),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isSelected", $$v)},expression:"radioCheckbox.isSelected"}},[_vm._v("处于选择状态")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isAllowDelete),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isAllowDelete", $$v)},expression:"radioCheckbox.isAllowDelete"}},[_vm._v("可以删除")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.boxAlign),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "boxAlign", $$v)},expression:"radioCheckbox.boxAlign"}},[_vm._v("勾选框左对齐")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.readType),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "readType", $$v)},expression:"radioCheckbox.readType"}},[_vm._v("自动回填")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isTransToText),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isTransToText", $$v)},expression:"radioCheckbox.isTransToText"}},[_vm._v("内容转文本")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isEditText),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isEditText", $$v)},expression:"radioCheckbox.isEditText"}},[_vm._v("编辑文本")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数值")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"数值"},model:{value:(_vm.radioCheckbox.numericValue),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "numericValue", $$v)},expression:"radioCheckbox.numericValue"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("附加数据")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"附加数据"},model:{value:(_vm.radioCheckbox.additionalData),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "additionalData", $$v)},expression:"radioCheckbox.additionalData"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("勾选级联对象")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"勾选级联对象"},model:{value:(_vm.radioCheckbox.checkCascadeObject),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "checkCascadeObject", $$v)},expression:"radioCheckbox.checkCascadeObject"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("不勾选级联对象")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"不勾选级联对象"},model:{value:(_vm.radioCheckbox.unCheckCascadeObject),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "unCheckCascadeObject", $$v)},expression:"radioCheckbox.unCheckCascadeObject"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1)]:_vm._e()],2)]),_c('footer',{staticClass:"ho-modal-footer"},[(_vm.boxGroup === 1)?_c('el-button',{staticStyle:{"transform":"translateX(-352px)"},attrs:{"type":"primary","size":"small"},on:{"click":_vm.addBox}},[_vm._v("增加"+_vm._s(_vm.controlType === 'RadioBox' ? '单选项' : '复选项'))]):_vm._e(),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
228577
- var RadioCheckboxvue_type_template_id_6f230d8e_scoped_true_staticRenderFns = []
228647
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=5f22349b&scoped=true&
228648
+ var RadioCheckboxvue_type_template_id_5f22349b_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:'control-modal-contents radio-checkbox-modal ' + _vm.animationClassName,style:({ width: _vm.boxGroup === 1 ? '1060px' : '500px' })},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v(_vm._s(_vm.controlType === 'RadioBox' ? '单选框' : '复选框')+_vm._s(_vm.boxGroup === 1 ? '组' : ''))]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("类型")]),_c('el-radio',{attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":1},model:{value:(_vm.boxGroup),callback:function ($$v) {_vm.boxGroup=$$v},expression:"boxGroup"}},[_vm._v("多项")]),_c('el-radio',{staticStyle:{"margin-left":"30px"},attrs:{"disabled":_vm.controlStatus === 'update',"size":"small","label":0},model:{value:(_vm.boxGroup),callback:function ($$v) {_vm.boxGroup=$$v},expression:"boxGroup"}},[_vm._v("单项")])],1),(_vm.boxGroup === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"名称"},model:{value:(_vm.groupName),callback:function ($$v) {_vm.groupName=$$v},expression:"groupName"}})],1):_vm._e(),(_vm.boxGroup === 1)?_c('li',{staticClass:"control-item",staticStyle:{"padding":"0"}},[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.radioCheckBoxGroup,"height":"300px"}},[_c('el-table-column',{attrs:{"label":"文本","width":"160"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"文本"},on:{"input":_vm.addNewItem},model:{value:(scope.row.text),callback:function ($$v) {_vm.$set(scope.row, "text", $$v)},expression:"scope.row.text"}})]}}],null,false,3552177280)}),_c('el-table-column',{attrs:{"label":"提示文本","width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"提示文本"},model:{value:(scope.row.tipText),callback:function ($$v) {_vm.$set(scope.row, "tipText", $$v)},expression:"scope.row.tipText"}})]}}],null,false,2396764658)}),_c('el-table-column',{attrs:{"label":"数值","width":"80"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"数值"},model:{value:(scope.row.numericValue),callback:function ($$v) {_vm.$set(scope.row, "numericValue", $$v)},expression:"scope.row.numericValue"}})]}}],null,false,3789767535)}),_c('el-table-column',{attrs:{"label":"内部标识符","width":"120"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"内部标识符"},model:{value:(scope.row.innerIdentifier),callback:function ($$v) {_vm.$set(scope.row, "innerIdentifier", $$v)},expression:"scope.row.innerIdentifier"}})]}}],null,false,1119088692)}),_c('el-table-column',{attrs:{"label":"数据元标识符","width":"120"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"数据元标识符"},model:{value:(scope.row.dataMetaIdentifier),callback:function ($$v) {_vm.$set(scope.row, "dataMetaIdentifier", $$v)},expression:"scope.row.dataMetaIdentifier"}})]}}],null,false,479119831)}),_c('el-table-column',{attrs:{"label":"表示格式","width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"表示格式"},model:{value:(scope.row.identifierFormat),callback:function ($$v) {_vm.$set(scope.row, "identifierFormat", $$v)},expression:"scope.row.identifierFormat"}})]}}],null,false,241604674)}),_c('el-table-column',{attrs:{"label":"默认选中","width":"40"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(_vm.controlType === 'RadioBox')?_c('el-radio',{staticClass:"table-radio",attrs:{"label":scope.row.id},model:{value:(_vm.tableRadio),callback:function ($$v) {_vm.tableRadio=$$v},expression:"tableRadio"}}):_vm._e(),(_vm.controlType === 'CheckBox')?_c('el-checkbox',{model:{value:(scope.row.isSelected),callback:function ($$v) {_vm.$set(scope.row, "isSelected", $$v)},expression:"scope.row.isSelected"}}):_vm._e()]}}],null,false,1265273066)}),_c('el-table-column',{attrs:{"label":"勾选框左对齐","width":"54"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.boxAlign),callback:function ($$v) {_vm.$set(scope.row, "boxAlign", $$v)},expression:"scope.row.boxAlign"}})]}}],null,false,599012276)}),_c('el-table-column',{attrs:{"label":"内容转文本","width":"54"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.isTransToText),callback:function ($$v) {_vm.$set(scope.row, "isTransToText", $$v)},expression:"scope.row.isTransToText"}})]}}],null,false,1354544746)}),_c('el-table-column',{attrs:{"label":"编辑文本","width":"40"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.isEditText),callback:function ($$v) {_vm.$set(scope.row, "isEditText", $$v)},expression:"scope.row.isEditText"}})]}}],null,false,3019799127)}),_c('el-table-column',{attrs:{"label":"可以删除","width":"40"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.isAllowDelete),callback:function ($$v) {_vm.$set(scope.row, "isAllowDelete", $$v)},expression:"scope.row.isAllowDelete"}})]}}],null,false,2012793206)}),_c('el-table-column',{attrs:{"label":"自动回填","width":"40"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-checkbox',{model:{value:(scope.row.readType),callback:function ($$v) {_vm.$set(scope.row, "readType", $$v)},expression:"scope.row.readType"}})]}}],null,false,373021414)}),_c('el-table-column',{scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.deleteCurrentRow(scope.row.id)}}},[_vm._v("删除")])]}}],null,false,1240557165)})],1)],1):_vm._e(),(_vm.boxGroup === 0)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.radioCheckbox.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("内部标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"内部标识符"},model:{value:(_vm.radioCheckbox.innerIdentifier),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "innerIdentifier", $$v)},expression:"radioCheckbox.innerIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据元标识符")]),_c('el-input',{attrs:{"size":"mini","placeholder":"数据元标识符"},model:{value:(_vm.radioCheckbox.dataMetaIdentifier),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "dataMetaIdentifier", $$v)},expression:"radioCheckbox.dataMetaIdentifier"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("表示格式")]),_c('el-input',{attrs:{"size":"mini","placeholder":"表示格式"},model:{value:(_vm.radioCheckbox.identifierFormat),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "identifierFormat", $$v)},expression:"radioCheckbox.identifierFormat"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("名称")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"名称"},model:{value:(_vm.radioCheckbox.groupName),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "groupName", $$v)},expression:"radioCheckbox.groupName"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("文本")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"文本"},model:{value:(_vm.radioCheckbox.text),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "text", $$v)},expression:"radioCheckbox.text"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("提示文本")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"提示文本"},model:{value:(_vm.radioCheckbox.tipText),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "tipText", $$v)},expression:"radioCheckbox.tipText"}})],1),_c('li',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isSelected),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isSelected", $$v)},expression:"radioCheckbox.isSelected"}},[_vm._v("处于选择状态")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isAllowDelete),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isAllowDelete", $$v)},expression:"radioCheckbox.isAllowDelete"}},[_vm._v("可以删除")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.boxAlign),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "boxAlign", $$v)},expression:"radioCheckbox.boxAlign"}},[_vm._v("勾选框左对齐")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.readType),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "readType", $$v)},expression:"radioCheckbox.readType"}},[_vm._v("自动回填")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isTransToText),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isTransToText", $$v)},expression:"radioCheckbox.isTransToText"}},[_vm._v("内容转文本")]),_c('el-checkbox',{model:{value:(_vm.radioCheckbox.isEditText),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "isEditText", $$v)},expression:"radioCheckbox.isEditText"}},[_vm._v("编辑文本")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数值")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"数值"},model:{value:(_vm.radioCheckbox.numericValue),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "numericValue", $$v)},expression:"radioCheckbox.numericValue"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("附加数据")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"附加数据"},model:{value:(_vm.radioCheckbox.additionalData),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "additionalData", $$v)},expression:"radioCheckbox.additionalData"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("勾选级联对象")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"勾选级联对象"},model:{value:(_vm.radioCheckbox.checkCascadeObject),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "checkCascadeObject", $$v)},expression:"radioCheckbox.checkCascadeObject"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("不勾选级联对象")]),_c('el-input',{attrs:{"type":"text","size":"mini","placeholder":"不勾选级联对象"},model:{value:(_vm.radioCheckbox.unCheckCascadeObject),callback:function ($$v) {_vm.$set(_vm.radioCheckbox, "unCheckCascadeObject", $$v)},expression:"radioCheckbox.unCheckCascadeObject"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1)]:_vm._e()],2)]),_c('footer',{staticClass:"ho-modal-footer"},[(_vm.boxGroup === 1)?_c('el-button',{staticStyle:{"transform":"translateX(-352px)"},attrs:{"type":"primary","size":"small"},on:{"click":_vm.addBox}},[_vm._v("增加"+_vm._s(_vm.controlType === 'RadioBox' ? '单选项' : '复选项'))]):_vm._e(),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
228649
+ var RadioCheckboxvue_type_template_id_5f22349b_scoped_true_staticRenderFns = []
228578
228650
 
228579
228651
 
228580
228652
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=ts&
@@ -228749,6 +228821,7 @@ var RadioCheckbox = /*#__PURE__*/function (_Vue) {
228749
228821
  v.groupName = _this3.groupName;
228750
228822
  v.controlStyle = _this3.controlType;
228751
228823
  if (v.id === _this3.tableRadio) v.isSelected = true;
228824
+ if (v.text == '') return; // 处理单复选文本值为空的情况
228752
228825
 
228753
228826
  _this3.vueController.insertRadioAndCheckBox('add', JSON.stringify(v));
228754
228827
  });
@@ -228792,10 +228865,10 @@ RadioCheckbox = __decorate([vue_class_component_esm({
228792
228865
  /* harmony default export */ var RadioCheckboxvue_type_script_lang_ts_ = (RadioCheckbox);
228793
228866
  ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=ts&
228794
228867
  /* harmony default export */ var radioCheckBox_RadioCheckboxvue_type_script_lang_ts_ = (RadioCheckboxvue_type_script_lang_ts_);
228795
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].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=6f230d8e&lang=scss&scoped=true&
228868
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].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=5f22349b&lang=scss&scoped=true&
228796
228869
  // extracted by mini-css-extract-plugin
228797
228870
 
228798
- ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=6f230d8e&lang=scss&scoped=true&
228871
+ ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=5f22349b&lang=scss&scoped=true&
228799
228872
 
228800
228873
  ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue
228801
228874
 
@@ -228808,11 +228881,11 @@ RadioCheckbox = __decorate([vue_class_component_esm({
228808
228881
 
228809
228882
  var RadioCheckbox_component = normalizeComponent(
228810
228883
  radioCheckBox_RadioCheckboxvue_type_script_lang_ts_,
228811
- RadioCheckboxvue_type_template_id_6f230d8e_scoped_true_render,
228812
- RadioCheckboxvue_type_template_id_6f230d8e_scoped_true_staticRenderFns,
228884
+ RadioCheckboxvue_type_template_id_5f22349b_scoped_true_render,
228885
+ RadioCheckboxvue_type_template_id_5f22349b_scoped_true_staticRenderFns,
228813
228886
  false,
228814
228887
  null,
228815
- "6f230d8e",
228888
+ "5f22349b",
228816
228889
  null
228817
228890
 
228818
228891
  )
@@ -233894,9 +233967,7 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
233894
233967
  if (nodes.parentNode instanceof CellNode/* CellNode */.D) {
233895
233968
  info = {
233896
233969
  cellNode: nodes.parentNode,
233897
- tableNode: nodes.parentNode.parentNode,
233898
- colInfo: nodes.parentNode.table.colInfos[nodes.parentNode.row.indexOf(nodes.parentNode)],
233899
- rowInfo: nodes.parentNode.table.rowInfos[nodes.parentNode.table.rows.indexOf(nodes.parentNode.row)]
233970
+ tableNode: nodes.parentNode.parentNode
233900
233971
  };
233901
233972
  } else {
233902
233973
  isFn(nodes.parentNode);
@@ -233909,9 +233980,7 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
233909
233980
  if (nodes instanceof CellNode/* CellNode */.D) {
233910
233981
  info = {
233911
233982
  cellNode: nodes,
233912
- tableNode: nodes.parentNode,
233913
- colInfo: nodes.table.colInfos[nodes.row.indexOf(nodes)],
233914
- rowInfo: nodes.table.rowInfos[nodes.table.rows.indexOf(nodes.row)]
233983
+ tableNode: nodes.parentNode
233915
233984
  };
233916
233985
  } else {
233917
233986
  isFn(nodes);
@@ -233949,7 +234018,7 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
233949
234018
  drawPageTables.forEach(function (v, key) {
233950
234019
  if (v.parent.pageIndex === dPage.drawMainDoc.pageIndex) {
233951
234020
  tableBounds.height = v.dHeight;
233952
- tableBounds.y = dPage.drawMainDoc.y + v.dTop;
234021
+ tableBounds.y = dPage.drawMainDoc.y + v.y;
233953
234022
 
233954
234023
  if (drawPageCells.length === drawPageTables.length) {
233955
234024
  tableBounds.cellHeight = drawPageCells[key].dHeight;
@@ -234015,10 +234084,12 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
234015
234084
  canAddRow: tableNode.tableProperty.canAddRow,
234016
234085
  canDeleteRow: tableNode.tableProperty.canDeleteRow
234017
234086
  };
234018
- }
234019
234087
 
234020
- if (hoEditorFactory.isCanUseTableProperty && nodes) {
234021
- this.createTable(hoEditorFactory, nodes);
234088
+ if (tableNode.tableProperty.isAutoChangeLine && nodes) {
234089
+ this.createTable(hoEditorFactory, nodes);
234090
+ } else if (hoEditorFactory.isCanUseTableProperty && nodes) {
234091
+ this.createTable(hoEditorFactory, nodes);
234092
+ }
234022
234093
  }
234023
234094
 
234024
234095
  vueControllers.getCurTextStyle();