@linker-design-plus/tiny-peony 1.4.8 → 1.4.9
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/dist/tiny-peony.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1511,6 +1511,7 @@ class Bt extends JI {
|
|
|
1511
1511
|
* * 7. 自动触发 vue 响应式渲染,更新右侧主播标签的决定定位 top 值
|
|
1512
1512
|
*/
|
|
1513
1513
|
async _syncAnchorTopValue() {
|
|
1514
|
+
console.log("---高度同步开始--- ");
|
|
1514
1515
|
const B = Array.from(
|
|
1515
1516
|
this.editor.element.querySelectorAll(`span[data-type="${Lg}"]`)
|
|
1516
1517
|
), o = B.reduce((r, i) => {
|
|
@@ -1525,7 +1526,7 @@ class Bt extends JI {
|
|
|
1525
1526
|
const d = i.data.uid ?? i.id, l = o.get(String(d));
|
|
1526
1527
|
return (r[l] ?? (r[l] = [])).push(i), r;
|
|
1527
1528
|
}, {});
|
|
1528
|
-
Object.keys(a).forEach((r) => this.data[r] = a[r]);
|
|
1529
|
+
Object.keys(a).forEach((r) => this.data[r] = a[r]), console.log("---高度同步结束--- ");
|
|
1529
1530
|
}
|
|
1530
1531
|
setup() {
|
|
1531
1532
|
this.observer = new MutationObserver(() => this._syncAnchorTopValue()), this.observer.observe(this.editor.element, {
|
|
@@ -5842,7 +5843,7 @@ const uB = /* @__PURE__ */ JA(mn, [["render", Kn]]), [qA] = zA("editor-container
|
|
|
5842
5843
|
}) => V(wA, CA, AA, GA, !0)) : V(BA[0].id, CA, BA[0].background, BA[0].data), BA.length > 6 ? R(ge, {
|
|
5843
5844
|
trigger: "click",
|
|
5844
5845
|
position: "tr",
|
|
5845
|
-
popupContainer: ".anchor
|
|
5846
|
+
popupContainer: ".c-editor-container__core-anchor",
|
|
5846
5847
|
contentClass: "anchor-popover",
|
|
5847
5848
|
contentStyle: {
|
|
5848
5849
|
padding: "6px 12px"
|
|
@@ -5853,13 +5854,13 @@ const uB = /* @__PURE__ */ JA(mn, [["render", Kn]]), [qA] = zA("editor-container
|
|
|
5853
5854
|
style: {
|
|
5854
5855
|
width: "28px",
|
|
5855
5856
|
height: "28px",
|
|
5856
|
-
transform: "
|
|
5857
|
+
transform: "translate(8px, 3px)"
|
|
5857
5858
|
}
|
|
5858
5859
|
}, {
|
|
5859
5860
|
default: () => [R(Qo, null, null)]
|
|
5860
5861
|
}),
|
|
5861
5862
|
content: () => R("div", {
|
|
5862
|
-
class: "multi-anchor"
|
|
5863
|
+
class: "multi-anchor anchor-popover-wrapper"
|
|
5863
5864
|
}, [BA.slice(6).map(({
|
|
5864
5865
|
background: AA,
|
|
5865
5866
|
data: GA,
|