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.umd.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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:
|
|
26008
|
-
to:
|
|
26017
|
+
from: spath,
|
|
26018
|
+
to: epath
|
|
26009
26019
|
};
|
|
26010
26020
|
}
|
|
26011
26021
|
}, {
|
|
@@ -37422,6 +37432,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
37422
37432
|
|
|
37423
37433
|
if (isCopy) {
|
|
37424
37434
|
rows = pto.row;
|
|
37435
|
+
cols = pto.col;
|
|
37425
37436
|
|
|
37426
37437
|
if (to.colSpan > 1) {
|
|
37427
37438
|
cols = pto.col + to.colSpan - 1;
|
|
@@ -38851,7 +38862,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38851
38862
|
/*
|
|
38852
38863
|
* @Author: your name
|
|
38853
38864
|
* @Date: 2020-11-03 15:17:54
|
|
38854
|
-
* @LastEditTime: 2022-07-
|
|
38865
|
+
* @LastEditTime: 2022-07-28 09:25:18
|
|
38855
38866
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
38856
38867
|
* @Description: In User Settings Edit
|
|
38857
38868
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -40200,6 +40211,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40200
40211
|
|
|
40201
40212
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40202
40213
|
var endnode = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
|
|
40214
|
+
var isEnd = false;
|
|
40203
40215
|
|
|
40204
40216
|
for (var index = 0; index < this.childNodes.length; index++) {
|
|
40205
40217
|
var value = this.childNodes[index];
|
|
@@ -40225,11 +40237,20 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40225
40237
|
value.placeDNodeAfterDrawLine(paraNode, aline, endPath);
|
|
40226
40238
|
aline = value.drawTable;
|
|
40227
40239
|
} else {
|
|
40228
|
-
if (value == this.EndMarkNode)
|
|
40240
|
+
if (value == this.EndMarkNode) {
|
|
40241
|
+
isEnd = true;
|
|
40242
|
+
break;
|
|
40243
|
+
}
|
|
40244
|
+
|
|
40229
40245
|
aline = value.placeDNode2DrawLine(droots, paraNode, aline, start, start + value.getLength() - 1, endPath);
|
|
40230
40246
|
}
|
|
40231
40247
|
|
|
40232
|
-
|
|
40248
|
+
var nodePath = hoEditorFactory.docTree.getNodeLastPath(value);
|
|
40249
|
+
var cresult = _NodePosition__WEBPACK_IMPORTED_MODULE_35__/* .NodePosition.treePathCompare */ .F.treePathCompare(endPath, nodePath);
|
|
40250
|
+
|
|
40251
|
+
if (cresult <= 0) {
|
|
40252
|
+
break;
|
|
40253
|
+
}
|
|
40233
40254
|
}
|
|
40234
40255
|
|
|
40235
40256
|
aline.fitLines();
|
|
@@ -40260,8 +40281,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40260
40281
|
}
|
|
40261
40282
|
}
|
|
40262
40283
|
|
|
40263
|
-
|
|
40264
|
-
|
|
40284
|
+
if (isEnd) {
|
|
40285
|
+
this.EndMarkNode.node2DrawNode();
|
|
40286
|
+
aline = this.EndMarkNode.placeDNode2DrawLine(droots, paraNode, aline, start, start + this.EndMarkNode.getLength() - 1, endPath);
|
|
40287
|
+
}
|
|
40288
|
+
|
|
40265
40289
|
return aline.paragraphNode.getLastDrawline();
|
|
40266
40290
|
}
|
|
40267
40291
|
}, {
|
|
@@ -48357,13 +48381,19 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48357
48381
|
_this._leftBorder = new createjs.Rectangle(dLeft, dTop, 2, dHeight);
|
|
48358
48382
|
_this._rightBorder = new createjs.Rectangle(dLeft + dWidth - 2, dTop, 2, dHeight);
|
|
48359
48383
|
_this._bottomBorder = new createjs.Rectangle(dLeft, dTop + dHeight - 2, dWidth, 2);
|
|
48360
|
-
|
|
48384
|
+
var innerTop = 0;
|
|
48385
|
+
|
|
48386
|
+
if (_this._cell.drawCell.drawPageCells.length == 0) {
|
|
48387
|
+
innerTop = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(_this._cell.cellProperty.cellInnerMargin[0] * 10, true);
|
|
48388
|
+
}
|
|
48389
|
+
|
|
48390
|
+
if (paintImidiate === undefined || paintImidiate) _this.paintArea(_this._cell.drawCell.drawLines, startLine, innerTop);
|
|
48361
48391
|
|
|
48362
48392
|
var rowIndex = _this._cell.table.rows.indexOf(_this._cell.row);
|
|
48363
48393
|
|
|
48364
48394
|
var colIndex = _this._cell.row.indexOf(_this._cell);
|
|
48365
48395
|
|
|
48366
|
-
_this._valignTop =
|
|
48396
|
+
_this._valignTop = innerTop; // let maxWidth = 0;
|
|
48367
48397
|
// let maxHeight = 0;
|
|
48368
48398
|
// if (colIndex + this._cell.colSpan - 1 === this._cell.table.colCount - 1) {
|
|
48369
48399
|
// maxWidth = -1;
|
|
@@ -48469,8 +48499,23 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48469
48499
|
}, {
|
|
48470
48500
|
key: "updateDHeight",
|
|
48471
48501
|
value: function updateDHeight() {
|
|
48472
|
-
|
|
48473
|
-
|
|
48502
|
+
var innerBottom = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[1] * 10, true);
|
|
48503
|
+
var innerTop = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[0] * 10, true);
|
|
48504
|
+
var index = this.cell.drawCell.drawPageCells.indexOf(this);
|
|
48505
|
+
var docHeight = 0;
|
|
48506
|
+
|
|
48507
|
+
if (index == 0 || index == this.cell.drawCell.drawPageCells.length - 1) {
|
|
48508
|
+
if (index == 0 && index == this.cell.drawCell.drawPageCells.length - 1) {
|
|
48509
|
+
docHeight = innerTop + this.docHeight + innerBottom;
|
|
48510
|
+
} else if (index == 0) {
|
|
48511
|
+
docHeight = innerTop + this.docHeight;
|
|
48512
|
+
} else if (index == this.cell.drawCell.drawPageCells.length - 1) {
|
|
48513
|
+
docHeight = innerBottom + this.docHeight;
|
|
48514
|
+
}
|
|
48515
|
+
}
|
|
48516
|
+
|
|
48517
|
+
if (docHeight > this._dHeight) {
|
|
48518
|
+
this._dHeight = docHeight;
|
|
48474
48519
|
}
|
|
48475
48520
|
|
|
48476
48521
|
if (this._dHeight > this._maxHeight) {
|
|
@@ -48972,17 +49017,25 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48972
49017
|
}, {
|
|
48973
49018
|
key: "calcValignTop",
|
|
48974
49019
|
value: function calcValignTop() {
|
|
48975
|
-
var
|
|
49020
|
+
var index = this.cell.drawCell.drawPageCells.indexOf(this);
|
|
49021
|
+
var innerTop = 0;
|
|
49022
|
+
|
|
49023
|
+
if (index == 0) {
|
|
49024
|
+
innerTop = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[0] * 10, true);
|
|
49025
|
+
}
|
|
49026
|
+
|
|
49027
|
+
var valignTop = innerTop;
|
|
48976
49028
|
|
|
48977
49029
|
if (this._cell.cellProperty.align === TableProperty/* VAlign.vatop */.TR.vatop) {
|
|
48978
|
-
valignTop =
|
|
49030
|
+
valignTop = innerTop;
|
|
48979
49031
|
} else if (this._cell.cellProperty.align === TableProperty/* VAlign.vacenter */.TR.vacenter) {
|
|
48980
49032
|
var aHeight = this.calcCellHeight();
|
|
48981
49033
|
if (aHeight > this._cell.drawCell.docHeight) valignTop = (aHeight - this._cell.drawCell.docHeight) / 2;
|
|
48982
49034
|
} else if (this._cell.cellProperty.align === TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
48983
49035
|
var _aHeight = this.calcCellHeight();
|
|
48984
49036
|
|
|
48985
|
-
|
|
49037
|
+
var innerBottom = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._cell.hoEditorFactoryID).unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[1] * 10, true);
|
|
49038
|
+
if (_aHeight > this._cell.drawCell.docHeight) valignTop = _aHeight - this._cell.drawCell.docHeight - innerBottom;
|
|
48986
49039
|
}
|
|
48987
49040
|
|
|
48988
49041
|
return valignTop;
|
|
@@ -49952,12 +50005,27 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49952
50005
|
|
|
49953
50006
|
if (cell.rowSpan + r - 1 === row) {
|
|
49954
50007
|
var partCell = cell.drawCell.getDrawPageCell(this);
|
|
50008
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._table.hoEditorFactoryID);
|
|
49955
50009
|
|
|
49956
50010
|
if (partCell) {
|
|
49957
50011
|
// const dobj = partCell.lastDrawLine;
|
|
49958
|
-
var
|
|
50012
|
+
var innerTop = hoeditorfactory.unitConvert.mmConversionPx(partCell.cell.cellProperty.cellInnerMargin[0] * 10, true);
|
|
50013
|
+
var innerBottom = hoeditorfactory.unitConvert.mmConversionPx(partCell.cell.cellProperty.cellInnerMargin[1] * 10, true);
|
|
50014
|
+
var dHeight = 0;
|
|
49959
50015
|
var index = partCell.cell.drawCell.drawPageCells.indexOf(partCell);
|
|
49960
50016
|
|
|
50017
|
+
if (index == 0 || index == partCell.cell.drawCell.drawPageCells.length - 1) {
|
|
50018
|
+
if (index == 0 && index == partCell.cell.drawCell.drawPageCells.length - 1) {
|
|
50019
|
+
dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_9__/* .gDefaultRowHeight */ .dT, innerTop + partCell.docHeight + innerBottom);
|
|
50020
|
+
} else if (index == 0) {
|
|
50021
|
+
dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_9__/* .gDefaultRowHeight */ .dT, innerTop + partCell.docHeight);
|
|
50022
|
+
} else if (index == partCell.cell.drawCell.drawPageCells.length - 1) {
|
|
50023
|
+
dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_9__/* .gDefaultRowHeight */ .dT, innerBottom + partCell.docHeight);
|
|
50024
|
+
}
|
|
50025
|
+
} else {
|
|
50026
|
+
dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_9__/* .gDefaultRowHeight */ .dT, partCell.docHeight);
|
|
50027
|
+
}
|
|
50028
|
+
|
|
49961
50029
|
if (index === partCell.cell.drawCell.drawPageCells.length - 1 || this._table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop) {
|
|
49962
50030
|
if (cell.table.rowInfos[row].rowProperty.isSpecifyHeight) {
|
|
49963
50031
|
var aHeight = cell.table.rowInfos[row].rowHeight;
|
|
@@ -51807,7 +51875,12 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51807
51875
|
_fingerImage.onload = function () {
|
|
51808
51876
|
var fingerWidth = 256;
|
|
51809
51877
|
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;
|
|
51878
|
+
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15; // 已经缩放过的指纹图片 不需要再次缩放
|
|
51879
|
+
|
|
51880
|
+
if (fingerWidth !== _fingerImage.naturalWidth) {
|
|
51881
|
+
fingerscale = 1;
|
|
51882
|
+
}
|
|
51883
|
+
|
|
51811
51884
|
_fingerBitmap.scaleX = fingerscale;
|
|
51812
51885
|
_fingerBitmap.scaleY = fingerscale;
|
|
51813
51886
|
_fingerBitmap.y = -fingerHeight * fingerscale;
|
|
@@ -200615,15 +200688,15 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200615
200688
|
// });
|
|
200616
200689
|
|
|
200617
200690
|
/* case PaintState.psPreview: {
|
|
200618
|
-
|
|
200619
|
-
|
|
200620
|
-
|
|
200621
|
-
|
|
200622
|
-
|
|
200623
|
-
|
|
200624
|
-
|
|
200625
|
-
|
|
200626
|
-
|
|
200691
|
+
break;
|
|
200692
|
+
}
|
|
200693
|
+
case PaintState.psPrint: {
|
|
200694
|
+
break;
|
|
200695
|
+
} default: {
|
|
200696
|
+
//this.mouseClick(aevent);
|
|
200697
|
+
break;
|
|
200698
|
+
}
|
|
200699
|
+
}
|
|
200627
200700
|
});*/
|
|
200628
200701
|
// this.mainBackGround.addEventListener("click", (aevent: any) => {
|
|
200629
200702
|
// this.mouseClick(aevent);
|
|
@@ -200679,7 +200752,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200679
200752
|
} // }
|
|
200680
200753
|
|
|
200681
200754
|
|
|
200682
|
-
this._selectStage.addEventListener(
|
|
200755
|
+
this._selectStage.addEventListener('stagemousedown', function (aevent) {
|
|
200683
200756
|
// this.mouseDown(aevent)
|
|
200684
200757
|
switch (hoEditorFactory.drawTree.paintStatus) {
|
|
200685
200758
|
case DrawTree/* PaintState.psPreview */.Dh.psPreview:
|
|
@@ -200703,7 +200776,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200703
200776
|
}
|
|
200704
200777
|
});
|
|
200705
200778
|
|
|
200706
|
-
this._selectStage.addEventListener(
|
|
200779
|
+
this._selectStage.addEventListener('stagemouseup', function (aevent) {
|
|
200707
200780
|
// this.mouseup(aevent);
|
|
200708
200781
|
switch (hoEditorFactory.drawTree.paintStatus) {
|
|
200709
200782
|
case DrawTree/* PaintState.psPreview */.Dh.psPreview:
|
|
@@ -200727,7 +200800,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200727
200800
|
}
|
|
200728
200801
|
});
|
|
200729
200802
|
|
|
200730
|
-
this._selectStage.addEventListener(
|
|
200803
|
+
this._selectStage.addEventListener('stagemousemove', function (aevent) {
|
|
200731
200804
|
switch (hoEditorFactory.drawTree.paintStatus) {
|
|
200732
200805
|
case DrawTree/* PaintState.psPreview */.Dh.psPreview:
|
|
200733
200806
|
{
|
|
@@ -200842,7 +200915,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200842
200915
|
key: "mouseDblClick",
|
|
200843
200916
|
value: function () {
|
|
200844
200917
|
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;
|
|
200918
|
+
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
200919
|
|
|
200847
200920
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
200848
200921
|
while (1) {
|
|
@@ -200962,7 +201035,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200962
201035
|
}
|
|
200963
201036
|
|
|
200964
201037
|
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,
|
|
201038
|
+
nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
|
|
200966
201039
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
200967
201040
|
}
|
|
200968
201041
|
|
|
@@ -200995,47 +201068,53 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200995
201068
|
colProperty = colInfos.colProperty;
|
|
200996
201069
|
|
|
200997
201070
|
if (colProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || colProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
|
|
200998
|
-
_nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node,
|
|
201071
|
+
_nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
|
|
200999
201072
|
hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent);
|
|
201000
201073
|
} 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,
|
|
201074
|
+
_nodeNeedModifyEvent2 = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
|
|
201002
201075
|
hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent2);
|
|
201003
|
-
}
|
|
201004
|
-
|
|
201005
|
-
|
|
201006
|
-
|
|
201007
|
-
|
|
201008
|
-
|
|
201009
|
-
|
|
201010
|
-
|
|
201011
|
-
|
|
201012
|
-
|
|
201013
|
-
|
|
201014
|
-
|
|
201015
|
-
|
|
201016
|
-
|
|
201017
|
-
|
|
201018
|
-
|
|
201019
|
-
|
|
201020
|
-
|
|
201021
|
-
|
|
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
|
-
// }
|
|
201076
|
+
} else if (cellNode.table.tableProperty.isAutoChangeLine) {
|
|
201077
|
+
//处理自动换行表格,双击时光标跳到指定双击位置
|
|
201078
|
+
dPageTable = cellNode.table.drawTable.getDrawTableByPageIndex(dPage.pageIndex);
|
|
201079
|
+
|
|
201080
|
+
if (dPageTable) {
|
|
201081
|
+
dPageCell = cellNode.drawCell.getDrawPageCell(dPageTable);
|
|
201082
|
+
|
|
201083
|
+
if (dPageCell) {
|
|
201084
|
+
pos = dPageCell.globalToLocal(aevent.stageX, aevent.stageY);
|
|
201085
|
+
docHeight = 0;
|
|
201086
|
+
dHeight = 0;
|
|
201087
|
+
index = cellNode.drawCell.drawPageCells.indexOf(dPageCell);
|
|
201088
|
+
|
|
201089
|
+
for (i = 0; i < index; i++) {
|
|
201090
|
+
docHeight += cellNode.drawCell.drawPageCells[i].docHeight;
|
|
201091
|
+
dHeight += cellNode.drawCell.drawPageCells[i].dHeight;
|
|
201092
|
+
}
|
|
201093
|
+
|
|
201094
|
+
dLastObj = cellNode.drawCell.drawLines[cellNode.drawCell.drawLines.length - 1];
|
|
201038
201095
|
|
|
201096
|
+
if (dLastObj.dTop + dLastObj.docHeight < dHeight + pos.y) {
|
|
201097
|
+
distance = pos.y + dHeight - (dLastObj.dTop + dLastObj.dHeight);
|
|
201098
|
+
aHeight = cellNode.table.tableProperty.autoLineHeightPx;
|
|
201099
|
+
count = Math.floor(distance / aHeight);
|
|
201100
|
+
str = '';
|
|
201101
|
+
|
|
201102
|
+
for (j = 0; j < count; j++) {
|
|
201103
|
+
str += '\n';
|
|
201104
|
+
}
|
|
201105
|
+
|
|
201106
|
+
if (str != '') {
|
|
201107
|
+
_oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
201108
|
+
_endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
|
|
201109
|
+
_newRange = new DomRange/* DomRange */.a(hoEditorFactory.hoEditorFactoryId, _endPath, _endPath);
|
|
201110
|
+
hoEditorFactory.drawTree.moveCaretToPath(_endPath);
|
|
201111
|
+
hoEditorFactory.docTree.curDomRange = _newRange;
|
|
201112
|
+
hoEditorFactory.docController.insertPlainTextAfterPath(_endPath, str);
|
|
201113
|
+
}
|
|
201114
|
+
}
|
|
201115
|
+
}
|
|
201116
|
+
}
|
|
201117
|
+
}
|
|
201039
201118
|
|
|
201040
201119
|
case 45:
|
|
201041
201120
|
return _context.abrupt("return", true);
|
|
@@ -201176,7 +201255,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201176
201255
|
|
|
201177
201256
|
if (child instanceof createjs.Container && curComment.id === child.name) {
|
|
201178
201257
|
child.children.forEach(function (value) {
|
|
201179
|
-
if (value.name ===
|
|
201258
|
+
if (value.name === 'back') {
|
|
201180
201259
|
value.alpha = 0.5;
|
|
201181
201260
|
}
|
|
201182
201261
|
});
|
|
@@ -201253,21 +201332,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201253
201332
|
|
|
201254
201333
|
if (!dPage.drawDomLevel) {
|
|
201255
201334
|
return false;
|
|
201256
|
-
}
|
|
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
|
-
|
|
201335
|
+
}
|
|
201271
201336
|
|
|
201272
201337
|
if (hoeditorfactory.drawTree.activePage !== dPage) {
|
|
201273
201338
|
hoeditorfactory.drawTree.activePage = dPage;
|
|
@@ -201288,6 +201353,16 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201288
201353
|
var endPos = hoeditorfactory.drawTree.getStagePosition(dPage, dPage.activeDrawRect, aevent.stageX, aevent.stageY);
|
|
201289
201354
|
|
|
201290
201355
|
if (endPos) {
|
|
201356
|
+
// const startLine = Number(hoeditorfactory.docTree.curDomRange.startPath.split('/')[1]);
|
|
201357
|
+
// const endLine = Number(endPos.path.split('/')[1]);
|
|
201358
|
+
// const listNode = document.querySelector('.ho-editor-list') as HTMLDivElement;
|
|
201359
|
+
// if (listNode) {
|
|
201360
|
+
// if (startLine - endLine > 8) {
|
|
201361
|
+
// listNode.scrollTo(0, listNode.scrollTop - 10);
|
|
201362
|
+
// } else if(startLine - endLine < -8) {
|
|
201363
|
+
// listNode.scrollTo(0, listNode.scrollTop + 10);
|
|
201364
|
+
// }
|
|
201365
|
+
// }
|
|
201291
201366
|
hoeditorfactory.docTree.curDomRange.endPath = endPos.path;
|
|
201292
201367
|
hoeditorfactory.drawTree.selectRange.spEnd = endPos;
|
|
201293
201368
|
hoeditorfactory.drawTree.drawSelectRange();
|
|
@@ -201366,7 +201441,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
201366
201441
|
|
|
201367
201442
|
if (np && np.node) {
|
|
201368
201443
|
var buttonCount = parseInt(aevent.nativeEvent.button);
|
|
201369
|
-
var clickType = buttonCount === 0 ?
|
|
201444
|
+
var clickType = buttonCount === 0 ? 'leftclick' : buttonCount === 2 ? 'rightclick' : 'centerclick';
|
|
201370
201445
|
var nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, clickType, startPos.page ? startPos.page.pageIndex : this._pageIndex);
|
|
201371
201446
|
hoeditorfactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
201372
201447
|
}
|
|
@@ -207547,7 +207622,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
207547
207622
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207548
207623
|
var ParagraphNode = __webpack_require__(13880);
|
|
207549
207624
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207550
|
-
/* harmony default export */ var version = ('2.0.
|
|
207625
|
+
/* harmony default export */ var version = ('2.0.79');
|
|
207551
207626
|
;// 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
207627
|
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
207628
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -211375,7 +211450,6 @@ var GestationNode = __webpack_require__(55817);
|
|
|
211375
211450
|
|
|
211376
211451
|
|
|
211377
211452
|
|
|
211378
|
-
|
|
211379
211453
|
|
|
211380
211454
|
|
|
211381
211455
|
var StructureConvert = /*#__PURE__*/function () {
|
|
@@ -213428,13 +213502,11 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213428
213502
|
message_box_default().alert("不允许将表格粘贴到文本域");
|
|
213429
213503
|
|
|
213430
213504
|
return undefined;
|
|
213431
|
-
}
|
|
213505
|
+
} // if (isPaste && parentNode instanceof CellNode) {
|
|
213506
|
+
// MessageBox.alert("不允许将表格粘贴到表格");
|
|
213507
|
+
// return undefined;
|
|
213508
|
+
// }
|
|
213432
213509
|
|
|
213433
|
-
if (isPaste && parentNode instanceof CellNode/* CellNode */.D) {
|
|
213434
|
-
message_box_default().alert("不允许将表格粘贴到表格");
|
|
213435
|
-
|
|
213436
|
-
return undefined;
|
|
213437
|
-
}
|
|
213438
213510
|
|
|
213439
213511
|
var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
213440
213512
|
return node;
|
|
@@ -222207,6 +222279,8 @@ var message_default = /*#__PURE__*/__webpack_require__.n(message);
|
|
|
222207
222279
|
|
|
222208
222280
|
|
|
222209
222281
|
|
|
222282
|
+
|
|
222283
|
+
|
|
222210
222284
|
var EditController = /*#__PURE__*/function () {
|
|
222211
222285
|
function EditController(hoEditorFactoryID) {
|
|
222212
222286
|
(0,classCallCheck/* default */.Z)(this, EditController);
|
|
@@ -222535,15 +222609,66 @@ var EditController = /*#__PURE__*/function () {
|
|
|
222535
222609
|
|
|
222536
222610
|
var nodes;
|
|
222537
222611
|
|
|
222538
|
-
if (jsonData
|
|
222539
|
-
|
|
222612
|
+
if (jsonData) {
|
|
222613
|
+
if (hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
222614
|
+
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
222615
|
+
} else {
|
|
222616
|
+
var jsonObject = JSON.parse(jsonData);
|
|
222617
|
+
|
|
222618
|
+
if (jsonObject.length == 1 && jsonObject[0].nodeType === "ntTable" && parentNode instanceof CellNode/* CellNode */.D) {
|
|
222619
|
+
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
222620
|
+
} else {
|
|
222621
|
+
if (htmlData) {
|
|
222622
|
+
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctHTML, htmlData);
|
|
222623
|
+
} else {
|
|
222624
|
+
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctText, textData);
|
|
222625
|
+
}
|
|
222626
|
+
}
|
|
222627
|
+
}
|
|
222540
222628
|
} else if (htmlData) {
|
|
222541
|
-
//console.log(htmlData);
|
|
222542
222629
|
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctHTML, htmlData);
|
|
222543
222630
|
} else {
|
|
222544
222631
|
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctText, textData);
|
|
222545
222632
|
}
|
|
222546
222633
|
|
|
222634
|
+
if (nodes.length === 1 && nodes[0] instanceof TableNode/* TableNode */.Fh && parentNode instanceof CellNode/* CellNode */.D) {
|
|
222635
|
+
var tableNode = nodes[0];
|
|
222636
|
+
|
|
222637
|
+
var _parentNode$table$get = parentNode.table.getCellInfos(parentNode),
|
|
222638
|
+
_parentNode$table$get2 = (0,slicedToArray/* default */.Z)(_parentNode$table$get, 2),
|
|
222639
|
+
rs = _parentNode$table$get2[0],
|
|
222640
|
+
cs = _parentNode$table$get2[1];
|
|
222641
|
+
|
|
222642
|
+
var endRow = 0;
|
|
222643
|
+
var endCol = 0;
|
|
222644
|
+
|
|
222645
|
+
if (hoeditorfactory.docTree.curDomRange.isEmpty) {
|
|
222646
|
+
var re = parentNode.table.rowCount - 1;
|
|
222647
|
+
var ce = parentNode.table.colCount - 1;
|
|
222648
|
+
endRow = re - rs + 1 >= tableNode.rowCount ? tableNode.rowCount : re - rs + 1;
|
|
222649
|
+
endCol = ce - cs + 1 >= tableNode.colCount ? tableNode.colCount : ce - cs + 1;
|
|
222650
|
+
} else {
|
|
222651
|
+
var curDomRange = hoeditorfactory.docTree.curDomRange.normalize();
|
|
222652
|
+
var rowscols = TableNode/* TableNode.getSelectTableRowColInfos */.Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, curDomRange);
|
|
222653
|
+
endRow = rowscols[3] - rowscols[1] + 1 >= tableNode.rowCount ? tableNode.rowCount : rowscols[3] - rowscols[1] + 1;
|
|
222654
|
+
endCol = rowscols[4] - rowscols[2] + 1 >= tableNode.colCount ? tableNode.colCount : rowscols[4] - rowscols[2] + 1;
|
|
222655
|
+
}
|
|
222656
|
+
|
|
222657
|
+
for (var i = 0; i < endRow; i++) {
|
|
222658
|
+
for (var j = 0; j < endCol; j++) {
|
|
222659
|
+
var fromCell = tableNode.rows[i][j];
|
|
222660
|
+
var toCell = parentNode.table.rows[rs + i][cs + j];
|
|
222661
|
+
|
|
222662
|
+
if (fromCell && toCell) {
|
|
222663
|
+
var sCellText = fromCell.getCellText();
|
|
222664
|
+
toCell.setCellText(sCellText);
|
|
222665
|
+
}
|
|
222666
|
+
}
|
|
222667
|
+
}
|
|
222668
|
+
|
|
222669
|
+
return;
|
|
222670
|
+
}
|
|
222671
|
+
|
|
222547
222672
|
if (!hoeditorfactory.pasteBase) {
|
|
222548
222673
|
for (var n = 0; n < nodes.length; n++) {
|
|
222549
222674
|
var node = nodes[n];
|
|
@@ -228572,9 +228697,9 @@ var ExpressionForm_component = normalizeComponent(
|
|
|
228572
228697
|
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/index.ts
|
|
228573
228698
|
|
|
228574
228699
|
/* 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=
|
|
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
|
|
228700
|
+
;// 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&
|
|
228701
|
+
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)])}
|
|
228702
|
+
var RadioCheckboxvue_type_template_id_5f22349b_scoped_true_staticRenderFns = []
|
|
228578
228703
|
|
|
228579
228704
|
|
|
228580
228705
|
;// 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 +228874,7 @@ var RadioCheckbox = /*#__PURE__*/function (_Vue) {
|
|
|
228749
228874
|
v.groupName = _this3.groupName;
|
|
228750
228875
|
v.controlStyle = _this3.controlType;
|
|
228751
228876
|
if (v.id === _this3.tableRadio) v.isSelected = true;
|
|
228877
|
+
if (v.text == '') return; // 处理单复选文本值为空的情况
|
|
228752
228878
|
|
|
228753
228879
|
_this3.vueController.insertRadioAndCheckBox('add', JSON.stringify(v));
|
|
228754
228880
|
});
|
|
@@ -228792,10 +228918,10 @@ RadioCheckbox = __decorate([vue_class_component_esm({
|
|
|
228792
228918
|
/* harmony default export */ var RadioCheckboxvue_type_script_lang_ts_ = (RadioCheckbox);
|
|
228793
228919
|
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=ts&
|
|
228794
228920
|
/* 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=
|
|
228921
|
+
;// 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
228922
|
// extracted by mini-css-extract-plugin
|
|
228797
228923
|
|
|
228798
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
228924
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=5f22349b&lang=scss&scoped=true&
|
|
228799
228925
|
|
|
228800
228926
|
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue
|
|
228801
228927
|
|
|
@@ -228808,11 +228934,11 @@ RadioCheckbox = __decorate([vue_class_component_esm({
|
|
|
228808
228934
|
|
|
228809
228935
|
var RadioCheckbox_component = normalizeComponent(
|
|
228810
228936
|
radioCheckBox_RadioCheckboxvue_type_script_lang_ts_,
|
|
228811
|
-
|
|
228812
|
-
|
|
228937
|
+
RadioCheckboxvue_type_template_id_5f22349b_scoped_true_render,
|
|
228938
|
+
RadioCheckboxvue_type_template_id_5f22349b_scoped_true_staticRenderFns,
|
|
228813
228939
|
false,
|
|
228814
228940
|
null,
|
|
228815
|
-
"
|
|
228941
|
+
"5f22349b",
|
|
228816
228942
|
null
|
|
228817
228943
|
|
|
228818
228944
|
)
|
|
@@ -233894,9 +234020,7 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
233894
234020
|
if (nodes.parentNode instanceof CellNode/* CellNode */.D) {
|
|
233895
234021
|
info = {
|
|
233896
234022
|
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)]
|
|
234023
|
+
tableNode: nodes.parentNode.parentNode
|
|
233900
234024
|
};
|
|
233901
234025
|
} else {
|
|
233902
234026
|
isFn(nodes.parentNode);
|
|
@@ -233909,9 +234033,7 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
233909
234033
|
if (nodes instanceof CellNode/* CellNode */.D) {
|
|
233910
234034
|
info = {
|
|
233911
234035
|
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)]
|
|
234036
|
+
tableNode: nodes.parentNode
|
|
233915
234037
|
};
|
|
233916
234038
|
} else {
|
|
233917
234039
|
isFn(nodes);
|
|
@@ -233949,7 +234071,7 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
233949
234071
|
drawPageTables.forEach(function (v, key) {
|
|
233950
234072
|
if (v.parent.pageIndex === dPage.drawMainDoc.pageIndex) {
|
|
233951
234073
|
tableBounds.height = v.dHeight;
|
|
233952
|
-
tableBounds.y = dPage.drawMainDoc.y + v.
|
|
234074
|
+
tableBounds.y = dPage.drawMainDoc.y + v.y;
|
|
233953
234075
|
|
|
233954
234076
|
if (drawPageCells.length === drawPageTables.length) {
|
|
233955
234077
|
tableBounds.cellHeight = drawPageCells[key].dHeight;
|
|
@@ -234015,10 +234137,12 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
234015
234137
|
canAddRow: tableNode.tableProperty.canAddRow,
|
|
234016
234138
|
canDeleteRow: tableNode.tableProperty.canDeleteRow
|
|
234017
234139
|
};
|
|
234018
|
-
}
|
|
234019
234140
|
|
|
234020
|
-
|
|
234021
|
-
|
|
234141
|
+
if (tableNode.tableProperty.isAutoChangeLine && nodes) {
|
|
234142
|
+
this.createTable(hoEditorFactory, nodes);
|
|
234143
|
+
} else if (hoEditorFactory.isCanUseTableProperty && nodes) {
|
|
234144
|
+
this.createTable(hoEditorFactory, nodes);
|
|
234145
|
+
}
|
|
234022
234146
|
}
|
|
234023
234147
|
|
|
234024
234148
|
vueControllers.getCurTextStyle();
|