hoeditor-web 3.3.6-beta.10 → 3.3.6-beta.11
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.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import { H as i, d as r, b as e, a as l, e as t, T as H, f as d, i as f } from "./index-
|
|
2
|
+
import { H as i, d as r, b as e, a as l, e as t, T as H, f as d, i as f } from "./index-CiWuavNG.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -23044,7 +23044,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
23044
23044
|
(function(a) {
|
|
23045
23045
|
function t() {
|
|
23046
23046
|
return function() {
|
|
23047
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
23047
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-D-DaXvBQ.mjs");
|
|
23048
23048
|
}().catch(function(r) {
|
|
23049
23049
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
23050
23050
|
}).then(function(r) {
|
|
@@ -24634,7 +24634,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
24634
24634
|
}
|
|
24635
24635
|
}
|
|
24636
24636
|
}
|
|
24637
|
-
const version = "3.3.6-beta.
|
|
24637
|
+
const version = "3.3.6-beta.11";
|
|
24638
24638
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
24639
24639
|
class SignNode extends BaseNode {
|
|
24640
24640
|
constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, associatedPatientElement, isTemp, innerIdentifier) {
|
|
@@ -84344,6 +84344,12 @@ const FindReplaceDialog = __component__$t.exports, fontFamilys = [{ ch: "宋体"
|
|
|
84344
84344
|
},
|
|
84345
84345
|
isMouseDown: !1,
|
|
84346
84346
|
// 鼠标是否处于按下状态
|
|
84347
|
+
scrollAtTop: !1,
|
|
84348
|
+
// 容器滚动是否到达顶部
|
|
84349
|
+
scrollAtBottom: !1,
|
|
84350
|
+
// 容器滚动是否到达底部
|
|
84351
|
+
scrollEdgeTimer: null,
|
|
84352
|
+
// 滚动到顶部/底部通知的防抖定时器
|
|
84347
84353
|
mouseParams: {
|
|
84348
84354
|
speed: 10,
|
|
84349
84355
|
// 定时器触发时间 值越大滚动越慢
|
|
@@ -84546,6 +84552,35 @@ const FindReplaceDialog = __component__$t.exports, fontFamilys = [{ ch: "宋体"
|
|
|
84546
84552
|
});
|
|
84547
84553
|
},
|
|
84548
84554
|
methods: {
|
|
84555
|
+
/**
|
|
84556
|
+
* 容器滚动到顶部/底部时通知父组件
|
|
84557
|
+
*/
|
|
84558
|
+
handleScroll() {
|
|
84559
|
+
const a = this.$refs.hoEditorListNode;
|
|
84560
|
+
if (!a) return;
|
|
84561
|
+
if (a.scrollHeight <= a.clientHeight) {
|
|
84562
|
+
this.scrollAtTop = !1, this.scrollAtBottom = !1, clearTimeout(this.scrollEdgeTimer), this.scrollEdgeTimer = null;
|
|
84563
|
+
return;
|
|
84564
|
+
}
|
|
84565
|
+
const t = a.scrollTop <= 0, r = a.scrollTop + a.clientHeight >= a.scrollHeight;
|
|
84566
|
+
t && !this.scrollAtTop ? (this.scrollAtTop = !0, this.emitScrollEdge("top")) : !t && this.scrollAtTop && (this.clearPendingScrollEdge("top"), this.scrollAtTop = !1), r && !this.scrollAtBottom ? (this.scrollAtBottom = !0, this.emitScrollEdge("bottom")) : !r && this.scrollAtBottom && (this.clearPendingScrollEdge("bottom"), this.scrollAtBottom = !1);
|
|
84567
|
+
},
|
|
84568
|
+
/**
|
|
84569
|
+
* 防抖通知父组件滚动到达顶部/底部
|
|
84570
|
+
* @param type 'top' | 'bottom'
|
|
84571
|
+
*/
|
|
84572
|
+
emitScrollEdge(a) {
|
|
84573
|
+
clearTimeout(this.scrollEdgeTimer), this._pendingScrollEdgeType = a, this.scrollEdgeTimer = setTimeout(() => {
|
|
84574
|
+
this.scrollEdgeTimer = null, this._pendingScrollEdgeType = "", this.$emit("scrollEdge", a);
|
|
84575
|
+
}, 200);
|
|
84576
|
+
},
|
|
84577
|
+
/**
|
|
84578
|
+
* 离开边界时取消尚未触发的防抖通知
|
|
84579
|
+
* @param type 'top' | 'bottom'
|
|
84580
|
+
*/
|
|
84581
|
+
clearPendingScrollEdge(a) {
|
|
84582
|
+
this._pendingScrollEdgeType === a && (clearTimeout(this.scrollEdgeTimer), this.scrollEdgeTimer = null, this._pendingScrollEdgeType = "");
|
|
84583
|
+
},
|
|
84549
84584
|
/**
|
|
84550
84585
|
* 右键菜单触发
|
|
84551
84586
|
*/
|
|
@@ -84806,7 +84841,7 @@ var _sfc_render$s = function a() {
|
|
|
84806
84841
|
var t = this, r = t._self._c;
|
|
84807
84842
|
return t._self._setupProxy, t.hoEditorFactoryIdList.length > 0 ? r("div", { staticClass: "ho-docs" }, [r("section", { ref: "hoEditorListNode", class: t.defaultEditJson.isFooter ? "ho-editor-list" : "ho-editor-list editor-no-footer", on: { contextmenu: function(o) {
|
|
84808
84843
|
return t.blankAreaRightClick.apply(null, arguments);
|
|
84809
|
-
}, mousedown: t.mouseDown } }, [t._l(t.hoEditorFactoryIdList, function(o, n) {
|
|
84844
|
+
}, mousedown: t.mouseDown, scroll: t.handleScroll } }, [t._l(t.hoEditorFactoryIdList, function(o, n) {
|
|
84810
84845
|
return [r("HoDoc", { key: n, attrs: { docIndex: n, hoEditorId: o, hoEditorFactoryIdList: t.hoEditorFactoryIdList, isUseTipText: t.isUseTipText }, on: { leftclick: t.leftclick, clickEvents: t.clickEvents, dblNodeClick: t.dblNodeClick, setFontStyles: t.setFontStyle, rightClickEventIn: t.rightClickEventIn, setActiveDocIndex: t.setActiveDocIndex, setActivePageIndex: t.setActivePageIndex, drawPagesLengthChange: t.drawPagesLengthChange }, scopedSlots: t._u([{ key: "hoDocHead", fn: function() {
|
|
84811
84846
|
return [t._t("hoHead")];
|
|
84812
84847
|
}, proxy: !0 }, { key: "hoDocFoot", fn: function() {
|