hoeditor-web 3.1.171 → 3.1.172
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.umd.js +221 -224
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -35872,9 +35872,8 @@ var Print = /*#__PURE__*/function () {
|
|
|
35872
35872
|
chromes = undefined;
|
|
35873
35873
|
}
|
|
35874
35874
|
try {
|
|
35875
|
-
var
|
|
35876
|
-
if ((
|
|
35877
|
-
var _chromes2;
|
|
35875
|
+
var _window$top;
|
|
35876
|
+
if ((_window$top = window.top) !== null && _window$top !== void 0 && (_window$top = _window$top.chrome) !== null && _window$top !== void 0 && _window$top.webview && printSilently) {
|
|
35878
35877
|
// console.log({
|
|
35879
35878
|
// exec: 'printpdf',
|
|
35880
35879
|
// data: {
|
|
@@ -35884,7 +35883,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
35884
35883
|
// base64: PDF.output('datauristring').replace(/^data:application\/pdf;filename=generated.pdf;base64,/, ''),
|
|
35885
35884
|
// },
|
|
35886
35885
|
// })
|
|
35887
|
-
|
|
35886
|
+
window.top.chrome.webview.postMessage({
|
|
35888
35887
|
exec: 'printpdf',
|
|
35889
35888
|
data: {
|
|
35890
35889
|
// showsetup: true, // 是否显示打印设置
|
|
@@ -38333,80 +38332,70 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38333
38332
|
key: "deleteTextBeforePath",
|
|
38334
38333
|
value: function () {
|
|
38335
38334
|
var _deleteTextBeforePath = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().mark(function _callee(startPath) {
|
|
38336
|
-
var hoEditorFactory, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, isError, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, sPath, ePath, path, signNode, table, c, colProperty, pNode;
|
|
38335
|
+
var hoEditorFactory, paintStatus, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, isError, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, sPath, ePath, path, signNode, table, c, colProperty, pNode;
|
|
38337
38336
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
|
|
38338
38337
|
while (1) switch (_context.prev = _context.next) {
|
|
38339
38338
|
case 0:
|
|
38340
38339
|
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38340
|
+
paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
38341
38341
|
domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
38342
38342
|
if (domRange.isEmpty) {
|
|
38343
|
-
_context.next =
|
|
38343
|
+
_context.next = 7;
|
|
38344
38344
|
break;
|
|
38345
38345
|
}
|
|
38346
38346
|
this.deleteRange(domRange, true);
|
|
38347
|
-
|
|
38348
|
-
// hoEditorFactory.undoService.add(
|
|
38349
|
-
// new NodesDeleteUndoUnit(
|
|
38350
|
-
// this._hoEditorFactoryID,
|
|
38351
|
-
// domRange.startPath,
|
|
38352
|
-
// domRange.endPath,
|
|
38353
|
-
// true
|
|
38354
|
-
// )
|
|
38355
|
-
// );
|
|
38356
|
-
// hoEditorFactory.undoService.commit();
|
|
38357
|
-
_context.next = 122;
|
|
38347
|
+
_context.next = 123;
|
|
38358
38348
|
break;
|
|
38359
|
-
case
|
|
38349
|
+
case 7:
|
|
38360
38350
|
nodePosition = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
38361
38351
|
childIndex = nodePosition.childIndex;
|
|
38362
38352
|
node = nodePosition.node;
|
|
38363
38353
|
if (!node) {
|
|
38364
|
-
_context.next =
|
|
38354
|
+
_context.next = 123;
|
|
38365
38355
|
break;
|
|
38366
38356
|
}
|
|
38367
38357
|
if (!domRange.isEmpty) {
|
|
38368
|
-
_context.next =
|
|
38358
|
+
_context.next = 123;
|
|
38369
38359
|
break;
|
|
38370
38360
|
}
|
|
38371
38361
|
if (!(node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R)) {
|
|
38372
|
-
_context.next =
|
|
38362
|
+
_context.next = 36;
|
|
38373
38363
|
break;
|
|
38374
38364
|
}
|
|
38375
38365
|
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D)) {
|
|
38376
|
-
_context.next =
|
|
38366
|
+
_context.next = 17;
|
|
38377
38367
|
break;
|
|
38378
38368
|
}
|
|
38379
38369
|
ret = node.parentNode.delCellNodeText();
|
|
38380
38370
|
if (ret) {
|
|
38381
|
-
_context.next =
|
|
38371
|
+
_context.next = 17;
|
|
38382
38372
|
break;
|
|
38383
38373
|
}
|
|
38384
38374
|
return _context.abrupt("return");
|
|
38385
|
-
case
|
|
38386
|
-
//}
|
|
38375
|
+
case 17:
|
|
38387
38376
|
topath = '';
|
|
38388
38377
|
if (!(childIndex > 0)) {
|
|
38389
|
-
_context.next =
|
|
38378
|
+
_context.next = 24;
|
|
38390
38379
|
break;
|
|
38391
38380
|
}
|
|
38392
38381
|
arr = startPath.split('/');
|
|
38393
38382
|
arr[arr.length - 1] = parseInt(arr[arr.length - 1]) - 1 + '';
|
|
38394
38383
|
topath = arr.join('/');
|
|
38395
|
-
_context.next =
|
|
38384
|
+
_context.next = 31;
|
|
38396
38385
|
break;
|
|
38397
|
-
case
|
|
38386
|
+
case 24:
|
|
38398
38387
|
tmp = node.previousLeaf();
|
|
38399
38388
|
if (!tmp) {
|
|
38400
|
-
_context.next =
|
|
38389
|
+
_context.next = 29;
|
|
38401
38390
|
break;
|
|
38402
38391
|
}
|
|
38403
38392
|
topath = hoEditorFactory.docTree.getNodeLastPath(tmp);
|
|
38404
|
-
_context.next =
|
|
38393
|
+
_context.next = 31;
|
|
38405
38394
|
break;
|
|
38406
|
-
case
|
|
38395
|
+
case 29:
|
|
38407
38396
|
console.error('这里应该不会出现这种情况 2020.10.28');
|
|
38408
38397
|
return _context.abrupt("return");
|
|
38409
|
-
case
|
|
38398
|
+
case 31:
|
|
38410
38399
|
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, topath, startPath);
|
|
38411
38400
|
// hoEditorFactory.undoService.begin();
|
|
38412
38401
|
// hoEditorFactory.undoService.add(
|
|
@@ -38425,42 +38414,42 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38425
38414
|
// if (node.parentNode instanceof TextInputFieldNode) {
|
|
38426
38415
|
// node.parentNode.update();
|
|
38427
38416
|
// }
|
|
38428
|
-
_context.next =
|
|
38417
|
+
_context.next = 123;
|
|
38429
38418
|
break;
|
|
38430
|
-
case
|
|
38419
|
+
case 36:
|
|
38431
38420
|
if (!(node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j)) {
|
|
38432
|
-
_context.next =
|
|
38421
|
+
_context.next = 56;
|
|
38433
38422
|
break;
|
|
38434
38423
|
}
|
|
38435
38424
|
endPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
38436
38425
|
if (!(node.parentNode && node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re)) {
|
|
38437
|
-
_context.next =
|
|
38426
|
+
_context.next = 51;
|
|
38438
38427
|
break;
|
|
38439
38428
|
}
|
|
38440
38429
|
if (!(node.parentNode.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j)) {
|
|
38441
|
-
_context.next =
|
|
38430
|
+
_context.next = 44;
|
|
38442
38431
|
break;
|
|
38443
38432
|
}
|
|
38444
38433
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.parentNode.previousLeaf());
|
|
38445
38434
|
endPath = hoEditorFactory.docTree.getNodeLastPath(node.parentNode);
|
|
38446
|
-
_context.next =
|
|
38435
|
+
_context.next = 51;
|
|
38447
38436
|
break;
|
|
38448
|
-
case
|
|
38437
|
+
case 44:
|
|
38449
38438
|
if (!(node === node.parentNode.last())) {
|
|
38450
|
-
_context.next =
|
|
38439
|
+
_context.next = 49;
|
|
38451
38440
|
break;
|
|
38452
38441
|
}
|
|
38453
38442
|
_topath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
38454
38443
|
hoEditorFactory.drawTree.moveCaretToPath(_topath);
|
|
38455
38444
|
hoEditorFactory.docTree.curDomRange.setSamePath(_topath);
|
|
38456
38445
|
return _context.abrupt("return");
|
|
38457
|
-
case
|
|
38446
|
+
case 49:
|
|
38458
38447
|
if (!(node === node.parentNode.first())) {
|
|
38459
|
-
_context.next =
|
|
38448
|
+
_context.next = 51;
|
|
38460
38449
|
break;
|
|
38461
38450
|
}
|
|
38462
38451
|
return _context.abrupt("return");
|
|
38463
|
-
case
|
|
38452
|
+
case 51:
|
|
38464
38453
|
_aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath //hoEditorFactory.docTree.getNodeLastPath(node)
|
|
38465
38454
|
).normalize();
|
|
38466
38455
|
isError = this.deleteRange(_aRange, true);
|
|
@@ -38477,26 +38466,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38477
38466
|
// )
|
|
38478
38467
|
// );
|
|
38479
38468
|
// hoEditorFactory.undoService.commit();
|
|
38480
|
-
_context.next =
|
|
38469
|
+
_context.next = 123;
|
|
38481
38470
|
break;
|
|
38482
|
-
case
|
|
38471
|
+
case 56:
|
|
38483
38472
|
if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C)) {
|
|
38484
|
-
_context.next =
|
|
38473
|
+
_context.next = 82;
|
|
38485
38474
|
break;
|
|
38486
38475
|
}
|
|
38487
38476
|
prevNode = node.prevSibling();
|
|
38488
38477
|
if (!(prevNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_58__/* .TableNode */ .Fh)) {
|
|
38489
|
-
_context.next =
|
|
38478
|
+
_context.next = 60;
|
|
38490
38479
|
break;
|
|
38491
38480
|
}
|
|
38492
38481
|
return _context.abrupt("return");
|
|
38493
|
-
case
|
|
38482
|
+
case 60:
|
|
38494
38483
|
if (!(prevNode == null)) {
|
|
38495
|
-
_context.next =
|
|
38484
|
+
_context.next = 82;
|
|
38496
38485
|
break;
|
|
38497
38486
|
}
|
|
38498
38487
|
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D)) {
|
|
38499
|
-
_context.next =
|
|
38488
|
+
_context.next = 81;
|
|
38500
38489
|
break;
|
|
38501
38490
|
}
|
|
38502
38491
|
cellNode = node.parentNode;
|
|
@@ -38505,7 +38494,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38505
38494
|
cIndex = cellNode.childNodes.indexOf(node);
|
|
38506
38495
|
preParaNode = hoEditorFactory.docTree.getSameRectPrevParanode(tableNode.paragraphNode);
|
|
38507
38496
|
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof _draw_DrawLine__WEBPACK_IMPORTED_MODULE_87__/* .DrawLine */ .a && preParaNode.drawlines[0].isEmpty())) {
|
|
38508
|
-
_context.next =
|
|
38497
|
+
_context.next = 78;
|
|
38509
38498
|
break;
|
|
38510
38499
|
}
|
|
38511
38500
|
// hoEditorFactory.undoService.begin();
|
|
@@ -38515,64 +38504,63 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38515
38504
|
// await hoEditorFactory.undoService.commit();
|
|
38516
38505
|
hoEditorFactory.undoService.begin();
|
|
38517
38506
|
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_94__/* .TableDeleteParagraphUndoUnit */ .T(this._hoEditorFactoryID, tableNode, tableNode.paragraphNode));
|
|
38518
|
-
_context.next =
|
|
38507
|
+
_context.next = 72;
|
|
38519
38508
|
return hoEditorFactory.undoService.commit();
|
|
38520
|
-
case
|
|
38509
|
+
case 72:
|
|
38521
38510
|
newpath = cellNode.childNodes[0].getNodePath();
|
|
38522
38511
|
hoEditorFactory.docTree.curDomRange.setSamePath(newpath);
|
|
38523
38512
|
hoEditorFactory.drawTree.moveCaretToPath(newpath);
|
|
38524
38513
|
return _context.abrupt("return");
|
|
38525
|
-
case 77:
|
|
38526
|
-
return _context.abrupt("return");
|
|
38527
38514
|
case 78:
|
|
38528
|
-
_context.next = 81;
|
|
38529
|
-
break;
|
|
38530
|
-
case 80:
|
|
38531
38515
|
return _context.abrupt("return");
|
|
38516
|
+
case 79:
|
|
38517
|
+
_context.next = 82;
|
|
38518
|
+
break;
|
|
38532
38519
|
case 81:
|
|
38533
|
-
|
|
38534
|
-
|
|
38520
|
+
return _context.abrupt("return");
|
|
38521
|
+
case 82:
|
|
38522
|
+
if (!(paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview && !(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N))) {
|
|
38523
|
+
_context.next = 87;
|
|
38535
38524
|
break;
|
|
38536
38525
|
}
|
|
38537
38526
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('审阅模式下,只能对文本内容进行删除');
|
|
38538
38527
|
return _context.abrupt("return");
|
|
38539
|
-
case
|
|
38540
|
-
if (!((
|
|
38541
|
-
_context.next =
|
|
38528
|
+
case 87:
|
|
38529
|
+
if (!((paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38530
|
+
_context.next = 92;
|
|
38542
38531
|
break;
|
|
38543
38532
|
}
|
|
38544
38533
|
signUserId = node.customProperty.bce01;
|
|
38545
38534
|
if (!(hoEditorFactory.userInfo.id != signUserId)) {
|
|
38546
|
-
_context.next =
|
|
38535
|
+
_context.next = 92;
|
|
38547
38536
|
break;
|
|
38548
38537
|
}
|
|
38549
38538
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不是本人签名,不允许删除!');
|
|
38550
38539
|
return _context.abrupt("return");
|
|
38551
|
-
case
|
|
38552
|
-
if (!(
|
|
38553
|
-
_context.next =
|
|
38540
|
+
case 92:
|
|
38541
|
+
if (!(paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38542
|
+
_context.next = 95;
|
|
38554
38543
|
break;
|
|
38555
38544
|
}
|
|
38556
38545
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许使用删除键删除签名,请右键删除元素');
|
|
38557
38546
|
return _context.abrupt("return");
|
|
38558
|
-
case
|
|
38559
|
-
if (!(
|
|
38560
|
-
_context.next =
|
|
38547
|
+
case 95:
|
|
38548
|
+
if (!(paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
38549
|
+
_context.next = 98;
|
|
38561
38550
|
break;
|
|
38562
38551
|
}
|
|
38563
38552
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('该签名元素不允许删除!');
|
|
38564
38553
|
return _context.abrupt("return");
|
|
38565
|
-
case
|
|
38554
|
+
case 98:
|
|
38566
38555
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38567
|
-
_context.next =
|
|
38556
|
+
_context.next = 118;
|
|
38568
38557
|
break;
|
|
38569
38558
|
}
|
|
38570
38559
|
preNode = node.previousLeaf();
|
|
38571
38560
|
sPath = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
38572
|
-
ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
38573
|
-
//if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof SignNode) && !(nextNode instanceof SignNode)) {
|
|
38561
|
+
ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
38574
38562
|
if (!((node.imgSrc !== '' || node.fingerPrintSrc !== '') && node.isTemplate)) {
|
|
38575
|
-
_context.next =
|
|
38563
|
+
_context.next = 113;
|
|
38576
38564
|
break;
|
|
38577
38565
|
}
|
|
38578
38566
|
path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
@@ -38594,7 +38582,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38594
38582
|
}
|
|
38595
38583
|
}
|
|
38596
38584
|
return _context.abrupt("return");
|
|
38597
|
-
case
|
|
38585
|
+
case 113:
|
|
38598
38586
|
if (node.connectMode == '换行' && preNode instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C) {
|
|
38599
38587
|
sPath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
|
|
38600
38588
|
}
|
|
@@ -38602,7 +38590,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38602
38590
|
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_43__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, sPath, ePath, true));
|
|
38603
38591
|
hoEditorFactory.undoService.commit();
|
|
38604
38592
|
return _context.abrupt("return");
|
|
38605
|
-
case
|
|
38593
|
+
case 118:
|
|
38606
38594
|
pNode = node.parentNode;
|
|
38607
38595
|
hoEditorFactory.undoService.begin();
|
|
38608
38596
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
@@ -38610,7 +38598,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38610
38598
|
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re && pNode.childNodes.length === 2) {
|
|
38611
38599
|
this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
|
|
38612
38600
|
}
|
|
38613
|
-
case
|
|
38601
|
+
case 123:
|
|
38614
38602
|
case "end":
|
|
38615
38603
|
return _context.stop();
|
|
38616
38604
|
}
|
|
@@ -60579,7 +60567,7 @@ var SpecialCharsNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
60579
60567
|
/* harmony export */ a: function() { return /* binding */ FormularType; }
|
|
60580
60568
|
/* harmony export */ });
|
|
60581
60569
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
60582
|
-
/* harmony import */ var
|
|
60570
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(40735);
|
|
60583
60571
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27222);
|
|
60584
60572
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8495);
|
|
60585
60573
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70280);
|
|
@@ -60644,6 +60632,8 @@ var SpecialCharsNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
60644
60632
|
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(91105);
|
|
60645
60633
|
/* harmony import */ var _RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(99152);
|
|
60646
60634
|
/* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(65043);
|
|
60635
|
+
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(51760);
|
|
60636
|
+
|
|
60647
60637
|
|
|
60648
60638
|
|
|
60649
60639
|
|
|
@@ -61229,7 +61219,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61229
61219
|
var table = this.getParentCell().table;
|
|
61230
61220
|
var arrStr = this.formulaStr.split(",");
|
|
61231
61221
|
if (arrStr.length < 2) {
|
|
61232
|
-
|
|
61222
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("体重和身高对应的单元格编号传入有误:" + this.formulaStr);
|
|
61233
61223
|
}
|
|
61234
61224
|
var _this$getRowColByCell7 = this.getRowColByCellAdress(arrStr[0]),
|
|
61235
61225
|
_this$getRowColByCell8 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell7, 2),
|
|
@@ -61275,7 +61265,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61275
61265
|
var table = this.getParentCell().table;
|
|
61276
61266
|
var arrStr = this.formulaStr.split(",");
|
|
61277
61267
|
if (arrStr.length < 2) {
|
|
61278
|
-
|
|
61268
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("单元格编号传入有误:" + this.formulaStr);
|
|
61279
61269
|
}
|
|
61280
61270
|
var _this$getRowColByCell11 = this.getRowColByCellAdress(arrStr[0]),
|
|
61281
61271
|
_this$getRowColByCell12 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell11, 2),
|
|
@@ -61611,7 +61601,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61611
61601
|
var strRet = " ";
|
|
61612
61602
|
var table = this.getParentCell().table;
|
|
61613
61603
|
if (this.formulaStr == "") {
|
|
61614
|
-
|
|
61604
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("体重的单元格编号传入有误:" + this.formulaStr);
|
|
61615
61605
|
}
|
|
61616
61606
|
var _this$getRowColByCell21 = this.getRowColByCellAdress(this.formulaStr),
|
|
61617
61607
|
_this$getRowColByCell22 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell21, 2),
|
|
@@ -61647,7 +61637,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61647
61637
|
var table = this.getParentCell().table;
|
|
61648
61638
|
var arrStr = this.formulaStr.split(",");
|
|
61649
61639
|
if (arrStr.length < 2) {
|
|
61650
|
-
|
|
61640
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("入院时间和出院时间对应的单元格编号传入有误:" + this.formulaStr);
|
|
61651
61641
|
return strRet;
|
|
61652
61642
|
}
|
|
61653
61643
|
var _this$getRowColByCell23 = this.getRowColByCellAdress(arrStr[0]),
|
|
@@ -61691,7 +61681,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61691
61681
|
var table = this.getParentCell().table;
|
|
61692
61682
|
var arrStr = this.formulaStr.split(",");
|
|
61693
61683
|
if (arrStr.length < 2) {
|
|
61694
|
-
|
|
61684
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("开始时间和结束时间对应的单元格编号传入有误:" + this.formulaStr);
|
|
61695
61685
|
return strRet;
|
|
61696
61686
|
}
|
|
61697
61687
|
var _this$getRowColByCell27 = this.getRowColByCellAdress(arrStr[0]),
|
|
@@ -61784,7 +61774,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61784
61774
|
var strRet = " ";
|
|
61785
61775
|
var table = this.getParentCell().table;
|
|
61786
61776
|
if (this.formulaStr == "") {
|
|
61787
|
-
|
|
61777
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("身高的单元格编号传入有误:" + this.formulaStr);
|
|
61788
61778
|
}
|
|
61789
61779
|
var cellNo = "";
|
|
61790
61780
|
var isRange = false;
|
|
@@ -61915,8 +61905,13 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61915
61905
|
}, {
|
|
61916
61906
|
key: "delete",
|
|
61917
61907
|
value: function _delete(operType) {
|
|
61918
|
-
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_35__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID)
|
|
61919
|
-
(
|
|
61908
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_35__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
61909
|
+
if (hoEditorFactory.drawTree.paintStatus == _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_43__/* .PaintState */ .Dh.psDesign) {
|
|
61910
|
+
hoEditorFactory.drawTree.formularNodes.delete(this._id);
|
|
61911
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TableFormula.prototype), "delete", this).call(this, operType);
|
|
61912
|
+
} else {
|
|
61913
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_44__/* ["default"] */ .Z.warn("不能删除表格计算公式");
|
|
61914
|
+
}
|
|
61920
61915
|
return true;
|
|
61921
61916
|
}
|
|
61922
61917
|
}, {
|
|
@@ -90307,17 +90302,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90307
90302
|
this._isError = true;
|
|
90308
90303
|
return _context3.abrupt("return");
|
|
90309
90304
|
case 12:
|
|
90310
|
-
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath);
|
|
90311
|
-
// if (npFirst && npFirst.node) {
|
|
90312
|
-
// //const parentNode = hoEditorFactory.docTree.getParentNode(this._startPath);
|
|
90313
|
-
// //if (parentNode) {
|
|
90314
|
-
// //if (!nodes.includes(parentNode)) nodes.splice(0, 0, parentNode);
|
|
90315
|
-
// //} else {
|
|
90316
|
-
// if (!nodes.includes(npFirst.node)) nodes.splice(0, 0, npFirst.node);
|
|
90317
|
-
// //}
|
|
90318
|
-
// }
|
|
90305
|
+
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath);
|
|
90319
90306
|
if (!(paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_41__/* .PaintState */ .Dh.psDesign && !this._isForceDelete)) {
|
|
90320
|
-
_context3.next =
|
|
90307
|
+
_context3.next = 83;
|
|
90321
90308
|
break;
|
|
90322
90309
|
}
|
|
90323
90310
|
lastNode = nodes[nodes.length - 1];
|
|
@@ -90358,12 +90345,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90358
90345
|
n = 0;
|
|
90359
90346
|
case 32:
|
|
90360
90347
|
if (!(n < nodes.length)) {
|
|
90361
|
-
_context3.next =
|
|
90348
|
+
_context3.next = 82;
|
|
90362
90349
|
break;
|
|
90363
90350
|
}
|
|
90364
90351
|
node = nodes[n];
|
|
90365
90352
|
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_32__/* .ControlNode */ .w && !(node instanceof _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_40__/* .RareCharNode */ .Q) || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re)) {
|
|
90366
|
-
_context3.next =
|
|
90353
|
+
_context3.next = 47;
|
|
90367
90354
|
break;
|
|
90368
90355
|
}
|
|
90369
90356
|
if (node.isAllowDelete) {
|
|
@@ -90388,90 +90375,91 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90388
90375
|
this._isError = true;
|
|
90389
90376
|
return _context3.abrupt("return");
|
|
90390
90377
|
case 45:
|
|
90378
|
+
_context3.next = 79;
|
|
90379
|
+
break;
|
|
90380
|
+
case 47:
|
|
90391
90381
|
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j)) {
|
|
90392
|
-
_context3.next =
|
|
90382
|
+
_context3.next = 60;
|
|
90393
90383
|
break;
|
|
90394
90384
|
}
|
|
90395
90385
|
if (!(node.MarkNodeType === 0)) {
|
|
90396
|
-
_context3.next =
|
|
90386
|
+
_context3.next = 53;
|
|
90397
90387
|
break;
|
|
90398
90388
|
}
|
|
90399
90389
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90400
90390
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("元素已设置为不允许删除,请正确操作。");
|
|
90401
90391
|
this._isError = true;
|
|
90402
90392
|
return _context3.abrupt("return");
|
|
90403
|
-
case
|
|
90393
|
+
case 53:
|
|
90404
90394
|
if (!(node.MarkNodeType === 2 && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && !node.parentNode.canModifyContent)) {
|
|
90405
|
-
_context3.next =
|
|
90395
|
+
_context3.next = 58;
|
|
90406
90396
|
break;
|
|
90407
90397
|
}
|
|
90408
90398
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90409
90399
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("该元素不允许编辑、删除,请正确操作。");
|
|
90410
90400
|
this._isError = true;
|
|
90411
90401
|
return _context3.abrupt("return");
|
|
90412
|
-
case
|
|
90402
|
+
case 58:
|
|
90403
|
+
_context3.next = 79;
|
|
90404
|
+
break;
|
|
90405
|
+
case 60:
|
|
90413
90406
|
if (!(node instanceof _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_39__/* .TableFormula */ .N)) {
|
|
90414
|
-
_context3.next =
|
|
90407
|
+
_context3.next = 67;
|
|
90415
90408
|
break;
|
|
90416
90409
|
}
|
|
90417
90410
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90418
90411
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许删除表格计算公式");
|
|
90419
90412
|
this._isError = true;
|
|
90420
90413
|
return _context3.abrupt("return");
|
|
90421
|
-
case
|
|
90414
|
+
case 67:
|
|
90422
90415
|
if (!(node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_30__/* .TableNode */ .Fh && !node.tableProperty.canDelTable)) {
|
|
90423
|
-
_context3.next =
|
|
90416
|
+
_context3.next = 74;
|
|
90424
90417
|
break;
|
|
90425
90418
|
}
|
|
90426
90419
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90427
90420
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许删除表格");
|
|
90428
90421
|
this._isError = true;
|
|
90429
90422
|
return _context3.abrupt("return");
|
|
90430
|
-
case
|
|
90423
|
+
case 74:
|
|
90431
90424
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_37__/* .SignNode */ .N)) {
|
|
90432
|
-
_context3.next =
|
|
90425
|
+
_context3.next = 79;
|
|
90433
90426
|
break;
|
|
90434
90427
|
}
|
|
90435
90428
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
90436
90429
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许直接删除签名!");
|
|
90437
90430
|
this._isError = true;
|
|
90438
90431
|
return _context3.abrupt("return");
|
|
90439
|
-
case
|
|
90432
|
+
case 79:
|
|
90440
90433
|
n++;
|
|
90441
90434
|
_context3.next = 32;
|
|
90442
90435
|
break;
|
|
90443
|
-
case
|
|
90436
|
+
case 82:
|
|
90444
90437
|
if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && !nodes[0].isAllowDelete && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j) {
|
|
90445
90438
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
90446
90439
|
}
|
|
90447
|
-
case
|
|
90440
|
+
case 83:
|
|
90448
90441
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
90449
90442
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
90450
|
-
_context3.next =
|
|
90443
|
+
_context3.next = 89;
|
|
90451
90444
|
break;
|
|
90452
90445
|
}
|
|
90453
90446
|
//判断当前TextInputField是否可编辑
|
|
90454
90447
|
pTiNode = pnode;
|
|
90455
|
-
_res = pTiNode.getReadyToEdit(function (value) {
|
|
90456
|
-
//NOTE:在redo当中不能使用同一实例UndoRedoService的commit
|
|
90457
|
-
// this._undo.begin();
|
|
90458
|
-
// this._undo.add(new NodeDeleteUndoUnit(value));
|
|
90459
|
-
// this._undo.commit();
|
|
90460
|
-
});
|
|
90448
|
+
_res = pTiNode.getReadyToEdit(function (value) {});
|
|
90461
90449
|
if (_res[0]) {
|
|
90462
|
-
_context3.next =
|
|
90450
|
+
_context3.next = 89;
|
|
90463
90451
|
break;
|
|
90464
90452
|
}
|
|
90465
90453
|
return _context3.abrupt("return");
|
|
90466
|
-
case
|
|
90454
|
+
case 89:
|
|
90467
90455
|
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_18__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_16__/* .DocAction */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
90468
90456
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
90469
90457
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
90470
|
-
_context3.next =
|
|
90458
|
+
_context3.next = 92;
|
|
90471
90459
|
break;
|
|
90472
90460
|
}
|
|
90473
90461
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
|
|
90474
|
-
case
|
|
90462
|
+
case 92:
|
|
90475
90463
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
90476
90464
|
// this._hoEditorFactory,
|
|
90477
90465
|
// currRange.startPath,
|
|
@@ -90483,17 +90471,17 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90483
90471
|
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
90484
90472
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
90485
90473
|
if (!(res == 1)) {
|
|
90486
|
-
_context3.next =
|
|
90474
|
+
_context3.next = 104;
|
|
90487
90475
|
break;
|
|
90488
90476
|
}
|
|
90489
90477
|
changeEvent.beforeChangePath = startPath;
|
|
90490
90478
|
changeEvent.afterChangePath = this._tmp.start;
|
|
90491
|
-
_context3.next =
|
|
90479
|
+
_context3.next = 102;
|
|
90492
90480
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
90493
|
-
case
|
|
90481
|
+
case 102:
|
|
90494
90482
|
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_22__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
|
|
90495
90483
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
90496
|
-
case
|
|
90484
|
+
case 104:
|
|
90497
90485
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
90498
90486
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
90499
90487
|
aNode = currRange.npStart.node;
|
|
@@ -90501,12 +90489,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90501
90489
|
pnode = aNode.parentNode;
|
|
90502
90490
|
}
|
|
90503
90491
|
if (!(aNode && pnode)) {
|
|
90504
|
-
_context3.next =
|
|
90492
|
+
_context3.next = 111;
|
|
90505
90493
|
break;
|
|
90506
90494
|
}
|
|
90507
|
-
_context3.next =
|
|
90495
|
+
_context3.next = 111;
|
|
90508
90496
|
return this.ParentRepaint(pnode);
|
|
90509
|
-
case
|
|
90497
|
+
case 111:
|
|
90510
90498
|
case "end":
|
|
90511
90499
|
return _context3.stop();
|
|
90512
90500
|
}
|
|
@@ -94000,11 +93988,9 @@ var NodeConvert = /*#__PURE__*/function () {
|
|
|
94000
93988
|
if (value.node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_26__/* .TextInputFieldNode */ .re) {
|
|
94001
93989
|
value.node.text = "";
|
|
94002
93990
|
value.node.childNodes.splice(1, value.node.childNodes.length - 2);
|
|
94003
|
-
}
|
|
94004
|
-
if (value.node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_27__/* .DateTimeNode */ .Z) {
|
|
93991
|
+
} else if (value.node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_27__/* .DateTimeNode */ .Z) {
|
|
94005
93992
|
value.node.text = "";
|
|
94006
|
-
}
|
|
94007
|
-
if (value.node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_28__/* .DownListNode */ .yF) {
|
|
93993
|
+
} else if (value.node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_28__/* .DownListNode */ .yF) {
|
|
94008
93994
|
value.node.text = "";
|
|
94009
93995
|
}
|
|
94010
93996
|
}
|
|
@@ -205833,7 +205819,7 @@ Input.install = function (Vue) {
|
|
|
205833
205819
|
|
|
205834
205820
|
|
|
205835
205821
|
/* harmony default export */ var antd = ([es_button, input, input_number, es_checkbox, date_picker, time_picker, es_radio, es_select, es_tabs, es_dropdown, es_menu, es_upload, tooltip, table, popover, es_icon/* default */.Z, config_provider]);
|
|
205836
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=
|
|
205822
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=241e7c23&
|
|
205837
205823
|
var render = function render() {
|
|
205838
205824
|
var _vm = this,
|
|
205839
205825
|
_c = _vm._self._c;
|
|
@@ -209146,7 +209132,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
209146
209132
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
209147
209133
|
var ParagraphNode = __webpack_require__(67945);
|
|
209148
209134
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
209149
|
-
/* harmony default export */ var version = ('3.1.
|
|
209135
|
+
/* harmony default export */ var version = ('3.1.172');
|
|
209150
209136
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
209151
209137
|
var PoperTipText = __webpack_require__(84531);
|
|
209152
209138
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -224668,6 +224654,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224668
224654
|
key: "setBackgroundByName",
|
|
224669
224655
|
value: function setBackgroundByName(items) {
|
|
224670
224656
|
var _this6 = this;
|
|
224657
|
+
var clearSelectRange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
224671
224658
|
var selectRangeArr = [];
|
|
224672
224659
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
224673
224660
|
var iteratesNodes = function iteratesNodes(nodes) {
|
|
@@ -224683,7 +224670,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224683
224670
|
if (range.length > 0) {
|
|
224684
224671
|
selectRangeArr = selectRangeArr.concat(range);
|
|
224685
224672
|
}
|
|
224686
|
-
} else if (item.text === '' && isCurrent) {
|
|
224673
|
+
} else if ((item.text === '' || item.text == undefined) && isCurrent) {
|
|
224687
224674
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(anode.previousLeaf());
|
|
224688
224675
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(anode);
|
|
224689
224676
|
var pStartPoint = StagePosition/* StagePosition */.M.getStagePosByPath(_this6._hoEditorFactoryID, sPath);
|
|
@@ -224711,7 +224698,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224711
224698
|
iteratesNodes(footerDocTree[f].subDocNodes);
|
|
224712
224699
|
}
|
|
224713
224700
|
if (selectRangeArr.length > 0) {
|
|
224714
|
-
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr,
|
|
224701
|
+
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, clearSelectRange, true);
|
|
224715
224702
|
} else {
|
|
224716
224703
|
console.warn('未搜索到符合条件的元素');
|
|
224717
224704
|
}
|
|
@@ -224910,6 +224897,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224910
224897
|
}
|
|
224911
224898
|
return selectRangeArr;
|
|
224912
224899
|
}
|
|
224900
|
+
}, {
|
|
224901
|
+
key: "clearSelectedRange",
|
|
224902
|
+
value: function clearSelectedRange() {
|
|
224903
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
224904
|
+
hoEditorFactory.drawTree.selectRange.clearAllCustomSelectShape();
|
|
224905
|
+
}
|
|
224913
224906
|
}, {
|
|
224914
224907
|
key: "findAndLightElementsByNames",
|
|
224915
224908
|
value: function findAndLightElementsByNames(names) {
|
|
@@ -226775,6 +226768,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226775
226768
|
}, {
|
|
226776
226769
|
key: "structuredLookup",
|
|
226777
226770
|
value: function structuredLookup(findTextArr) {
|
|
226771
|
+
var clearSelectRange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
226778
226772
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226779
226773
|
var selectRangeArr = [];
|
|
226780
226774
|
var paths = [];
|
|
@@ -226829,7 +226823,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226829
226823
|
selectRangeArr.push(selectRange);
|
|
226830
226824
|
}
|
|
226831
226825
|
if (selectRangeArr.length > 0) {
|
|
226832
|
-
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr,
|
|
226826
|
+
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, clearSelectRange, true);
|
|
226833
226827
|
}
|
|
226834
226828
|
}
|
|
226835
226829
|
}, {
|
|
@@ -226970,7 +226964,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226970
226964
|
//校验单复选必选
|
|
226971
226965
|
}, {
|
|
226972
226966
|
key: "verifyRadioAndCheckBoxs",
|
|
226973
|
-
value: function verifyRadioAndCheckBoxs() {
|
|
226967
|
+
value: function verifyRadioAndCheckBoxs(clearSelect) {
|
|
226974
226968
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226975
226969
|
var radioAndCheckBoxs = hoEditorFactory.docTree.radioAndCheckBoxsMap;
|
|
226976
226970
|
var names = [];
|
|
@@ -227022,7 +227016,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227022
227016
|
// message.warn(tip);
|
|
227023
227017
|
result = groupNames;
|
|
227024
227018
|
}
|
|
227025
|
-
hoEditorFactory.drawTree.selectRange.clearAllCustomSelectShape();
|
|
227019
|
+
// hoEditorFactory.drawTree.selectRange.clearAllCustomSelectShape();
|
|
227026
227020
|
if (elements.length > 0) {
|
|
227027
227021
|
var elementArr = elements.filter(function (item, index, array) {
|
|
227028
227022
|
return array.indexOf(item) === index;
|
|
@@ -227039,7 +227033,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227039
227033
|
selectRangeArr.push(selectRange);
|
|
227040
227034
|
}
|
|
227041
227035
|
if (selectRangeArr.length > 0) {
|
|
227042
|
-
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr,
|
|
227036
|
+
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, clearSelect, true);
|
|
227043
227037
|
}
|
|
227044
227038
|
}
|
|
227045
227039
|
return result;
|
|
@@ -228158,6 +228152,8 @@ var DomController = /*#__PURE__*/function () {
|
|
|
228158
228152
|
|
|
228159
228153
|
|
|
228160
228154
|
|
|
228155
|
+
|
|
228156
|
+
|
|
228161
228157
|
|
|
228162
228158
|
|
|
228163
228159
|
|
|
@@ -228588,16 +228584,27 @@ var EditController = /*#__PURE__*/function () {
|
|
|
228588
228584
|
var fromCell = tableNode.rows[i][j];
|
|
228589
228585
|
var toCell = parentNode.table.rows[rs + i][cs + j];
|
|
228590
228586
|
if (fromCell && toCell) {
|
|
228591
|
-
|
|
228592
|
-
|
|
228587
|
+
var hasFormula = toCell.childNodes.filter(function (child) {
|
|
228588
|
+
return child.nodeType == BaseNode/* NodeType */.Jq.ntTableFormula;
|
|
228589
|
+
}).length;
|
|
228590
|
+
var fromCell2 = [];
|
|
228591
|
+
if (hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psEdit || hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview) {
|
|
228592
|
+
fromCell2 = fromCell.childNodes.filter(function (child) {
|
|
228593
|
+
return child.nodeType != BaseNode/* NodeType */.Jq.ntSign;
|
|
228594
|
+
});
|
|
228593
228595
|
}
|
|
228594
|
-
|
|
228595
|
-
|
|
228596
|
-
|
|
228597
|
-
|
|
228598
|
-
|
|
228596
|
+
if (!hasFormula) {
|
|
228597
|
+
if (fromCell.rowSpan > 1 || fromCell.colSpan > 1) {
|
|
228598
|
+
hoeditorfactory.docController.mergeCells(toCell, rs + i, cs + j, fromCell.rowSpan, fromCell.colSpan);
|
|
228599
|
+
}
|
|
228600
|
+
toCell.childNodes.splice(1, toCell.childNodes.length);
|
|
228601
|
+
var childNodes = fromCell2;
|
|
228602
|
+
for (var s = 1; s < childNodes.length; s++) {
|
|
228603
|
+
var path = hoeditorfactory.docTree.getNodeLastPath(toCell.childNodes[toCell.childNodes.length - 1]);
|
|
228604
|
+
hoeditorfactory.docTree.insertNodeAfterPath(path, childNodes[s]);
|
|
228605
|
+
}
|
|
228606
|
+
toCell.drawCell.needUpdate = true;
|
|
228599
228607
|
}
|
|
228600
|
-
toCell.drawCell.needUpdate = true;
|
|
228601
228608
|
}
|
|
228602
228609
|
}
|
|
228603
228610
|
}
|
|
@@ -238131,7 +238138,7 @@ var localforage_default = /*#__PURE__*/__webpack_require__.n(localforage);
|
|
|
238131
238138
|
var HoLocalStorage = /*#__PURE__*/function () {
|
|
238132
238139
|
// 增加页面刷新时缓存未保存的病历数据
|
|
238133
238140
|
function HoLocalStorage(hoEditorFactoryID) {
|
|
238134
|
-
var
|
|
238141
|
+
var _window$top;
|
|
238135
238142
|
(0,esm_classCallCheck/* default */.Z)(this, HoLocalStorage);
|
|
238136
238143
|
(0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
238137
238144
|
(0,esm_defineProperty/* default */.Z)(this, "_key", void 0);
|
|
@@ -238157,6 +238164,8 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238157
238164
|
//当前缓存的xml文件列表
|
|
238158
238165
|
(0,esm_defineProperty/* default */.Z)(this, "_xmlToLoad", void 0);
|
|
238159
238166
|
//当前缓存的xml文件列表
|
|
238167
|
+
(0,esm_defineProperty/* default */.Z)(this, "isWebview", void 0);
|
|
238168
|
+
// 是否是webview
|
|
238160
238169
|
(0,esm_defineProperty/* default */.Z)(this, "callBack", void 0);
|
|
238161
238170
|
(0,esm_defineProperty/* default */.Z)(this, "callBackForLoad", void 0);
|
|
238162
238171
|
(0,esm_defineProperty/* default */.Z)(this, "_offline_cache_list", void 0);
|
|
@@ -238168,56 +238177,33 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238168
238177
|
(0,esm_defineProperty/* default */.Z)(this, "pageLoadCacheList", void 0);
|
|
238169
238178
|
var _this = this;
|
|
238170
238179
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
238171
|
-
|
|
238172
|
-
|
|
238173
|
-
|
|
238174
|
-
|
|
238175
|
-
|
|
238176
|
-
|
|
238177
|
-
|
|
238178
|
-
|
|
238179
|
-
|
|
238180
|
-
|
|
238181
|
-
|
|
238182
|
-
|
|
238183
|
-
|
|
238184
|
-
|
|
238185
|
-
|
|
238186
|
-
|
|
238187
|
-
|
|
238188
|
-
|
|
238189
|
-
|
|
238190
|
-
|
|
238191
|
-
|
|
238192
|
-
|
|
238193
|
-
console.warn('HO浏览器自动保存病历=>' + (res.result == true ? '成功' : '失败'));
|
|
238194
|
-
} else if (!res.res) {
|
|
238195
|
-
console.warn('HO浏览器自动保存病历=>失败');
|
|
238196
|
-
} else {
|
|
238197
|
-
return false;
|
|
238180
|
+
if ((_window$top = window.top) !== null && _window$top !== void 0 && (_window$top = _window$top.chrome) !== null && _window$top !== void 0 && (_window$top = _window$top.webview) !== null && _window$top !== void 0 && _window$top.addEventListener) {
|
|
238181
|
+
window.top.chrome.webview.addEventListener('message', function (e) {
|
|
238182
|
+
if (e && e.data) {
|
|
238183
|
+
var res = JSON.parse(e.data);
|
|
238184
|
+
// console.log('res-----', res);
|
|
238185
|
+
if (res.result == true && res.res.cmd == 'GetList') {
|
|
238186
|
+
var _this$callBack;
|
|
238187
|
+
_this._localXmlList = res.res.EMR;
|
|
238188
|
+
(_this$callBack = _this.callBack) === null || _this$callBack === void 0 ? void 0 : _this$callBack.call(_this, _this._localXmlList);
|
|
238189
|
+
}
|
|
238190
|
+
if (res.result == true && res.res.cmd == 'Load') {
|
|
238191
|
+
var _this$callBackForLoad;
|
|
238192
|
+
_this._localXmlContent = res.res.EMR;
|
|
238193
|
+
(_this$callBackForLoad = _this.callBackForLoad) === null || _this$callBackForLoad === void 0 ? void 0 : _this$callBackForLoad.call(_this, _this._localXmlContent);
|
|
238194
|
+
}
|
|
238195
|
+
if (res.res && res.res.cmd == 'save') {
|
|
238196
|
+
console.warn('HO浏览器自动保存病历=>' + (res.result == true ? '成功' : '失败'));
|
|
238197
|
+
} else if (!res.res) {
|
|
238198
|
+
console.warn('HO浏览器自动保存病历=>失败');
|
|
238199
|
+
} else {
|
|
238200
|
+
return false;
|
|
238201
|
+
}
|
|
238198
238202
|
}
|
|
238199
|
-
}
|
|
238200
|
-
}
|
|
238203
|
+
});
|
|
238204
|
+
}
|
|
238201
238205
|
}
|
|
238202
238206
|
(0,esm_createClass/* default */.Z)(HoLocalStorage, [{
|
|
238203
|
-
key: "getChromeWebview",
|
|
238204
|
-
value: function getChromeWebview() {
|
|
238205
|
-
var _chromes;
|
|
238206
|
-
var chromes;
|
|
238207
|
-
try {
|
|
238208
|
-
if (window.top) {
|
|
238209
|
-
chromes = window.top.chrome;
|
|
238210
|
-
}
|
|
238211
|
-
} catch (error) {
|
|
238212
|
-
console.error(error);
|
|
238213
|
-
chromes = undefined;
|
|
238214
|
-
}
|
|
238215
|
-
return (_chromes = chromes) === null || _chromes === void 0 ? void 0 : _chromes.webview;
|
|
238216
|
-
}
|
|
238217
|
-
// set ho_web(value: any) {
|
|
238218
|
-
// this._ho_web = value;
|
|
238219
|
-
// }
|
|
238220
|
-
}, {
|
|
238221
238207
|
key: "initHoWebSql",
|
|
238222
238208
|
value: function initHoWebSql() {
|
|
238223
238209
|
localforage_default().config({
|
|
@@ -238249,7 +238235,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238249
238235
|
}, {
|
|
238250
238236
|
key: "getLocalXmlList",
|
|
238251
238237
|
value: function getLocalXmlList(callBack) {
|
|
238252
|
-
var
|
|
238238
|
+
var _window$top2;
|
|
238253
238239
|
this.callBack = callBack;
|
|
238254
238240
|
var hoEditfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
238255
238241
|
var data = {
|
|
@@ -238262,7 +238248,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238262
238248
|
}
|
|
238263
238249
|
}
|
|
238264
238250
|
};
|
|
238265
|
-
(
|
|
238251
|
+
if ((_window$top2 = window.top) !== null && _window$top2 !== void 0 && (_window$top2 = _window$top2.chrome) !== null && _window$top2 !== void 0 && _window$top2.webview) {
|
|
238252
|
+
var _window$top3;
|
|
238253
|
+
(_window$top3 = window.top) === null || _window$top3 === void 0 || (_window$top3 = _window$top3.chrome) === null || _window$top3 === void 0 || (_window$top3 = _window$top3.webview) === null || _window$top3 === void 0 ? void 0 : _window$top3.postMessage(data);
|
|
238254
|
+
}
|
|
238266
238255
|
}
|
|
238267
238256
|
// 获取key的数据 => { data, keyInfo }
|
|
238268
238257
|
}, {
|
|
@@ -238276,7 +238265,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238276
238265
|
}, {
|
|
238277
238266
|
key: "loadLocalXml",
|
|
238278
238267
|
value: function loadLocalXml(item, callBack) {
|
|
238279
|
-
var
|
|
238268
|
+
var _window$top4;
|
|
238280
238269
|
this.callBackForLoad = callBack;
|
|
238281
238270
|
var data = {
|
|
238282
238271
|
exec: 'emr',
|
|
@@ -238288,7 +238277,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238288
238277
|
}
|
|
238289
238278
|
}
|
|
238290
238279
|
};
|
|
238291
|
-
(
|
|
238280
|
+
if ((_window$top4 = window.top) !== null && _window$top4 !== void 0 && (_window$top4 = _window$top4.chrome) !== null && _window$top4 !== void 0 && _window$top4.webview) {
|
|
238281
|
+
var _window$top5;
|
|
238282
|
+
(_window$top5 = window.top) === null || _window$top5 === void 0 || (_window$top5 = _window$top5.chrome) === null || _window$top5 === void 0 || (_window$top5 = _window$top5.webview) === null || _window$top5 === void 0 ? void 0 : _window$top5.postMessage(data);
|
|
238283
|
+
}
|
|
238292
238284
|
}
|
|
238293
238285
|
}, {
|
|
238294
238286
|
key: "removeLocalStorage",
|
|
@@ -238319,18 +238311,17 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238319
238311
|
}, {
|
|
238320
238312
|
key: "autoSaveLocalStorage",
|
|
238321
238313
|
value: function autoSaveLocalStorage() {
|
|
238322
|
-
var
|
|
238314
|
+
var _window$top6,
|
|
238315
|
+
_this4 = this;
|
|
238323
238316
|
if (this._lastSaveTime && new Date().getTime() - this._lastSaveTime <= this._intervalsTime) {
|
|
238324
238317
|
return;
|
|
238325
238318
|
}
|
|
238326
|
-
var HoBrowser = this.getChromeWebview();
|
|
238327
238319
|
var saveTime = (0,plugins_util/* dateFormat */.vc)(new Date());
|
|
238328
238320
|
var hoEditfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
238329
238321
|
this._key = hoEditfactory.userInfo.id + hoEditfactory.docTree.docProperty.patientID + hoEditfactory.docTree.docProperty.title;
|
|
238330
|
-
if (
|
|
238322
|
+
if ((_window$top6 = window.top) !== null && _window$top6 !== void 0 && (_window$top6 = _window$top6.chrome) !== null && _window$top6 !== void 0 && _window$top6.webview) {
|
|
238331
238323
|
this._lastSaveTime = new Date(saveTime).getTime();
|
|
238332
238324
|
if (hoEditfactory && hoEditfactory.vueController.isModifyDoc()) {
|
|
238333
|
-
var _this$getChromeWebvie4;
|
|
238334
238325
|
var data = {
|
|
238335
238326
|
exec: 'emr',
|
|
238336
238327
|
data: {
|
|
@@ -238343,7 +238334,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238343
238334
|
}
|
|
238344
238335
|
};
|
|
238345
238336
|
// console.log('SaveEmrData', data);
|
|
238346
|
-
|
|
238337
|
+
window.top.chrome.webview.postMessage(data);
|
|
238347
238338
|
}
|
|
238348
238339
|
} else if (this._networkConnectionStatus) {
|
|
238349
238340
|
// 网络连接正常情况下正常缓存
|
|
@@ -238414,7 +238405,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238414
238405
|
value: function saveFontString(font) {
|
|
238415
238406
|
var _this5 = this;
|
|
238416
238407
|
this._print_font.keys().then(function (keys) {
|
|
238417
|
-
if (keys.includes(
|
|
238408
|
+
if (keys.includes('sunsim_font')) {
|
|
238418
238409
|
_this5._print_font.removeItem('sunsim_font');
|
|
238419
238410
|
}
|
|
238420
238411
|
});
|
|
@@ -240190,6 +240181,11 @@ var commondata = __webpack_require__(76285);
|
|
|
240190
240181
|
document.addEventListener('mousemove', this.mouseMove);
|
|
240191
240182
|
}
|
|
240192
240183
|
},
|
|
240184
|
+
destroyed: function destroyed() {
|
|
240185
|
+
document.removeEventListener('mouseup', this.mouseMove);
|
|
240186
|
+
document.removeEventListener('mousemove', this.mouseMove);
|
|
240187
|
+
document.removeEventListener('keydown', this.mouseMove);
|
|
240188
|
+
},
|
|
240193
240189
|
created: function created() {
|
|
240194
240190
|
var _this4 = this;
|
|
240195
240191
|
// 禁掉默认的左键菜单
|
|
@@ -240198,19 +240194,7 @@ var commondata = __webpack_require__(76285);
|
|
|
240198
240194
|
};
|
|
240199
240195
|
this.$nextTick(function () {
|
|
240200
240196
|
if (_this4.editJson && _this4.editJson.findModal) {
|
|
240201
|
-
document.
|
|
240202
|
-
var keyCode = event.keyCode || event.which || event.charCode;
|
|
240203
|
-
var ctrlKey = event.ctrlKey || event.metaKey;
|
|
240204
|
-
// ctrl + F组合键 覆盖浏览器自身查询替换功能
|
|
240205
|
-
if (ctrlKey && keyCode === 70) {
|
|
240206
|
-
event.preventDefault();
|
|
240207
|
-
_this4.hoEditorProvider.controlFindType = !_this4.hoEditorProvider.controlFindType;
|
|
240208
|
-
}
|
|
240209
|
-
// esc快捷键 自动关闭查询替换弹窗
|
|
240210
|
-
if (keyCode === 27) {
|
|
240211
|
-
_this4.hoEditorProvider.controlFindType = false;
|
|
240212
|
-
}
|
|
240213
|
-
};
|
|
240197
|
+
document.addEventListener('keydown', _this4.onKeydown);
|
|
240214
240198
|
}
|
|
240215
240199
|
});
|
|
240216
240200
|
// 初始化所有文档
|
|
@@ -240766,15 +240750,28 @@ var commondata = __webpack_require__(76285);
|
|
|
240766
240750
|
autoSelect: function autoSelect(id) {
|
|
240767
240751
|
if (!id) return;
|
|
240768
240752
|
this.hoEditorProvider.autoSelectElementId = id;
|
|
240753
|
+
},
|
|
240754
|
+
onKeydown: function onKeydown(event) {
|
|
240755
|
+
var keyCode = event.keyCode || event.which || event.charCode;
|
|
240756
|
+
var ctrlKey = event.ctrlKey || event.metaKey;
|
|
240757
|
+
// ctrl + F组合键 覆盖浏览器自身查询替换功能
|
|
240758
|
+
if (ctrlKey && keyCode === 70) {
|
|
240759
|
+
event.preventDefault();
|
|
240760
|
+
this.hoEditorProvider.controlFindType = !this.hoEditorProvider.controlFindType;
|
|
240761
|
+
}
|
|
240762
|
+
// esc快捷键 自动关闭查询替换弹窗
|
|
240763
|
+
if (keyCode === 27) {
|
|
240764
|
+
this.hoEditorProvider.controlFindType = false;
|
|
240765
|
+
}
|
|
240769
240766
|
}
|
|
240770
240767
|
}
|
|
240771
240768
|
});
|
|
240772
240769
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
240773
240770
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
240774
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
240771
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=241e7c23&prod&lang=less&media=print&
|
|
240775
240772
|
// extracted by mini-css-extract-plugin
|
|
240776
240773
|
|
|
240777
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
240774
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=241e7c23&prod&lang=less&media=print&
|
|
240778
240775
|
|
|
240779
240776
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
240780
240777
|
|
|
@@ -241851,7 +241848,7 @@ var ToolFamily_component = (0,componentNormalizer/* default */.Z)(
|
|
|
241851
241848
|
return {
|
|
241852
241849
|
aligned: 'both',
|
|
241853
241850
|
lineHeight: 1.25,
|
|
241854
|
-
lineHeightList: [1.25, 1.5, 2, 2.5, 3],
|
|
241851
|
+
lineHeightList: [1.25, 1.5, 1.75, 2, 2.5, 3, 4, 5],
|
|
241855
241852
|
lineHeightVisible: false,
|
|
241856
241853
|
isInMenu: false,
|
|
241857
241854
|
editorSubber: null,
|