hoeditor-web 3.0.43 → 3.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.umd.js +26 -10
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -52923,7 +52923,7 @@ var NodeNeedModifyEvent = __webpack_require__(76830);
|
|
|
52923
52923
|
* @Author: liyanan 2441631434@qq.com
|
|
52924
52924
|
* @Date: 2023-03-17 14:19:29
|
|
52925
52925
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
52926
|
-
* @LastEditTime: 2023-03-
|
|
52926
|
+
* @LastEditTime: 2023-03-30 09:44:07
|
|
52927
52927
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawJumpButton.ts
|
|
52928
52928
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
52929
52929
|
*/
|
|
@@ -52960,7 +52960,7 @@ var DrawJumpButton = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
52960
52960
|
// 创建按钮形状
|
|
52961
52961
|
var buttonShape = new createjs.Shape();
|
|
52962
52962
|
buttonShape.name = "buttonShape";
|
|
52963
|
-
buttonShape.graphics.clear().beginFill("#A9A7AB").drawRoundRect(0, 5, this.dWidth, this.dHeight,
|
|
52963
|
+
buttonShape.graphics.clear().beginStroke("#000000").beginFill("#A9A7AB").drawRoundRect(0, 5, this.dWidth, this.dHeight, 5);
|
|
52964
52964
|
// 创建按钮文本
|
|
52965
52965
|
var buttonText = new createjs.Text(this.buttonName, "12px SimSun", "#000000");
|
|
52966
52966
|
buttonText.textAlign = "left";
|
|
@@ -52982,7 +52982,7 @@ var DrawJumpButton = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
52982
52982
|
button.children[1].font = "bold " + font;
|
|
52983
52983
|
hoEditorFactory.drawPageTree.updateDrawPage(dArea.index);
|
|
52984
52984
|
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
52985
|
-
var nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(drawNode.node, '
|
|
52985
|
+
var nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(drawNode.node, 'leftclick', startPos.page ? startPos.page.pageIndex : 0);
|
|
52986
52986
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
52987
52987
|
}
|
|
52988
52988
|
});
|
|
@@ -60025,6 +60025,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60025
60025
|
var arrStr = this.formulaStr.split(",");
|
|
60026
60026
|
if (arrStr.length < 2) {
|
|
60027
60027
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_38__/* ["default"].warn */ .Z.warn("入院时间和出院时间对应的单元格编号传入有误:" + this.formulaStr);
|
|
60028
|
+
return strRet;
|
|
60028
60029
|
}
|
|
60029
60030
|
var _this$getRowColByCell25 = this.getRowColByCellAdress(arrStr[0]),
|
|
60030
60031
|
_this$getRowColByCell26 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell25, 2),
|
|
@@ -60046,12 +60047,15 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60046
60047
|
if ((0,_plugins_util__WEBPACK_IMPORTED_MODULE_30__/* .isDate */ .J_)(rysj) && (0,_plugins_util__WEBPACK_IMPORTED_MODULE_30__/* .isDate */ .J_)(cysj)) {
|
|
60047
60048
|
var rDate = new Date(rysj);
|
|
60048
60049
|
var cDate = new Date(cysj);
|
|
60049
|
-
|
|
60050
|
-
var
|
|
60051
|
-
var
|
|
60052
|
-
|
|
60053
|
-
var
|
|
60054
|
-
|
|
60050
|
+
// 将日期转换为 UTC 时间戳
|
|
60051
|
+
var rTime = Date.UTC(rDate.getFullYear(), rDate.getMonth(), rDate.getDate());
|
|
60052
|
+
var cTime = Date.UTC(cDate.getFullYear(), cDate.getMonth(), cDate.getDate());
|
|
60053
|
+
// 计算日期相差的毫秒数
|
|
60054
|
+
var diff = Math.abs(cTime - rTime);
|
|
60055
|
+
// 将毫秒数转换为天数
|
|
60056
|
+
var subTime = Math.floor(diff / (1000 * 60 * 60 * 24));
|
|
60057
|
+
if (subTime == 0) subTime = 1;
|
|
60058
|
+
return subTime.toString();
|
|
60055
60059
|
}
|
|
60056
60060
|
}
|
|
60057
60061
|
}
|
|
@@ -80111,6 +80115,8 @@ var DrawConfig = __webpack_require__(37616);
|
|
|
80111
80115
|
var DrawSignNode = __webpack_require__(75638);
|
|
80112
80116
|
// EXTERNAL MODULE: ./src/editor/dom/TableProperty.ts
|
|
80113
80117
|
var TableProperty = __webpack_require__(79546);
|
|
80118
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/JumpButtonNode.ts + 1 modules
|
|
80119
|
+
var JumpButtonNode = __webpack_require__(330);
|
|
80114
80120
|
;// CONCATENATED MODULE: ./src/editor/draw/drawTree/DrawTree.ts
|
|
80115
80121
|
|
|
80116
80122
|
|
|
@@ -80176,6 +80182,7 @@ var TableProperty = __webpack_require__(79546);
|
|
|
80176
80182
|
|
|
80177
80183
|
|
|
80178
80184
|
|
|
80185
|
+
|
|
80179
80186
|
|
|
80180
80187
|
|
|
80181
80188
|
//当前的显示状态,psDesign为设计状态,psEdit为正常编辑状态 psPreview为打印预览态态 psPrint 正在打印状态, psReview审阅状态
|
|
@@ -81782,6 +81789,9 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
81782
81789
|
this._caret.visible = false;
|
|
81783
81790
|
}
|
|
81784
81791
|
}
|
|
81792
|
+
if (anode instanceof JumpButtonNode/* JumpButtonNode */.a) {
|
|
81793
|
+
this._caret.visible = false;
|
|
81794
|
+
}
|
|
81785
81795
|
}
|
|
81786
81796
|
//console.timeEnd("文档change事件");
|
|
81787
81797
|
return true;
|
|
@@ -82120,6 +82130,9 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
82120
82130
|
this._caret.visible = false;
|
|
82121
82131
|
}
|
|
82122
82132
|
}
|
|
82133
|
+
if (endNp.node instanceof JumpButtonNode/* JumpButtonNode */.a) {
|
|
82134
|
+
this._caret.visible = false;
|
|
82135
|
+
}
|
|
82123
82136
|
return true;
|
|
82124
82137
|
}
|
|
82125
82138
|
}, {
|
|
@@ -82397,6 +82410,9 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
82397
82410
|
this._caret.visible = false;
|
|
82398
82411
|
}
|
|
82399
82412
|
}
|
|
82413
|
+
if (_np4.node instanceof JumpButtonNode/* JumpButtonNode */.a) {
|
|
82414
|
+
this._caret.visible = false;
|
|
82415
|
+
}
|
|
82400
82416
|
}
|
|
82401
82417
|
}
|
|
82402
82418
|
}
|
|
@@ -235370,7 +235386,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
235370
235386
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
235371
235387
|
var MarkNode = __webpack_require__(57727);
|
|
235372
235388
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
235373
|
-
/* harmony default export */ var version = ('3.0.
|
|
235389
|
+
/* harmony default export */ var version = ('3.0.44');
|
|
235374
235390
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
235375
235391
|
var PoperTipText = __webpack_require__(15845);
|
|
235376
235392
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|