hoeditor-web 3.1.63 → 3.1.64
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 +164 -89
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -67604,7 +67604,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
67604
67604
|
/*
|
|
67605
67605
|
* @Author: your name
|
|
67606
67606
|
* @Date: 2020-11-03 15:17:54
|
|
67607
|
-
* @LastEditTime: 2024-01-
|
|
67607
|
+
* @LastEditTime: 2024-01-29 11:40:48
|
|
67608
67608
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
67609
67609
|
* @Description: In User Settings Edit
|
|
67610
67610
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -68897,11 +68897,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68897
68897
|
hoEditorFactory.docTree.curDomRange.setSamePath(startPath);
|
|
68898
68898
|
}
|
|
68899
68899
|
if (!(text === '')) {
|
|
68900
|
-
_context2.next =
|
|
68900
|
+
_context2.next = 26;
|
|
68901
68901
|
break;
|
|
68902
68902
|
}
|
|
68903
68903
|
this._canModifyContent = oldValue;
|
|
68904
|
-
|
|
68904
|
+
_context2.next = 21;
|
|
68905
|
+
return hoEditorFactory.docController.deleteRange(aRange, true, 'update');
|
|
68906
|
+
case 21:
|
|
68905
68907
|
// this._childNodes.splice(1, this._childNodes.length - 2);
|
|
68906
68908
|
// const markNode = new MarkNode(this._hoEditorFactoryID, this.rootNodes, this, NodeType.ntText, this.labelText, hoEditorFactory.docTree.curStyleIndex, MarkNodeType.mtContent);
|
|
68907
68909
|
// this._childNodes.splice(1, 0, markNode);
|
|
@@ -68916,10 +68918,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68916
68918
|
hoEditorFactory.drawTree.editor.input.focus();
|
|
68917
68919
|
hoEditorFactory.drawTree.moveCaretToPath(startPath);
|
|
68918
68920
|
return _context2.abrupt("return");
|
|
68919
|
-
case
|
|
68920
|
-
_context2.next =
|
|
68921
|
+
case 26:
|
|
68922
|
+
_context2.next = 28;
|
|
68921
68923
|
return hoEditorFactory.docController.insertPlainTextAfterPath(startPath, text, oldValue);
|
|
68922
|
-
case
|
|
68924
|
+
case 28:
|
|
68923
68925
|
case "end":
|
|
68924
68926
|
return _context2.stop();
|
|
68925
68927
|
}
|
|
@@ -91671,22 +91673,22 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
91671
91673
|
/* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(27198);
|
|
91672
91674
|
/* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(2613);
|
|
91673
91675
|
/* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(94639);
|
|
91674
|
-
/* harmony import */ var
|
|
91675
|
-
/* harmony import */ var
|
|
91676
|
-
/* harmony import */ var
|
|
91677
|
-
/* harmony import */ var
|
|
91678
|
-
/* harmony import */ var
|
|
91679
|
-
/* harmony import */ var
|
|
91680
|
-
/* harmony import */ var
|
|
91681
|
-
/* harmony import */ var
|
|
91682
|
-
/* harmony import */ var
|
|
91683
|
-
/* harmony import */ var
|
|
91684
|
-
/* harmony import */ var
|
|
91685
|
-
/* harmony import */ var
|
|
91686
|
-
/* harmony import */ var
|
|
91687
|
-
/* harmony import */ var
|
|
91688
|
-
/* harmony import */ var
|
|
91689
|
-
/* harmony import */ var
|
|
91676
|
+
/* harmony import */ var _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(62358);
|
|
91677
|
+
/* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(59057);
|
|
91678
|
+
/* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(931);
|
|
91679
|
+
/* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(19229);
|
|
91680
|
+
/* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(90161);
|
|
91681
|
+
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(57727);
|
|
91682
|
+
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(8277);
|
|
91683
|
+
/* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(67945);
|
|
91684
|
+
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(68598);
|
|
91685
|
+
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(53901);
|
|
91686
|
+
/* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(5010);
|
|
91687
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(74089);
|
|
91688
|
+
/* harmony import */ var _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(91105);
|
|
91689
|
+
/* harmony import */ var _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(99152);
|
|
91690
|
+
/* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(92501);
|
|
91691
|
+
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(45712);
|
|
91690
91692
|
/* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(24701);
|
|
91691
91693
|
/* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(42921);
|
|
91692
91694
|
/* harmony import */ var _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(90832);
|
|
@@ -91767,7 +91769,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91767
91769
|
this._startPath = startPath;
|
|
91768
91770
|
this._endPath = endPath;
|
|
91769
91771
|
this._isForceDelete = isForceDelete;
|
|
91770
|
-
this._undo = new
|
|
91772
|
+
this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_24__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
|
|
91771
91773
|
this._undoNodes = new Map();
|
|
91772
91774
|
var aDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(hoEditorFactoryID, startPath, endPath).normalize();
|
|
91773
91775
|
var _aDomRange$inSameTabl = aDomRange.inSameTable(),
|
|
@@ -91776,7 +91778,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91776
91778
|
aTable = _aDomRange$inSameTabl2[1];
|
|
91777
91779
|
this._bSameTable = bSametable;
|
|
91778
91780
|
this._opTime = new Date();
|
|
91779
|
-
this._affectText =
|
|
91781
|
+
this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
|
|
91780
91782
|
}
|
|
91781
91783
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
|
|
91782
91784
|
key: "undo",
|
|
@@ -91795,10 +91797,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91795
91797
|
arr = Array.from(this._undoNodes).reverse();
|
|
91796
91798
|
i = 0;
|
|
91797
91799
|
prevIsTable = false;
|
|
91798
|
-
hoEditorFactory =
|
|
91800
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
91799
91801
|
while (i < arr.length) {
|
|
91800
91802
|
value = arr[i];
|
|
91801
|
-
if (value[1] instanceof
|
|
91803
|
+
if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_29__/* .CellNode */ .D) {
|
|
91802
91804
|
// (value[1] as CellNode).redrawCell(true, DocAction.daInsert);
|
|
91803
91805
|
} else {
|
|
91804
91806
|
if (prevIsTable) {
|
|
@@ -91806,12 +91808,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91806
91808
|
} else {
|
|
91807
91809
|
hoEditorFactory.docTree.insertNodeAfterPath(value[0], value[1]);
|
|
91808
91810
|
}
|
|
91809
|
-
if (value[1] instanceof
|
|
91811
|
+
if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_31__/* .TableNode */ .Fh) {
|
|
91810
91812
|
prevIsTable = true;
|
|
91811
91813
|
// value[1].clearDrawNodes();
|
|
91812
91814
|
// value[1].drawTable.drawPageTables.length = 0;
|
|
91813
91815
|
np = hoEditorFactory.docTree.findNodePositionByPath(value[0]);
|
|
91814
|
-
if (np && np.node && np.node instanceof
|
|
91816
|
+
if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_28__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
|
|
91815
91817
|
} else {
|
|
91816
91818
|
prevIsTable = false;
|
|
91817
91819
|
}
|
|
@@ -91850,7 +91852,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91850
91852
|
//选中范围变化事件
|
|
91851
91853
|
newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
91852
91854
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
91853
|
-
cgEvent = new
|
|
91855
|
+
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_23__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
|
|
91854
91856
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
91855
91857
|
//光标定位
|
|
91856
91858
|
hoEditorFactory.drawTree.moveCaretToPath(newRange.endPath);
|
|
@@ -91877,7 +91879,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91877
91879
|
}, {
|
|
91878
91880
|
key: "MoveCaret",
|
|
91879
91881
|
value: function MoveCaret(path) {
|
|
91880
|
-
|
|
91882
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.moveCaretToPath(path);
|
|
91881
91883
|
}
|
|
91882
91884
|
/**
|
|
91883
91885
|
* @description 返回前面一个node的开始结束选中范围 文本节点时候返回文本中单个文字的选中范围
|
|
@@ -91887,20 +91889,20 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91887
91889
|
key: "getPrevNodeDomRange",
|
|
91888
91890
|
value: function getPrevNodeDomRange(Anode) {
|
|
91889
91891
|
var spath;
|
|
91890
|
-
var hoEditorFactory =
|
|
91892
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
91891
91893
|
var prev = Anode.prevSibling();
|
|
91892
91894
|
if (!prev) {
|
|
91893
|
-
throw
|
|
91895
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
|
|
91894
91896
|
}
|
|
91895
91897
|
var epath = hoEditorFactory.docTree.getNodeLastPath(prev);
|
|
91896
91898
|
if (prev instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__/* .TextNode */ .R) {
|
|
91897
91899
|
spath = prev.prevPath(epath);
|
|
91898
|
-
} else if (prev instanceof
|
|
91900
|
+
} else if (prev instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_28__/* .ParagraphNode */ .C) {
|
|
91899
91901
|
spath = epath;
|
|
91900
91902
|
} else {
|
|
91901
91903
|
var prev1 = prev.previousLeaf();
|
|
91902
91904
|
if (!prev1) {
|
|
91903
|
-
throw
|
|
91905
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
|
|
91904
91906
|
}
|
|
91905
91907
|
spath = hoEditorFactory.docTree.getNodeLastPath(prev1);
|
|
91906
91908
|
}
|
|
@@ -91923,14 +91925,14 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91923
91925
|
return 0;
|
|
91924
91926
|
}
|
|
91925
91927
|
var newDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
|
|
91926
|
-
if (!newDomRange.npStart.node) throw
|
|
91927
|
-
if (!newDomRange.npEnd.node) throw
|
|
91928
|
+
if (!newDomRange.npStart.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
|
|
91929
|
+
if (!newDomRange.npEnd.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
|
|
91928
91930
|
var aStart = newDomRange.npStart.node;
|
|
91929
91931
|
if (currRange.startMainNode) {
|
|
91930
91932
|
aStart = currRange.startMainNode;
|
|
91931
91933
|
}
|
|
91932
91934
|
var nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
|
|
91933
|
-
var hoEditorFactory =
|
|
91935
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
91934
91936
|
// this.DeleteBaseCombineNodeContent(
|
|
91935
91937
|
// newDomRange,
|
|
91936
91938
|
// newDomRange.npEnd.node,
|
|
@@ -92058,15 +92060,15 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92058
92060
|
*
|
|
92059
92061
|
* @param Anode
|
|
92060
92062
|
*/
|
|
92061
|
-
var hoEditorFactory =
|
|
92063
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
92062
92064
|
var forMarkNode = function forMarkNode(Anode) {
|
|
92063
|
-
if (Anode.parentNode instanceof
|
|
92065
|
+
if (Anode.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re) {
|
|
92064
92066
|
var pTINode = Anode.parentNode;
|
|
92065
92067
|
if (pTINode.isEmpty() || !pTINode.canModifyContent) {
|
|
92066
92068
|
//为空 或者 不允许编辑
|
|
92067
92069
|
var tmp = pTINode.previousLeaf();
|
|
92068
92070
|
if (!tmp) {
|
|
92069
|
-
throw
|
|
92071
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
|
|
92070
92072
|
}
|
|
92071
92073
|
info[0] = 0;
|
|
92072
92074
|
info[1] = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(_this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeLastPath(tmp), hoEditorFactory.docTree.getNodeLastPath(pTINode));
|
|
@@ -92092,20 +92094,20 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92092
92094
|
}
|
|
92093
92095
|
};
|
|
92094
92096
|
if (!(s && e)) {
|
|
92095
|
-
throw
|
|
92097
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
|
|
92096
92098
|
}
|
|
92097
92099
|
this._tmp.start = Arange.startPath;
|
|
92098
92100
|
this._tmp.end = Arange.endPath;
|
|
92099
92101
|
var spnode = s.parentNode;
|
|
92100
92102
|
var epnode = e.parentNode;
|
|
92101
92103
|
var pnode = epnode;
|
|
92102
|
-
if (spnode instanceof
|
|
92104
|
+
if (spnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && epnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && spnode != epnode) {
|
|
92103
92105
|
var result = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_38__/* .NodePosition */ .F.nodePositionCompare(spnode.StartMarkNode, epnode.StartMarkNode);
|
|
92104
92106
|
if (result < 0) {
|
|
92105
92107
|
pnode = spnode;
|
|
92106
92108
|
}
|
|
92107
92109
|
}
|
|
92108
|
-
if (this._isForceDelete && pnode instanceof
|
|
92110
|
+
if (this._isForceDelete && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && pnode.inputFieldType === 1 && (_pnode$downListProper = pnode.downListProperty.listItems) !== null && _pnode$downListProper !== void 0 && _pnode$downListProper.includes("<元素>")) {
|
|
92109
92111
|
this._tmp.start = pnode.StartMarkNode.getNodePath();
|
|
92110
92112
|
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(pnode.EndMarkNode.previousLeaf());
|
|
92111
92113
|
return true;
|
|
@@ -92113,12 +92115,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92113
92115
|
if (s === e) {
|
|
92114
92116
|
if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__/* .TextNode */ .R) {
|
|
92115
92117
|
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange = Arange;
|
|
92116
|
-
var tmp = new
|
|
92118
|
+
var tmp = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_22__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange);
|
|
92117
92119
|
this._undo.begin();
|
|
92118
92120
|
this._undo.add(tmp);
|
|
92119
92121
|
this._undo.commit();
|
|
92120
92122
|
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(tmp.theNode);
|
|
92121
|
-
} else if (s instanceof
|
|
92123
|
+
} else if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j) {
|
|
92122
92124
|
forMarkNode(s);
|
|
92123
92125
|
if (info[0] == 0 && info[1]) {
|
|
92124
92126
|
this._tmp.start = info[1].startPath;
|
|
@@ -92134,17 +92136,17 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92134
92136
|
} else {
|
|
92135
92137
|
var _tmp3 = null;
|
|
92136
92138
|
if (e instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__/* .TextNode */ .R && Arange.npEnd.childIndex >= 0 && Arange.npEnd.childIndex < e.getLength() - 1) {
|
|
92137
|
-
_tmp3 = new
|
|
92139
|
+
_tmp3 = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_22__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.endPath, e, Arange);
|
|
92138
92140
|
this._undo.begin();
|
|
92139
92141
|
this._undo.add(_tmp3);
|
|
92140
92142
|
this._undo.commit();
|
|
92141
92143
|
}
|
|
92142
92144
|
if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__/* .TextNode */ .R && Arange.npStart.childIndex >= 0 && Arange.npStart.childIndex < s.getLength() - 1) {
|
|
92143
92145
|
this._undo.begin();
|
|
92144
|
-
this._undo.add(new
|
|
92146
|
+
this._undo.add(new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_22__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange));
|
|
92145
92147
|
this._undo.commit();
|
|
92146
92148
|
}
|
|
92147
|
-
if (e instanceof
|
|
92149
|
+
if (e instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j) {
|
|
92148
92150
|
forMarkNode(e);
|
|
92149
92151
|
if (info[0] == 0 && info[1]) {
|
|
92150
92152
|
this._tmp.end = info[1].endPath;
|
|
@@ -92165,17 +92167,21 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92165
92167
|
}, {
|
|
92166
92168
|
key: "ParentRepaint",
|
|
92167
92169
|
value: function ParentRepaint(Anode) {
|
|
92168
|
-
if (Anode && Anode instanceof
|
|
92169
|
-
|
|
92170
|
+
if (Anode && Anode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re) {
|
|
92171
|
+
//const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
92170
92172
|
if (Anode.childNodes.length === 2) {
|
|
92171
|
-
var
|
|
92172
|
-
|
|
92173
|
-
var
|
|
92174
|
-
hoEditorFactory.
|
|
92175
|
-
hoEditorFactory.undoService.
|
|
92176
|
-
hoEditorFactory.undoService.
|
|
92173
|
+
var contentMark = Anode.childNodes2[1];
|
|
92174
|
+
var styleIndex = Anode.childNodes[0].styleIndex;
|
|
92175
|
+
var contentMarkNode = new _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j(this._hoEditorFactoryID, Anode.childNodes[0].rootNodes, Anode, _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_21__/* .NodeType */ .Jq.ntMark, contentMark.text, styleIndex, _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNodeType */ .q.mtContent);
|
|
92176
|
+
//const insertPath = hoEditorFactory.docTree.getNodeLastPath(Anode.childNodes[0]);
|
|
92177
|
+
// hoEditorFactory.undoService.begin();
|
|
92178
|
+
// hoEditorFactory.undoService.add(
|
|
92179
|
+
// new NodeInsertUndoUnit(this._hoEditorFactoryID, insertPath, contentMarkNode)
|
|
92180
|
+
// );
|
|
92181
|
+
// hoEditorFactory.undoService.commit();
|
|
92182
|
+
Anode.childNodes.splice(1, 0, contentMarkNode);
|
|
92177
92183
|
}
|
|
92178
|
-
Anode.update();
|
|
92184
|
+
Anode.update(0);
|
|
92179
92185
|
}
|
|
92180
92186
|
}
|
|
92181
92187
|
}, {
|
|
@@ -92195,7 +92201,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92195
92201
|
case 0:
|
|
92196
92202
|
this.initParam();
|
|
92197
92203
|
currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
92198
|
-
hoEditorFactory =
|
|
92204
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
92199
92205
|
hoEditorFactory.docTree.curDomRange = currRange;
|
|
92200
92206
|
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_41__/* .PaintState */ .Dh.psReview)) {
|
|
92201
92207
|
_context2.next = 11;
|
|
@@ -92229,7 +92235,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92229
92235
|
break;
|
|
92230
92236
|
}
|
|
92231
92237
|
lastNode = nodes[nodes.length - 1];
|
|
92232
|
-
if (!(lastNode instanceof
|
|
92238
|
+
if (!(lastNode instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && lastNode.MarkNodeType === 0)) {
|
|
92233
92239
|
_context2.next = 22;
|
|
92234
92240
|
break;
|
|
92235
92241
|
}
|
|
@@ -92243,18 +92249,18 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92243
92249
|
hoEditorFactory.docTree.curDomRange.endPath = ePath;
|
|
92244
92250
|
nodes.splice(nodes.length - 1, 1);
|
|
92245
92251
|
case 22:
|
|
92246
|
-
if (!(nodes.length === 1 && nodes[0] instanceof
|
|
92252
|
+
if (!(nodes.length === 1 && nodes[0] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && nodes[0].MarkNodeType === 2)) {
|
|
92247
92253
|
_context2.next = 24;
|
|
92248
92254
|
break;
|
|
92249
92255
|
}
|
|
92250
92256
|
return _context2.abrupt("return");
|
|
92251
92257
|
case 24:
|
|
92252
|
-
if (nodes.length === 2 && nodes[0] instanceof
|
|
92258
|
+
if (nodes.length === 2 && nodes[0] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && nodes[0].MarkNodeType === 0) {
|
|
92253
92259
|
sPath = nodes[0].getNodePath();
|
|
92254
92260
|
hoEditorFactory.docTree.curDomRange.startPath = sPath;
|
|
92255
92261
|
nodes.splice(0, 1);
|
|
92256
92262
|
}
|
|
92257
|
-
if (!(nodes.length === 2 && nodes[1] instanceof
|
|
92263
|
+
if (!(nodes.length === 2 && nodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && nodes[1].MarkNodeType === 2 && !nodes[1].parentNode.canModifyContent)) {
|
|
92258
92264
|
_context2.next = 30;
|
|
92259
92265
|
break;
|
|
92260
92266
|
}
|
|
@@ -92274,7 +92280,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92274
92280
|
// this._isError = true;
|
|
92275
92281
|
// return;
|
|
92276
92282
|
// }
|
|
92277
|
-
if (!(node instanceof
|
|
92283
|
+
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_33__/* .ControlNode */ .w && !(node instanceof _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_40__/* .RareCharNode */ .Q) || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re)) {
|
|
92278
92284
|
_context2.next = 44;
|
|
92279
92285
|
break;
|
|
92280
92286
|
}
|
|
@@ -92283,16 +92289,16 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92283
92289
|
break;
|
|
92284
92290
|
}
|
|
92285
92291
|
tip = "";
|
|
92286
|
-
if (node instanceof
|
|
92292
|
+
if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_34__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "RadioBox") {
|
|
92287
92293
|
tip = "单选框";
|
|
92288
92294
|
}
|
|
92289
|
-
if (node instanceof
|
|
92295
|
+
if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_34__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "CheckBox") {
|
|
92290
92296
|
tip = "复选框";
|
|
92291
92297
|
}
|
|
92292
|
-
if (node instanceof
|
|
92298
|
+
if (node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_35__/* .DateTimeNode */ .Z) {
|
|
92293
92299
|
tip = "日期时间";
|
|
92294
92300
|
}
|
|
92295
|
-
if (node instanceof
|
|
92301
|
+
if (node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_36__/* .DownListNode */ .yF) {
|
|
92296
92302
|
tip = "下拉列表";
|
|
92297
92303
|
}
|
|
92298
92304
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
@@ -92300,7 +92306,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92300
92306
|
this._isError = true;
|
|
92301
92307
|
return _context2.abrupt("return");
|
|
92302
92308
|
case 44:
|
|
92303
|
-
if (!(node instanceof
|
|
92309
|
+
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && node.MarkNodeType === 0)) {
|
|
92304
92310
|
_context2.next = 49;
|
|
92305
92311
|
break;
|
|
92306
92312
|
}
|
|
@@ -92318,7 +92324,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92318
92324
|
this._isError = true;
|
|
92319
92325
|
return _context2.abrupt("return");
|
|
92320
92326
|
case 54:
|
|
92321
|
-
if (!(node instanceof
|
|
92327
|
+
if (!(node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_31__/* .TableNode */ .Fh)) {
|
|
92322
92328
|
_context2.next = 59;
|
|
92323
92329
|
break;
|
|
92324
92330
|
}
|
|
@@ -92340,12 +92346,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92340
92346
|
_context2.next = 31;
|
|
92341
92347
|
break;
|
|
92342
92348
|
case 67:
|
|
92343
|
-
if (nodes.length === 1 && nodes[0] instanceof
|
|
92349
|
+
if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && !nodes[0].isAllowDelete && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j) {
|
|
92344
92350
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
92345
92351
|
}
|
|
92346
92352
|
case 68:
|
|
92347
92353
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
92348
|
-
if (!(pnode && pnode instanceof
|
|
92354
|
+
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
92349
92355
|
_context2.next = 74;
|
|
92350
92356
|
break;
|
|
92351
92357
|
}
|
|
@@ -92369,7 +92375,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92369
92375
|
_context2.next = 77;
|
|
92370
92376
|
break;
|
|
92371
92377
|
}
|
|
92372
|
-
throw
|
|
92378
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
|
|
92373
92379
|
case 77:
|
|
92374
92380
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
92375
92381
|
// this._hoEditorFactory,
|
|
@@ -92379,7 +92385,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92379
92385
|
startPath = currRange.startPath;
|
|
92380
92386
|
endPath = currRange.endPath;
|
|
92381
92387
|
changeEvent.oldEndPath = endPath;
|
|
92382
|
-
changeEvent.oldDrawTreeLines = new
|
|
92388
|
+
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_30__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
92383
92389
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
92384
92390
|
if (!(res == 1)) {
|
|
92385
92391
|
_context2.next = 89;
|
|
@@ -92390,7 +92396,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
92390
92396
|
_context2.next = 87;
|
|
92391
92397
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
92392
92398
|
case 87:
|
|
92393
|
-
cgEvent = new
|
|
92399
|
+
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_23__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
|
|
92394
92400
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
92395
92401
|
case 89:
|
|
92396
92402
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
@@ -96385,6 +96391,11 @@ var UnitConvert = /*#__PURE__*/function () {
|
|
|
96385
96391
|
value: function fontPt2Pix(value) {
|
|
96386
96392
|
return Math.round(this.dpiX / 72 * value);
|
|
96387
96393
|
}
|
|
96394
|
+
}, {
|
|
96395
|
+
key: "pxToPt",
|
|
96396
|
+
value: function pxToPt(value) {
|
|
96397
|
+
return Math.round(value * 72 / this.dpiX);
|
|
96398
|
+
}
|
|
96388
96399
|
}, {
|
|
96389
96400
|
key: "replaceAll",
|
|
96390
96401
|
value: function replaceAll(str, s1, s2) {
|
|
@@ -219757,7 +219768,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
219757
219768
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
219758
219769
|
var ParagraphNode = __webpack_require__(67945);
|
|
219759
219770
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
219760
|
-
/* harmony default export */ var version = ('3.1.
|
|
219771
|
+
/* harmony default export */ var version = ('3.1.64');
|
|
219761
219772
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
219762
219773
|
var PoperTipText = __webpack_require__(50987);
|
|
219763
219774
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -226806,8 +226817,6 @@ var es_array_flat = __webpack_require__(84944);
|
|
|
226806
226817
|
var es_array_unscopables_flat = __webpack_require__(33792);
|
|
226807
226818
|
// EXTERNAL MODULE: ./src/editor/events/NodeChangingEvent.ts
|
|
226808
226819
|
var NodeChangingEvent = __webpack_require__(10574);
|
|
226809
|
-
// EXTERNAL MODULE: ./src/plugins/pretty-data.js
|
|
226810
|
-
var pretty_data = __webpack_require__(49049);
|
|
226811
226820
|
// EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
|
|
226812
226821
|
var SelectRange = __webpack_require__(53901);
|
|
226813
226822
|
// EXTERNAL MODULE: ./src/plugins/type.ts
|
|
@@ -227093,7 +227102,7 @@ var hoCreateHistory = {
|
|
|
227093
227102
|
|
|
227094
227103
|
|
|
227095
227104
|
|
|
227096
|
-
|
|
227105
|
+
// import pd from '@/plugins/pretty-data';
|
|
227097
227106
|
|
|
227098
227107
|
|
|
227099
227108
|
|
|
@@ -228831,11 +228840,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
228831
228840
|
}
|
|
228832
228841
|
|
|
228833
228842
|
if (type === 'json') {
|
|
228843
|
+
var pd = __webpack_require__(49049);
|
|
228834
228844
|
ret = hoEditorFactory.structureConvert.doc2Xml('json', true, true);
|
|
228835
|
-
|
|
228836
228845
|
// ret = JSON.stringify(ret);
|
|
228837
228846
|
|
|
228838
|
-
ret =
|
|
228847
|
+
ret = pd.pd.json(ret);
|
|
228839
228848
|
}
|
|
228840
228849
|
return ret;
|
|
228841
228850
|
}
|
|
@@ -228978,7 +228987,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
228978
228987
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
228979
228988
|
var data = hoEditorFactory.testDataSet.getTestJsonData();
|
|
228980
228989
|
var retJson = hoEditorFactory.structureConvert.getRowsJsonData(data);
|
|
228981
|
-
//retJson = pd.json(retJson);
|
|
228982
228990
|
return retJson;
|
|
228983
228991
|
}
|
|
228984
228992
|
// /**
|
|
@@ -232639,6 +232647,60 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232639
232647
|
var caret = hoEditorFactory.drawTree.caret;
|
|
232640
232648
|
return [caret.pageIndex + 1, caret.stageX * 0.75, caret.stageY * 0.75 + 40];
|
|
232641
232649
|
}
|
|
232650
|
+
/**
|
|
232651
|
+
* @param type bottom:页左下角坐标点(0,0) top:页左上角坐标点(0,0)
|
|
232652
|
+
*/
|
|
232653
|
+
}, {
|
|
232654
|
+
key: "getPosition3",
|
|
232655
|
+
value: function getPosition3(type) {
|
|
232656
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232657
|
+
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
232658
|
+
var node = curDomRange.npEnd.node;
|
|
232659
|
+
var caret = hoEditorFactory.drawTree.caret;
|
|
232660
|
+
var y = hoEditorFactory.pageProperty.heightPixes - caret.stageY;
|
|
232661
|
+
// if(type == 'top') {
|
|
232662
|
+
// y = caret.stageY
|
|
232663
|
+
// }
|
|
232664
|
+
var result = {
|
|
232665
|
+
page: caret.pageIndex + 1,
|
|
232666
|
+
pxX: caret.stageX,
|
|
232667
|
+
pxY: y,
|
|
232668
|
+
mmX: hoEditorFactory.unitConvert.pxConversionMm(caret.stageX, true),
|
|
232669
|
+
mmY: hoEditorFactory.unitConvert.pxConversionMm(y, true),
|
|
232670
|
+
ptX: hoEditorFactory.unitConvert.pxToPt(caret.stageX),
|
|
232671
|
+
ptY: hoEditorFactory.unitConvert.pxToPt(y),
|
|
232672
|
+
ptTop: 0,
|
|
232673
|
+
ptRight: 0,
|
|
232674
|
+
ptBottom: 0,
|
|
232675
|
+
ptLeft: 0
|
|
232676
|
+
};
|
|
232677
|
+
if (node instanceof SignNode/* SignNode */.N && node !== null && node !== void 0 && node.drawNodes[0]) {
|
|
232678
|
+
var drawNode = node === null || node === void 0 ? void 0 : node.drawNodes[0];
|
|
232679
|
+
result = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, result), {}, {
|
|
232680
|
+
ptRight: hoEditorFactory.unitConvert.pxToPt(caret.stageX + drawNode.dWidth),
|
|
232681
|
+
ptLeft: result.ptX
|
|
232682
|
+
});
|
|
232683
|
+
if (node.number == 0) {
|
|
232684
|
+
// if(type == 'top') {
|
|
232685
|
+
// result.ptTop = result.ptY;
|
|
232686
|
+
// result.ptBottom = hoEditorFactory.unitConvert.pxToPt(y + drawNode.dHeight);
|
|
232687
|
+
// } else {
|
|
232688
|
+
result.ptTop = result.ptY;
|
|
232689
|
+
result.ptBottom = hoEditorFactory.unitConvert.pxToPt(y - drawNode.dHeight);
|
|
232690
|
+
// }
|
|
232691
|
+
} else {
|
|
232692
|
+
// if(type == 'top') {
|
|
232693
|
+
// result.ptTop = hoEditorFactory.unitConvert.pxToPt(y + drawNode.dHeight);
|
|
232694
|
+
// result.ptBottom = hoEditorFactory.unitConvert.pxToPt(y + drawNode.dHeight * 2);
|
|
232695
|
+
// } else {
|
|
232696
|
+
result.ptTop = hoEditorFactory.unitConvert.pxToPt(y - drawNode.dHeight);
|
|
232697
|
+
result.ptBottom = hoEditorFactory.unitConvert.pxToPt(y - drawNode.dHeight * 2);
|
|
232698
|
+
// }
|
|
232699
|
+
}
|
|
232700
|
+
}
|
|
232701
|
+
|
|
232702
|
+
return result;
|
|
232703
|
+
}
|
|
232642
232704
|
/**
|
|
232643
232705
|
* 获取光标位置
|
|
232644
232706
|
* returns [pageIndex, x, y]
|
|
@@ -233309,6 +233371,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233309
233371
|
}
|
|
233310
233372
|
return text ? text : '';
|
|
233311
233373
|
}
|
|
233374
|
+
/**
|
|
233375
|
+
* 查询光标所在位置之前的文本内容
|
|
233376
|
+
*/
|
|
233377
|
+
}, {
|
|
233378
|
+
key: "getCaretTextNode",
|
|
233379
|
+
value: function getCaretTextNode() {
|
|
233380
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
233381
|
+
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
233382
|
+
var node = curDomRange.npEnd.node;
|
|
233383
|
+
return node !== null && node !== void 0 && node.name ? node.name : '';
|
|
233384
|
+
}
|
|
233312
233385
|
/**
|
|
233313
233386
|
* 初始化文档
|
|
233314
233387
|
*/
|
|
@@ -243334,8 +243407,8 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
|
|
|
243334
243407
|
)
|
|
243335
243408
|
|
|
243336
243409
|
/* harmony default export */ var HoDocs = (HoDocs_component.exports);
|
|
243337
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=
|
|
243338
|
-
var
|
|
243410
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=1bf8a068&
|
|
243411
|
+
var ToolBarvue_type_template_id_1bf8a068_render = function render() {
|
|
243339
243412
|
var _vm = this,
|
|
243340
243413
|
_c = _vm._self._c;
|
|
243341
243414
|
return _c('div', {
|
|
@@ -243568,7 +243641,7 @@ var ToolBarvue_type_template_id_26f26696_render = function render() {
|
|
|
243568
243641
|
}, [_vm._v(_vm._s(item.title))]);
|
|
243569
243642
|
}), 1)], 1) : _vm._e()], 1);
|
|
243570
243643
|
};
|
|
243571
|
-
var
|
|
243644
|
+
var ToolBarvue_type_template_id_1bf8a068_staticRenderFns = [];
|
|
243572
243645
|
|
|
243573
243646
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoMedicalExpression.vue?vue&type=template&id=4699ffee&
|
|
243574
243647
|
var HoMedicalExpressionvue_type_template_id_4699ffee_render = function render() {
|
|
@@ -248797,13 +248870,15 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
248797
248870
|
* 下载文件
|
|
248798
248871
|
*/
|
|
248799
248872
|
downloadFile: function downloadFile(file, fileName, fileType) {
|
|
248873
|
+
var type = fileType === "plain" ? ".txt" : ".json";
|
|
248874
|
+
var name = fileName + type;
|
|
248800
248875
|
var url = window.URL.createObjectURL(new Blob([file], {
|
|
248801
248876
|
type: "text/".concat(fileType)
|
|
248802
248877
|
}));
|
|
248803
248878
|
var link = document.createElement('a');
|
|
248804
248879
|
link.style.display = 'none';
|
|
248805
248880
|
link.href = url;
|
|
248806
|
-
link.setAttribute('download',
|
|
248881
|
+
link.setAttribute('download', name);
|
|
248807
248882
|
document.body.appendChild(link);
|
|
248808
248883
|
link.click();
|
|
248809
248884
|
this.$nextTick(function () {
|
|
@@ -248814,10 +248889,10 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
248814
248889
|
});
|
|
248815
248890
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=script&lang=js&
|
|
248816
248891
|
/* harmony default export */ var toolbar_ToolBarvue_type_script_lang_js_ = (ToolBarvue_type_script_lang_js_);
|
|
248817
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
248892
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=1bf8a068&prod&lang=less&
|
|
248818
248893
|
// extracted by mini-css-extract-plugin
|
|
248819
248894
|
|
|
248820
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
248895
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=1bf8a068&prod&lang=less&
|
|
248821
248896
|
|
|
248822
248897
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue
|
|
248823
248898
|
|
|
@@ -248830,8 +248905,8 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
248830
248905
|
|
|
248831
248906
|
var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
248832
248907
|
toolbar_ToolBarvue_type_script_lang_js_,
|
|
248833
|
-
|
|
248834
|
-
|
|
248908
|
+
ToolBarvue_type_template_id_1bf8a068_render,
|
|
248909
|
+
ToolBarvue_type_template_id_1bf8a068_staticRenderFns,
|
|
248835
248910
|
false,
|
|
248836
248911
|
null,
|
|
248837
248912
|
null,
|