hoeditor-web 3.1.53 → 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 +184 -151
- 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,
|
|
@@ -232510,6 +232505,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232510
232505
|
}, {
|
|
232511
232506
|
key: "showElementsEditRecord",
|
|
232512
232507
|
value: function showElementsEditRecord(objects, id) {
|
|
232508
|
+
var _this6 = this;
|
|
232513
232509
|
var comments = [];
|
|
232514
232510
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(id ? id : this._hoEditorFactoryID);
|
|
232515
232511
|
if (hoEditorFactory.pageProperty.commentWidthMm == 0) {
|
|
@@ -232531,6 +232527,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232531
232527
|
comment.lineHeight = comment.lineHeight - 20;
|
|
232532
232528
|
comment.userName = "".concat(object.afterByName, "(").concat(object.afterBy, ")");
|
|
232533
232529
|
comment.date = object.createdDate;
|
|
232530
|
+
comment.afterContent = object.afterContent;
|
|
232534
232531
|
comments.push(comment);
|
|
232535
232532
|
}
|
|
232536
232533
|
if (element instanceof DateTimeNode/* DateTimeNode */.Z || element instanceof DownListNode/* DownListNode */.yF) {
|
|
@@ -232538,6 +232535,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232538
232535
|
comment.lineHeight = comment.lineHeight - 20;
|
|
232539
232536
|
comment.userName = "".concat(object.afterByName, "(").concat(object.afterBy, ")");
|
|
232540
232537
|
comment.date = object.createdDate;
|
|
232538
|
+
comment.afterContent = object.afterContent;
|
|
232541
232539
|
comments.push(comment);
|
|
232542
232540
|
}
|
|
232543
232541
|
}
|
|
@@ -232549,11 +232547,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232549
232547
|
arr[pos[0]] = [];
|
|
232550
232548
|
}
|
|
232551
232549
|
var obj = {
|
|
232552
|
-
editorId: id,
|
|
232550
|
+
editorId: id ? id : _this6._hoEditorFactoryID,
|
|
232553
232551
|
id: comment.id,
|
|
232554
232552
|
lineHeight: comment.lineHeight,
|
|
232555
232553
|
permissionLevel: comment.permissionLevel,
|
|
232556
232554
|
text: comment.text,
|
|
232555
|
+
afterContent: comment.afterContent,
|
|
232557
232556
|
userID: comment.userID,
|
|
232558
232557
|
userName: comment.userName,
|
|
232559
232558
|
date: comment.date,
|
|
@@ -232695,7 +232694,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232695
232694
|
}, {
|
|
232696
232695
|
key: "getAllSignNodeList",
|
|
232697
232696
|
value: function getAllSignNodeList(bce01) {
|
|
232698
|
-
var
|
|
232697
|
+
var _this7 = this;
|
|
232699
232698
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232700
232699
|
var signList = [];
|
|
232701
232700
|
var patientSignList = [];
|
|
@@ -232756,7 +232755,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232756
232755
|
}
|
|
232757
232756
|
});
|
|
232758
232757
|
if (signColList.length > 0) {
|
|
232759
|
-
var firstDataRowIndex =
|
|
232758
|
+
var firstDataRowIndex = _this7.getTableTitleMaxRowIndex(node) + 1;
|
|
232760
232759
|
node.rows.forEach(function (rows, rowIndex) {
|
|
232761
232760
|
if (rowIndex >= firstDataRowIndex) {
|
|
232762
232761
|
rows.forEach(function (cellNode, colIndex) {
|
|
@@ -232878,7 +232877,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232878
232877
|
}, {
|
|
232879
232878
|
key: "getSignNodeAndText",
|
|
232880
232879
|
value: function getSignNodeAndText(bce01) {
|
|
232881
|
-
var
|
|
232880
|
+
var _this8 = this;
|
|
232882
232881
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232883
232882
|
var signList = [];
|
|
232884
232883
|
var getAllNodes = function getAllNodes(nodes) {
|
|
@@ -232898,7 +232897,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232898
232897
|
dataId: _node7.dataId,
|
|
232899
232898
|
name: _node7.name
|
|
232900
232899
|
};
|
|
232901
|
-
sign.previousText =
|
|
232900
|
+
sign.previousText = _this8.getPreviousText(_node7);
|
|
232902
232901
|
signList.push(sign);
|
|
232903
232902
|
}
|
|
232904
232903
|
}
|
|
@@ -232954,13 +232953,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232954
232953
|
}, {
|
|
232955
232954
|
key: "html2Xml",
|
|
232956
232955
|
value: function html2Xml(json) {
|
|
232957
|
-
var
|
|
232956
|
+
var _this9 = this;
|
|
232958
232957
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232959
232958
|
var headerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.header);
|
|
232960
232959
|
var footerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.footer);
|
|
232961
232960
|
var mainNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.main);
|
|
232962
232961
|
var insertParaNode = function insertParaNode(area, index) {
|
|
232963
|
-
var node = new ParagraphNode/* ParagraphNode */.C(
|
|
232962
|
+
var node = new ParagraphNode/* ParagraphNode */.C(_this9._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
|
|
232964
232963
|
if (area == 'header') {
|
|
232965
232964
|
node.rootPath = 'header/0';
|
|
232966
232965
|
headerNodes.splice(index, 0, node);
|
|
@@ -233453,7 +233452,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233453
233452
|
}, {
|
|
233454
233453
|
key: "updateNurseRecord",
|
|
233455
233454
|
value: function updateNurseRecord(table, operType, rowIndex, data) {
|
|
233456
|
-
var
|
|
233455
|
+
var _this10 = this;
|
|
233457
233456
|
var keys = Object.keys(data);
|
|
233458
233457
|
var backfill = function backfill(r) {
|
|
233459
233458
|
for (var i = 0; i < keys.length; i++) {
|
|
@@ -233462,7 +233461,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233462
233461
|
if (cell) {
|
|
233463
233462
|
var text = data[keys[i]];
|
|
233464
233463
|
cell.childNodes.splice(1, cell.childNodes.length);
|
|
233465
|
-
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);
|
|
233466
233465
|
cell.drawCell.needUpdate = true;
|
|
233467
233466
|
cell.childNodes.push(textNode);
|
|
233468
233467
|
}
|
|
@@ -233712,7 +233711,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233712
233711
|
}, {
|
|
233713
233712
|
key: "updateAllCodeElements",
|
|
233714
233713
|
value: function updateAllCodeElements(element) {
|
|
233715
|
-
var
|
|
233714
|
+
var _this11 = this;
|
|
233716
233715
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
233717
233716
|
var ret = [];
|
|
233718
233717
|
var getAllNodes = function getAllNodes(nodes) {
|
|
@@ -233741,7 +233740,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233741
233740
|
if (ret.length > 0) {
|
|
233742
233741
|
ret.forEach(function (v) {
|
|
233743
233742
|
if (v.name === element.name) {
|
|
233744
|
-
|
|
233743
|
+
_this11.updateCodeContent(v, element.content);
|
|
233745
233744
|
}
|
|
233746
233745
|
});
|
|
233747
233746
|
this.rebuildAll(false);
|
|
@@ -234232,7 +234231,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
234232
234231
|
}, {
|
|
234233
234232
|
key: "getElementChangeRecords",
|
|
234234
234233
|
value: function getElementChangeRecords() {
|
|
234235
|
-
var
|
|
234234
|
+
var _this12 = this;
|
|
234236
234235
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
234237
234236
|
var recordArr = new Array();
|
|
234238
234237
|
var records = hoEditorFactory.docTree.elementChangeRecords;
|
|
@@ -234277,7 +234276,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
234277
234276
|
}
|
|
234278
234277
|
} else {
|
|
234279
234278
|
var id = key.split("|")[0];
|
|
234280
|
-
var _node14 =
|
|
234279
|
+
var _node14 = _this12.getNodeByID('all', id);
|
|
234281
234280
|
}
|
|
234282
234281
|
});
|
|
234283
234282
|
return recordArr;
|
|
@@ -241211,7 +241210,6 @@ var commondata = __webpack_require__(76285);
|
|
|
241211
241210
|
commentID: ''
|
|
241212
241211
|
},
|
|
241213
241212
|
hoEditorFactoryIdList: [],
|
|
241214
|
-
docList: [0],
|
|
241215
241213
|
drawPageLength: 0,
|
|
241216
241214
|
activePageIndex: 0,
|
|
241217
241215
|
defaultEditJson: {
|
|
@@ -241547,12 +241545,12 @@ var commondata = __webpack_require__(76285);
|
|
|
241547
241545
|
deep: true,
|
|
241548
241546
|
handler: function handler() {
|
|
241549
241547
|
if (!this.commentParams.hideComment) {
|
|
241550
|
-
this.$emit(
|
|
241548
|
+
this.$emit('commentChange', true);
|
|
241551
241549
|
if (this.commentParams.repaint != '0') {
|
|
241552
|
-
this.$emit(
|
|
241550
|
+
this.$emit('commentChange', true);
|
|
241553
241551
|
}
|
|
241554
241552
|
} else {
|
|
241555
|
-
this.$emit(
|
|
241553
|
+
this.$emit('commentChange', false);
|
|
241556
241554
|
}
|
|
241557
241555
|
}
|
|
241558
241556
|
}
|
|
@@ -241609,33 +241607,31 @@ var commondata = __webpack_require__(76285);
|
|
|
241609
241607
|
}
|
|
241610
241608
|
});
|
|
241611
241609
|
// 初始化所有文档
|
|
241612
|
-
|
|
241613
|
-
|
|
241614
|
-
|
|
241615
|
-
|
|
241616
|
-
|
|
241617
|
-
|
|
241618
|
-
|
|
241619
|
-
|
|
241620
|
-
|
|
241621
|
-
|
|
241622
|
-
|
|
241623
|
-
|
|
241624
|
-
|
|
241625
|
-
|
|
241626
|
-
|
|
241627
|
-
|
|
241628
|
-
|
|
241629
|
-
|
|
241630
|
-
|
|
241631
|
-
|
|
241632
|
-
|
|
241633
|
-
|
|
241634
|
-
|
|
241635
|
-
HOEditorFactorys/* HOEditorFactorys */.b.instance().hoEditorFactoryMap.set(id, hoEditor);
|
|
241636
|
-
});
|
|
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);
|
|
241637
241633
|
// 监听编辑器删除的url图片节点变化
|
|
241638
|
-
DeleteImageNodeList.instance().imageNodeList = this.deleteImageNodeList;
|
|
241634
|
+
// DeleteImageNodeList.instance().imageNodeList = this.deleteImageNodeList;
|
|
241639
241635
|
if (this.editJson && this.editJson !== null) this.defaultEditJson = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, this.defaultEditJson), this.editJson);
|
|
241640
241636
|
// 初始化 部分全局样式
|
|
241641
241637
|
this.setActiveDocIndex(this.hoEditorFactoryIdList[0]);
|
|
@@ -241773,6 +241769,42 @@ var commondata = __webpack_require__(76285);
|
|
|
241773
241769
|
leftclick: function leftclick(node) {
|
|
241774
241770
|
this.$emit('leftClickEvent', node);
|
|
241775
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
|
+
},
|
|
241776
241808
|
/**
|
|
241777
241809
|
* 双击事件
|
|
241778
241810
|
*/
|
|
@@ -241795,6 +241827,7 @@ var commondata = __webpack_require__(76285);
|
|
|
241795
241827
|
window.printController = hoEditorFactory.printController;
|
|
241796
241828
|
}
|
|
241797
241829
|
hoEditorFactory.vueController.autoSelect = this.autoSelect;
|
|
241830
|
+
// hoEditorFactory.vueController.openXmlList = this.openXmlList;
|
|
241798
241831
|
this.$emit('docReady', {
|
|
241799
241832
|
vueController: hoEditorFactory.vueController,
|
|
241800
241833
|
baseController: hoEditorFactory.baseController,
|
|
@@ -242015,7 +242048,7 @@ var commondata = __webpack_require__(76285);
|
|
|
242015
242048
|
},
|
|
242016
242049
|
// 设置字体
|
|
242017
242050
|
setFontStyle: function setFontStyle() {
|
|
242018
|
-
var
|
|
242051
|
+
var _this8 = this;
|
|
242019
242052
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
242020
242053
|
var elementNode = document.querySelector('#ho_table_auxiliary');
|
|
242021
242054
|
if (elementNode) {
|
|
@@ -242035,7 +242068,7 @@ var commondata = __webpack_require__(76285);
|
|
|
242035
242068
|
}
|
|
242036
242069
|
var style = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, hoEditorFactory.vueController.getCaretTextStyle({})), hoEditorFactory.vueController.getCaretParagraphStyle({})), hoEditorFactory.vueController.getCaretTableStyle({}));
|
|
242037
242070
|
Object.keys(this.hoEditorProvider.textStyle).forEach(function (key) {
|
|
242038
|
-
if (style[key] !== undefined && style[key] !== null)
|
|
242071
|
+
if (style[key] !== undefined && style[key] !== null) _this8.hoEditorProvider.textStyle[key] = style[key];
|
|
242039
242072
|
});
|
|
242040
242073
|
},
|
|
242041
242074
|
/**
|
|
@@ -242096,17 +242129,17 @@ var commondata = __webpack_require__(76285);
|
|
|
242096
242129
|
}
|
|
242097
242130
|
},
|
|
242098
242131
|
startScrollTimer: function startScrollTimer() {
|
|
242099
|
-
var
|
|
242132
|
+
var _this9 = this;
|
|
242100
242133
|
if (this.$refs.hoEditorListNode) {
|
|
242101
242134
|
this.scrollTimer = setInterval(function () {
|
|
242102
|
-
var delta =
|
|
242103
|
-
var scrollY =
|
|
242104
|
-
if (
|
|
242105
|
-
|
|
242106
|
-
} else if (
|
|
242107
|
-
|
|
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;
|
|
242108
242141
|
} else {
|
|
242109
|
-
clearInterval(
|
|
242142
|
+
clearInterval(_this9.scrollTimer);
|
|
242110
242143
|
}
|
|
242111
242144
|
}, this.mouseParams.speed);
|
|
242112
242145
|
}
|
|
@@ -242122,10 +242155,10 @@ var commondata = __webpack_require__(76285);
|
|
|
242122
242155
|
});
|
|
242123
242156
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
242124
242157
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
242125
|
-
;// 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&
|
|
242126
242159
|
// extracted by mini-css-extract-plugin
|
|
242127
242160
|
|
|
242128
|
-
;// 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&
|
|
242129
242162
|
|
|
242130
242163
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
242131
242164
|
|