hoeditor-web 3.1.52 → 3.1.54
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.css +17897 -1
- package/lib/hoeditor.umd.js +227 -190
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -18487,7 +18487,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
18487
18487
|
|
|
18488
18488
|
/***/ }),
|
|
18489
18489
|
|
|
18490
|
-
/***/
|
|
18490
|
+
/***/ 63937:
|
|
18491
18491
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18492
18492
|
|
|
18493
18493
|
"use strict";
|
|
@@ -18507,7 +18507,7 @@ var es_array_includes = __webpack_require__(26699);
|
|
|
18507
18507
|
var es_string_includes = __webpack_require__(32023);
|
|
18508
18508
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
18509
18509
|
var es_number_constructor = __webpack_require__(9653);
|
|
18510
|
-
;// 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/controls/table/TableColProperty.vue?vue&type=template&id=
|
|
18510
|
+
;// 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/controls/table/TableColProperty.vue?vue&type=template&id=0336c3a8&
|
|
18511
18511
|
|
|
18512
18512
|
|
|
18513
18513
|
|
|
@@ -18581,40 +18581,6 @@ var render = function render() {
|
|
|
18581
18581
|
staticClass: "control-item"
|
|
18582
18582
|
}, [_c('span', {
|
|
18583
18583
|
staticClass: "label"
|
|
18584
|
-
}, [_vm._v("垂直对齐方式")]), _c('a-select', {
|
|
18585
|
-
staticStyle: {
|
|
18586
|
-
"text-align": "left"
|
|
18587
|
-
},
|
|
18588
|
-
attrs: {
|
|
18589
|
-
"getPopupContainer": function getPopupContainer(triggerNode) {
|
|
18590
|
-
return triggerNode.parentNode;
|
|
18591
|
-
},
|
|
18592
|
-
"placeholder": "垂直对齐方式",
|
|
18593
|
-
"size": "small"
|
|
18594
|
-
},
|
|
18595
|
-
model: {
|
|
18596
|
-
value: _vm.align,
|
|
18597
|
-
callback: function callback($$v) {
|
|
18598
|
-
_vm.align = $$v;
|
|
18599
|
-
},
|
|
18600
|
-
expression: "align"
|
|
18601
|
-
}
|
|
18602
|
-
}, [_c('a-select-option', {
|
|
18603
|
-
attrs: {
|
|
18604
|
-
"value": 0
|
|
18605
|
-
}
|
|
18606
|
-
}, [_vm._v("靠上")]), _c('a-select-option', {
|
|
18607
|
-
attrs: {
|
|
18608
|
-
"value": 1
|
|
18609
|
-
}
|
|
18610
|
-
}, [_vm._v("居中")]), _c('a-select-option', {
|
|
18611
|
-
attrs: {
|
|
18612
|
-
"value": 2
|
|
18613
|
-
}
|
|
18614
|
-
}, [_vm._v("靠下")])], 1)], 1), _c('li', {
|
|
18615
|
-
staticClass: "control-item"
|
|
18616
|
-
}, [_c('span', {
|
|
18617
|
-
staticClass: "label"
|
|
18618
18584
|
}, [_vm._v("编辑器属性")]), _c('a-select', {
|
|
18619
18585
|
staticStyle: {
|
|
18620
18586
|
"text-align": "left"
|
|
@@ -18999,7 +18965,7 @@ var render = function render() {
|
|
|
18999
18965
|
};
|
|
19000
18966
|
var staticRenderFns = [];
|
|
19001
18967
|
|
|
19002
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=
|
|
18968
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=0336c3a8&
|
|
19003
18969
|
|
|
19004
18970
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
19005
18971
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -19305,10 +19271,10 @@ var getCellNode = __webpack_require__(5986);
|
|
|
19305
19271
|
});
|
|
19306
19272
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=script&lang=js&
|
|
19307
19273
|
/* harmony default export */ var table_TableColPropertyvue_type_script_lang_js_ = (TableColPropertyvue_type_script_lang_js_);
|
|
19308
|
-
;// 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/controls/table/TableColProperty.vue?vue&type=style&index=0&id=
|
|
19274
|
+
;// 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/controls/table/TableColProperty.vue?vue&type=style&index=0&id=0336c3a8&prod&lang=less&
|
|
19309
19275
|
// extracted by mini-css-extract-plugin
|
|
19310
19276
|
|
|
19311
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=
|
|
19277
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=0336c3a8&prod&lang=less&
|
|
19312
19278
|
|
|
19313
19279
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
19314
19280
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -42622,18 +42588,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42622
42588
|
hoEditorFactory.undoService.commit();
|
|
42623
42589
|
}
|
|
42624
42590
|
}
|
|
42625
|
-
if (colProperty.align && colProperty.align !== oldColProperty.align) {
|
|
42626
|
-
|
|
42627
|
-
|
|
42628
|
-
|
|
42629
|
-
|
|
42630
|
-
|
|
42631
|
-
|
|
42632
|
-
|
|
42633
|
-
|
|
42634
|
-
|
|
42635
|
-
}
|
|
42591
|
+
// if (colProperty.align && colProperty.align !== oldColProperty.align) {
|
|
42592
|
+
// const c = colInfo.table.colInfos.indexOf(colInfo);
|
|
42593
|
+
// if (c >= 0) {
|
|
42594
|
+
// for (let r = 0; r < colInfo.table.rowCount; r++) {
|
|
42595
|
+
// const cell = colInfo.table.rows[r][c];
|
|
42596
|
+
// if (cell && cell.colSpan == 1) {
|
|
42597
|
+
// cell.cellProperty.align = colProperty.align;
|
|
42598
|
+
// }
|
|
42599
|
+
// }
|
|
42600
|
+
// }
|
|
42601
|
+
// }
|
|
42636
42602
|
};
|
|
42603
|
+
|
|
42637
42604
|
if (curDomRange.isEmpty) {
|
|
42638
42605
|
setColProps(colInfo);
|
|
42639
42606
|
} else {
|
|
@@ -42979,13 +42946,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42979
42946
|
}
|
|
42980
42947
|
oldDataID = node.dataId;
|
|
42981
42948
|
oldId = node.id;
|
|
42949
|
+
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
42982
42950
|
hoEditorFactory.undoService.begin();
|
|
42983
|
-
_context2.next =
|
|
42951
|
+
_context2.next = 16;
|
|
42984
42952
|
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
42985
|
-
case 15:
|
|
42986
|
-
//hoEditorFactory.undoService.commit();
|
|
42987
|
-
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
42988
|
-
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
42989
42953
|
case 16:
|
|
42990
42954
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
42991
42955
|
dateTimeNode = new _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntControl, valuesObject, styleIndex); //插入该表达式节点
|
|
@@ -42997,6 +42961,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42997
42961
|
}
|
|
42998
42962
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, dateTimeNode));
|
|
42999
42963
|
hoEditorFactory.undoService.commit();
|
|
42964
|
+
// const dline = hoEditorFactory.drawTree.getDrawLineByDNode(dateTimeNode.drawNodes[0]);
|
|
42965
|
+
// const paraNode = dline.paragraphNode;
|
|
42966
|
+
// const nextParaNode = hoEditorFactory.docTree.getSameRectNextParanode(paraNode)
|
|
42967
|
+
// if (nextParaNode) {
|
|
42968
|
+
// const changeEvent = new NodeChangeEvent(
|
|
42969
|
+
// this._hoEditorFactoryID,
|
|
42970
|
+
// DocAction.daModifyStyle,
|
|
42971
|
+
// paraNode.getNodePath(),
|
|
42972
|
+
// nextParaNode.getNodePath()
|
|
42973
|
+
// );
|
|
42974
|
+
// hoEditorFactory.docTree.change(changeEvent);
|
|
42975
|
+
// }
|
|
43000
42976
|
case 21:
|
|
43001
42977
|
case "end":
|
|
43002
42978
|
return _context2.stop();
|
|
@@ -94425,21 +94401,18 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
94425
94401
|
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
94426
94402
|
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4723);
|
|
94427
94403
|
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
94428
|
-
/* harmony import */ var
|
|
94429
|
-
/* harmony import */ var
|
|
94430
|
-
/* harmony import */ var
|
|
94431
|
-
/* harmony import */ var
|
|
94432
|
-
/* harmony import */ var
|
|
94433
|
-
/* harmony import */ var
|
|
94434
|
-
/* harmony import */ var
|
|
94435
|
-
/* harmony import */ var
|
|
94436
|
-
/* harmony import */ var
|
|
94437
|
-
/* harmony import */ var
|
|
94438
|
-
/* harmony import */ var
|
|
94439
|
-
/* harmony import */ var
|
|
94440
|
-
/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(56977);
|
|
94441
|
-
/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
94442
|
-
|
|
94404
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(57658);
|
|
94405
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
94406
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9653);
|
|
94407
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
94408
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(40561);
|
|
94409
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
94410
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41539);
|
|
94411
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
94412
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(39714);
|
|
94413
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
94414
|
+
/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(56977);
|
|
94415
|
+
/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
94443
94416
|
|
|
94444
94417
|
|
|
94445
94418
|
|
|
@@ -94462,7 +94435,8 @@ function expressionCalculator(expr) {
|
|
|
94462
94435
|
var close = expr.match(/\)/g);
|
|
94463
94436
|
if (close) closeCount = close.length;
|
|
94464
94437
|
}
|
|
94465
|
-
if (openCount != closeCount) throw new Error('ExpressionError: Brackets must be paired');
|
|
94438
|
+
//if (openCount != closeCount) throw new Error('ExpressionError: Brackets must be paired');
|
|
94439
|
+
if (openCount != closeCount) return "NaN";
|
|
94466
94440
|
var stSign = [];
|
|
94467
94441
|
var stNum = [];
|
|
94468
94442
|
var isOpenBracket = false;
|
|
@@ -94503,7 +94477,8 @@ function expressionCalculator(expr) {
|
|
|
94503
94477
|
switch (element) {
|
|
94504
94478
|
case '/':
|
|
94505
94479
|
{
|
|
94506
|
-
if (stLastNumber == 0) throw new Error("TypeError: Division by zero.");
|
|
94480
|
+
//if (stLastNumber == 0) throw new Error("TypeError: Division by zero.");
|
|
94481
|
+
if (stLastNumber == 0) return "NaN";
|
|
94507
94482
|
var rest = stPreLastNumber / stLastNumber;
|
|
94508
94483
|
stNum.pop();
|
|
94509
94484
|
stNum.pop();
|
|
@@ -94580,7 +94555,8 @@ function expressionCalculator(expr) {
|
|
|
94580
94555
|
switch (lastElInStack) {
|
|
94581
94556
|
case '/':
|
|
94582
94557
|
{
|
|
94583
|
-
if (stLastNumber == 0) throw new Error("TypeError: Division by zero.");
|
|
94558
|
+
//if (stLastNumber == 0) throw new Error("TypeError: Division by zero.");
|
|
94559
|
+
if (stLastNumber == 0) return "NaN";
|
|
94584
94560
|
var rest = stPreLastNumber / stLastNumber;
|
|
94585
94561
|
stNum.pop();
|
|
94586
94562
|
stNum.pop();
|
|
@@ -94641,7 +94617,8 @@ function expressionCalculator(expr) {
|
|
|
94641
94617
|
}
|
|
94642
94618
|
}
|
|
94643
94619
|
var result = expr.match(/(\d+)|[-/+()*]/g);
|
|
94644
|
-
if (!result) throw new Error("非法的数学表达式");
|
|
94620
|
+
//if (!result) throw new Error("非法的数学表达式");
|
|
94621
|
+
if (!result) return "NaN";
|
|
94645
94622
|
for (var j = result.length - 1; j >= 0; j--) {
|
|
94646
94623
|
if (j - 1 >= 0 && Number(result[j]) >= 0 && Number(result[j - 1]) >= 0) {
|
|
94647
94624
|
result.splice(j - 1, 0, result[j - 1] + "." + result[j]);
|
|
@@ -94661,10 +94638,12 @@ function expressionCalculator(expr) {
|
|
|
94661
94638
|
var _element = stSign[_index];
|
|
94662
94639
|
var stLastNumber = stNum[stNum.length - 1];
|
|
94663
94640
|
var stPreLastNumber = stNum[stNum.length - 2];
|
|
94641
|
+
if (_element === "/" && stPreLastNumber === 0) break;
|
|
94664
94642
|
switch (_element) {
|
|
94665
94643
|
case '/':
|
|
94666
94644
|
{
|
|
94667
|
-
if (stLastNumber == 0) throw new Error("TypeError: Division by zero.");
|
|
94645
|
+
//if (stLastNumber == 0) throw new Error("TypeError: Division by zero.");
|
|
94646
|
+
if (stLastNumber == 0) return "NaN";
|
|
94668
94647
|
var rest = stPreLastNumber / stLastNumber;
|
|
94669
94648
|
stNum.pop();
|
|
94670
94649
|
stNum.pop();
|
|
@@ -178162,7 +178141,7 @@ var map = {
|
|
|
178162
178141
|
"./sign/Sign.vue": 921,
|
|
178163
178142
|
"./table/TableCellPoper.vue": 2043,
|
|
178164
178143
|
"./table/TableCellProperty.vue": 63689,
|
|
178165
|
-
"./table/TableColProperty.vue":
|
|
178144
|
+
"./table/TableColProperty.vue": 63937,
|
|
178166
178145
|
"./table/TableForm.vue": 79036,
|
|
178167
178146
|
"./table/TableFormTree.vue": 84804,
|
|
178168
178147
|
"./table/TableFormula.vue": 58585,
|
|
@@ -215479,7 +215458,7 @@ Input.install = function (Vue) {
|
|
|
215479
215458
|
|
|
215480
215459
|
|
|
215481
215460
|
/* 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]);
|
|
215482
|
-
;// 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=
|
|
215461
|
+
;// 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=bc8cbf0c&
|
|
215483
215462
|
var render = function render() {
|
|
215484
215463
|
var _vm = this,
|
|
215485
215464
|
_c = _vm._self._c;
|
|
@@ -218796,7 +218775,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
218796
218775
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218797
218776
|
var ParagraphNode = __webpack_require__(67945);
|
|
218798
218777
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218799
|
-
/* harmony default export */ var version = ('3.1.
|
|
218778
|
+
/* harmony default export */ var version = ('3.1.54');
|
|
218800
218779
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218801
218780
|
var PoperTipText = __webpack_require__(50987);
|
|
218802
218781
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -225847,8 +225826,8 @@ var commonParamList = new Map();
|
|
|
225847
225826
|
|
|
225848
225827
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
225849
225828
|
var es_array_from = __webpack_require__(91038);
|
|
225850
|
-
;// 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/common/history/index.vue?vue&type=template&id=
|
|
225851
|
-
var
|
|
225829
|
+
;// 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/common/history/index.vue?vue&type=template&id=0e2322a4&
|
|
225830
|
+
var historyvue_type_template_id_0e2322a4_render = function render() {
|
|
225852
225831
|
var _vm = this,
|
|
225853
225832
|
_c = _vm._self._c;
|
|
225854
225833
|
return _c('div', {
|
|
@@ -225861,10 +225840,24 @@ var historyvue_type_template_id_1949e134_render = function render() {
|
|
|
225861
225840
|
"click": _vm.selectComment
|
|
225862
225841
|
}
|
|
225863
225842
|
}, [_c('section', [_c('header', [_c('span', [_vm._v(_vm._s(_vm.userName))]), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.date))])]), _c('section', {
|
|
225864
|
-
staticClass: "
|
|
225865
|
-
}, [
|
|
225843
|
+
staticClass: "comment-content history-comment"
|
|
225844
|
+
}, [_c('a-tooltip', {
|
|
225845
|
+
attrs: {
|
|
225846
|
+
"overlayClassName": "history-comment-tooltip"
|
|
225847
|
+
}
|
|
225848
|
+
}, [_c('template', {
|
|
225849
|
+
slot: "title"
|
|
225850
|
+
}, [_vm._v(" 修改前:" + _vm._s(_vm.text) + " ")]), _vm._v(" 修改前:" + _vm._s(_vm.text) + " ")], 2)], 1), _c('section', {
|
|
225851
|
+
staticClass: "comment-content history-comment"
|
|
225852
|
+
}, [_c('a-tooltip', {
|
|
225853
|
+
attrs: {
|
|
225854
|
+
"overlayClassName": "history-comment-tooltip"
|
|
225855
|
+
}
|
|
225856
|
+
}, [_c('template', {
|
|
225857
|
+
slot: "title"
|
|
225858
|
+
}, [_vm._v(" 修改后:" + _vm._s(_vm.afterContent) + " ")]), _vm._v(" 修改后:" + _vm._s(_vm.afterContent) + " ")], 2)], 1)])]);
|
|
225866
225859
|
};
|
|
225867
|
-
var
|
|
225860
|
+
var historyvue_type_template_id_0e2322a4_staticRenderFns = [];
|
|
225868
225861
|
|
|
225869
225862
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/common/history/index.vue?vue&type=script&lang=js&
|
|
225870
225863
|
|
|
@@ -225880,6 +225873,7 @@ var historyvue_type_template_id_1949e134_staticRenderFns = [];
|
|
|
225880
225873
|
endNodeY: 0,
|
|
225881
225874
|
lineHeight: 0,
|
|
225882
225875
|
text: '',
|
|
225876
|
+
afterContent: '',
|
|
225883
225877
|
userName: '',
|
|
225884
225878
|
date: '',
|
|
225885
225879
|
pageIndex: 0,
|
|
@@ -225888,11 +225882,12 @@ var historyvue_type_template_id_1949e134_staticRenderFns = [];
|
|
|
225888
225882
|
};
|
|
225889
225883
|
},
|
|
225890
225884
|
mounted: function mounted() {
|
|
225891
|
-
|
|
225892
|
-
|
|
225893
|
-
|
|
225894
|
-
|
|
225895
|
-
|
|
225885
|
+
var _this = this;
|
|
225886
|
+
this.$nextTick(function () {
|
|
225887
|
+
if (_this.$refs.hoCommentItem) {
|
|
225888
|
+
_this.createLine();
|
|
225889
|
+
}
|
|
225890
|
+
});
|
|
225896
225891
|
},
|
|
225897
225892
|
methods: {
|
|
225898
225893
|
clearLine: function clearLine() {
|
|
@@ -225907,19 +225902,19 @@ var historyvue_type_template_id_1949e134_staticRenderFns = [];
|
|
|
225907
225902
|
// hoCommentBox.removeEventListener('scroll', this.createLine, true);
|
|
225908
225903
|
},
|
|
225909
225904
|
selectComment: function selectComment() {
|
|
225910
|
-
var
|
|
225905
|
+
var _this2 = this;
|
|
225911
225906
|
var hoCommentItemList = Array.from(document.querySelectorAll('.ho-comment-item'));
|
|
225912
225907
|
hoCommentItemList.forEach(function (element) {
|
|
225913
|
-
if (element.id ===
|
|
225908
|
+
if (element.id === _this2.id) {
|
|
225914
225909
|
element.style.border = '1px dashed #F00';
|
|
225915
225910
|
} else {
|
|
225916
225911
|
element.style.border = '1px dashed #aaa';
|
|
225917
225912
|
}
|
|
225918
225913
|
});
|
|
225919
|
-
this.clearLine();
|
|
225914
|
+
// this.clearLine();
|
|
225920
225915
|
// const hoCommentBox = document.querySelector(`#ho-comment-box-${this.pageIndex}`);
|
|
225921
225916
|
// hoCommentBox.addEventListener('scroll', this.createLine, true);
|
|
225922
|
-
this.createLine();
|
|
225917
|
+
// this.createLine();
|
|
225923
225918
|
},
|
|
225924
225919
|
/**
|
|
225925
225920
|
* 创建连接线
|
|
@@ -225959,10 +225954,10 @@ var historyvue_type_template_id_1949e134_staticRenderFns = [];
|
|
|
225959
225954
|
});
|
|
225960
225955
|
;// CONCATENATED MODULE: ./src/components/common/history/index.vue?vue&type=script&lang=js&
|
|
225961
225956
|
/* harmony default export */ var common_historyvue_type_script_lang_js_ = (historyvue_type_script_lang_js_);
|
|
225962
|
-
;// 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/common/history/index.vue?vue&type=style&index=0&id=
|
|
225957
|
+
;// 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/common/history/index.vue?vue&type=style&index=0&id=0e2322a4&prod&lang=less&
|
|
225963
225958
|
// extracted by mini-css-extract-plugin
|
|
225964
225959
|
|
|
225965
|
-
;// CONCATENATED MODULE: ./src/components/common/history/index.vue?vue&type=style&index=0&id=
|
|
225960
|
+
;// CONCATENATED MODULE: ./src/components/common/history/index.vue?vue&type=style&index=0&id=0e2322a4&prod&lang=less&
|
|
225966
225961
|
|
|
225967
225962
|
;// CONCATENATED MODULE: ./src/components/common/history/index.vue
|
|
225968
225963
|
|
|
@@ -225975,8 +225970,8 @@ var historyvue_type_template_id_1949e134_staticRenderFns = [];
|
|
|
225975
225970
|
|
|
225976
225971
|
var history_component = (0,componentNormalizer/* default */.Z)(
|
|
225977
225972
|
common_historyvue_type_script_lang_js_,
|
|
225978
|
-
|
|
225979
|
-
|
|
225973
|
+
historyvue_type_template_id_0e2322a4_render,
|
|
225974
|
+
historyvue_type_template_id_0e2322a4_staticRenderFns,
|
|
225980
225975
|
false,
|
|
225981
225976
|
null,
|
|
225982
225977
|
null,
|
|
@@ -228654,7 +228649,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
228654
228649
|
if (anode.id === id) {
|
|
228655
228650
|
node = anode;
|
|
228656
228651
|
nodeList.push(anode);
|
|
228657
|
-
|
|
228652
|
+
if (type !== "array") {
|
|
228653
|
+
break;
|
|
228654
|
+
}
|
|
228658
228655
|
}
|
|
228659
228656
|
}
|
|
228660
228657
|
if (anode instanceof BaseCombineNode/* BaseCombineNode */.V) {
|
|
@@ -231195,7 +231192,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231195
231192
|
case 0:
|
|
231196
231193
|
nodes = this.getNodeByID('all', id, 'array');
|
|
231197
231194
|
if (!(nodes.length > 0)) {
|
|
231198
|
-
_context10.next =
|
|
231195
|
+
_context10.next = 16;
|
|
231199
231196
|
break;
|
|
231200
231197
|
}
|
|
231201
231198
|
_loop4 = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop4() {
|
|
@@ -231205,30 +231202,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231205
231202
|
case 0:
|
|
231206
231203
|
node = nodes[i];
|
|
231207
231204
|
if (!node) {
|
|
231208
|
-
_context9.next =
|
|
231205
|
+
_context9.next = 46;
|
|
231209
231206
|
break;
|
|
231210
231207
|
}
|
|
231211
231208
|
if (!(node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof DownListNode/* DownListNode */.yF || node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
|
|
231212
|
-
_context9.next =
|
|
231209
|
+
_context9.next = 43;
|
|
231213
231210
|
break;
|
|
231214
231211
|
}
|
|
231215
|
-
if (!
|
|
231216
|
-
_context9.next =
|
|
231212
|
+
if (!node.notReplaceElement) {
|
|
231213
|
+
_context9.next = 5;
|
|
231217
231214
|
break;
|
|
231218
231215
|
}
|
|
231219
|
-
|
|
231220
|
-
|
|
231221
|
-
return _context9.abrupt("return", {
|
|
231222
|
-
v: void 0
|
|
231223
|
-
});
|
|
231224
|
-
case 6:
|
|
231216
|
+
return _context9.abrupt("return", 0);
|
|
231217
|
+
case 5:
|
|
231225
231218
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this2._hoEditorFactoryID);
|
|
231226
231219
|
if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
|
|
231227
|
-
_context9.next =
|
|
231220
|
+
_context9.next = 33;
|
|
231228
231221
|
break;
|
|
231229
231222
|
}
|
|
231230
231223
|
if (!text.includes("<TextInputFieldNode>")) {
|
|
231231
|
-
_context9.next =
|
|
231224
|
+
_context9.next = 23;
|
|
231232
231225
|
break;
|
|
231233
231226
|
}
|
|
231234
231227
|
xml = hoEditorFactory.structureConvert.replaceNodesName(text);
|
|
@@ -231286,11 +231279,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231286
231279
|
hoEditorFactory.docController.deleteRange(range, true, "update");
|
|
231287
231280
|
(_node$childNodes = node.childNodes).splice.apply(_node$childNodes, [1, 0].concat(childNodes));
|
|
231288
231281
|
node.update(0);
|
|
231289
|
-
_context9.next =
|
|
231282
|
+
_context9.next = 33;
|
|
231290
231283
|
break;
|
|
231291
|
-
case
|
|
231284
|
+
case 23:
|
|
231292
231285
|
if (!text.includes("<MedicalExpress>")) {
|
|
231293
|
-
_context9.next =
|
|
231286
|
+
_context9.next = 31;
|
|
231294
231287
|
break;
|
|
231295
231288
|
}
|
|
231296
231289
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
@@ -231302,12 +231295,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231302
231295
|
return _context9.abrupt("return", {
|
|
231303
231296
|
v: void 0
|
|
231304
231297
|
});
|
|
231305
|
-
case
|
|
231306
|
-
_context9.next =
|
|
231298
|
+
case 31:
|
|
231299
|
+
_context9.next = 33;
|
|
231307
231300
|
return node.setFieldText(text);
|
|
231308
|
-
case
|
|
231301
|
+
case 33:
|
|
231309
231302
|
if (!(node instanceof DateTimeNode/* DateTimeNode */.Z)) {
|
|
231310
|
-
_context9.next =
|
|
231303
|
+
_context9.next = 37;
|
|
231311
231304
|
break;
|
|
231312
231305
|
}
|
|
231313
231306
|
if (text.includes("<DateTimeNode>")) {
|
|
@@ -231319,11 +231312,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231319
231312
|
_json = _object;
|
|
231320
231313
|
text = _json.node.text;
|
|
231321
231314
|
}
|
|
231322
|
-
_context9.next =
|
|
231315
|
+
_context9.next = 37;
|
|
231323
231316
|
return node.setDateTimeText(text);
|
|
231324
|
-
case
|
|
231317
|
+
case 37:
|
|
231325
231318
|
if (!(node instanceof DownListNode/* DownListNode */.yF)) {
|
|
231326
|
-
_context9.next =
|
|
231319
|
+
_context9.next = 41;
|
|
231327
231320
|
break;
|
|
231328
231321
|
}
|
|
231329
231322
|
if (text.includes("<DownListNode>")) {
|
|
@@ -231335,19 +231328,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231335
231328
|
_json2 = _object2;
|
|
231336
231329
|
text = _json2.node.text;
|
|
231337
231330
|
}
|
|
231338
|
-
_context9.next =
|
|
231331
|
+
_context9.next = 41;
|
|
231339
231332
|
return node.setDownListText(text);
|
|
231340
|
-
case
|
|
231341
|
-
_context9.next =
|
|
231333
|
+
case 41:
|
|
231334
|
+
_context9.next = 44;
|
|
231342
231335
|
break;
|
|
231343
|
-
case
|
|
231336
|
+
case 43:
|
|
231344
231337
|
console.warn("\u975E\u6587\u672C\u57DF\u548C\u65E5\u671F\u5143\u7D20");
|
|
231345
|
-
case
|
|
231346
|
-
_context9.next =
|
|
231338
|
+
case 44:
|
|
231339
|
+
_context9.next = 47;
|
|
231347
231340
|
break;
|
|
231348
|
-
case
|
|
231341
|
+
case 46:
|
|
231349
231342
|
console.warn('未找到对应的元素');
|
|
231350
|
-
case
|
|
231343
|
+
case 47:
|
|
231351
231344
|
case "end":
|
|
231352
231345
|
return _context9.stop();
|
|
231353
231346
|
}
|
|
@@ -231356,27 +231349,33 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231356
231349
|
i = nodes.length - 1;
|
|
231357
231350
|
case 4:
|
|
231358
231351
|
if (!(i >= 0)) {
|
|
231359
|
-
_context10.next =
|
|
231352
|
+
_context10.next = 14;
|
|
231360
231353
|
break;
|
|
231361
231354
|
}
|
|
231362
231355
|
return _context10.delegateYield(_loop4(), "t0", 6);
|
|
231363
231356
|
case 6:
|
|
231364
231357
|
_ret2 = _context10.t0;
|
|
231365
|
-
if (!_ret2) {
|
|
231358
|
+
if (!(_ret2 === 0)) {
|
|
231366
231359
|
_context10.next = 9;
|
|
231367
231360
|
break;
|
|
231368
231361
|
}
|
|
231369
|
-
return _context10.abrupt("
|
|
231362
|
+
return _context10.abrupt("continue", 11);
|
|
231370
231363
|
case 9:
|
|
231364
|
+
if (!_ret2) {
|
|
231365
|
+
_context10.next = 11;
|
|
231366
|
+
break;
|
|
231367
|
+
}
|
|
231368
|
+
return _context10.abrupt("return", _ret2.v);
|
|
231369
|
+
case 11:
|
|
231371
231370
|
i--;
|
|
231372
231371
|
_context10.next = 4;
|
|
231373
231372
|
break;
|
|
231374
|
-
case 12:
|
|
231375
|
-
_context10.next = 15;
|
|
231376
|
-
break;
|
|
231377
231373
|
case 14:
|
|
231374
|
+
_context10.next = 17;
|
|
231375
|
+
break;
|
|
231376
|
+
case 16:
|
|
231378
231377
|
console.warn('未找到对应的元素');
|
|
231379
|
-
case
|
|
231378
|
+
case 17:
|
|
231380
231379
|
case "end":
|
|
231381
231380
|
return _context10.stop();
|
|
231382
231381
|
}
|
|
@@ -232506,6 +232505,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232506
232505
|
}, {
|
|
232507
232506
|
key: "showElementsEditRecord",
|
|
232508
232507
|
value: function showElementsEditRecord(objects, id) {
|
|
232508
|
+
var _this6 = this;
|
|
232509
232509
|
var comments = [];
|
|
232510
232510
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(id ? id : this._hoEditorFactoryID);
|
|
232511
232511
|
if (hoEditorFactory.pageProperty.commentWidthMm == 0) {
|
|
@@ -232527,6 +232527,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232527
232527
|
comment.lineHeight = comment.lineHeight - 20;
|
|
232528
232528
|
comment.userName = "".concat(object.afterByName, "(").concat(object.afterBy, ")");
|
|
232529
232529
|
comment.date = object.createdDate;
|
|
232530
|
+
comment.afterContent = object.afterContent;
|
|
232530
232531
|
comments.push(comment);
|
|
232531
232532
|
}
|
|
232532
232533
|
if (element instanceof DateTimeNode/* DateTimeNode */.Z || element instanceof DownListNode/* DownListNode */.yF) {
|
|
@@ -232534,6 +232535,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232534
232535
|
comment.lineHeight = comment.lineHeight - 20;
|
|
232535
232536
|
comment.userName = "".concat(object.afterByName, "(").concat(object.afterBy, ")");
|
|
232536
232537
|
comment.date = object.createdDate;
|
|
232538
|
+
comment.afterContent = object.afterContent;
|
|
232537
232539
|
comments.push(comment);
|
|
232538
232540
|
}
|
|
232539
232541
|
}
|
|
@@ -232545,11 +232547,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232545
232547
|
arr[pos[0]] = [];
|
|
232546
232548
|
}
|
|
232547
232549
|
var obj = {
|
|
232548
|
-
editorId: id,
|
|
232550
|
+
editorId: id ? id : _this6._hoEditorFactoryID,
|
|
232549
232551
|
id: comment.id,
|
|
232550
232552
|
lineHeight: comment.lineHeight,
|
|
232551
232553
|
permissionLevel: comment.permissionLevel,
|
|
232552
232554
|
text: comment.text,
|
|
232555
|
+
afterContent: comment.afterContent,
|
|
232553
232556
|
userID: comment.userID,
|
|
232554
232557
|
userName: comment.userName,
|
|
232555
232558
|
date: comment.date,
|
|
@@ -232691,7 +232694,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232691
232694
|
}, {
|
|
232692
232695
|
key: "getAllSignNodeList",
|
|
232693
232696
|
value: function getAllSignNodeList(bce01) {
|
|
232694
|
-
var
|
|
232697
|
+
var _this7 = this;
|
|
232695
232698
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232696
232699
|
var signList = [];
|
|
232697
232700
|
var patientSignList = [];
|
|
@@ -232752,7 +232755,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232752
232755
|
}
|
|
232753
232756
|
});
|
|
232754
232757
|
if (signColList.length > 0) {
|
|
232755
|
-
var firstDataRowIndex =
|
|
232758
|
+
var firstDataRowIndex = _this7.getTableTitleMaxRowIndex(node) + 1;
|
|
232756
232759
|
node.rows.forEach(function (rows, rowIndex) {
|
|
232757
232760
|
if (rowIndex >= firstDataRowIndex) {
|
|
232758
232761
|
rows.forEach(function (cellNode, colIndex) {
|
|
@@ -232874,7 +232877,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232874
232877
|
}, {
|
|
232875
232878
|
key: "getSignNodeAndText",
|
|
232876
232879
|
value: function getSignNodeAndText(bce01) {
|
|
232877
|
-
var
|
|
232880
|
+
var _this8 = this;
|
|
232878
232881
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232879
232882
|
var signList = [];
|
|
232880
232883
|
var getAllNodes = function getAllNodes(nodes) {
|
|
@@ -232894,7 +232897,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232894
232897
|
dataId: _node7.dataId,
|
|
232895
232898
|
name: _node7.name
|
|
232896
232899
|
};
|
|
232897
|
-
sign.previousText =
|
|
232900
|
+
sign.previousText = _this8.getPreviousText(_node7);
|
|
232898
232901
|
signList.push(sign);
|
|
232899
232902
|
}
|
|
232900
232903
|
}
|
|
@@ -232950,13 +232953,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232950
232953
|
}, {
|
|
232951
232954
|
key: "html2Xml",
|
|
232952
232955
|
value: function html2Xml(json) {
|
|
232953
|
-
var
|
|
232956
|
+
var _this9 = this;
|
|
232954
232957
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232955
232958
|
var headerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.header);
|
|
232956
232959
|
var footerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.footer);
|
|
232957
232960
|
var mainNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.main);
|
|
232958
232961
|
var insertParaNode = function insertParaNode(area, index) {
|
|
232959
|
-
var node = new ParagraphNode/* ParagraphNode */.C(
|
|
232962
|
+
var node = new ParagraphNode/* ParagraphNode */.C(_this9._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
|
|
232960
232963
|
if (area == 'header') {
|
|
232961
232964
|
node.rootPath = 'header/0';
|
|
232962
232965
|
headerNodes.splice(index, 0, node);
|
|
@@ -233449,7 +233452,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233449
233452
|
}, {
|
|
233450
233453
|
key: "updateNurseRecord",
|
|
233451
233454
|
value: function updateNurseRecord(table, operType, rowIndex, data) {
|
|
233452
|
-
var
|
|
233455
|
+
var _this10 = this;
|
|
233453
233456
|
var keys = Object.keys(data);
|
|
233454
233457
|
var backfill = function backfill(r) {
|
|
233455
233458
|
for (var i = 0; i < keys.length; i++) {
|
|
@@ -233458,7 +233461,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233458
233461
|
if (cell) {
|
|
233459
233462
|
var text = data[keys[i]];
|
|
233460
233463
|
cell.childNodes.splice(1, cell.childNodes.length);
|
|
233461
|
-
var textNode = new TextNode/* TextNode */.R(
|
|
233464
|
+
var textNode = new TextNode/* TextNode */.R(_this10._hoEditorFactoryID, table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, cell.childNodes[0].styleIndex);
|
|
233462
233465
|
cell.drawCell.needUpdate = true;
|
|
233463
233466
|
cell.childNodes.push(textNode);
|
|
233464
233467
|
}
|
|
@@ -233708,7 +233711,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233708
233711
|
}, {
|
|
233709
233712
|
key: "updateAllCodeElements",
|
|
233710
233713
|
value: function updateAllCodeElements(element) {
|
|
233711
|
-
var
|
|
233714
|
+
var _this11 = this;
|
|
233712
233715
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
233713
233716
|
var ret = [];
|
|
233714
233717
|
var getAllNodes = function getAllNodes(nodes) {
|
|
@@ -233737,7 +233740,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233737
233740
|
if (ret.length > 0) {
|
|
233738
233741
|
ret.forEach(function (v) {
|
|
233739
233742
|
if (v.name === element.name) {
|
|
233740
|
-
|
|
233743
|
+
_this11.updateCodeContent(v, element.content);
|
|
233741
233744
|
}
|
|
233742
233745
|
});
|
|
233743
233746
|
this.rebuildAll(false);
|
|
@@ -234228,7 +234231,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
234228
234231
|
}, {
|
|
234229
234232
|
key: "getElementChangeRecords",
|
|
234230
234233
|
value: function getElementChangeRecords() {
|
|
234231
|
-
var
|
|
234234
|
+
var _this12 = this;
|
|
234232
234235
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
234233
234236
|
var recordArr = new Array();
|
|
234234
234237
|
var records = hoEditorFactory.docTree.elementChangeRecords;
|
|
@@ -234273,7 +234276,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
234273
234276
|
}
|
|
234274
234277
|
} else {
|
|
234275
234278
|
var id = key.split("|")[0];
|
|
234276
|
-
var _node14 =
|
|
234279
|
+
var _node14 = _this12.getNodeByID('all', id);
|
|
234277
234280
|
}
|
|
234278
234281
|
});
|
|
234279
234282
|
return recordArr;
|
|
@@ -241207,7 +241210,6 @@ var commondata = __webpack_require__(76285);
|
|
|
241207
241210
|
commentID: ''
|
|
241208
241211
|
},
|
|
241209
241212
|
hoEditorFactoryIdList: [],
|
|
241210
|
-
docList: [0],
|
|
241211
241213
|
drawPageLength: 0,
|
|
241212
241214
|
activePageIndex: 0,
|
|
241213
241215
|
defaultEditJson: {
|
|
@@ -241543,12 +241545,12 @@ var commondata = __webpack_require__(76285);
|
|
|
241543
241545
|
deep: true,
|
|
241544
241546
|
handler: function handler() {
|
|
241545
241547
|
if (!this.commentParams.hideComment) {
|
|
241546
|
-
this.$emit(
|
|
241548
|
+
this.$emit('commentChange', true);
|
|
241547
241549
|
if (this.commentParams.repaint != '0') {
|
|
241548
|
-
this.$emit(
|
|
241550
|
+
this.$emit('commentChange', true);
|
|
241549
241551
|
}
|
|
241550
241552
|
} else {
|
|
241551
|
-
this.$emit(
|
|
241553
|
+
this.$emit('commentChange', false);
|
|
241552
241554
|
}
|
|
241553
241555
|
}
|
|
241554
241556
|
}
|
|
@@ -241605,33 +241607,31 @@ var commondata = __webpack_require__(76285);
|
|
|
241605
241607
|
}
|
|
241606
241608
|
});
|
|
241607
241609
|
// 初始化所有文档
|
|
241608
|
-
|
|
241609
|
-
|
|
241610
|
-
|
|
241611
|
-
|
|
241612
|
-
|
|
241613
|
-
|
|
241614
|
-
|
|
241615
|
-
|
|
241616
|
-
|
|
241617
|
-
|
|
241618
|
-
|
|
241619
|
-
|
|
241620
|
-
|
|
241621
|
-
|
|
241622
|
-
|
|
241623
|
-
|
|
241624
|
-
|
|
241625
|
-
|
|
241626
|
-
|
|
241627
|
-
|
|
241628
|
-
|
|
241629
|
-
|
|
241630
|
-
|
|
241631
|
-
HOEditorFactorys/* HOEditorFactorys */.b.instance().hoEditorFactoryMap.set(id, hoEditor);
|
|
241632
|
-
});
|
|
241610
|
+
var id = (0,plugins_util/* generateID */.y)('HO');
|
|
241611
|
+
var hoEditor = new HOEditorFactory(id);
|
|
241612
|
+
this.hoEditorFactoryIdList.push(id);
|
|
241613
|
+
if (Array.isArray(this.superiorSigns) && this.superiorSigns.length > 0) {
|
|
241614
|
+
hoEditor.superiorSigns = (0,esm_toConsumableArray/* default */.Z)(this.superiorSigns);
|
|
241615
|
+
}
|
|
241616
|
+
if (this.isFixedPrintToA4 === true) {
|
|
241617
|
+
hoEditor.isFixedPrintToA4 = '1';
|
|
241618
|
+
} else if (this.isFixedPrintToA4 === false) {
|
|
241619
|
+
hoEditor.isFixedPrintToA4 = '';
|
|
241620
|
+
} else {
|
|
241621
|
+
hoEditor.isFixedPrintToA4 = this.isFixedPrintToA4;
|
|
241622
|
+
}
|
|
241623
|
+
hoEditor.isUseImagePrint = this.isUseImagePrint;
|
|
241624
|
+
hoEditor.isUseForm = this.isUseForm;
|
|
241625
|
+
hoEditor.printBlack = this.printBlack;
|
|
241626
|
+
hoEditor.isEnabledGlobalColor = this.isEnabledGlobalColor;
|
|
241627
|
+
hoEditor.isSameColorWithEmptyVlaue = this.isSameColorWithEmptyVlaue;
|
|
241628
|
+
hoEditor.contentIsModify = this.contentIsModify;
|
|
241629
|
+
hoEditor.commentParams = this.commentParams;
|
|
241630
|
+
hoEditor.isCanEditHeadFoot = this.isCanEditHeadFoot;
|
|
241631
|
+
hoEditor.docTree.docProperty = this.defaultDocProperty;
|
|
241632
|
+
HOEditorFactorys/* HOEditorFactorys */.b.instance().hoEditorFactoryMap.set(id, hoEditor);
|
|
241633
241633
|
// 监听编辑器删除的url图片节点变化
|
|
241634
|
-
DeleteImageNodeList.instance().imageNodeList = this.deleteImageNodeList;
|
|
241634
|
+
// DeleteImageNodeList.instance().imageNodeList = this.deleteImageNodeList;
|
|
241635
241635
|
if (this.editJson && this.editJson !== null) this.defaultEditJson = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, this.defaultEditJson), this.editJson);
|
|
241636
241636
|
// 初始化 部分全局样式
|
|
241637
241637
|
this.setActiveDocIndex(this.hoEditorFactoryIdList[0]);
|
|
@@ -241769,6 +241769,42 @@ var commondata = __webpack_require__(76285);
|
|
|
241769
241769
|
leftclick: function leftclick(node) {
|
|
241770
241770
|
this.$emit('leftClickEvent', node);
|
|
241771
241771
|
},
|
|
241772
|
+
openXmlList: function openXmlList(xmlList) {
|
|
241773
|
+
var _this7 = this;
|
|
241774
|
+
if (xmlList.length > 1) {
|
|
241775
|
+
// this.hoEditorFactoryIdList = [];
|
|
241776
|
+
xmlList.forEach(function (xml) {
|
|
241777
|
+
// const id = generateID('HO');
|
|
241778
|
+
|
|
241779
|
+
var hoEditor = new HOEditorFactory(xml.id);
|
|
241780
|
+
_this7.hoEditorFactoryIdList.push(xml.id);
|
|
241781
|
+
if (Array.isArray(_this7.superiorSigns) && _this7.superiorSigns.length > 0) {
|
|
241782
|
+
hoEditor.superiorSigns = (0,esm_toConsumableArray/* default */.Z)(_this7.superiorSigns);
|
|
241783
|
+
}
|
|
241784
|
+
if (_this7.isFixedPrintToA4 === true) {
|
|
241785
|
+
hoEditor.isFixedPrintToA4 = '1';
|
|
241786
|
+
} else if (_this7.isFixedPrintToA4 === false) {
|
|
241787
|
+
hoEditor.isFixedPrintToA4 = '';
|
|
241788
|
+
} else {
|
|
241789
|
+
hoEditor.isFixedPrintToA4 = _this7.isFixedPrintToA4;
|
|
241790
|
+
}
|
|
241791
|
+
hoEditor.isUseImagePrint = _this7.isUseImagePrint;
|
|
241792
|
+
hoEditor.isUseForm = _this7.isUseForm;
|
|
241793
|
+
hoEditor.printBlack = _this7.printBlack;
|
|
241794
|
+
hoEditor.isEnabledGlobalColor = _this7.isEnabledGlobalColor;
|
|
241795
|
+
hoEditor.isSameColorWithEmptyVlaue = _this7.isSameColorWithEmptyVlaue;
|
|
241796
|
+
hoEditor.contentIsModify = _this7.contentIsModify;
|
|
241797
|
+
hoEditor.commentParams = _this7.commentParams;
|
|
241798
|
+
hoEditor.isCanEditHeadFoot = _this7.isCanEditHeadFoot;
|
|
241799
|
+
hoEditor.docTree.docProperty = _this7.defaultDocProperty;
|
|
241800
|
+
HOEditorFactorys/* HOEditorFactorys */.b.instance().hoEditorFactoryMap.set(xml.id, hoEditor);
|
|
241801
|
+
setTimeout(function () {
|
|
241802
|
+
hoEditor.vueController.openXml(xml.content);
|
|
241803
|
+
}, 0);
|
|
241804
|
+
});
|
|
241805
|
+
this.setActiveDocIndex(this.hoEditorFactoryIdList[1], 'docReadyUpdate');
|
|
241806
|
+
}
|
|
241807
|
+
},
|
|
241772
241808
|
/**
|
|
241773
241809
|
* 双击事件
|
|
241774
241810
|
*/
|
|
@@ -241791,6 +241827,7 @@ var commondata = __webpack_require__(76285);
|
|
|
241791
241827
|
window.printController = hoEditorFactory.printController;
|
|
241792
241828
|
}
|
|
241793
241829
|
hoEditorFactory.vueController.autoSelect = this.autoSelect;
|
|
241830
|
+
// hoEditorFactory.vueController.openXmlList = this.openXmlList;
|
|
241794
241831
|
this.$emit('docReady', {
|
|
241795
241832
|
vueController: hoEditorFactory.vueController,
|
|
241796
241833
|
baseController: hoEditorFactory.baseController,
|
|
@@ -242011,7 +242048,7 @@ var commondata = __webpack_require__(76285);
|
|
|
242011
242048
|
},
|
|
242012
242049
|
// 设置字体
|
|
242013
242050
|
setFontStyle: function setFontStyle() {
|
|
242014
|
-
var
|
|
242051
|
+
var _this8 = this;
|
|
242015
242052
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
242016
242053
|
var elementNode = document.querySelector('#ho_table_auxiliary');
|
|
242017
242054
|
if (elementNode) {
|
|
@@ -242031,7 +242068,7 @@ var commondata = __webpack_require__(76285);
|
|
|
242031
242068
|
}
|
|
242032
242069
|
var style = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, hoEditorFactory.vueController.getCaretTextStyle({})), hoEditorFactory.vueController.getCaretParagraphStyle({})), hoEditorFactory.vueController.getCaretTableStyle({}));
|
|
242033
242070
|
Object.keys(this.hoEditorProvider.textStyle).forEach(function (key) {
|
|
242034
|
-
if (style[key] !== undefined && style[key] !== null)
|
|
242071
|
+
if (style[key] !== undefined && style[key] !== null) _this8.hoEditorProvider.textStyle[key] = style[key];
|
|
242035
242072
|
});
|
|
242036
242073
|
},
|
|
242037
242074
|
/**
|
|
@@ -242092,17 +242129,17 @@ var commondata = __webpack_require__(76285);
|
|
|
242092
242129
|
}
|
|
242093
242130
|
},
|
|
242094
242131
|
startScrollTimer: function startScrollTimer() {
|
|
242095
|
-
var
|
|
242132
|
+
var _this9 = this;
|
|
242096
242133
|
if (this.$refs.hoEditorListNode) {
|
|
242097
242134
|
this.scrollTimer = setInterval(function () {
|
|
242098
|
-
var delta =
|
|
242099
|
-
var scrollY =
|
|
242100
|
-
if (
|
|
242101
|
-
|
|
242102
|
-
} else if (
|
|
242103
|
-
|
|
242135
|
+
var delta = _this9.scrollDirection === 1 ? _this9.mouseParams.distance : -_this9.mouseParams.distance;
|
|
242136
|
+
var scrollY = _this9.$refs.hoEditorListNode.scrollTop;
|
|
242137
|
+
if (_this9.scrollDirection === 1 && scrollY < _this9.mouseParams.scrollHeight - _this9.mouseParams.clientHeight) {
|
|
242138
|
+
_this9.$refs.hoEditorListNode.scrollTop += delta;
|
|
242139
|
+
} else if (_this9.scrollDirection === -1 && scrollY > 0) {
|
|
242140
|
+
_this9.$refs.hoEditorListNode.scrollTop -= -delta;
|
|
242104
242141
|
} else {
|
|
242105
|
-
clearInterval(
|
|
242142
|
+
clearInterval(_this9.scrollTimer);
|
|
242106
242143
|
}
|
|
242107
242144
|
}, this.mouseParams.speed);
|
|
242108
242145
|
}
|
|
@@ -242118,10 +242155,10 @@ var commondata = __webpack_require__(76285);
|
|
|
242118
242155
|
});
|
|
242119
242156
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
242120
242157
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
242121
|
-
;// 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=
|
|
242158
|
+
;// 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=bc8cbf0c&prod&lang=less&media=print&
|
|
242122
242159
|
// extracted by mini-css-extract-plugin
|
|
242123
242160
|
|
|
242124
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
242161
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=bc8cbf0c&prod&lang=less&media=print&
|
|
242125
242162
|
|
|
242126
242163
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
242127
242164
|
|