@umoteam/editor 1.3.0 → 1.3.1
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/dist/es/style.css +1 -1
- package/dist/es/umo-editor.mjs +7 -4
- package/dist/umd/style.css +1 -1
- package/dist/umd/umo-editor.js +2 -2
- package/dist/umd/umo-editor.js.gz +0 -0
- package/package.json +1 -1
package/dist/es/umo-editor.mjs
CHANGED
|
@@ -140,7 +140,7 @@ import { saveAs as ys } from "file-saver";
|
|
|
140
140
|
import { toBlob as eg, toJpeg as E2, toPng as P2 } from "dom-to-image-more";
|
|
141
141
|
import ya from "nzh/cn";
|
|
142
142
|
/**
|
|
143
|
-
* @umoteam/editor 1.3.
|
|
143
|
+
* @umoteam/editor 1.3.1
|
|
144
144
|
* @license MIT
|
|
145
145
|
* @author [object Object]
|
|
146
146
|
* @see https://umodoc.com
|
|
@@ -29221,7 +29221,10 @@ const uoe = {
|
|
|
29221
29221
|
let a = M(!1), o = M(0);
|
|
29222
29222
|
const l = () => {
|
|
29223
29223
|
const f = document.querySelector(`${e} .node-focused`);
|
|
29224
|
-
f
|
|
29224
|
+
if (f === null)
|
|
29225
|
+
return;
|
|
29226
|
+
let p = f.offsetTop;
|
|
29227
|
+
p = f.tagName === "DIV" ? p - 8 : p - 5, r.value.isActive("pageBreak") && (p = p - 3), r.value.isActive("horizontalRule") && (p = p + 3), r.value.isActive("table") && (p = p + 7), o.value = p;
|
|
29225
29228
|
};
|
|
29226
29229
|
oe(
|
|
29227
29230
|
r,
|
|
@@ -29287,7 +29290,7 @@ const uoe = {
|
|
|
29287
29290
|
default: V(() => [
|
|
29288
29291
|
I("div", {
|
|
29289
29292
|
class: "block-menu-hander",
|
|
29290
|
-
style: ct(`transform: translate(-
|
|
29293
|
+
style: ct(`transform: translate(-38px, ${b(o)}px);`)
|
|
29291
29294
|
}, [
|
|
29292
29295
|
v(m, {
|
|
29293
29296
|
"menu-active": b(a),
|
|
@@ -31591,7 +31594,7 @@ const uoe = {
|
|
|
31591
31594
|
ref_key: "containerRef",
|
|
31592
31595
|
ref: n
|
|
31593
31596
|
}, [
|
|
31594
|
-
b(e).document.readOnly ? le("", !0) : (x(), re("div", vie, "
|
|
31597
|
+
b(e).document.readOnly ? le("", !0) : (x(), re("div", vie, "菜单栏"))
|
|
31595
31598
|
], 2)
|
|
31596
31599
|
]),
|
|
31597
31600
|
_: 1
|