hoeditor-web 2.0.76 → 2.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.common.js +241 -117
- package/lib/hoeditor.css +2 -855
- package/lib/hoeditor.umd.js +241 -117
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -14775,8 +14775,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14775
14775
|
if (node.text !== "") {
|
|
14776
14776
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
14777
14777
|
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);
|
|
14778
|
-
node.childNodes.splice(1, 0, textNode);
|
|
14779
|
-
|
|
14778
|
+
node.childNodes.splice(1, 0, textNode); //changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
14779
|
+
|
|
14780
|
+
changeEvent.afterChangePath = ePath;
|
|
14780
14781
|
}
|
|
14781
14782
|
} else {
|
|
14782
14783
|
//changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
@@ -14787,6 +14788,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14787
14788
|
node.update();
|
|
14788
14789
|
var pnode = node.parentNode;
|
|
14789
14790
|
|
|
14791
|
+
if (pnode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
14792
|
+
pnode.update();
|
|
14793
|
+
}
|
|
14794
|
+
|
|
14790
14795
|
do {
|
|
14791
14796
|
var _pnode;
|
|
14792
14797
|
|
|
@@ -14800,9 +14805,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14800
14805
|
} while ((_pnode = pnode) !== null && _pnode !== void 0 && _pnode.parentNode);
|
|
14801
14806
|
|
|
14802
14807
|
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
14803
|
-
|
|
14804
|
-
|
|
14808
|
+
//增加判断只有多页表格才更新table.update,以处理编辑元素 卡慢问题
|
|
14805
14809
|
if (pnode.drawCell.drawPageCells.length > 1) {
|
|
14810
|
+
pnode.drawCell.needUpdate = true;
|
|
14806
14811
|
pnode.table.update();
|
|
14807
14812
|
}
|
|
14808
14813
|
}
|
|
@@ -15584,6 +15589,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
15584
15589
|
value: function setCellProperty(objectValues, cellNode) {
|
|
15585
15590
|
var cellProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .CellProperty */ .$W(objectValues);
|
|
15586
15591
|
cellNode.cellProperty = cellProperty;
|
|
15592
|
+
cellNode.drawCell.drawPageCells.forEach(function (pcell) {
|
|
15593
|
+
pcell.valignTop = pcell.calcValignTop();
|
|
15594
|
+
});
|
|
15587
15595
|
}
|
|
15588
15596
|
/**
|
|
15589
15597
|
* 在当前页面添加页眉
|
|
@@ -25993,9 +26001,11 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
25993
26001
|
key: "range",
|
|
25994
26002
|
value: function range() {
|
|
25995
26003
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_21__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26004
|
+
var spath = hoEditorFactory.docTree.getNodeFirstPath(this);
|
|
26005
|
+
var epath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
25996
26006
|
return {
|
|
25997
|
-
from:
|
|
25998
|
-
to:
|
|
26007
|
+
from: spath,
|
|
26008
|
+
to: epath
|
|
25999
26009
|
};
|
|
26000
26010
|
}
|
|
26001
26011
|
}, {
|
|
@@ -37412,6 +37422,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
37412
37422
|
|
|
37413
37423
|
if (isCopy) {
|
|
37414
37424
|
rows = pto.row;
|
|
37425
|
+
cols = pto.col;
|
|
37415
37426
|
|
|
37416
37427
|
if (to.colSpan > 1) {
|
|
37417
37428
|
cols = pto.col + to.colSpan - 1;
|
|
@@ -38841,7 +38852,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38841
38852
|
/*
|
|
38842
38853
|
* @Author: your name
|
|
38843
38854
|
* @Date: 2020-11-03 15:17:54
|
|
38844
|
-
* @LastEditTime: 2022-07-
|
|
38855
|
+
* @LastEditTime: 2022-07-28 09:25:18
|
|
38845
38856
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
38846
38857
|
* @Description: In User Settings Edit
|
|
38847
38858
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -40190,6 +40201,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40190
40201
|
|
|
40191
40202
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40192
40203
|
var endnode = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
|
|
40204
|
+
var isEnd = false;
|
|
40193
40205
|
|
|
40194
40206
|
for (var index = 0; index < this.childNodes.length; index++) {
|
|
40195
40207
|
var value = this.childNodes[index];
|
|
@@ -40215,11 +40227,20 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40215
40227
|
value.placeDNodeAfterDrawLine(paraNode, aline, endPath);
|
|
40216
40228
|
aline = value.drawTable;
|
|
40217
40229
|
} else {
|
|
40218
|
-
if (value == this.EndMarkNode)
|
|
40230
|
+
if (value == this.EndMarkNode) {
|
|
40231
|
+
isEnd = true;
|
|
40232
|
+
break;
|
|
40233
|
+
}
|
|
40234
|
+
|
|
40219
40235
|
aline = value.placeDNode2DrawLine(droots, paraNode, aline, start, start + value.getLength() - 1, endPath);
|
|
40220
40236
|
}
|
|
40221
40237
|
|
|
40222
|
-
|
|
40238
|
+
var nodePath = hoEditorFactory.docTree.getNodeLastPath(value);
|
|
40239
|
+
var cresult = _NodePosition__WEBPACK_IMPORTED_MODULE_35__/* .NodePosition.treePathCompare */ .F.treePathCompare(endPath, nodePath);
|
|
40240
|
+
|
|
40241
|
+
if (cresult <= 0) {
|
|
40242
|
+
break;
|
|
40243
|
+
}
|
|
40223
40244
|
}
|
|
40224
40245
|
|
|
40225
40246
|
aline.fitLines();
|
|
@@ -40250,8 +40271,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40250
40271
|
}
|
|
40251
40272
|
}
|
|
40252
40273
|
|
|
40253
|
-
|
|
40254
|
-
|
|
40274
|
+
if (isEnd) {
|
|
40275
|
+
this.EndMarkNode.node2DrawNode();
|
|
40276
|
+
aline = this.EndMarkNode.placeDNode2DrawLine(droots, paraNode, aline, start, start + this.EndMarkNode.getLength() - 1, endPath);
|
|
40277
|
+
}
|
|
40278
|
+
|
|
40255
40279
|
return aline.paragraphNode.getLastDrawline();
|
|
40256
40280
|
}
|
|
40257
40281
|
}, {
|
|
@@ -48347,13 +48371,19 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48347
48371
|
_this._leftBorder = new createjs.Rectangle(dLeft, dTop, 2, dHeight);
|
|
48348
48372
|
_this._rightBorder = new createjs.Rectangle(dLeft + dWidth - 2, dTop, 2, dHeight);
|
|
48349
48373
|
_this._bottomBorder = new createjs.Rectangle(dLeft, dTop + dHeight - 2, dWidth, 2);
|
|
48350
|
-
|
|
48374
|
+
var innerTop = 0;
|
|
48375
|
+
|
|
48376
|
+
if (_this._cell.drawCell.drawPageCells.length == 0) {
|
|
48377
|
+
innerTop = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(_this._cell.cellProperty.cellInnerMargin[0] * 10, true);
|
|
48378
|
+
}
|
|
48379
|
+
|
|
48380
|
+
if (paintImidiate === undefined || paintImidiate) _this.paintArea(_this._cell.drawCell.drawLines, startLine, innerTop);
|
|
48351
48381
|
|
|
48352
48382
|
var rowIndex = _this._cell.table.rows.indexOf(_this._cell.row);
|
|
48353
48383
|
|
|
48354
48384
|
var colIndex = _this._cell.row.indexOf(_this._cell);
|
|
48355
48385
|
|
|
48356
|
-
_this._valignTop =
|
|
48386
|
+
_this._valignTop = innerTop; // let maxWidth = 0;
|
|
48357
48387
|
// let maxHeight = 0;
|
|
48358
48388
|
// if (colIndex + this._cell.colSpan - 1 === this._cell.table.colCount - 1) {
|
|
48359
48389
|
// maxWidth = -1;
|
|
@@ -48459,8 +48489,23 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48459
48489
|
}, {
|
|
48460
48490
|
key: "updateDHeight",
|
|
48461
48491
|
value: function updateDHeight() {
|
|
48462
|
-
|
|
48463
|
-
|
|
48492
|
+
var innerBottom = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[1] * 10, true);
|
|
48493
|
+
var innerTop = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[0] * 10, true);
|
|
48494
|
+
var index = this.cell.drawCell.drawPageCells.indexOf(this);
|
|
48495
|
+
var docHeight = 0;
|
|
48496
|
+
|
|
48497
|
+
if (index == 0 || index == this.cell.drawCell.drawPageCells.length - 1) {
|
|
48498
|
+
if (index == 0 && index == this.cell.drawCell.drawPageCells.length - 1) {
|
|
48499
|
+
docHeight = innerTop + this.docHeight + innerBottom;
|
|
48500
|
+
} else if (index == 0) {
|
|
48501
|
+
docHeight = innerTop + this.docHeight;
|
|
48502
|
+
} else if (index == this.cell.drawCell.drawPageCells.length - 1) {
|
|
48503
|
+
docHeight = innerBottom + this.docHeight;
|
|
48504
|
+
}
|
|
48505
|
+
}
|
|
48506
|
+
|
|
48507
|
+
if (docHeight > this._dHeight) {
|
|
48508
|
+
this._dHeight = docHeight;
|
|
48464
48509
|
}
|
|
48465
48510
|
|
|
48466
48511
|
if (this._dHeight > this._maxHeight) {
|
|
@@ -48962,17 +49007,25 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48962
49007
|
}, {
|
|
48963
49008
|
key: "calcValignTop",
|
|
48964
49009
|
value: function calcValignTop() {
|
|
48965
|
-
var
|
|
49010
|
+
var index = this.cell.drawCell.drawPageCells.indexOf(this);
|
|
49011
|
+
var innerTop = 0;
|
|
49012
|
+
|
|
49013
|
+
if (index == 0) {
|
|
49014
|
+
innerTop = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[0] * 10, true);
|
|
49015
|
+
}
|
|
49016
|
+
|
|
49017
|
+
var valignTop = innerTop;
|
|
48966
49018
|
|
|
48967
49019
|
if (this._cell.cellProperty.align === TableProperty/* VAlign.vatop */.TR.vatop) {
|
|
48968
|
-
valignTop =
|
|
49020
|
+
valignTop = innerTop;
|
|
48969
49021
|
} else if (this._cell.cellProperty.align === TableProperty/* VAlign.vacenter */.TR.vacenter) {
|
|
48970
49022
|
var aHeight = this.calcCellHeight();
|
|
48971
49023
|
if (aHeight > this._cell.drawCell.docHeight) valignTop = (aHeight - this._cell.drawCell.docHeight) / 2;
|
|
48972
49024
|
} else if (this._cell.cellProperty.align === TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
48973
49025
|
var _aHeight = this.calcCellHeight();
|
|
48974
49026
|
|
|
48975
|
-
|
|
49027
|
+
var innerBottom = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[1] * 10, true);
|
|
49028
|
+
if (_aHeight > this._cell.drawCell.docHeight) valignTop = _aHeight - this._cell.drawCell.docHeight - innerBottom;
|
|
48976
49029
|
}
|
|
48977
49030
|
|
|
48978
49031
|
return valignTop;
|
|
@@ -49942,12 +49995,27 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49942
49995
|
|
|
49943
49996
|
if (cell.rowSpan + r - 1 === row) {
|
|
49944
49997
|
var partCell = cell.drawCell.getDrawPageCell(this);
|
|
49998
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._table.hoEditorFactoryID);
|
|
49945
49999
|
|
|
49946
50000
|
if (partCell) {
|
|
49947
50001
|
// const dobj = partCell.lastDrawLine;
|
|
49948
|
-
var
|
|
50002
|
+
var innerTop = hoeditorfactory.unitConvert.mmConversionPx(partCell.cell.cellProperty.cellInnerMargin[0] * 10, true);
|
|
50003
|
+
var innerBottom = hoeditorfactory.unitConvert.mmConversionPx(partCell.cell.cellProperty.cellInnerMargin[1] * 10, true);
|
|
50004
|
+
var dHeight = 0;
|
|
49949
50005
|
var index = partCell.cell.drawCell.drawPageCells.indexOf(partCell);
|
|
49950
50006
|
|
|
50007
|
+
if (index == 0 || index == partCell.cell.drawCell.drawPageCells.length - 1) {
|
|
50008
|
+
if (index == 0 && index == partCell.cell.drawCell.drawPageCells.length - 1) {
|
|
50009
|
+
dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_9__/* .gDefaultRowHeight */ .dT, innerTop + partCell.docHeight + innerBottom);
|
|
50010
|
+
} else if (index == 0) {
|
|
50011
|
+
dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_9__/* .gDefaultRowHeight */ .dT, innerTop + partCell.docHeight);
|
|
50012
|
+
} else if (index == partCell.cell.drawCell.drawPageCells.length - 1) {
|
|
50013
|
+
dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_9__/* .gDefaultRowHeight */ .dT, innerBottom + partCell.docHeight);
|
|
50014
|
+
}
|
|
50015
|
+
} else {
|
|
50016
|
+
dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_9__/* .gDefaultRowHeight */ .dT, partCell.docHeight);
|
|
50017
|
+
}
|
|
50018
|
+
|
|
49951
50019
|
if (index === partCell.cell.drawCell.drawPageCells.length - 1 || this._table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop) {
|
|
49952
50020
|
if (cell.table.rowInfos[row].rowProperty.isSpecifyHeight) {
|
|
49953
50021
|
var aHeight = cell.table.rowInfos[row].rowHeight;
|
|
@@ -51797,7 +51865,12 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51797
51865
|
_fingerImage.onload = function () {
|
|
51798
51866
|
var fingerWidth = 256;
|
|
51799
51867
|
var fingerHeight = _fingerImage.naturalHeight !== 0 ? _fingerImage.naturalHeight : _fingerImage.height;
|
|
51800
|
-
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15;
|
|
51868
|
+
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15; // 已经缩放过的指纹图片 不需要再次缩放
|
|
51869
|
+
|
|
51870
|
+
if (fingerWidth !== _fingerImage.naturalWidth) {
|
|
51871
|
+
fingerscale = 1;
|
|
51872
|
+
}
|
|
51873
|
+
|
|
51801
51874
|
_fingerBitmap.scaleX = fingerscale;
|
|
51802
51875
|
_fingerBitmap.scaleY = fingerscale;
|
|
51803
51876
|
_fingerBitmap.y = -fingerHeight * fingerscale;
|
|
@@ -200605,15 +200678,15 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200605
200678
|
// });
|
|
200606
200679
|
|
|
200607
200680
|
/* case PaintState.psPreview: {
|
|
200608
|
-
|
|
200609
|
-
|
|
200610
|
-
|
|
200611
|
-
|
|
200612
|
-
|
|
200613
|
-
|
|
200614
|
-
|
|
200615
|
-
|
|
200616
|
-
|
|
200681
|
+
break;
|
|
200682
|
+
}
|
|
200683
|
+
case PaintState.psPrint: {
|
|
200684
|
+
break;
|
|
200685
|
+
} default: {
|
|
200686
|
+
//this.mouseClick(aevent);
|
|
200687
|
+
break;
|
|
200688
|
+
}
|
|
200689
|
+
}
|
|
200617
200690
|
});*/
|
|
200618
200691
|
// this.mainBackGround.addEventListener("click", (aevent: any) => {
|
|
200619
200692
|
// this.mouseClick(aevent);
|
|
@@ -200669,7 +200742,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200669
200742
|
} // }
|
|
200670
200743
|
|
|
200671
200744
|
|
|
200672
|
-
this._selectStage.addEventListener(
|
|
200745
|
+
this._selectStage.addEventListener('stagemousedown', function (aevent) {
|
|
200673
200746
|
// this.mouseDown(aevent)
|
|
200674
200747
|
switch (hoEditorFactory.drawTree.paintStatus) {
|
|
200675
200748
|
case DrawTree/* PaintState.psPreview */.Dh.psPreview:
|
|
@@ -200693,7 +200766,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200693
200766
|
}
|
|
200694
200767
|
});
|
|
200695
200768
|
|
|
200696
|
-
this._selectStage.addEventListener(
|
|
200769
|
+
this._selectStage.addEventListener('stagemouseup', function (aevent) {
|
|
200697
200770
|
// this.mouseup(aevent);
|
|
200698
200771
|
switch (hoEditorFactory.drawTree.paintStatus) {
|
|
200699
200772
|
case DrawTree/* PaintState.psPreview */.Dh.psPreview:
|
|
@@ -200717,7 +200790,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200717
200790
|
}
|
|
200718
200791
|
});
|
|
200719
200792
|
|
|
200720
|
-
this._selectStage.addEventListener(
|
|
200793
|
+
this._selectStage.addEventListener('stagemousemove', function (aevent) {
|
|
200721
200794
|
switch (hoEditorFactory.drawTree.paintStatus) {
|
|
200722
200795
|
case DrawTree/* PaintState.psPreview */.Dh.psPreview:
|
|
200723
200796
|
{
|
|
@@ -200832,7 +200905,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200832
200905
|
key: "mouseDblClick",
|
|
200833
200906
|
value: function () {
|
|
200834
200907
|
var _mouseDblClick = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(aevent) {
|
|
200835
|
-
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;
|
|
200908
|
+
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;
|
|
200836
200909
|
|
|
200837
200910
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
200838
200911
|
while (1) {
|
|
@@ -200952,7 +201025,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200952
201025
|
}
|
|
200953
201026
|
|
|
200954
201027
|
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) {
|
|
200955
|
-
nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node,
|
|
201028
|
+
nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
|
|
200956
201029
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
200957
201030
|
}
|
|
200958
201031
|
|
|
@@ -200985,47 +201058,53 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200985
201058
|
colProperty = colInfos.colProperty;
|
|
200986
201059
|
|
|
200987
201060
|
if (colProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || colProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
|
|
200988
|
-
_nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node,
|
|
201061
|
+
_nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
|
|
200989
201062
|
hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent);
|
|
200990
201063
|
} else if (cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
|
|
200991
|
-
_nodeNeedModifyEvent2 = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node,
|
|
201064
|
+
_nodeNeedModifyEvent2 = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
|
|
200992
201065
|
hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent2);
|
|
200993
|
-
}
|
|
200994
|
-
|
|
200995
|
-
|
|
200996
|
-
|
|
200997
|
-
|
|
200998
|
-
|
|
200999
|
-
|
|
201000
|
-
|
|
201001
|
-
|
|
201002
|
-
|
|
201003
|
-
|
|
201004
|
-
|
|
201005
|
-
|
|
201006
|
-
|
|
201007
|
-
|
|
201008
|
-
|
|
201009
|
-
|
|
201010
|
-
|
|
201011
|
-
|
|
201012
|
-
// let str = "";
|
|
201013
|
-
// for (let j = 0; j < count; j++) {
|
|
201014
|
-
// str += "\n"
|
|
201015
|
-
// }
|
|
201016
|
-
// if (str != "") {
|
|
201017
|
-
// const oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
201018
|
-
// const endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
|
|
201019
|
-
// const newRange = new DomRange(hoEditorFactory.hoEditorFactoryId, endPath, endPath);
|
|
201020
|
-
// hoEditorFactory.drawTree.moveCaretToPath(endPath);
|
|
201021
|
-
// hoEditorFactory.docTree.curDomRange = newRange;
|
|
201022
|
-
// hoEditorFactory.docController.insertPlainTextAfterPath(endPath, str);
|
|
201023
|
-
// }
|
|
201024
|
-
// }
|
|
201025
|
-
// }
|
|
201026
|
-
// }
|
|
201027
|
-
// }
|
|
201066
|
+
} else if (cellNode.table.tableProperty.isAutoChangeLine) {
|
|
201067
|
+
//处理自动换行表格,双击时光标跳到指定双击位置
|
|
201068
|
+
dPageTable = cellNode.table.drawTable.getDrawTableByPageIndex(dPage.pageIndex);
|
|
201069
|
+
|
|
201070
|
+
if (dPageTable) {
|
|
201071
|
+
dPageCell = cellNode.drawCell.getDrawPageCell(dPageTable);
|
|
201072
|
+
|
|
201073
|
+
if (dPageCell) {
|
|
201074
|
+
pos = dPageCell.globalToLocal(aevent.stageX, aevent.stageY);
|
|
201075
|
+
docHeight = 0;
|
|
201076
|
+
dHeight = 0;
|
|
201077
|
+
index = cellNode.drawCell.drawPageCells.indexOf(dPageCell);
|
|
201078
|
+
|
|
201079
|
+
for (i = 0; i < index; i++) {
|
|
201080
|
+
docHeight += cellNode.drawCell.drawPageCells[i].docHeight;
|
|
201081
|
+
dHeight += cellNode.drawCell.drawPageCells[i].dHeight;
|
|
201082
|
+
}
|
|
201083
|
+
|
|
201084
|
+
dLastObj = cellNode.drawCell.drawLines[cellNode.drawCell.drawLines.length - 1];
|
|
201028
201085
|
|
|
201086
|
+
if (dLastObj.dTop + dLastObj.docHeight < dHeight + pos.y) {
|
|
201087
|
+
distance = pos.y + dHeight - (dLastObj.dTop + dLastObj.dHeight);
|
|
201088
|
+
aHeight = cellNode.table.tableProperty.autoLineHeightPx;
|
|
201089
|
+
count = Math.floor(distance / aHeight);
|
|
201090
|
+
str = '';
|
|
201091
|
+
|
|
201092
|
+
for (j = 0; j < count; j++) {
|
|
201093
|
+
str += '\n';
|
|
201094
|
+
}
|
|
201095
|
+
|
|
201096
|
+
if (str != '') {
|
|
201097
|
+
_oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
201098
|
+
_endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
|
|
201099
|
+
_newRange = new DomRange/* DomRange */.a(hoEditorFactory.hoEditorFactoryId, _endPath, _endPath);
|
|
201100
|
+
hoEditorFactory.drawTree.moveCaretToPath(_endPath);
|
|
201101
|
+
hoEditorFactory.docTree.curDomRange = _newRange;
|
|
201102
|
+
hoEditorFactory.docController.insertPlainTextAfterPath(_endPath, str);
|
|
201103
|
+
}
|
|
201104
|
+
}
|
|
201105
|
+
}
|
|
201106
|
+
}
|
|
201107
|
+
}
|
|
201029
201108
|
|
|
201030
201109
|
case 45:
|
|
201031
201110
|
return _context.abrupt("return", true);
|
|
@@ -201166,7 +201245,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201166
201245
|
|
|
201167
201246
|
if (child instanceof createjs.Container && curComment.id === child.name) {
|
|
201168
201247
|
child.children.forEach(function (value) {
|
|
201169
|
-
if (value.name ===
|
|
201248
|
+
if (value.name === 'back') {
|
|
201170
201249
|
value.alpha = 0.5;
|
|
201171
201250
|
}
|
|
201172
201251
|
});
|
|
@@ -201243,21 +201322,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201243
201322
|
|
|
201244
201323
|
if (!dPage.drawDomLevel) {
|
|
201245
201324
|
return false;
|
|
201246
|
-
}
|
|
201247
|
-
// const newEvent = new createjs.MouseEvent(
|
|
201248
|
-
// oldEvent.type,
|
|
201249
|
-
// oldEvent.bubbles,
|
|
201250
|
-
// oldEvent.cancelable,
|
|
201251
|
-
// oldEvent.stageX,
|
|
201252
|
-
// oldEvent.stageY,
|
|
201253
|
-
// oldEvent.nativeEvent,
|
|
201254
|
-
// oldEvent.pointerID,
|
|
201255
|
-
// oldEvent.primary,
|
|
201256
|
-
// oldEvent.rawX,
|
|
201257
|
-
// oldEvent.rawY
|
|
201258
|
-
// );
|
|
201259
|
-
// this._drawPage.drawDomLevel.stage.dispatchEvent(newEvent);
|
|
201260
|
-
|
|
201325
|
+
}
|
|
201261
201326
|
|
|
201262
201327
|
if (hoeditorfactory.drawTree.activePage !== dPage) {
|
|
201263
201328
|
hoeditorfactory.drawTree.activePage = dPage;
|
|
@@ -201278,6 +201343,16 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201278
201343
|
var endPos = hoeditorfactory.drawTree.getStagePosition(dPage, dPage.activeDrawRect, aevent.stageX, aevent.stageY);
|
|
201279
201344
|
|
|
201280
201345
|
if (endPos) {
|
|
201346
|
+
// const startLine = Number(hoeditorfactory.docTree.curDomRange.startPath.split('/')[1]);
|
|
201347
|
+
// const endLine = Number(endPos.path.split('/')[1]);
|
|
201348
|
+
// const listNode = document.querySelector('.ho-editor-list') as HTMLDivElement;
|
|
201349
|
+
// if (listNode) {
|
|
201350
|
+
// if (startLine - endLine > 8) {
|
|
201351
|
+
// listNode.scrollTo(0, listNode.scrollTop - 10);
|
|
201352
|
+
// } else if(startLine - endLine < -8) {
|
|
201353
|
+
// listNode.scrollTo(0, listNode.scrollTop + 10);
|
|
201354
|
+
// }
|
|
201355
|
+
// }
|
|
201281
201356
|
hoeditorfactory.docTree.curDomRange.endPath = endPos.path;
|
|
201282
201357
|
hoeditorfactory.drawTree.selectRange.spEnd = endPos;
|
|
201283
201358
|
hoeditorfactory.drawTree.drawSelectRange();
|
|
@@ -201356,7 +201431,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201356
201431
|
|
|
201357
201432
|
if (np && np.node) {
|
|
201358
201433
|
var buttonCount = parseInt(aevent.nativeEvent.button);
|
|
201359
|
-
var clickType = buttonCount === 0 ?
|
|
201434
|
+
var clickType = buttonCount === 0 ? 'leftclick' : buttonCount === 2 ? 'rightclick' : 'centerclick';
|
|
201360
201435
|
var nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, clickType, startPos.page ? startPos.page.pageIndex : this._pageIndex);
|
|
201361
201436
|
hoeditorfactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
201362
201437
|
}
|
|
@@ -207537,7 +207612,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
207537
207612
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207538
207613
|
var ParagraphNode = __webpack_require__(14208);
|
|
207539
207614
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207540
|
-
/* harmony default export */ var version = ('2.0.
|
|
207615
|
+
/* harmony default export */ var version = ('2.0.79');
|
|
207541
207616
|
;// 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&
|
|
207542
207617
|
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)}
|
|
207543
207618
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -211365,7 +211440,6 @@ var GestationNode = __webpack_require__(74873);
|
|
|
211365
211440
|
|
|
211366
211441
|
|
|
211367
211442
|
|
|
211368
|
-
|
|
211369
211443
|
|
|
211370
211444
|
|
|
211371
211445
|
var StructureConvert = /*#__PURE__*/function () {
|
|
@@ -213418,13 +213492,11 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213418
213492
|
message_box_default().alert("不允许将表格粘贴到文本域");
|
|
213419
213493
|
|
|
213420
213494
|
return undefined;
|
|
213421
|
-
}
|
|
213495
|
+
} // if (isPaste && parentNode instanceof CellNode) {
|
|
213496
|
+
// MessageBox.alert("不允许将表格粘贴到表格");
|
|
213497
|
+
// return undefined;
|
|
213498
|
+
// }
|
|
213422
213499
|
|
|
213423
|
-
if (isPaste && parentNode instanceof CellNode/* CellNode */.D) {
|
|
213424
|
-
message_box_default().alert("不允许将表格粘贴到表格");
|
|
213425
|
-
|
|
213426
|
-
return undefined;
|
|
213427
|
-
}
|
|
213428
213500
|
|
|
213429
213501
|
var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
213430
213502
|
return node;
|
|
@@ -222197,6 +222269,8 @@ var message_default = /*#__PURE__*/__webpack_require__.n(message);
|
|
|
222197
222269
|
|
|
222198
222270
|
|
|
222199
222271
|
|
|
222272
|
+
|
|
222273
|
+
|
|
222200
222274
|
var EditController = /*#__PURE__*/function () {
|
|
222201
222275
|
function EditController(hoEditorFactoryID) {
|
|
222202
222276
|
(0,classCallCheck/* default */.Z)(this, EditController);
|
|
@@ -222525,15 +222599,66 @@ var EditController = /*#__PURE__*/function () {
|
|
|
222525
222599
|
|
|
222526
222600
|
var nodes;
|
|
222527
222601
|
|
|
222528
|
-
if (jsonData
|
|
222529
|
-
|
|
222602
|
+
if (jsonData) {
|
|
222603
|
+
if (hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
222604
|
+
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
222605
|
+
} else {
|
|
222606
|
+
var jsonObject = JSON.parse(jsonData);
|
|
222607
|
+
|
|
222608
|
+
if (jsonObject.length == 1 && jsonObject[0].nodeType === "ntTable" && parentNode instanceof CellNode/* CellNode */.D) {
|
|
222609
|
+
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
222610
|
+
} else {
|
|
222611
|
+
if (htmlData) {
|
|
222612
|
+
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctHTML, htmlData);
|
|
222613
|
+
} else {
|
|
222614
|
+
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctText, textData);
|
|
222615
|
+
}
|
|
222616
|
+
}
|
|
222617
|
+
}
|
|
222530
222618
|
} else if (htmlData) {
|
|
222531
|
-
//console.log(htmlData);
|
|
222532
222619
|
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctHTML, htmlData);
|
|
222533
222620
|
} else {
|
|
222534
222621
|
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctText, textData);
|
|
222535
222622
|
}
|
|
222536
222623
|
|
|
222624
|
+
if (nodes.length === 1 && nodes[0] instanceof TableNode/* TableNode */.Fh && parentNode instanceof CellNode/* CellNode */.D) {
|
|
222625
|
+
var tableNode = nodes[0];
|
|
222626
|
+
|
|
222627
|
+
var _parentNode$table$get = parentNode.table.getCellInfos(parentNode),
|
|
222628
|
+
_parentNode$table$get2 = (0,slicedToArray/* default */.Z)(_parentNode$table$get, 2),
|
|
222629
|
+
rs = _parentNode$table$get2[0],
|
|
222630
|
+
cs = _parentNode$table$get2[1];
|
|
222631
|
+
|
|
222632
|
+
var endRow = 0;
|
|
222633
|
+
var endCol = 0;
|
|
222634
|
+
|
|
222635
|
+
if (hoeditorfactory.docTree.curDomRange.isEmpty) {
|
|
222636
|
+
var re = parentNode.table.rowCount - 1;
|
|
222637
|
+
var ce = parentNode.table.colCount - 1;
|
|
222638
|
+
endRow = re - rs + 1 >= tableNode.rowCount ? tableNode.rowCount : re - rs + 1;
|
|
222639
|
+
endCol = ce - cs + 1 >= tableNode.colCount ? tableNode.colCount : ce - cs + 1;
|
|
222640
|
+
} else {
|
|
222641
|
+
var curDomRange = hoeditorfactory.docTree.curDomRange.normalize();
|
|
222642
|
+
var rowscols = TableNode/* TableNode.getSelectTableRowColInfos */.Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, curDomRange);
|
|
222643
|
+
endRow = rowscols[3] - rowscols[1] + 1 >= tableNode.rowCount ? tableNode.rowCount : rowscols[3] - rowscols[1] + 1;
|
|
222644
|
+
endCol = rowscols[4] - rowscols[2] + 1 >= tableNode.colCount ? tableNode.colCount : rowscols[4] - rowscols[2] + 1;
|
|
222645
|
+
}
|
|
222646
|
+
|
|
222647
|
+
for (var i = 0; i < endRow; i++) {
|
|
222648
|
+
for (var j = 0; j < endCol; j++) {
|
|
222649
|
+
var fromCell = tableNode.rows[i][j];
|
|
222650
|
+
var toCell = parentNode.table.rows[rs + i][cs + j];
|
|
222651
|
+
|
|
222652
|
+
if (fromCell && toCell) {
|
|
222653
|
+
var sCellText = fromCell.getCellText();
|
|
222654
|
+
toCell.setCellText(sCellText);
|
|
222655
|
+
}
|
|
222656
|
+
}
|
|
222657
|
+
}
|
|
222658
|
+
|
|
222659
|
+
return;
|
|
222660
|
+
}
|
|
222661
|
+
|
|
222537
222662
|
if (!hoeditorfactory.pasteBase) {
|
|
222538
222663
|
for (var n = 0; n < nodes.length; n++) {
|
|
222539
222664
|
var node = nodes[n];
|
|
@@ -228562,9 +228687,9 @@ var ExpressionForm_component = normalizeComponent(
|
|
|
228562
228687
|
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/index.ts
|
|
228563
228688
|
|
|
228564
228689
|
/* harmony default export */ var expressionForm = (ExpressionForm);
|
|
228565
|
-
;// 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=
|
|
228566
|
-
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)])}
|
|
228567
|
-
var
|
|
228690
|
+
;// 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&
|
|
228691
|
+
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)])}
|
|
228692
|
+
var RadioCheckboxvue_type_template_id_5f22349b_scoped_true_staticRenderFns = []
|
|
228568
228693
|
|
|
228569
228694
|
|
|
228570
228695
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[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&
|
|
@@ -228739,6 +228864,7 @@ var RadioCheckbox = /*#__PURE__*/function (_Vue) {
|
|
|
228739
228864
|
v.groupName = _this3.groupName;
|
|
228740
228865
|
v.controlStyle = _this3.controlType;
|
|
228741
228866
|
if (v.id === _this3.tableRadio) v.isSelected = true;
|
|
228867
|
+
if (v.text == '') return; // 处理单复选文本值为空的情况
|
|
228742
228868
|
|
|
228743
228869
|
_this3.vueController.insertRadioAndCheckBox('add', JSON.stringify(v));
|
|
228744
228870
|
});
|
|
@@ -228782,10 +228908,10 @@ RadioCheckbox = __decorate([vue_class_component_esm({
|
|
|
228782
228908
|
/* harmony default export */ var RadioCheckboxvue_type_script_lang_ts_ = (RadioCheckbox);
|
|
228783
228909
|
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=ts&
|
|
228784
228910
|
/* harmony default export */ var radioCheckBox_RadioCheckboxvue_type_script_lang_ts_ = (RadioCheckboxvue_type_script_lang_ts_);
|
|
228785
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[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=
|
|
228911
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[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&
|
|
228786
228912
|
// extracted by mini-css-extract-plugin
|
|
228787
228913
|
|
|
228788
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
228914
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=5f22349b&lang=scss&scoped=true&
|
|
228789
228915
|
|
|
228790
228916
|
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue
|
|
228791
228917
|
|
|
@@ -228798,11 +228924,11 @@ RadioCheckbox = __decorate([vue_class_component_esm({
|
|
|
228798
228924
|
|
|
228799
228925
|
var RadioCheckbox_component = normalizeComponent(
|
|
228800
228926
|
radioCheckBox_RadioCheckboxvue_type_script_lang_ts_,
|
|
228801
|
-
|
|
228802
|
-
|
|
228927
|
+
RadioCheckboxvue_type_template_id_5f22349b_scoped_true_render,
|
|
228928
|
+
RadioCheckboxvue_type_template_id_5f22349b_scoped_true_staticRenderFns,
|
|
228803
228929
|
false,
|
|
228804
228930
|
null,
|
|
228805
|
-
"
|
|
228931
|
+
"5f22349b",
|
|
228806
228932
|
null
|
|
228807
228933
|
|
|
228808
228934
|
)
|
|
@@ -233884,9 +234010,7 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
233884
234010
|
if (nodes.parentNode instanceof CellNode/* CellNode */.D) {
|
|
233885
234011
|
info = {
|
|
233886
234012
|
cellNode: nodes.parentNode,
|
|
233887
|
-
tableNode: nodes.parentNode.parentNode
|
|
233888
|
-
colInfo: nodes.parentNode.table.colInfos[nodes.parentNode.row.indexOf(nodes.parentNode)],
|
|
233889
|
-
rowInfo: nodes.parentNode.table.rowInfos[nodes.parentNode.table.rows.indexOf(nodes.parentNode.row)]
|
|
234013
|
+
tableNode: nodes.parentNode.parentNode
|
|
233890
234014
|
};
|
|
233891
234015
|
} else {
|
|
233892
234016
|
isFn(nodes.parentNode);
|
|
@@ -233899,9 +234023,7 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
233899
234023
|
if (nodes instanceof CellNode/* CellNode */.D) {
|
|
233900
234024
|
info = {
|
|
233901
234025
|
cellNode: nodes,
|
|
233902
|
-
tableNode: nodes.parentNode
|
|
233903
|
-
colInfo: nodes.table.colInfos[nodes.row.indexOf(nodes)],
|
|
233904
|
-
rowInfo: nodes.table.rowInfos[nodes.table.rows.indexOf(nodes.row)]
|
|
234026
|
+
tableNode: nodes.parentNode
|
|
233905
234027
|
};
|
|
233906
234028
|
} else {
|
|
233907
234029
|
isFn(nodes);
|
|
@@ -233939,7 +234061,7 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
233939
234061
|
drawPageTables.forEach(function (v, key) {
|
|
233940
234062
|
if (v.parent.pageIndex === dPage.drawMainDoc.pageIndex) {
|
|
233941
234063
|
tableBounds.height = v.dHeight;
|
|
233942
|
-
tableBounds.y = dPage.drawMainDoc.y + v.
|
|
234064
|
+
tableBounds.y = dPage.drawMainDoc.y + v.y;
|
|
233943
234065
|
|
|
233944
234066
|
if (drawPageCells.length === drawPageTables.length) {
|
|
233945
234067
|
tableBounds.cellHeight = drawPageCells[key].dHeight;
|
|
@@ -234005,10 +234127,12 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
234005
234127
|
canAddRow: tableNode.tableProperty.canAddRow,
|
|
234006
234128
|
canDeleteRow: tableNode.tableProperty.canDeleteRow
|
|
234007
234129
|
};
|
|
234008
|
-
}
|
|
234009
234130
|
|
|
234010
|
-
|
|
234011
|
-
|
|
234131
|
+
if (tableNode.tableProperty.isAutoChangeLine && nodes) {
|
|
234132
|
+
this.createTable(hoEditorFactory, nodes);
|
|
234133
|
+
} else if (hoEditorFactory.isCanUseTableProperty && nodes) {
|
|
234134
|
+
this.createTable(hoEditorFactory, nodes);
|
|
234135
|
+
}
|
|
234012
234136
|
}
|
|
234013
234137
|
|
|
234014
234138
|
vueControllers.getCurTextStyle();
|