@white-give/editor-vue 1.0.5 → 1.0.7

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/index.js CHANGED
@@ -48925,7 +48925,7 @@ const vl = /* @__PURE__ */ ft({
48925
48925
  }
48926
48926
  }), t.disabled && i.value.disable();
48927
48927
  }), (u, c) => (Ee(), et("div", {
48928
- class: pn(["white-popover-wrapper white-editor-namespace flex-shrink-0", {
48928
+ class: pn(["white-popover-wrapper flex-shrink-0", {
48929
48929
  center: n.center,
48930
48930
  [n.hasClass]: n.hasClass,
48931
48931
  inline: n.inline
@@ -48934,7 +48934,7 @@ const vl = /* @__PURE__ */ ft({
48934
48934
  ref: a
48935
48935
  }, [
48936
48936
  me("div", {
48937
- class: "white-popover-content",
48937
+ class: "white-popover-content white-editor-namespace",
48938
48938
  style: Zn(l.value),
48939
48939
  ref_key: "contentRef",
48940
48940
  ref: o
@@ -105664,43 +105664,7 @@ const by = [
105664
105664
  [7, 11, 13, 21, 9]
105665
105665
  ]
105666
105666
  }
105667
- }, t8e = [
105668
- { label: "网页", layout: "web" },
105669
- { label: "A4", width: 21, height: 29.7, default: !0, layout: "page" },
105670
- { label: "A3", width: 29.7, height: 42, layout: "page" },
105671
- { label: "A5", width: 14.8, height: 21, layout: "page" },
105672
- { label: "B5", width: 17.6, height: 25, layout: "page" },
105673
- {
105674
- label: "5号信纸",
105675
- width: 10.9,
105676
- height: 12.9,
105677
- layout: "page"
105678
- },
105679
- {
105680
- label: "6号信纸",
105681
- width: 11.9,
105682
- height: 22.9,
105683
- layout: "page"
105684
- },
105685
- {
105686
- label: "7号信纸",
105687
- width: 16.1,
105688
- height: 22.8,
105689
- layout: "page"
105690
- },
105691
- {
105692
- label: "9号信纸",
105693
- width: 22.8,
105694
- height: 32.3,
105695
- layout: "page"
105696
- },
105697
- {
105698
- label: "法律用纸",
105699
- width: 21.5,
105700
- height: 33.5,
105701
- layout: "page"
105702
- }
105703
- ], u7 = [
105667
+ }, u7 = [
105704
105668
  {
105705
105669
  label: "默认",
105706
105670
  value: "decimal",
@@ -105801,7 +105765,7 @@ const by = [
105801
105765
  code: `<path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"></path>
105802
105766
  <path d="M14 27v6H8v-6h6zm0-9v6H8v-6h6zm0-9v6H8V9h6z"></path>`
105803
105767
  }
105804
- ], n8e = [
105768
+ ], t8e = [
105805
105769
  {
105806
105770
  label: "表情与角色",
105807
105771
  items: "😀 😃 😄 😁 😆 😅 🤣 😂 🙂 🙃 😉 😊 😇 🥰 😍 🤩 😘 😗 😚 😙 😋 😛 😜 🤪 😝 🤑 🤗 🤭 🤫 🤔 🤐 🤨 😐 😑 😶 😶‍ 😏 😒 🙄 😬 😮‍ 🤥 😌 😔 😪 🤤 😴 😷 🤒 🤕 🤢 🤮 🤧 🥵 🥶 🥴 😵 😵‍💫 🤯 🤠 🥳 😎 🤓 🧐 😕 😟 🙁 ☹️ 😮 😯 😲 😳 🥺 😦 😧 😨 😰 😥 😢 😭 😱 😖 😣 😞 😓 😩 😫 🥱 😤 😡 😠 🤬 😈 👿 💀 ☠️ 💩 🤡 👹 👺 👻 👽 👾 🤖 👋 🤚 🖐️ ✋ 🖖 👌 🤏 ✌️ 🤞 🤟 🤘 🤙 👈 👉 👆 🖕 👇 ☝️ 👍 👎 ✊ 👊 🤛 🤜 👏 🙌 👐 🤲 🤝 🙏 ✍️ 💅 🤳 💪 🦾 🦿 🦵 🦶 👂 🦻"
@@ -105896,7 +105860,7 @@ const by = [
105896
105860
  return e ? `https://v.qq.com/iframe/player.html?vid=${e}` : "";
105897
105861
  }
105898
105862
  }
105899
- ], r8e = { class: "w-[170px] flex flex-wrap gap-[10px]" }, i8e = ["onClick"], a8e = ["innerHTML"], f7 = /* @__PURE__ */ ft({
105863
+ ], n8e = { class: "w-[170px] flex flex-wrap gap-[10px]" }, r8e = ["onClick"], i8e = ["innerHTML"], f7 = /* @__PURE__ */ ft({
105900
105864
  __name: "ordered-list",
105901
105865
  setup(n) {
105902
105866
  const e = dt("editor"), t = ut(!1), r = ut("");
@@ -105926,7 +105890,7 @@ const by = [
105926
105890
  } : i(_e(u7)[0].value))
105927
105891
  }, {
105928
105892
  content: $t(() => [
105929
- me("div", r8e, [
105893
+ me("div", n8e, [
105930
105894
  (Ee(!0), et(cr, null, oi(_e(u7), (s, l) => (Ee(), et("div", {
105931
105895
  key: l,
105932
105896
  class: pn(["w-[50px] h-[50px] cursor-pointer rounded-[3px] flex items-center justify-center border hover:bg-[#F5F5F5] overflow-hidden", { "border-[#333639]": r.value === s.value }]),
@@ -105936,14 +105900,14 @@ const by = [
105936
105900
  xmlns: "http://www.w3.org/2000/svg",
105937
105901
  viewBox: "0 0 44 44",
105938
105902
  innerHTML: s.code
105939
- }, null, 8, a8e))
105940
- ], 10, i8e))), 128))
105903
+ }, null, 8, i8e))
105904
+ ], 10, r8e))), 128))
105941
105905
  ])
105942
105906
  ]),
105943
105907
  _: 1
105944
105908
  }, 8, ["popup-visible"]));
105945
105909
  }
105946
- }), o8e = { class: "w-[170px] flex flex-wrap gap-[10px]" }, s8e = ["onClick"], l8e = ["innerHTML"], d7 = /* @__PURE__ */ ft({
105910
+ }), a8e = { class: "w-[170px] flex flex-wrap gap-[10px]" }, o8e = ["onClick"], s8e = ["innerHTML"], d7 = /* @__PURE__ */ ft({
105947
105911
  __name: "bullet-list",
105948
105912
  setup(n) {
105949
105913
  const e = dt("editor"), t = ut(!1), r = ut("");
@@ -105973,7 +105937,7 @@ const by = [
105973
105937
  } : i(_e(c7)[0].value))
105974
105938
  }, {
105975
105939
  content: $t(() => [
105976
- me("div", o8e, [
105940
+ me("div", a8e, [
105977
105941
  (Ee(!0), et(cr, null, oi(_e(c7), (s, l) => (Ee(), et("div", {
105978
105942
  key: l,
105979
105943
  class: pn(["w-[50px] h-[50px] cursor-pointer rounded-[3px] flex items-center justify-center border hover:bg-[#F5F5F5]", { "border-[#333639]": r.value === s.value }]),
@@ -105983,8 +105947,8 @@ const by = [
105983
105947
  xmlns: "http://www.w3.org/2000/svg",
105984
105948
  viewBox: "0 0 44 44",
105985
105949
  innerHTML: s.code
105986
- }, null, 8, l8e))
105987
- ], 10, s8e))), 128))
105950
+ }, null, 8, s8e))
105951
+ ], 10, o8e))), 128))
105988
105952
  ])
105989
105953
  ]),
105990
105954
  _: 1
@@ -106002,10 +105966,10 @@ const by = [
106002
105966
  onMenuClick: r[0] || (r[0] = (i) => _e(e)?.chain().focus().indent().run())
106003
105967
  }));
106004
105968
  }
106005
- }), u8e = ["disabled"], c8e = {
105969
+ }), l8e = ["disabled"], u8e = {
106006
105970
  key: 0,
106007
105971
  class: "text-[13px] text-[#333639] ml-[3px]"
106008
- }, f8e = { class: "flex items-center justify-center w-full h-full" }, d8e = ["disabled"], h8e = { class: "flex items-center gap-[4px] h-full" }, p8e = {
105972
+ }, c8e = { class: "flex items-center justify-center w-full h-full" }, f8e = ["disabled"], d8e = { class: "flex items-center gap-[4px] h-full" }, h8e = {
106009
105973
  key: 0,
106010
105974
  class: "text-[13px] text-[#333639]"
106011
105975
  }, rw = /* @__PURE__ */ ft({
@@ -106050,7 +106014,7 @@ const by = [
106050
106014
  class: pn(["w-iconfont", `icon-${n.ico}`]),
106051
106015
  style: Zn(`font-size: ${n.icoSize}px`)
106052
106016
  }, null, 6),
106053
- n.hideText ? Dn("", !0) : (Ee(), et("p", c8e, Fn(n.text), 1))
106017
+ n.hideText ? Dn("", !0) : (Ee(), et("p", u8e, Fn(n.text), 1))
106054
106018
  ]),
106055
106019
  Ve(vl, {
106056
106020
  trigger: "click",
@@ -106068,7 +106032,7 @@ const by = [
106068
106032
  Ar(l.$slots, "content")
106069
106033
  ]),
106070
106034
  default: $t(() => [
106071
- me("span", f8e, [
106035
+ me("span", c8e, [
106072
106036
  me("i", {
106073
106037
  class: pn(["w-iconfont icon-bottom !text-[8px] transition-transform duration-200", o.value ? "rotate-180" : ""])
106074
106038
  }, null, 2)
@@ -106076,7 +106040,7 @@ const by = [
106076
106040
  ]),
106077
106041
  _: 3
106078
106042
  }, 8, ["value", "disabled"])
106079
- ], 16, u8e)), [
106043
+ ], 16, l8e)), [
106080
106044
  [c, `${n.text}`]
106081
106045
  ]) : Dn("", !0),
106082
106046
  n.dropType === "select" ? (Ee(), Tt(vl, {
@@ -106102,17 +106066,17 @@ const by = [
106102
106066
  }],
106103
106067
  disabled: !n.forceEnabled && (n.disabled || _e(r)?.isEditable === !1)
106104
106068
  }, _e(t)), [
106105
- me("div", h8e, [
106069
+ me("div", d8e, [
106106
106070
  me("i", {
106107
106071
  class: pn(["w-iconfont", `icon-${n.ico}`]),
106108
106072
  style: Zn(`font-size: ${n.icoSize}px`)
106109
106073
  }, null, 6),
106110
- n.hideText ? Dn("", !0) : (Ee(), et("p", p8e, Fn(n.text), 1)),
106074
+ n.hideText ? Dn("", !0) : (Ee(), et("p", h8e, Fn(n.text), 1)),
106111
106075
  me("i", {
106112
106076
  class: pn(["w-iconfont icon-bottom !text-[8px] transition-transform duration-200", o.value ? "rotate-180" : ""])
106113
106077
  }, null, 2)
106114
106078
  ])
106115
- ], 16, d8e)), [
106079
+ ], 16, f8e)), [
106116
106080
  [c, `${n.text}`]
106117
106081
  ])
106118
106082
  ]),
@@ -106121,7 +106085,7 @@ const by = [
106121
106085
  ], 64);
106122
106086
  };
106123
106087
  }
106124
- }), v8e = ["disabled"], g8e = ["disabled"], m8e = ["disabled"], y8e = ["disabled"], b8e = ["disabled"], zX = /* @__PURE__ */ ft({
106088
+ }), p8e = ["disabled"], v8e = ["disabled"], g8e = ["disabled"], m8e = ["disabled"], y8e = ["disabled"], zX = /* @__PURE__ */ ft({
106125
106089
  __name: "text-align",
106126
106090
  setup(n) {
106127
106091
  const e = dt("editor"), t = ut(!1), r = fn(() => !e.value || e.value.isActive({ textAlign: "left" }) ? "left" : e.value.isActive({ textAlign: "center" }) ? "center" : e.value.isActive({ textAlign: "right" }) ? "right" : e.value.isActive({ textAlign: "justify" }) ? "justify" : e.value.isActive({ textAlign: "distributed" }) ? "distributed" : "left"), i = (a) => {
@@ -106161,7 +106125,7 @@ const by = [
106161
106125
  }, [...o[7] || (o[7] = [
106162
106126
  me("i", { class: "w-iconfont icon-align-left" }, null, -1),
106163
106127
  tr(" 左对齐 ", -1)
106164
- ])], 8, v8e),
106128
+ ])], 8, p8e),
106165
106129
  me("div", {
106166
106130
  class: "px-[12px] py-[5px] flex items-center gap-2 text-[14px] hover:bg-[rgb(242,243,245)] cursor-pointer",
106167
106131
  onClick: o[1] || (o[1] = (s) => i("center")),
@@ -106169,7 +106133,7 @@ const by = [
106169
106133
  }, [...o[8] || (o[8] = [
106170
106134
  me("i", { class: "w-iconfont icon-align-center" }, null, -1),
106171
106135
  tr(" 居中对齐 ", -1)
106172
- ])], 8, g8e),
106136
+ ])], 8, v8e),
106173
106137
  me("div", {
106174
106138
  class: "px-[12px] py-[5px] flex items-center gap-2 text-[14px] hover:bg-[rgb(242,243,245)] cursor-pointer",
106175
106139
  onClick: o[2] || (o[2] = (s) => i("right")),
@@ -106177,7 +106141,7 @@ const by = [
106177
106141
  }, [...o[9] || (o[9] = [
106178
106142
  me("i", { class: "w-iconfont icon-align-right" }, null, -1),
106179
106143
  tr(" 右对齐 ", -1)
106180
- ])], 8, m8e),
106144
+ ])], 8, g8e),
106181
106145
  me("div", {
106182
106146
  class: "px-[12px] py-[5px] flex items-center gap-2 text-[14px] hover:bg-[rgb(242,243,245)] cursor-pointer",
106183
106147
  onClick: o[3] || (o[3] = (s) => i("justify")),
@@ -106185,7 +106149,7 @@ const by = [
106185
106149
  }, [...o[10] || (o[10] = [
106186
106150
  me("i", { class: "w-iconfont icon-align-justify" }, null, -1),
106187
106151
  tr(" 两端对齐 ", -1)
106188
- ])], 8, y8e),
106152
+ ])], 8, m8e),
106189
106153
  me("div", {
106190
106154
  class: "px-[12px] py-[5px] flex items-center gap-2 text-[14px] hover:bg-[rgb(242,243,245)] cursor-pointer",
106191
106155
  onClick: o[4] || (o[4] = (s) => i("distributed")),
@@ -106193,7 +106157,7 @@ const by = [
106193
106157
  }, [...o[11] || (o[11] = [
106194
106158
  me("i", { class: "w-iconfont icon-align-distributed" }, null, -1),
106195
106159
  tr(" 分散对齐 ", -1)
106196
- ])], 8, b8e)
106160
+ ])], 8, y8e)
106197
106161
  ]),
106198
106162
  _: 1
106199
106163
  }, 8, ["ico", "popup-visible"]));
@@ -106254,7 +106218,7 @@ const by = [
106254
106218
  onMenuClick: r[0] || (r[0] = (i) => _e(e)?.chain().focus().toggleCode().run())
106255
106219
  }, null, 8, ["menu-active", "disabled"]));
106256
106220
  }
106257
- }), _8e = ["onClick"], y7 = /* @__PURE__ */ ft({
106221
+ }), b8e = ["onClick"], y7 = /* @__PURE__ */ ft({
106258
106222
  __name: "line-height",
106259
106223
  setup(n) {
106260
106224
  const e = dt("editor"), t = dt("options"), r = ut(!1), i = fn(() => t.value.dicts?.lineHeights.map((o) => ({
@@ -106277,7 +106241,7 @@ const by = [
106277
106241
  key: l.value,
106278
106242
  class: pn(["px-[12px] py-[5px] flex items-center gap-[4px] text-[14px] hover:bg-[rgb(242,243,245)] cursor-pointer", l.active ? "!text-[#007bff] font-[500]" : ""]),
106279
106243
  onClick: (u) => a({ content: l.label, value: l.value })
106280
- }, Fn(l.label), 11, _8e))), 128))
106244
+ }, Fn(l.label), 11, b8e))), 128))
106281
106245
  ]),
106282
106246
  _: 1
106283
106247
  }, 8, ["popup-visible"]));
@@ -106351,7 +106315,7 @@ const by = [
106351
106315
  onMenuClick: r[0] || (r[0] = (i) => _e(e)?.chain().focus().setHardBreak().run())
106352
106316
  }));
106353
106317
  }
106354
- }), x8e = ["checked"], S8e = { class: "checkbox-label" }, FX = /* @__PURE__ */ ft({
106318
+ }), _8e = ["checked"], x8e = { class: "checkbox-label" }, FX = /* @__PURE__ */ ft({
106355
106319
  __name: "Checkbox",
106356
106320
  props: {
106357
106321
  value: { type: Boolean },
@@ -106374,13 +106338,13 @@ const by = [
106374
106338
  class: "checkbox-original",
106375
106339
  type: "checkbox",
106376
106340
  checked: n.value
106377
- }, null, 8, x8e),
106378
- me("span", S8e, [
106341
+ }, null, 8, _8e),
106342
+ me("span", x8e, [
106379
106343
  Ar(a.$slots, "default")
106380
106344
  ])
106381
106345
  ], 34));
106382
106346
  }
106383
- }), w8e = { class: "w-full white-table-generator-content" }, T8e = { class: "text-[14px] font-[600] mb-[5px] user-select-none flex items-center justify-between" }, C8e = ["onMouseenter"], k8e = /* @__PURE__ */ ft({
106347
+ }), S8e = { class: "w-full white-table-generator-content" }, w8e = { class: "text-[14px] font-[600] mb-[5px] user-select-none flex items-center justify-between" }, T8e = ["onMouseenter"], C8e = /* @__PURE__ */ ft({
106384
106348
  __name: "TableGenerator",
106385
106349
  emits: ["insert", "close"],
106386
106350
  setup(n, { emit: e }) {
@@ -106389,8 +106353,8 @@ const by = [
106389
106353
  const [o, s] = i.value;
106390
106354
  t("insert", { row: o, col: s, checked: r.value });
106391
106355
  };
106392
- return (o, s) => (Ee(), et("div", w8e, [
106393
- me("div", T8e, [
106356
+ return (o, s) => (Ee(), et("div", S8e, [
106357
+ me("div", w8e, [
106394
106358
  me("span", null, "表格 " + Fn(`${i.value[0] || 0} * ${i.value[1] || 0}`), 1),
106395
106359
  Ve(FX, {
106396
106360
  value: r.value,
@@ -106417,7 +106381,7 @@ const by = [
106417
106381
  active: i.value.length && i.value[0] && i.value[1] && l <= i.value[0] && u <= i.value[1]
106418
106382
  }])
106419
106383
  }, null, 2)
106420
- ], 40, C8e)), 64))
106384
+ ], 40, T8e)), 64))
106421
106385
  ])), 64))
106422
106386
  ])
106423
106387
  ], 32)
@@ -106443,7 +106407,7 @@ const by = [
106443
106407
  "popup-type": "select"
106444
106408
  }, {
106445
106409
  content: $t(() => [
106446
- Ve(k8e, { onInsert: r })
106410
+ Ve(C8e, { onInsert: r })
106447
106411
  ]),
106448
106412
  _: 1
106449
106413
  }, 8, ["hide-text", "popup-visible"]));
@@ -106480,7 +106444,7 @@ const by = [
106480
106444
  Ar(a.$slots, "default")
106481
106445
  ], 2));
106482
106446
  }
106483
- }), M8e = { class: "w-[250px]" }, E8e = { class: "flex justify-end mt-[10px] gap-[10px]" }, C7 = /* @__PURE__ */ ft({
106447
+ }), k8e = { class: "w-[250px]" }, M8e = { class: "flex justify-end mt-[10px] gap-[10px]" }, C7 = /* @__PURE__ */ ft({
106484
106448
  __name: "link",
106485
106449
  props: {
106486
106450
  hideText: { type: Boolean, default: !0 }
@@ -106501,7 +106465,7 @@ const by = [
106501
106465
  "popup-type": "select"
106502
106466
  }, {
106503
106467
  content: $t(() => [
106504
- me("div", M8e, [
106468
+ me("div", k8e, [
106505
106469
  l[7] || (l[7] = me("div", { class: "font-[500] text-[14px] mb-[5px]" }, "链接到", -1)),
106506
106470
  Ve($m, {
106507
106471
  placeholder: "请输入网址",
@@ -106514,7 +106478,7 @@ const by = [
106514
106478
  value: t.value,
106515
106479
  "onUpdate:value": l[1] || (l[1] = (u) => t.value = u)
106516
106480
  }, null, 8, ["value"]),
106517
- me("div", E8e, [
106481
+ me("div", M8e, [
106518
106482
  Ve(vs, {
106519
106483
  onClick: l[2] || (l[2] = (u) => o())
106520
106484
  }, {
@@ -106539,7 +106503,7 @@ const by = [
106539
106503
  _: 1
106540
106504
  }, 8, ["hide-text", "popup-visible"]));
106541
106505
  }
106542
- }), A8e = ["onClick"], D8e = { class: "icon" }, yI = /* @__PURE__ */ ft({
106506
+ }), E8e = ["onClick"], A8e = { class: "icon" }, yI = /* @__PURE__ */ ft({
106543
106507
  __name: "MenusSelect",
106544
106508
  props: {
106545
106509
  value: {},
@@ -106605,7 +106569,7 @@ const by = [
106605
106569
  }]),
106606
106570
  key: T,
106607
106571
  onClick: (w) => g(b)
106608
- }, Fn(b.label), 11, A8e))), 128))
106572
+ }, Fn(b.label), 11, E8e))), 128))
106609
106573
  ])
106610
106574
  ], 4)
106611
106575
  ]),
@@ -106623,7 +106587,7 @@ const by = [
106623
106587
  placeholder: d.value
106624
106588
  }])
106625
106589
  }, Fn(f.value), 3),
106626
- me("div", D8e, [
106590
+ me("div", A8e, [
106627
106591
  Ar(y.$slots, "icon", {}, () => [
106628
106592
  _[1] || (_[1] = me("i", { class: "w-iconfont icon-bottom !text-[8px] transition-transform duration-200" }, null, -1))
106629
106593
  ])
@@ -106677,7 +106641,7 @@ const by = [
106677
106641
  "onUpdate:value": a[0] || (a[0] = (o) => _e(e)?.chain().focus().setFontFamily(o).run())
106678
106642
  }, null, 8, ["value"]));
106679
106643
  }
106680
- }), N8e = ["onClick"], O8e = /* @__PURE__ */ ft({
106644
+ }), D8e = ["onClick"], N8e = /* @__PURE__ */ ft({
106681
106645
  __name: "font-heading",
106682
106646
  setup(n) {
106683
106647
  const e = dt("editor"), t = ut(), r = fn(() => {
@@ -106715,12 +106679,12 @@ const by = [
106715
106679
  key: l,
106716
106680
  class: pn(["white-heading-wrapper cursor-pointer", { selected: s.value === r.value, [s.element]: !0 }]),
106717
106681
  onClick: (u) => i(s.value)
106718
- }, Fn(s.label), 11, N8e))), 128))
106682
+ }, Fn(s.label), 11, D8e))), 128))
106719
106683
  ]),
106720
106684
  _: 1
106721
106685
  }, 8, ["value", "options"]));
106722
106686
  }
106723
- }), I8e = /* @__PURE__ */ ft({
106687
+ }), O8e = /* @__PURE__ */ ft({
106724
106688
  __name: "Modal",
106725
106689
  props: {
106726
106690
  visible: { type: Boolean },
@@ -106792,7 +106756,7 @@ const by = [
106792
106756
  })
106793
106757
  ]));
106794
106758
  }
106795
- }), R8e = { class: "white-editor-table-content" }, L8e = ["id", "onFocus", "onBlur", "onPaste"], E7 = 30, A7 = 15, P8e = /* @__PURE__ */ ft({
106759
+ }), I8e = { class: "white-editor-table-content" }, R8e = ["id", "onFocus", "onBlur", "onPaste"], E7 = 30, A7 = 15, L8e = /* @__PURE__ */ ft({
106796
106760
  __name: "ChartData",
106797
106761
  props: {
106798
106762
  type: {},
@@ -106861,7 +106825,7 @@ const by = [
106861
106825
  }, h = (p, v, g) => {
106862
106826
  p.preventDefault(), console.log("handlePaste", p.clipboardData, v, g), p.clipboardData;
106863
106827
  };
106864
- return e({ getTableData: d, initData: s }), (p, v) => (Ee(), et("div", R8e, [
106828
+ return e({ getTableData: d, initData: s }), (p, v) => (Ee(), et("div", I8e, [
106865
106829
  me("table", null, [
106866
106830
  me("tbody", null, [
106867
106831
  (Ee(), et(cr, null, oi(E7, (g) => me("tr", { key: g }, [
@@ -106882,17 +106846,17 @@ const by = [
106882
106846
  onFocus: (y) => a.value = [g - 1, m - 1],
106883
106847
  onBlur: (y) => l(g - 1, m - 1),
106884
106848
  onPaste: (y) => h(y, g - 1, m - 1)
106885
- }, null, 42, L8e))
106849
+ }, null, 42, R8e))
106886
106850
  ], 2)), 64))
106887
106851
  ])), 64))
106888
106852
  ])
106889
106853
  ])
106890
106854
  ]));
106891
106855
  }
106892
- }), B8e = { class: "w-full inline-flex items-center mb-[15px]" }, z8e = { class: "flex items-center gap-[1.2rem] h-[400px]" }, F8e = { class: "w-[55%] h-full border rounded-md p-2" }, V8e = { class: "flex-1 h-full border rounded-md p-4" }, $8e = { class: "flex items-center gap-[10px] mb-[10px]" }, H8e = { class: "flex items-center gap-[10px] mb-[10px]" }, G8e = { class: "flex items-center gap-[10px] mb-[10px]" }, U8e = { class: "flex items-center gap-[10px] mb-[10px]" }, W8e = { class: "flex items-center gap-[10px] mb-[10px]" }, q8e = {
106856
+ }), P8e = { class: "w-full inline-flex items-center mb-[15px]" }, B8e = { class: "flex items-center gap-[1.2rem] h-[400px]" }, z8e = { class: "w-[55%] h-full border rounded-md p-2" }, F8e = { class: "flex-1 h-full border rounded-md p-4" }, V8e = { class: "flex items-center gap-[10px] mb-[10px]" }, $8e = { class: "flex items-center gap-[10px] mb-[10px]" }, H8e = { class: "flex items-center gap-[10px] mb-[10px]" }, G8e = { class: "flex items-center gap-[10px] mb-[10px]" }, U8e = { class: "flex items-center gap-[10px] mb-[10px]" }, W8e = {
106893
106857
  key: 0,
106894
106858
  class: "w-full h-[400px] overflow-auto"
106895
- }, j8e = { class: "flex items-center justify-end gap-[0.8rem] mt-6" }, IA = /* @__PURE__ */ ft({
106859
+ }, q8e = { class: "flex items-center justify-end gap-[0.8rem] mt-6" }, IA = /* @__PURE__ */ ft({
106896
106860
  __name: "echarts",
106897
106861
  props: {
106898
106862
  icon: { default: "chart" },
@@ -106975,7 +106939,7 @@ const by = [
106975
106939
  "hide-text": n.hideText,
106976
106940
  onMenuClick: f
106977
106941
  }, null, 8, ["ico", "text", "hide-text"]),
106978
- Ve(I8e, {
106942
+ Ve(O8e, {
106979
106943
  visible: i.value,
106980
106944
  "onUpdate:visible": T[8] || (T[8] = (w) => i.value = w),
106981
106945
  closeButton: "",
@@ -106983,7 +106947,7 @@ const by = [
106983
106947
  }, {
106984
106948
  default: $t(() => [
106985
106949
  T[17] || (T[17] = me("div", { class: "w-full mb-6 font-[500] text-[18px]" }, "图表配置", -1)),
106986
- me("div", B8e, [
106950
+ me("div", P8e, [
106987
106951
  me("span", {
106988
106952
  class: pn(["px-3 py-2 bg-[#f5f5f5] text-[#333] cursor-pointer rounded-l-md", { "!bg-[#007bff] !text-[#fff]": a.value === "type" }]),
106989
106953
  onClick: T[0] || (T[0] = (w) => g("type"))
@@ -106993,16 +106957,16 @@ const by = [
106993
106957
  onClick: T[1] || (T[1] = (w) => g("data"))
106994
106958
  }, " 图表数据 ", 2)
106995
106959
  ]),
106996
- La(me("div", z8e, [
106997
- me("div", F8e, [
106960
+ La(me("div", B8e, [
106961
+ me("div", z8e, [
106998
106962
  me("div", {
106999
106963
  ref_key: "chartRef",
107000
106964
  ref: l,
107001
106965
  class: "w-full h-full"
107002
106966
  }, null, 512)
107003
106967
  ]),
107004
- me("div", V8e, [
107005
- me("div", $8e, [
106968
+ me("div", F8e, [
106969
+ me("div", V8e, [
107006
106970
  T[9] || (T[9] = me("span", { class: "flex-shrink-0" }, "图表类型:", -1)),
107007
106971
  Ve(tm, {
107008
106972
  value: u.value.config.seriesType,
@@ -107022,7 +106986,7 @@ const by = [
107022
106986
  class: "flex-1"
107023
106987
  }, null, 8, ["value"])
107024
106988
  ]),
107025
- me("div", H8e, [
106989
+ me("div", $8e, [
107026
106990
  T[10] || (T[10] = me("span", { class: "flex-shrink-0" }, "标题名称:", -1)),
107027
106991
  Ve($m, {
107028
106992
  value: u.value.config.titleText,
@@ -107031,7 +106995,7 @@ const by = [
107031
106995
  class: "flex-1"
107032
106996
  }, null, 8, ["value"])
107033
106997
  ]),
107034
- me("div", G8e, [
106998
+ me("div", H8e, [
107035
106999
  Ve(FX, {
107036
107000
  value: u.value.config.legend,
107037
107001
  "onUpdate:value": T[4] || (T[4] = (w) => u.value.config.legend = w),
@@ -107044,7 +107008,7 @@ const by = [
107044
107008
  }, 8, ["value"])
107045
107009
  ]),
107046
107010
  u.value.config.legend ? (Ee(), et(cr, { key: 0 }, [
107047
- me("div", U8e, [
107011
+ me("div", G8e, [
107048
107012
  T[12] || (T[12] = me("span", { class: "flex-shrink-0" }, "横向位置:", -1)),
107049
107013
  Ve(tm, {
107050
107014
  value: u.value.config.legendleft,
@@ -107057,7 +107021,7 @@ const by = [
107057
107021
  class: "flex-1"
107058
107022
  }, null, 8, ["value"])
107059
107023
  ]),
107060
- me("div", W8e, [
107024
+ me("div", U8e, [
107061
107025
  T[13] || (T[13] = me("span", { class: "flex-shrink-0" }, "纵向位置:", -1)),
107062
107026
  Ve(tm, {
107063
107027
  value: u.value.config.legendlocation,
@@ -107085,14 +107049,14 @@ const by = [
107085
107049
  ], 512), [
107086
107050
  [lk, a.value === "type"]
107087
107051
  ]),
107088
- a.value === "data" ? (Ee(), et("div", q8e, [
107089
- Ve(P8e, {
107052
+ a.value === "data" ? (Ee(), et("div", W8e, [
107053
+ Ve(L8e, {
107090
107054
  type: u.value.config.seriesType,
107091
107055
  data: u.value.data,
107092
107056
  onUpdateData: v
107093
107057
  }, null, 8, ["type", "data"])
107094
107058
  ])) : Dn("", !0),
107095
- me("div", j8e, [
107059
+ me("div", q8e, [
107096
107060
  Ve(vs, {
107097
107061
  onClick: T[7] || (T[7] = (w) => i.value = !1)
107098
107062
  }, {
@@ -107176,7 +107140,7 @@ const by = [
107176
107140
  onMenuClick: t
107177
107141
  }, null, 8, ["menu-active", "disabled"]));
107178
107142
  }
107179
- }), K8e = /* @__PURE__ */ ft({
107143
+ }), j8e = /* @__PURE__ */ ft({
107180
107144
  __name: "align-justify",
107181
107145
  setup(n) {
107182
107146
  const e = dt("editor");
@@ -107190,7 +107154,7 @@ const by = [
107190
107154
  onMenuClick: r[0] || (r[0] = (i) => _e(e)?.chain().focus().setTextAlign("justify").run())
107191
107155
  }, null, 8, ["menu-active", "disabled"]));
107192
107156
  }
107193
- }), Y8e = /* @__PURE__ */ ft({
107157
+ }), K8e = /* @__PURE__ */ ft({
107194
107158
  __name: "align-distributed",
107195
107159
  setup(n) {
107196
107160
  const e = dt("editor");
@@ -107204,7 +107168,7 @@ const by = [
107204
107168
  onMenuClick: r[0] || (r[0] = (i) => _e(e)?.chain().focus().setTextAlign("distributed").run())
107205
107169
  }, null, 8, ["menu-active", "disabled"]));
107206
107170
  }
107207
- }), X8e = /* @__PURE__ */ ft({
107171
+ }), Y8e = /* @__PURE__ */ ft({
107208
107172
  __name: "size-increase",
107209
107173
  setup(n) {
107210
107174
  const e = dt("editor"), t = (i) => {
@@ -107227,7 +107191,7 @@ const by = [
107227
107191
  onMenuClick: r
107228
107192
  }));
107229
107193
  }
107230
- }), Z8e = /* @__PURE__ */ ft({
107194
+ }), X8e = /* @__PURE__ */ ft({
107231
107195
  __name: "size-decrease",
107232
107196
  setup(n) {
107233
107197
  const e = dt("editor"), t = (i) => {
@@ -107250,7 +107214,7 @@ const by = [
107250
107214
  onMenuClick: r
107251
107215
  }));
107252
107216
  }
107253
- }), J8e = { class: "p-[5px] bg-[#f3f4f6] rounded-[5px]" }, Q8e = { class: "w-[240px] h-[50px] white-no-scrollbar overflow-x-auto" }, e6e = ["onClick"], t6e = { class: "font-[500]" }, n6e = { class: "text-[12px] text-[#737373]" }, r6e = /* @__PURE__ */ ft({
107217
+ }), Z8e = { class: "p-[5px] bg-[#f3f4f6] rounded-[5px]" }, J8e = { class: "w-[240px] h-[50px] white-no-scrollbar overflow-x-auto" }, Q8e = ["onClick"], e6e = { class: "font-[500]" }, t6e = { class: "text-[12px] text-[#737373]" }, n6e = /* @__PURE__ */ ft({
107254
107218
  __name: "heading",
107255
107219
  setup(n) {
107256
107220
  const e = dt("editor"), t = fn(() => {
@@ -107275,8 +107239,8 @@ const by = [
107275
107239
  }), r = (i) => {
107276
107240
  e.value?.isEditable !== !1 && (i === "paragraph" ? e.value?.chain().focus().setParagraph().run() : e.value?.chain().focus().toggleHeading({ level: Number(i) }).run());
107277
107241
  };
107278
- return (i, a) => (Ee(), et("div", J8e, [
107279
- me("div", Q8e, [
107242
+ return (i, a) => (Ee(), et("div", Z8e, [
107243
+ me("div", J8e, [
107280
107244
  me("div", {
107281
107245
  class: pn(["flex items-center w-max h-full", { "opacity-50 cursor-not-allowed": _e(e)?.isEditable === !1 }])
107282
107246
  }, [
@@ -107288,14 +107252,14 @@ const by = [
107288
107252
  }]),
107289
107253
  onClick: (s) => r(o.value)
107290
107254
  }, [
107291
- me("div", t6e, Fn(o.label), 1),
107292
- me("div", n6e, Fn(o.element === "p" ? "段落" : o.element), 1)
107293
- ], 10, e6e))), 128))
107255
+ me("div", e6e, Fn(o.label), 1),
107256
+ me("div", t6e, Fn(o.element === "p" ? "段落" : o.element), 1)
107257
+ ], 10, Q8e))), 128))
107294
107258
  ], 2)
107295
107259
  ])
107296
107260
  ]));
107297
107261
  }
107298
- }), i6e = { class: "text-[14px]" }, Eu = /* @__PURE__ */ ft({
107262
+ }), r6e = { class: "text-[14px]" }, Eu = /* @__PURE__ */ ft({
107299
107263
  __name: "MenusCheck",
107300
107264
  props: {
107301
107265
  ico: { default: "" },
@@ -107310,10 +107274,10 @@ const by = [
107310
107274
  me("i", {
107311
107275
  class: pn(["w-iconfont", `icon-${n.ico}`])
107312
107276
  }, null, 2),
107313
- me("div", i6e, Fn(n.text), 1)
107277
+ me("div", r6e, Fn(n.text), 1)
107314
107278
  ], 16));
107315
107279
  }
107316
- }), a6e = /* @__PURE__ */ ft({
107280
+ }), i6e = /* @__PURE__ */ ft({
107317
107281
  __name: "image",
107318
107282
  props: {
107319
107283
  hideText: { type: Boolean, default: !0 },
@@ -107336,7 +107300,7 @@ const by = [
107336
107300
  onMenuClick: a[0] || (a[0] = (o) => r("image"))
107337
107301
  }, null, 8, ["hide-text"]));
107338
107302
  }
107339
- }), o6e = /* @__PURE__ */ ft({
107303
+ }), a6e = /* @__PURE__ */ ft({
107340
107304
  __name: "audio",
107341
107305
  props: {
107342
107306
  isInset: { type: Boolean, default: !1 }
@@ -107356,7 +107320,7 @@ const by = [
107356
107320
  onMenuClick: i[0] || (i[0] = (a) => _e(e)?.chain().focus().selectFiles("audio", _e(t)).run())
107357
107321
  }));
107358
107322
  }
107359
- }), s6e = /* @__PURE__ */ ft({
107323
+ }), o6e = /* @__PURE__ */ ft({
107360
107324
  __name: "video",
107361
107325
  props: {
107362
107326
  isInset: { type: Boolean, default: !1 }
@@ -107376,7 +107340,7 @@ const by = [
107376
107340
  onMenuClick: i[0] || (i[0] = (a) => _e(e)?.chain().focus().selectFiles("video", _e(t)).run())
107377
107341
  }));
107378
107342
  }
107379
- }), l6e = /* @__PURE__ */ ft({
107343
+ }), s6e = /* @__PURE__ */ ft({
107380
107344
  __name: "tag",
107381
107345
  props: {
107382
107346
  isInset: { type: Boolean, default: !1 }
@@ -107396,7 +107360,7 @@ const by = [
107396
107360
  onMenuClick: r[0] || (r[0] = (i) => _e(e)?.chain().focus().insertTag().run())
107397
107361
  }));
107398
107362
  }
107399
- }), u6e = /* @__PURE__ */ ft({
107363
+ }), l6e = /* @__PURE__ */ ft({
107400
107364
  __name: "file",
107401
107365
  props: {
107402
107366
  hideText: { type: Boolean, default: !0 },
@@ -107417,7 +107381,7 @@ const by = [
107417
107381
  onMenuClick: i[0] || (i[0] = (a) => _e(e)?.chain().focus().selectFiles("file", _e(t)).run())
107418
107382
  }, null, 8, ["hide-text"]));
107419
107383
  }
107420
- }), c6e = /* @__PURE__ */ ft({
107384
+ }), u6e = /* @__PURE__ */ ft({
107421
107385
  __name: "data-time",
107422
107386
  props: {
107423
107387
  isInset: { type: Boolean, default: !1 }
@@ -107457,7 +107421,7 @@ const by = [
107457
107421
  }))
107458
107422
  }));
107459
107423
  }
107460
- }), f6e = /* @__PURE__ */ ft({
107424
+ }), c6e = /* @__PURE__ */ ft({
107461
107425
  __name: "divider",
107462
107426
  props: {
107463
107427
  isInset: { type: Boolean, default: !1 }
@@ -107477,29 +107441,29 @@ const by = [
107477
107441
  onMenuClick: r[0] || (r[0] = (i) => _e(e).chain().focus().setHr({ type: "signle", color: "#000" }).run())
107478
107442
  }));
107479
107443
  }
107480
- }), d6e = { class: "w-[310px] max-h-[400px] overflow-auto white-no-scrollbar" }, h6e = { class: "flex flex-wrap gap-[0.5rem]" }, p6e = ["onClick"], v6e = /* @__PURE__ */ ft({
107444
+ }), f6e = { class: "w-[310px] max-h-[400px] overflow-auto white-no-scrollbar" }, d6e = { class: "flex flex-wrap gap-[0.5rem]" }, h6e = ["onClick"], p6e = /* @__PURE__ */ ft({
107481
107445
  __name: "emoji-content",
107482
107446
  emits: ["select"],
107483
107447
  setup(n, { emit: e }) {
107484
107448
  const t = e, r = (i) => {
107485
107449
  t("select", i);
107486
107450
  };
107487
- return (i, a) => (Ee(), et("div", d6e, [
107488
- (Ee(!0), et(cr, null, oi(_e(n8e), (o, s) => (Ee(), et(cr, { key: s }, [
107451
+ return (i, a) => (Ee(), et("div", f6e, [
107452
+ (Ee(!0), et(cr, null, oi(_e(t8e), (o, s) => (Ee(), et(cr, { key: s }, [
107489
107453
  me("div", {
107490
107454
  class: pn(["text-[12px] text-[#666] mb-[10px]", s !== 0 ? "mt-[10px]" : ""])
107491
107455
  }, Fn(o.label), 3),
107492
- me("div", h6e, [
107456
+ me("div", d6e, [
107493
107457
  (Ee(!0), et(cr, null, oi(o.items.split(" "), (l, u) => (Ee(), et("div", {
107494
107458
  key: u,
107495
107459
  class: "text-[25px] w-[32px] h-[32px] rounded-[4px] cursor-pointer flex items-center justify-center hover:bg-[#f1f2f2]",
107496
107460
  onClick: (c) => r(l)
107497
- }, Fn(l), 9, p6e))), 128))
107461
+ }, Fn(l), 9, h6e))), 128))
107498
107462
  ])
107499
107463
  ], 64))), 128))
107500
107464
  ]));
107501
107465
  }
107502
- }), g6e = /* @__PURE__ */ ft({
107466
+ }), v6e = /* @__PURE__ */ ft({
107503
107467
  __name: "emoji",
107504
107468
  props: {
107505
107469
  hideText: { type: Boolean, default: !0 },
@@ -107521,7 +107485,7 @@ const by = [
107521
107485
  trigger: "mouseenter"
107522
107486
  }, {
107523
107487
  content: $t(() => [
107524
- Ve(v6e, { onSelect: i })
107488
+ Ve(p6e, { onSelect: i })
107525
107489
  ]),
107526
107490
  default: $t(() => [
107527
107491
  me("div", {
@@ -107537,7 +107501,7 @@ const by = [
107537
107501
  _: 1
107538
107502
  }, 8, ["hide-text", "popup-visible"]));
107539
107503
  }
107540
- }), m6e = { class: "w-full text-center pb-2" }, y6e = { class: "w-[175px] h-[80px] flex items-center gap-[6px]" }, b6e = ["onMouseenter", "onClick"], _6e = /* @__PURE__ */ ft({
107504
+ }), g6e = { class: "w-full text-center pb-2" }, m6e = { class: "w-[175px] h-[80px] flex items-center gap-[6px]" }, y6e = ["onMouseenter", "onClick"], b6e = /* @__PURE__ */ ft({
107541
107505
  __name: "columns",
107542
107506
  setup(n) {
107543
107507
  const e = dt("editor"), t = ut(!1), r = ut([1, 2, 3, 4, 5]), i = ut(0), a = (s) => {
@@ -107557,14 +107521,14 @@ const by = [
107557
107521
  trigger: "mouseenter"
107558
107522
  }, {
107559
107523
  content: $t(() => [
107560
- me("div", m6e, Fn(i.value) + " 分栏", 1),
107561
- me("div", y6e, [
107524
+ me("div", g6e, Fn(i.value) + " 分栏", 1),
107525
+ me("div", m6e, [
107562
107526
  (Ee(!0), et(cr, null, oi(r.value, (u) => (Ee(), et("div", {
107563
107527
  key: u,
107564
107528
  class: pn(["w-[30px] h-full bg-[rgba(23,26,29,0.06)] rounded-[4px] cursor-pointer flex-shrink-0", { "!bg-[#007bff]": i.value >= u }]),
107565
107529
  onMouseenter: (c) => a(u),
107566
107530
  onClick: (c) => o(u)
107567
- }, null, 42, b6e))), 128))
107531
+ }, null, 42, y6e))), 128))
107568
107532
  ])
107569
107533
  ]),
107570
107534
  default: $t(() => [
@@ -107582,7 +107546,7 @@ const by = [
107582
107546
  _: 1
107583
107547
  }, 8, ["popup-visible"]));
107584
107548
  }
107585
- }), x6e = /* @__PURE__ */ ft({
107549
+ }), _6e = /* @__PURE__ */ ft({
107586
107550
  __name: "code-block",
107587
107551
  setup(n) {
107588
107552
  const e = dt("editor");
@@ -107592,7 +107556,7 @@ const by = [
107592
107556
  onMenuClick: r[0] || (r[0] = (i) => _e(e)?.chain().focus().setCodeBlock().run())
107593
107557
  }));
107594
107558
  }
107595
- }), S6e = /* @__PURE__ */ ft({
107559
+ }), x6e = /* @__PURE__ */ ft({
107596
107560
  __name: "web-page",
107597
107561
  setup(n) {
107598
107562
  const e = dt("editor"), t = () => {
@@ -107604,7 +107568,7 @@ const by = [
107604
107568
  onMenuClick: i[0] || (i[0] = (a) => t())
107605
107569
  }));
107606
107570
  }
107607
- }), w6e = ["disabled"], T6e = { class: "w-[110px]" }, N7 = /* @__PURE__ */ ft({
107571
+ }), S6e = ["disabled"], w6e = { class: "w-[110px]" }, N7 = /* @__PURE__ */ ft({
107608
107572
  __name: "insert-menu",
107609
107573
  props: {
107610
107574
  hideText: { type: Boolean, default: !1 }
@@ -107623,18 +107587,18 @@ const by = [
107623
107587
  "popup-type": "select"
107624
107588
  }, {
107625
107589
  content: $t(() => [
107626
- me("div", T6e, [
107590
+ me("div", w6e, [
107591
+ Ve(i6e, { isInset: !0 }),
107627
107592
  Ve(a6e, { isInset: !0 }),
107628
107593
  Ve(o6e, { isInset: !0 }),
107594
+ Ve(l6e, { isInset: !0 }),
107629
107595
  Ve(s6e, { isInset: !0 }),
107630
107596
  Ve(u6e, { isInset: !0 }),
107631
- Ve(l6e, { isInset: !0 }),
107632
107597
  Ve(c6e, { isInset: !0 }),
107633
- Ve(f6e, { isInset: !0 }),
107634
- Ve(g6e),
107598
+ Ve(v6e),
107599
+ Ve(b6e),
107635
107600
  Ve(_6e),
107636
- Ve(x6e),
107637
- Ve(S6e)
107601
+ Ve(x6e)
107638
107602
  ])
107639
107603
  ]),
107640
107604
  default: $t(() => [
@@ -107647,7 +107611,7 @@ const by = [
107647
107611
  }, [...i[1] || (i[1] = [
107648
107612
  me("i", { class: "w-iconfont icon-add-circle" }, null, -1),
107649
107613
  me("span", { class: "text-[14px]" }, "插入", -1)
107650
- ])], 10, w6e)), [
107614
+ ])], 10, S6e)), [
107651
107615
  [a, "插入元素"]
107652
107616
  ]) : Dn("", !0)
107653
107617
  ]),
@@ -107669,44 +107633,44 @@ const by = [
107669
107633
  onMenuClick: r[0] || (r[0] = (i) => _e(e)?.chain().focus().toggleTaskList().run())
107670
107634
  }, null, 8, ["menu-active", "disabled"]));
107671
107635
  }
107672
- }), C6e = { class: "flex w-full h-full" }, k6e = {
107636
+ }), T6e = { class: "flex w-full h-full" }, C6e = {
107673
107637
  key: 0,
107674
107638
  class: "inline-flex items-center mx-auto"
107675
- }, M6e = { class: "pr-[20px] flex-shrink-0" }, E6e = { class: "space-y-[6px] px-[20px] border-r border-l" }, A6e = { class: "space-x-[5px] flex" }, D6e = { class: "space-x-[5px] flex" }, N6e = { class: "space-y-[6px] px-[20px] border-r" }, O6e = { class: "space-x-[8px] flex" }, I6e = { class: "space-x-[5px] flex" }, R6e = { class: "space-y-[6px] px-[20px] border-r" }, L6e = { class: "space-x-[5px] flex" }, P6e = { class: "space-x-[5px] flex" }, B6e = { class: "px-[20px] border-r" }, z6e = { class: "space-x-[6px] pl-[20px] flex" }, F6e = {
107639
+ }, k6e = { class: "pr-[20px] flex-shrink-0" }, M6e = { class: "space-y-[6px] px-[20px] border-r border-l" }, E6e = { class: "space-x-[5px] flex" }, A6e = { class: "space-x-[5px] flex" }, D6e = { class: "space-y-[6px] px-[20px] border-r" }, N6e = { class: "space-x-[8px] flex" }, O6e = { class: "space-x-[5px] flex" }, I6e = { class: "space-y-[6px] px-[20px] border-r" }, R6e = { class: "space-x-[5px] flex" }, L6e = { class: "space-x-[5px] flex" }, P6e = { class: "px-[20px] border-r" }, B6e = { class: "space-x-[6px] pl-[20px] flex" }, z6e = {
107676
107640
  key: 1,
107677
107641
  class: "inline-flex items-center gap-[10px] mx-auto"
107678
- }, V6e = { class: "px-4 inline-flex items-center" }, $6e = /* @__PURE__ */ ft({
107642
+ }, F6e = { class: "px-4 inline-flex items-center" }, V6e = /* @__PURE__ */ ft({
107679
107643
  __name: "index",
107680
107644
  setup(n) {
107681
107645
  const e = dt("page");
107682
- return (t, r) => (Ee(), et("div", C6e, [
107646
+ return (t, r) => (Ee(), et("div", T6e, [
107683
107647
  Ve(T4e, {
107684
107648
  ref: "scrollableRef",
107685
107649
  class: "flex-1 h-full p-[10px]"
107686
107650
  }, {
107687
107651
  default: $t(() => [
107688
- _e(e).toolbar === "double" ? (Ee(), et("div", k6e, [
107689
- me("div", M6e, [
107652
+ _e(e).toolbar === "double" ? (Ee(), et("div", C6e, [
107653
+ me("div", k6e, [
107690
107654
  Ve(N7)
107691
107655
  ]),
107692
- me("div", E6e, [
107693
- me("div", A6e, [
107656
+ me("div", M6e, [
107657
+ me("div", E6e, [
107694
107658
  Ve(b7),
107695
107659
  Ve(_7)
107696
107660
  ]),
107697
- me("div", D6e, [
107661
+ me("div", A6e, [
107698
107662
  Ve(x7),
107699
107663
  Ve(S7)
107700
107664
  ])
107701
107665
  ]),
107702
- me("div", N6e, [
107703
- me("div", O6e, [
107666
+ me("div", D6e, [
107667
+ me("div", N6e, [
107704
107668
  Ve(M7),
107705
107669
  Ve(k7),
107706
- Ve(X8e),
107707
- Ve(Z8e)
107670
+ Ve(Y8e),
107671
+ Ve(X8e)
107708
107672
  ]),
107709
- me("div", I6e, [
107673
+ me("div", O6e, [
107710
107674
  Ve(CA),
107711
107675
  Ve(kA),
107712
107676
  Ve(MA),
@@ -107717,8 +107681,8 @@ const by = [
107717
107681
  Ve(s7)
107718
107682
  ])
107719
107683
  ]),
107720
- me("div", R6e, [
107721
- me("div", L6e, [
107684
+ me("div", I6e, [
107685
+ me("div", R6e, [
107722
107686
  Ve(f7),
107723
107687
  Ve(d7),
107724
107688
  Ve(h7),
@@ -107726,32 +107690,32 @@ const by = [
107726
107690
  Ve(y7),
107727
107691
  Ve(O7)
107728
107692
  ]),
107729
- me("div", P6e, [
107693
+ me("div", L6e, [
107730
107694
  Ve(Ev),
107731
107695
  Ve(kv),
107732
107696
  Ve(Mv),
107697
+ Ve(j8e),
107733
107698
  Ve(K8e),
107734
- Ve(Y8e),
107735
107699
  Ve(g7),
107736
107700
  Ve(m7),
107737
107701
  Ve(w7)
107738
107702
  ])
107739
107703
  ]),
107740
- me("div", B6e, [
107741
- Ve(r6e)
107704
+ me("div", P6e, [
107705
+ Ve(n6e)
107742
107706
  ]),
107743
- me("div", z6e, [
107707
+ me("div", B6e, [
107744
107708
  Ve(T7, { hideText: !1 }),
107745
107709
  Ve(IA, { hideText: !1 }),
107746
107710
  Ve(C7, { hideText: !1 })
107747
107711
  ])
107748
- ])) : (Ee(), et("div", F6e, [
107712
+ ])) : (Ee(), et("div", z6e, [
107749
107713
  Ve(N7, { hideText: !0 }),
107750
107714
  Ve(b7),
107751
107715
  Ve(_7),
107752
107716
  Ve(x7),
107753
107717
  Ve(S7),
107754
- Ve(O8e),
107718
+ Ve(N8e),
107755
107719
  Ve(M7),
107756
107720
  Ve(k7),
107757
107721
  Ve(CA),
@@ -107779,21 +107743,21 @@ const by = [
107779
107743
  ]),
107780
107744
  _: 1
107781
107745
  }, 512),
107782
- me("div", V6e, [
107746
+ me("div", F6e, [
107783
107747
  Ve(k4e)
107784
107748
  ])
107785
107749
  ]));
107786
107750
  }
107787
- }), H6e = { class: "h-full flex items-center gap-[0.8rem]" }, G6e = {
107751
+ }), $6e = { class: "h-full flex items-center gap-[0.8rem]" }, H6e = {
107788
107752
  key: 0,
107789
107753
  class: "min-w-[100px] flex items-center gap-[0.4rem] rounded hover:text-[#007aff] px-[0.4rem] py-[0.3rem] cursor-pointer select-none"
107790
- }, U6e = ["onClick"], W6e = { class: "text-[14px] font-[500]" }, q6e = {
107754
+ }, G6e = ["onClick"], U6e = { class: "text-[14px] font-[500]" }, W6e = {
107791
107755
  key: 0,
107792
107756
  class: "text-[12px] ml-[0.4rem]"
107793
- }, j6e = {
107757
+ }, q6e = {
107794
107758
  key: 0,
107795
107759
  class: "min-w-[100px] flex items-center gap-[0.4rem] rounded hover:text-[#007aff] px-[0.4rem] py-[0.3rem] cursor-pointer select-none"
107796
- }, K6e = { class: "flex-1 text-center text-[14px]" }, Y6e = { class: "w-[150px] flex flex-col gap-[0.8rem] text-[14px] px-[0.6rem]" }, X6e = { class: "flex justify-between" }, Z6e = { class: "flex justify-between" }, J6e = { class: "flex justify-between" }, Q6e = { class: "flex justify-between" }, eBe = /* @__PURE__ */ ft({
107760
+ }, j6e = { class: "flex-1 text-center text-[14px]" }, K6e = { class: "w-[150px] flex flex-col gap-[0.8rem] text-[14px] px-[0.6rem]" }, Y6e = { class: "flex justify-between" }, X6e = { class: "flex justify-between" }, Z6e = { class: "flex justify-between" }, J6e = { class: "flex justify-between" }, Q6e = /* @__PURE__ */ ft({
107797
107761
  __name: "FootLeft",
107798
107762
  setup(n) {
107799
107763
  const e = ut(!1), t = ut(!1), r = dt("page"), i = dt("editor"), a = dt("options"), o = ut({
@@ -107845,7 +107809,7 @@ const by = [
107845
107809
  i.value && i.value.off("update", u);
107846
107810
  }), (c, f) => {
107847
107811
  const d = Ud("tooltip");
107848
- return Ee(), et("div", H6e, [
107812
+ return Ee(), et("div", $6e, [
107849
107813
  _e(a).layout.toc.show ? La((Ee(), et("span", {
107850
107814
  key: 0,
107851
107815
  class: pn(["cursor-pointer hover:bg-[#e8e8e8] p-[0.3rem] rounded", { "bg-[#e8e8e8]": _e(r).showToc }]),
@@ -107888,17 +107852,17 @@ const by = [
107888
107852
  }
107889
107853
  }, {
107890
107854
  content: $t(() => [
107891
- (Ee(!0), et(cr, null, oi(_e(t8e), (h, p) => (Ee(), et("div", {
107855
+ (Ee(!0), et(cr, null, oi(_e(a).dicts.pageSizeOption, (h, p) => (Ee(), et("div", {
107892
107856
  class: pn(["px-[12px] py-[7px] flex items-center gap-[0.4rem] cursor-pointer hover:bg-[rgb(242,243,245)]", s.value === h.label ? "text-[#007aff]" : ""]),
107893
107857
  key: p,
107894
107858
  onClick: (v) => l(h)
107895
107859
  }, [
107896
- me("span", W6e, Fn(h.label), 1),
107897
- h.width ? (Ee(), et("span", q6e, Fn(h.width) + " * " + Fn(h.height) + "cm ", 1)) : Dn("", !0)
107898
- ], 10, U6e))), 128))
107860
+ me("span", U6e, Fn(h.label), 1),
107861
+ h.width ? (Ee(), et("span", W6e, Fn(h.width) + " * " + Fn(h.height) + "cm ", 1)) : Dn("", !0)
107862
+ ], 10, G6e))), 128))
107899
107863
  ]),
107900
107864
  default: $t(() => [
107901
- _e(a).layout.foot.pageSize ? (Ee(), et("div", G6e, [
107865
+ _e(a).layout.foot.pageSize ? (Ee(), et("div", H6e, [
107902
107866
  f[4] || (f[4] = me("span", { class: "flex-1 text-center text-[14px]" }, "页面大小", -1)),
107903
107867
  me("i", {
107904
107868
  class: pn(["w-iconfont icon-bottom !text-[8px] transition-transform duration-200", t.value ? "rotate-180" : ""])
@@ -107914,28 +107878,28 @@ const by = [
107914
107878
  placement: "top"
107915
107879
  }, {
107916
107880
  content: $t(() => [
107917
- me("div", Y6e, [
107918
- me("div", X6e, [
107881
+ me("div", K6e, [
107882
+ me("div", Y6e, [
107919
107883
  f[5] || (f[5] = me("span", { class: "w-[80px]" }, "字符数:", -1)),
107920
107884
  tr(" " + Fn(o.value.characters), 1)
107921
107885
  ]),
107922
- me("div", Z6e, [
107886
+ me("div", X6e, [
107923
107887
  f[6] || (f[6] = me("span", { class: "w-[80px]" }, "段落:", -1)),
107924
107888
  tr(" " + Fn(o.value.paragraphs), 1)
107925
107889
  ]),
107926
- me("div", J6e, [
107890
+ me("div", Z6e, [
107927
107891
  f[7] || (f[7] = me("span", { class: "w-[80px]" }, "图片:", -1)),
107928
107892
  tr(" " + Fn(o.value.images), 1)
107929
107893
  ]),
107930
- me("div", Q6e, [
107894
+ me("div", J6e, [
107931
107895
  f[8] || (f[8] = me("span", { class: "w-[80px]" }, "标题:", -1)),
107932
107896
  tr(" " + Fn(o.value.headings), 1)
107933
107897
  ])
107934
107898
  ])
107935
107899
  ]),
107936
107900
  default: $t(() => [
107937
- _e(a).layout.foot.character ? (Ee(), et("div", j6e, [
107938
- me("span", K6e, Fn(o.value.characters) + " 字符", 1),
107901
+ _e(a).layout.foot.character ? (Ee(), et("div", q6e, [
107902
+ me("span", j6e, Fn(o.value.characters) + " 字符", 1),
107939
107903
  me("i", {
107940
107904
  class: pn(["w-iconfont icon-bottom !text-[8px] transition-transform duration-200", e.value ? "rotate-180" : ""])
107941
107905
  }, null, 2)
@@ -107947,12 +107911,12 @@ const by = [
107947
107911
  };
107948
107912
  }
107949
107913
  });
107950
- var mb = { exports: {} }, tBe = mb.exports, I7;
107951
- function nBe() {
107914
+ var mb = { exports: {} }, eBe = mb.exports, I7;
107915
+ function tBe() {
107952
107916
  return I7 || (I7 = 1, (function(n, e) {
107953
107917
  (function(t, r) {
107954
107918
  r();
107955
- })(tBe, function() {
107919
+ })(eBe, function() {
107956
107920
  function t(u, c) {
107957
107921
  return typeof c > "u" ? c = { autoBom: !1 } : typeof c != "object" && (console.warn("Deprecated: Expected third argument to be a object"), c = { autoBom: !c }), c.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type) ? new Blob(["\uFEFF", u], { type: u.type }) : u;
107958
107922
  }
@@ -108018,12 +107982,12 @@ function nBe() {
108018
107982
  });
108019
107983
  })(mb)), mb.exports;
108020
107984
  }
108021
- var rBe = nBe();
108022
- const iBe = () => {
107985
+ var nBe = tBe();
107986
+ const rBe = () => {
108023
107987
  const n = document.createElement("iframe");
108024
107988
  return n.style.width = "0", n.style.height = "0", n.style.position = "absolute", n.style.right = "0", n.style.top = "0", n.style.border = "0", document.body.appendChild(n), n;
108025
- }, aBe = async (n, e) => {
108026
- const t = iBe(), r = t.contentWindow;
107989
+ }, iBe = async (n, e) => {
107990
+ const t = rBe(), r = t.contentWindow;
108027
107991
  if (!t.contentDocument || !r) return;
108028
107992
  t.contentDocument.write(n), t.contentDocument.close();
108029
107993
  const i = () => {
@@ -108032,7 +107996,7 @@ const iBe = () => {
108032
107996
  t.removeEventListener("load", i), r.removeEventListener("afterprint", a), document.body.removeChild(t), e();
108033
107997
  };
108034
107998
  t.addEventListener("load", i), r.addEventListener("afterprint", a);
108035
- }, oBe = /* @__PURE__ */ ft({
107999
+ }, aBe = /* @__PURE__ */ ft({
108036
108000
  __name: "print",
108037
108001
  setup(n) {
108038
108002
  const e = dt("options"), t = dt("container"), r = dt("page"), i = fn(() => e.value?.dicts?.lineHeights?.find((c) => c.default)?.value ?? 1.7), a = () => {
@@ -108119,7 +108083,7 @@ const iBe = () => {
108119
108083
  </body>
108120
108084
  </html>`;
108121
108085
  }, u = async () => {
108122
- aBe(l(), () => {
108086
+ iBe(l(), () => {
108123
108087
  console.log("打印完成");
108124
108088
  });
108125
108089
  };
@@ -108131,10 +108095,10 @@ const iBe = () => {
108131
108095
  tr(" 导出为PDF ", -1)
108132
108096
  ])]));
108133
108097
  }
108134
- }), sBe = { class: "flex items-center gap-[20px] text-[#333] foot-action" }, lBe = {
108098
+ }), oBe = { class: "flex items-center gap-[20px] text-[#333] foot-action" }, sBe = {
108135
108099
  key: 0,
108136
108100
  class: "cursor-pointer flex items-center gap-[0.4rem] text-[14px] hover:text-[#007aff]"
108137
- }, uBe = /* @__PURE__ */ ft({
108101
+ }, lBe = /* @__PURE__ */ ft({
108138
108102
  __name: "FootRight",
108139
108103
  setup(n) {
108140
108104
  const e = dt("editor"), t = dt("options"), r = async () => {
@@ -108147,9 +108111,9 @@ const iBe = () => {
108147
108111
  const a = new Blob([e.value.getText()], {
108148
108112
  type: "text/plain;charset=utf-8"
108149
108113
  }), { title: o } = t.value.document ?? {}, s = o !== "" ? t.value?.document?.title : "无标题文档";
108150
- rBe.saveAs(a, `${s}.txt`);
108114
+ nBe.saveAs(a, `${s}.txt`);
108151
108115
  };
108152
- return (a, o) => (Ee(), et("div", sBe, [
108116
+ return (a, o) => (Ee(), et("div", oBe, [
108153
108117
  _e(t).layout.foot.copy ? (Ee(), et("span", {
108154
108118
  key: 0,
108155
108119
  class: "cursor-pointer flex items-center gap-[0.4rem] text-[14px] hover:text-[#007aff]",
@@ -108174,10 +108138,10 @@ const iBe = () => {
108174
108138
  me("i", { class: "w-iconfont icon-text" }, null, -1),
108175
108139
  tr(" 导出为文本 ", -1)
108176
108140
  ])]),
108177
- Ve(oBe)
108141
+ Ve(aBe)
108178
108142
  ]),
108179
108143
  default: $t(() => [
108180
- _e(t).layout.foot.download ? (Ee(), et("span", lBe, [...o[3] || (o[3] = [
108144
+ _e(t).layout.foot.download ? (Ee(), et("span", sBe, [...o[3] || (o[3] = [
108181
108145
  me("i", { class: "w-iconfont icon-down" }, null, -1),
108182
108146
  tr(" 下载 ", -1)
108183
108147
  ])])) : Dn("", !0)
@@ -108186,15 +108150,15 @@ const iBe = () => {
108186
108150
  })
108187
108151
  ]));
108188
108152
  }
108189
- }), cBe = { class: "w-full h-full flex items-center justify-between" }, fBe = /* @__PURE__ */ ft({
108153
+ }), uBe = { class: "w-full h-full flex items-center justify-between" }, cBe = /* @__PURE__ */ ft({
108190
108154
  __name: "index",
108191
108155
  setup(n) {
108192
- return (e, t) => (Ee(), et("div", cBe, [
108193
- Ve(eBe),
108194
- Ve(uBe)
108156
+ return (e, t) => (Ee(), et("div", uBe, [
108157
+ Ve(Q6e),
108158
+ Ve(lBe)
108195
108159
  ]));
108196
108160
  }
108197
- }), dBe = ["width", "height"], hBe = { class: "text-[#666]" }, pBe = /* @__PURE__ */ ft({
108161
+ }), fBe = ["width", "height"], dBe = { class: "text-[#666]" }, hBe = /* @__PURE__ */ ft({
108198
108162
  __name: "Nodata",
108199
108163
  props: {
108200
108164
  size: { default: "1em" },
@@ -108216,17 +108180,17 @@ const iBe = () => {
108216
108180
  height: n.size
108217
108181
  }, [...t[0] || (t[0] = [
108218
108182
  yZ('<path d="M927.053254 896q0 1.254249-0.496852 2.508497t-1.484497 2.508497q-0.993704 1.248189-2.48426 2.49032-1.478438 1.248189-3.453728 2.48426-1.969231 1.230012-4.429254 2.447905-2.453964 1.217893-5.392663 2.423669-2.938698 1.199716-6.343953 2.381254-3.405254 1.187598-7.277065 2.3449-3.87787 1.163361-8.198059 2.302485-4.320189 1.133065-9.088757 2.241893t-9.967338 2.181302q-5.210888 1.084592-10.82168 2.126769-5.616852 1.048237-11.645728 2.060119-6.022817 1.005822-12.439479 1.97529-6.422722 0.969467-13.208994 1.90258-6.792331 0.933112-13.948213 1.817751-7.149822 0.890698-14.645018 1.738982-7.495195 0.842225-15.311527 1.635977-7.822391 0.799811-15.94168 1.551148-8.125349 0.745278-16.541539 1.442082-8.404071 0.702864-17.086863 1.345137-8.670675 0.648331-17.589776 1.24213-8.919101 0.593799-18.068449 1.127006-9.14329 0.539266-18.480474 1.01794-9.349302 0.484734-18.874319 0.908876-9.518959 0.424142-19.201515 0.787693-9.676497 0.36355-19.492355 0.666508-9.809799 0.302959-19.728663 0.551385-9.918864 0.242367-19.928615 0.430201-9.997633 0.181775-20.067977 0.302959-10.064284 0.127243-20.170982 0.187834-10.100639 0.060592-20.213396 0.060592-10.118817 0-20.219456-0.060592-10.100639-0.060592-20.164923-0.181775-10.070343-0.121183-20.074035-0.302959-10.003692-0.187834-19.922557-0.43626-9.924923-0.242367-19.734722-0.545325-9.815858-0.309018-19.492355-0.672568-9.676497-0.36355-19.201514-0.787693-9.518959-0.424142-18.868261-0.908876-9.343243-0.478675-18.486532-1.01794-9.14329-0.533207-18.062391-1.127006t-17.595834-1.24213q-8.676734-0.642272-17.086864-1.345137-8.41013-0.696805-16.535479-1.442082-8.11929-0.751337-15.935622-1.551148-7.822391-0.793751-15.317585-1.635977-7.495195-0.848284-14.651077-1.732923-7.149822-0.890698-13.936095-1.817751-6.798391-0.933112-13.208994-1.908639-6.422722-0.969467-12.445539-1.981349-6.028876-1.005822-11.645727-2.05406-5.622911-1.042178-10.821681-2.12071t-9.967337-2.187361q-4.768568-1.108828-9.088757-2.241893-4.326249-1.139124-8.19806-2.302485-3.871811-1.157302-7.277065-2.3449-3.411314-1.181538-6.343952-2.387313-2.938698-1.199716-5.392663-2.423669-2.460024-1.211834-4.435314-2.447905-1.969231-1.230012-3.453728-2.478201-1.484497-1.24213-2.478201-2.49032-0.987645-1.254249-1.484497-2.508497-0.496852-1.254249-0.496852-2.508497 0-1.260308 0.496852-2.514556t1.484497-2.508497q0.993704-1.248189 2.478201-2.49032 1.484497-1.24213 3.453728-2.478201 1.97529-1.230012 4.435314-2.453964 2.453964-1.211834 5.392663-2.423669 2.932639-1.199716 6.343952-2.381255 3.405254-1.181538 7.271006-2.344899 3.87787-1.163361 8.198059-2.302485 4.326249-1.133065 9.094817-2.241894 4.768568-1.108828 9.967337-2.181301 5.198769-1.084592 10.821681-2.12677 5.616852-1.042178 11.645727-2.060118 6.022817-1.005822 12.43948-1.97529 6.422722-0.969467 13.208994-1.90258 6.792331-0.933112 13.942154-1.817751 7.149822-0.890698 14.651077-1.732923 7.495195-0.848284 15.311526-1.642036 7.816331-0.799811 15.941681-1.551148 8.125349-0.745278 16.535479-1.442083 8.41013-0.702864 17.086864-1.345136 8.676734-0.648331 17.595834-1.24213 8.919101-0.58774 18.062391-1.127006 9.149349-0.539266 18.486532-1.017941 9.349302-0.484734 18.868261-0.908875 9.525018-0.424142 19.207574-0.787693 9.676497-0.36355 19.486295-0.666509 9.815858-0.302959 19.734722-0.551384 9.918864-0.242367 19.922557-0.430201 10.003692-0.181775 20.074035-0.302959 10.058225-0.127243 20.164923-0.187834 10.100639-0.060592 20.219456-0.060592 10.118817 0 20.213396 0.060592 10.106698 0.060592 20.170982 0.181775 10.064284 0.121183 20.067977 0.309018 10.009751 0.181775 19.928615 0.424142 9.918864 0.248426 19.728663 0.557443 9.815858 0.302959 19.492355 0.666509 9.682556 0.36355 19.207574 0.787693 9.518959 0.424142 18.862201 0.908875 9.343243 0.484734 18.486533 1.017941 9.149349 0.539266 18.068449 1.127006 8.919101 0.593799 17.595835 1.24213 8.676734 0.642272 17.086864 1.345136 8.41013 0.696805 16.535479 1.442083 8.11929 0.751337 15.935621 1.551148 7.816331 0.793751 15.317586 1.635976 7.495195 0.848284 14.645018 1.738983 7.149822 0.884639 13.948213 1.817751 6.786272 0.933112 13.208994 1.90258 6.416663 0.969467 12.439479 1.981349 6.028876 1.011882 11.645728 2.054059 5.616852 1.042178 10.82168 2.12071 5.198769 1.078533 9.967338 2.187361t9.088757 2.241894q4.326249 1.139124 8.198059 2.302485t7.271006 2.344899q3.411314 1.181538 6.350012 2.387314 2.938698 1.199716 5.392663 2.423669 2.460024 1.211834 4.423195 2.447905 1.981349 1.236071 3.465846 2.478201 1.484497 1.24213 2.478201 2.49032 0.987645 1.254249 1.484497 2.508497 0.496852 1.254249 0.496852 2.514556z" fill="#007bff" opacity=".1"></path><path d="M117.426746 376.832c0 8.70703 6.695385 15.36 15.450887 15.36 8.755503 0 15.450888-6.65297 15.450888-15.36 0-8.70097-6.695385-15.36-15.450888-15.36-8.240473 0-15.450888 7.168-15.450887 15.36z m814.776804 455.16497c-19.571124 5.12-23.691361 9.222059-28.326627 28.16303-5.150296-19.449941-9.270533-23.552-28.326627-28.16303 19.056095-5.12 23.691361-9.209941 28.326627-28.15697 4.635266 18.94703 8.755503 23.552 28.326627 28.15697zM203.436686 323.07503c-25.23645 6.65297-30.386746 11.77297-37.08213 36.864-6.695385-25.08497-11.84568-30.21103-37.08213-36.864 25.23645-6.65903 30.386746-12.288 37.08213-36.864 6.180355 25.08497 11.84568 30.20497 37.08213 36.864z m618.035503-88.064c-15.450888 4.096-18.541065 7.168-22.661301 22.528-4.120237-15.36-7.210414-18.432-22.661302-22.528 15.450888-4.096 18.541065-7.168 22.661302-22.528 3.605207 15.36 7.210414 18.432 22.661301 22.528z m66.438817-78.848c-40.172308 10.24-48.412781 18.94097-59.228402 58.87697-10.300592-39.929941-19.056095-48.128-59.228403-58.87697 40.172308-10.24 48.412781-18.94703 59.228403-58.88303 10.300592 39.42703 19.056095 48.128 59.228402 58.88303z" fill="#007bff" opacity=".5"></path><path d="M422.32426 713.21297v4.096l33.991953 31.23503 130.302485-62.97903-117.941775 75.26703v36.864l19.056095-18.432v-0.51503 0.51503l19.056094 18.432 100.945799-122.88v-4.096l-185.410651 42.49297z" fill="#007bff" opacity=".2"></path><path d="M865.249704 551.936v-1.024c0-1.024-0.51503-1.53297-0.515029-2.55697v-0.51503L754.003314 260.61103c-15.965917-48.64303-61.288521-81.41103-112.79148-81.41103H389.362367c-51.502959 0-96.825562 32.768-112.791479 81.41103L165.839527 547.84v0.51503c-0.51503 1.024-0.51503 1.53297-0.51503 2.55697v206.848c0 65.02097 53.048047 117.76 118.456805 117.76h463.526627c65.408757 0 118.456805-52.73903 118.456805-117.76v-204.8c-0.51503-0.50897-0.51503-0.50897-0.51503-1.024zM305.412544 271.36q0-0.50897 0.51503-0.50897c11.330651-36.864 45.322604-60.93103 83.434793-60.93103h251.334438c38.112189 0 72.104142 24.06703 83.949822 60.416q0 0.51503 0.51503 0.51503l102.490887 266.24H592.284024c-8.755503 0-15.450888 6.65297-15.450888 15.36 0 33.792-27.811598 61.44-61.80355 61.44-33.991953 0-61.80355-27.648-61.80355-61.44 0-8.70703-6.695385-15.36-15.450888-15.36H202.921657l102.490887-265.73103zM834.347929 757.76c0 48.128-39.142249 87.04-87.55503 87.04h-463.526627c-48.412781 0-87.55503-38.912-87.555029-87.04V568.32h228.158106c7.210414 43.52303 45.322604 76.8 91.160237 76.8 45.837633 0 83.949822-33.27697 91.160236-76.8H834.347929v189.44z" fill="#007bff" opacity=".5"></path><path d="M515.029586 578.566059c-14.420828 0-25.751479-11.264-25.751479-25.6v-51.2H254.939645l84.464852-219.136 0.51503-1.024c7.210414-21.504 26.781538-35.84 49.44284-35.84h251.334438c22.661302 0 42.232426 14.336 49.44284 35.84l0.51503 1.024 84.464852 219.136H540.781065v51.2c0 14.336-11.330651 25.6-25.751479 25.6z" fill="#007bff" opacity=".2"></path>', 5)
108219
- ])], 8, dBe)),
108220
- me("p", hBe, Fn(n.title), 1)
108183
+ ])], 8, fBe)),
108184
+ me("p", dBe, Fn(n.title), 1)
108221
108185
  ], 4));
108222
108186
  }
108223
- }), vBe = { class: "w-[260px] h-full flex flex-col overflow-hidden" }, gBe = {
108187
+ }), pBe = { class: "w-[260px] h-full flex flex-col overflow-hidden" }, vBe = {
108224
108188
  key: 0,
108225
108189
  class: "h-[50px] flex-none flex items-center px-4 text-[15px] text-[#666] hover:text-[#333]"
108226
- }, mBe = { class: "overflow-y-auto min-h-0" }, yBe = {
108190
+ }, gBe = { class: "overflow-y-auto min-h-0" }, mBe = {
108227
108191
  key: 0,
108228
108192
  class: "flex-1 px-4 py-2 space-y-[0.3rem]"
108229
- }, bBe = ["onClick"], _Be = /* @__PURE__ */ ft({
108193
+ }, yBe = ["onClick"], bBe = /* @__PURE__ */ ft({
108230
108194
  __name: "EditorToc",
108231
108195
  setup(n) {
108232
108196
  const e = dt("editor"), t = dt("page"), r = dt("options"), i = ut([]), a = ut(""), o = /* @__PURE__ */ Oce(() => {
@@ -108255,8 +108219,8 @@ const iBe = () => {
108255
108219
  f.setSelection(new Qt(f.doc.resolve(c)));
108256
108220
  e.value.view.dispatch(f), e.value.view.focus();
108257
108221
  };
108258
- return (l, u) => (Ee(), et("div", vBe, [
108259
- _e(r).layout.foot.show ? (Ee(), et("div", gBe, [
108222
+ return (l, u) => (Ee(), et("div", pBe, [
108223
+ _e(r).layout.foot.show ? (Ee(), et("div", vBe, [
108260
108224
  me("span", {
108261
108225
  class: "flex items-center gap-2 cursor-pointer",
108262
108226
  onClick: u[0] || (u[0] = (c) => _e(t).showToc = !1)
@@ -108265,22 +108229,22 @@ const iBe = () => {
108265
108229
  tr(" 收起大纲 ", -1)
108266
108230
  ])])
108267
108231
  ])) : Dn("", !0),
108268
- me("div", mBe, [
108269
- i.value?.length ? (Ee(), et("ul", yBe, [
108232
+ me("div", gBe, [
108233
+ i.value?.length ? (Ee(), et("ul", mBe, [
108270
108234
  (Ee(!0), et(cr, null, oi(i.value, (c) => (Ee(), et("li", {
108271
108235
  key: c.id,
108272
108236
  class: pn(["cursor-pointer text-[#333] text-[14px] h-[34px] block leading-[34px] pr-2 hover:text-[#101219] rounded text-ellipsis overflow-hidden whitespace-nowrap", a.value === c.id ? "font-bold bg-[#f5f5f5]" : ""]),
108273
108237
  style: Zn({ textIndent: `${c.level}rem` }),
108274
108238
  onClick: (f) => s(c)
108275
- }, Fn(c.textContent), 15, bBe))), 128))
108276
- ])) : (Ee(), Tt(pBe, {
108239
+ }, Fn(c.textContent), 15, yBe))), 128))
108240
+ ])) : (Ee(), Tt(hBe, {
108277
108241
  key: 1,
108278
108242
  size: "120px"
108279
108243
  }))
108280
108244
  ])
108281
108245
  ]));
108282
108246
  }
108283
- }), xBe = /* @__PURE__ */ ft({
108247
+ }), _Be = /* @__PURE__ */ ft({
108284
108248
  __name: "flip",
108285
108249
  setup(n) {
108286
108250
  const e = dt("editor"), t = fn(() => {
@@ -108329,7 +108293,7 @@ const iBe = () => {
108329
108293
  onMenuClick: t
108330
108294
  }));
108331
108295
  }
108332
- }), SBe = /* @__PURE__ */ ft({
108296
+ }), xBe = /* @__PURE__ */ ft({
108333
108297
  __name: "covert",
108334
108298
  setup(n) {
108335
108299
  const e = dt("editor"), t = fn(() => (e.value ? uu(e.value) : null)?.type?.name === "inlineImage" ? "转为节点图片" : "转为行内图片"), r = () => {
@@ -108362,20 +108326,20 @@ const iBe = () => {
108362
108326
  onMenuClick: r[0] || (r[0] = (i) => _e(e)?.chain().focus().deleteSelectionNode().run())
108363
108327
  }));
108364
108328
  }
108365
- }), wBe = { class: "flex items-center gap-2" }, TBe = /* @__PURE__ */ ft({
108329
+ }), SBe = { class: "flex items-center gap-2" }, wBe = /* @__PURE__ */ ft({
108366
108330
  __name: "image-menu",
108367
108331
  setup(n) {
108368
- return (e, t) => (Ee(), et("div", wBe, [
108332
+ return (e, t) => (Ee(), et("div", SBe, [
108369
108333
  Ve(Ev),
108370
108334
  Ve(kv),
108371
108335
  Ve(Mv),
108336
+ Ve(_Be),
108372
108337
  Ve(xBe),
108373
- Ve(SBe),
108374
108338
  Ve(VX),
108375
108339
  Ve(lh)
108376
108340
  ]));
108377
108341
  }
108378
- }), CBe = /* @__PURE__ */ ft({
108342
+ }), TBe = /* @__PURE__ */ ft({
108379
108343
  __name: "down",
108380
108344
  setup(n) {
108381
108345
  const e = dt("editor"), t = () => {
@@ -108390,19 +108354,19 @@ const iBe = () => {
108390
108354
  onMenuClick: i[0] || (i[0] = (a) => t())
108391
108355
  })) : Dn("", !0);
108392
108356
  }
108393
- }), kBe = { class: "flex items-center gap-2" }, MBe = /* @__PURE__ */ ft({
108357
+ }), CBe = { class: "flex items-center gap-2" }, kBe = /* @__PURE__ */ ft({
108394
108358
  __name: "file-menu",
108395
108359
  setup(n) {
108396
108360
  const e = dt("editor");
108397
- return (t, r) => (Ee(), et("div", kBe, [
108361
+ return (t, r) => (Ee(), et("div", CBe, [
108398
108362
  Ve(Ev),
108399
108363
  Ve(kv),
108400
108364
  Ve(Mv),
108401
- _e(e)?.isActive("file") || _e(e)?.isActive("video") || _e(e)?.isActive("audio") ? (Ee(), Tt(CBe, { key: 0 })) : Dn("", !0),
108365
+ _e(e)?.isActive("file") || _e(e)?.isActive("video") || _e(e)?.isActive("audio") ? (Ee(), Tt(TBe, { key: 0 })) : Dn("", !0),
108402
108366
  Ve(lh)
108403
108367
  ]));
108404
108368
  }
108405
- }), EBe = /* @__PURE__ */ ft({
108369
+ }), MBe = /* @__PURE__ */ ft({
108406
108370
  __name: "cell-background",
108407
108371
  props: {
108408
108372
  text: {
@@ -108454,7 +108418,7 @@ const iBe = () => {
108454
108418
  _: 1
108455
108419
  }, 8, ["popup-visible", "disabled"]));
108456
108420
  }
108457
- }), ABe = /* @__PURE__ */ ft({
108421
+ }), EBe = /* @__PURE__ */ ft({
108458
108422
  __name: "cell-insert",
108459
108423
  props: {
108460
108424
  hideText: { type: Boolean, default: !0 }
@@ -108492,7 +108456,7 @@ const iBe = () => {
108492
108456
  }, null, 8, ["hide-text", "disabled"])
108493
108457
  ], 64));
108494
108458
  }
108495
- }), DBe = /* @__PURE__ */ ft({
108459
+ }), ABe = /* @__PURE__ */ ft({
108496
108460
  __name: "cell-delete",
108497
108461
  props: {
108498
108462
  hideText: { type: Boolean, default: !0 }
@@ -108516,7 +108480,7 @@ const iBe = () => {
108516
108480
  }, null, 8, ["hide-text", "disabled"])
108517
108481
  ], 64));
108518
108482
  }
108519
- }), NBe = /* @__PURE__ */ ft({
108483
+ }), DBe = /* @__PURE__ */ ft({
108520
108484
  __name: "cell-merge",
108521
108485
  props: {
108522
108486
  hideText: { type: Boolean, default: !0 }
@@ -108540,7 +108504,7 @@ const iBe = () => {
108540
108504
  }, null, 8, ["hide-text", "disabled"])
108541
108505
  ], 64));
108542
108506
  }
108543
- }), OBe = /* @__PURE__ */ ft({
108507
+ }), NBe = /* @__PURE__ */ ft({
108544
108508
  __name: "table-delete",
108545
108509
  setup(n) {
108546
108510
  const e = dt("editor");
@@ -108553,21 +108517,21 @@ const iBe = () => {
108553
108517
  onMenuClick: r[0] || (r[0] = (i) => _e(e)?.chain().focus().deleteTable().run())
108554
108518
  }, null, 8, ["disabled"]));
108555
108519
  }
108556
- }), IBe = { class: "flex items-center gap-2" }, RBe = /* @__PURE__ */ ft({
108520
+ }), OBe = { class: "flex items-center gap-2" }, IBe = /* @__PURE__ */ ft({
108557
108521
  __name: "table-menu",
108558
108522
  setup(n) {
108559
- return (e, t) => (Ee(), et("div", IBe, [
108523
+ return (e, t) => (Ee(), et("div", OBe, [
108560
108524
  Ve(Ev),
108561
108525
  Ve(kv),
108562
108526
  Ve(Mv),
108527
+ Ve(MBe),
108563
108528
  Ve(EBe),
108564
108529
  Ve(ABe),
108565
108530
  Ve(DBe),
108566
- Ve(NBe),
108567
- Ve(OBe)
108531
+ Ve(NBe)
108568
108532
  ]));
108569
108533
  }
108570
- }), LBe = /* @__PURE__ */ ft({
108534
+ }), RBe = /* @__PURE__ */ ft({
108571
108535
  __name: "tag-input",
108572
108536
  setup(n) {
108573
108537
  const e = ut(""), t = dt("editor"), r = () => {
@@ -108601,7 +108565,7 @@ const iBe = () => {
108601
108565
  })
108602
108566
  ], 64));
108603
108567
  }
108604
- }), PBe = { class: "px-2" }, BBe = ["onClick"], zBe = /* @__PURE__ */ ft({
108568
+ }), LBe = { class: "px-2" }, PBe = ["onClick"], BBe = /* @__PURE__ */ ft({
108605
108569
  __name: "tag-color",
108606
108570
  setup(n) {
108607
108571
  const e = dt("editor"), t = ut("#007bff"), r = ut(!1), i = [
@@ -108633,7 +108597,7 @@ const iBe = () => {
108633
108597
  "onUpdate:popupVisible": l[2] || (l[2] = (u) => r.value = u)
108634
108598
  }, {
108635
108599
  content: $t(() => [
108636
- me("div", PBe, [
108600
+ me("div", LBe, [
108637
108601
  (Ee(), et(cr, null, oi(i, (u, c) => me("div", {
108638
108602
  key: c,
108639
108603
  onClick: (f) => a(u),
@@ -108642,7 +108606,7 @@ const iBe = () => {
108642
108606
  }, [
108643
108607
  l[3] || (l[3] = me("i", { class: "w-iconfont icon-tumo !text-[14px]" }, null, -1)),
108644
108608
  tr(" " + Fn(u.label), 1)
108645
- ], 12, BBe)), 64)),
108609
+ ], 12, PBe)), 64)),
108646
108610
  me("div", {
108647
108611
  class: "h-[30px] w-[90px] flex items-center justify-center gap-2 mb-2 rounded-[3px] cursor-pointer border",
108648
108612
  onClick: l[0] || (l[0] = (u) => o())
@@ -108655,16 +108619,16 @@ const iBe = () => {
108655
108619
  _: 1
108656
108620
  }, 8, ["popup-visible"]));
108657
108621
  }
108658
- }), FBe = { class: "flex items-center gap-2" }, VBe = /* @__PURE__ */ ft({
108622
+ }), zBe = { class: "flex items-center gap-2" }, FBe = /* @__PURE__ */ ft({
108659
108623
  __name: "tag-menu",
108660
108624
  setup(n) {
108661
- return (e, t) => (Ee(), et("div", FBe, [
108662
- Ve(LBe),
108663
- Ve(zBe),
108625
+ return (e, t) => (Ee(), et("div", zBe, [
108626
+ Ve(RBe),
108627
+ Ve(BBe),
108664
108628
  Ve(lh)
108665
108629
  ]));
108666
108630
  }
108667
- }), $Be = /* @__PURE__ */ ft({
108631
+ }), VBe = /* @__PURE__ */ ft({
108668
108632
  __name: "ai-operation",
108669
108633
  setup(n) {
108670
108634
  const e = dt("editor"), t = dt("assistant"), r = () => {
@@ -108677,7 +108641,7 @@ const iBe = () => {
108677
108641
  onMenuClick: r
108678
108642
  }));
108679
108643
  }
108680
- }), HBe = { class: "px-2" }, GBe = ["onClick"], UBe = /* @__PURE__ */ ft({
108644
+ }), $Be = { class: "px-2" }, HBe = ["onClick"], GBe = /* @__PURE__ */ ft({
108681
108645
  __name: "high-background",
108682
108646
  setup(n) {
108683
108647
  const e = dt("editor"), t = ut("#007bff"), r = ut(!1), i = [
@@ -108706,7 +108670,7 @@ const iBe = () => {
108706
108670
  "onUpdate:popupVisible": l[2] || (l[2] = (u) => r.value = u)
108707
108671
  }, {
108708
108672
  content: $t(() => [
108709
- me("div", HBe, [
108673
+ me("div", $Be, [
108710
108674
  (Ee(), et(cr, null, oi(i, (u, c) => me("div", {
108711
108675
  key: c,
108712
108676
  onClick: (f) => a(u),
@@ -108715,7 +108679,7 @@ const iBe = () => {
108715
108679
  }, [
108716
108680
  l[3] || (l[3] = me("i", { class: "w-iconfont icon-tumo !text-[14px]" }, null, -1)),
108717
108681
  tr(" " + Fn(u.label), 1)
108718
- ], 12, GBe)), 64)),
108682
+ ], 12, HBe)), 64)),
108719
108683
  me("div", {
108720
108684
  class: "h-[30px] w-[90px] flex items-center justify-center gap-2 mb-2 rounded-[3px] cursor-pointer border",
108721
108685
  onClick: l[0] || (l[0] = (u) => o())
@@ -108728,27 +108692,27 @@ const iBe = () => {
108728
108692
  _: 1
108729
108693
  }, 8, ["popup-visible"]));
108730
108694
  }
108731
- }), WBe = { class: "flex items-center gap-2" }, qBe = /* @__PURE__ */ ft({
108695
+ }), UBe = { class: "flex items-center gap-2" }, WBe = /* @__PURE__ */ ft({
108732
108696
  __name: "text-menu",
108733
108697
  setup(n) {
108734
- return (e, t) => (Ee(), et("div", WBe, [
108735
- Ve($Be),
108698
+ return (e, t) => (Ee(), et("div", UBe, [
108699
+ Ve(VBe),
108736
108700
  Ve(CA),
108737
108701
  Ve(kA),
108738
108702
  Ve(MA),
108739
108703
  Ve(EA),
108740
108704
  Ve(zX),
108741
- Ve(UBe),
108705
+ Ve(GBe),
108742
108706
  Ve(lh)
108743
108707
  ]));
108744
108708
  }
108745
- }), jBe = { class: "flex items-center gap-2" }, KBe = {
108709
+ }), qBe = { class: "flex items-center gap-2" }, jBe = {
108746
108710
  key: 0,
108747
108711
  class: "flex items-center gap-2 py-2 px-1"
108748
- }, YBe = { class: "flex-1 h-[90px] flex flex-col justify-between gap-1" }, XBe = { class: "mb-2" }, ZBe = { class: "flex items-center gap-2" }, JBe = ["innerHTML"], QBe = {
108712
+ }, KBe = { class: "flex-1 h-[90px] flex flex-col justify-between gap-1" }, YBe = { class: "mb-2" }, XBe = { class: "flex items-center gap-2" }, ZBe = ["innerHTML"], JBe = {
108749
108713
  key: 1,
108750
108714
  class: "text-[12px] text-[#999]"
108751
- }, eze = ["onClick"], tze = ["innerHTML"], nze = { class: "flex items-center gap-2" }, rze = /* @__PURE__ */ ft({
108715
+ }, QBe = ["onClick"], eze = ["innerHTML"], tze = { class: "flex items-center gap-2" }, nze = /* @__PURE__ */ ft({
108752
108716
  __name: "iframe-menu",
108753
108717
  setup(n) {
108754
108718
  const e = dt("editor"), t = ut(), r = ut(""), i = ut(""), a = fn(() => Cg.find((l) => l.value === i.value)), o = (l) => {
@@ -108760,8 +108724,8 @@ const iBe = () => {
108760
108724
  src: u ? u(r.value) : r.value
108761
108725
  }).run();
108762
108726
  };
108763
- return (l, u) => (Ee(), et("div", jBe, [
108764
- _e(e)?.getAttributes("iframe").src == "" ? (Ee(), et("div", KBe, [
108727
+ return (l, u) => (Ee(), et("div", qBe, [
108728
+ _e(e)?.getAttributes("iframe").src == "" ? (Ee(), et("div", jBe, [
108765
108729
  u[3] || (u[3] = me("div", { class: "flex flex-col items-center gap-1 h-[80px]" }, [
108766
108730
  me("span", {
108767
108731
  class: "w-[24px] h-[24px] text-center rounded-full bg-[#007bff] text-[12px] text-[#fff] font-500",
@@ -108773,8 +108737,8 @@ const iBe = () => {
108773
108737
  style: { "line-height": "24px" }
108774
108738
  }, " 2 ")
108775
108739
  ], -1)),
108776
- me("div", YBe, [
108777
- me("div", XBe, [
108740
+ me("div", KBe, [
108741
+ me("div", YBe, [
108778
108742
  Ve(tm, {
108779
108743
  value: i.value,
108780
108744
  "onUpdate:value": u[0] || (u[0] = (c) => i.value = c),
@@ -108795,24 +108759,24 @@ const iBe = () => {
108795
108759
  }, [
108796
108760
  me("span", {
108797
108761
  innerHTML: c.icon
108798
- }, null, 8, tze),
108762
+ }, null, 8, eze),
108799
108763
  tr(" " + Fn(c.label), 1)
108800
- ], 10, eze))), 128))
108764
+ ], 10, QBe))), 128))
108801
108765
  ]),
108802
108766
  default: $t(() => [
108803
- me("div", ZBe, [
108767
+ me("div", XBe, [
108804
108768
  a.value && Object.keys(a.value).length ? (Ee(), et(cr, { key: 0 }, [
108805
108769
  me("span", {
108806
108770
  innerHTML: a.value.icon
108807
- }, null, 8, JBe),
108771
+ }, null, 8, ZBe),
108808
108772
  tr(" " + Fn(a.value.label), 1)
108809
- ], 64)) : (Ee(), et("span", QBe, "选择网页类型"))
108773
+ ], 64)) : (Ee(), et("span", JBe, "选择网页类型"))
108810
108774
  ])
108811
108775
  ]),
108812
108776
  _: 1
108813
108777
  }, 8, ["value", "options"])
108814
108778
  ]),
108815
- me("div", nze, [
108779
+ me("div", tze, [
108816
108780
  Ve($m, {
108817
108781
  value: r.value,
108818
108782
  "onUpdate:value": u[1] || (u[1] = (c) => r.value = c),
@@ -108841,10 +108805,10 @@ const iBe = () => {
108841
108805
  ], 64))
108842
108806
  ]));
108843
108807
  }
108844
- }), ize = { class: "flex items-center gap-2" }, aze = /* @__PURE__ */ ft({
108808
+ }), rze = { class: "flex items-center gap-2" }, ize = /* @__PURE__ */ ft({
108845
108809
  __name: "echarts-menu",
108846
108810
  setup(n) {
108847
- return (e, t) => (Ee(), et("div", ize, [
108811
+ return (e, t) => (Ee(), et("div", rze, [
108848
108812
  Ve(Ev),
108849
108813
  Ve(kv),
108850
108814
  Ve(Mv),
@@ -108856,13 +108820,13 @@ const iBe = () => {
108856
108820
  Ve(lh)
108857
108821
  ]));
108858
108822
  }
108859
- }), oze = "data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='14'%20cy='14'%20r='11.0833'%20fill='%23258AFF'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.8581%2011.2155C11.9065%2011.1088%2012.058%2011.1088%2012.1064%2011.2155L14.6199%2016.7534C14.6609%2016.8437%2014.5948%2016.9461%2014.4957%2016.9461H11.6756C11.461%2016.9461%2011.2663%2017.072%2011.1782%2017.2677L10.7355%2018.2514C10.6273%2018.492%2010.8033%2018.7642%2011.0671%2018.7642H16.0477C16.7417%2018.7642%2017.2037%2018.0471%2016.9169%2017.4152L12.8512%208.45725C12.5122%207.71045%2011.4515%207.71057%2011.1127%208.45743L6.67056%2018.2504C6.56136%2018.4911%206.73737%2018.7642%207.00171%2018.7642H8.08241C8.29645%2018.7642%208.49072%2018.639%208.57914%2018.4441L11.8581%2011.2155ZM19.373%2018.4441C19.4614%2018.639%2019.6557%2018.7642%2019.8698%2018.7642H20.9504C21.2147%2018.7642%2021.3907%2018.4911%2021.2816%2018.2504L16.7334%208.22172C16.645%208.02677%2016.4508%207.90156%2016.2367%207.90156L15.156%207.90156C14.8917%207.90156%2014.7157%208.17464%2014.8249%208.41537L19.373%2018.4441Z'%20fill='white'/%3e%3c/svg%3e", sze = ["maxlength", "disabled"], lze = ["disabled", "loading"], uze = {
108823
+ }), aze = "data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='14'%20cy='14'%20r='11.0833'%20fill='%23258AFF'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.8581%2011.2155C11.9065%2011.1088%2012.058%2011.1088%2012.1064%2011.2155L14.6199%2016.7534C14.6609%2016.8437%2014.5948%2016.9461%2014.4957%2016.9461H11.6756C11.461%2016.9461%2011.2663%2017.072%2011.1782%2017.2677L10.7355%2018.2514C10.6273%2018.492%2010.8033%2018.7642%2011.0671%2018.7642H16.0477C16.7417%2018.7642%2017.2037%2018.0471%2016.9169%2017.4152L12.8512%208.45725C12.5122%207.71045%2011.4515%207.71057%2011.1127%208.45743L6.67056%2018.2504C6.56136%2018.4911%206.73737%2018.7642%207.00171%2018.7642H8.08241C8.29645%2018.7642%208.49072%2018.639%208.57914%2018.4441L11.8581%2011.2155ZM19.373%2018.4441C19.4614%2018.639%2019.6557%2018.7642%2019.8698%2018.7642H20.9504C21.2147%2018.7642%2021.3907%2018.4911%2021.2816%2018.2504L16.7334%208.22172C16.645%208.02677%2016.4508%207.90156%2016.2367%207.90156L15.156%207.90156C14.8917%207.90156%2014.7157%208.17464%2014.8249%208.41537L19.373%2018.4441Z'%20fill='white'/%3e%3c/svg%3e", oze = ["maxlength", "disabled"], sze = ["disabled", "loading"], lze = {
108860
108824
  key: 0,
108861
108825
  class: "w-iconfont icon-send"
108862
- }, cze = {
108826
+ }, uze = {
108863
108827
  key: 1,
108864
108828
  class: "w-iconfont icon-loading animate-spin"
108865
- }, fze = ["innerHTML"], dze = { class: "flex items-center gap-2 text-handle" }, hze = /* @__PURE__ */ ft({
108829
+ }, cze = ["innerHTML"], fze = { class: "flex items-center gap-2 text-handle" }, dze = /* @__PURE__ */ ft({
108866
108830
  __name: "assistant",
108867
108831
  setup(n) {
108868
108832
  const e = dt("editor"), t = dt("assistant"), r = dt("options"), i = ut(null), a = ut(""), o = ut({
@@ -108935,7 +108899,7 @@ const iBe = () => {
108935
108899
  }, [
108936
108900
  y[7] || (y[7] = me("div", { class: "flex-shrink-0" }, [
108937
108901
  me("img", {
108938
- src: oze,
108902
+ src: aze,
108939
108903
  alt: "ai",
108940
108904
  class: "w-8 h-8"
108941
108905
  })
@@ -108949,7 +108913,7 @@ const iBe = () => {
108949
108913
  disabled: s.value,
108950
108914
  autocomplete: "false",
108951
108915
  placeholder: "告诉AI下一步怎么做"
108952
- }, null, 10, sze), [
108916
+ }, null, 10, oze), [
108953
108917
  [bZ, a.value]
108954
108918
  ]),
108955
108919
  me("button", {
@@ -108958,8 +108922,8 @@ const iBe = () => {
108958
108922
  loading: s.value,
108959
108923
  onClick: u
108960
108924
  }, [
108961
- s.value ? (Ee(), et("i", cze)) : (Ee(), et("i", uze))
108962
- ], 8, lze)
108925
+ s.value ? (Ee(), et("i", uze)) : (Ee(), et("i", lze))
108926
+ ], 8, sze)
108963
108927
  ], 4),
108964
108928
  o.value.content ? (Ee(), et("div", {
108965
108929
  key: 0,
@@ -108969,8 +108933,8 @@ const iBe = () => {
108969
108933
  me("div", {
108970
108934
  class: pn(["w-full min-h-[50px] overflow-y-auto line-clamp-6 result-content", { error: o.value.error }]),
108971
108935
  innerHTML: o.value.content
108972
- }, null, 10, fze),
108973
- me("div", dze, [
108936
+ }, null, 10, cze),
108937
+ me("div", fze, [
108974
108938
  Ve(vs, {
108975
108939
  type: "primary",
108976
108940
  size: "small",
@@ -109025,7 +108989,7 @@ const iBe = () => {
109025
108989
  ], 64);
109026
108990
  };
109027
108991
  }
109028
- }), pze = /* @__PURE__ */ ft({
108992
+ }), hze = /* @__PURE__ */ ft({
109029
108993
  __name: "index",
109030
108994
  setup(n) {
109031
108995
  const e = dt("editor"), t = dt("assistant"), r = ut(null), i = ut({
@@ -109058,20 +109022,20 @@ const iBe = () => {
109058
109022
  }, {
109059
109023
  default: $t(() => [
109060
109024
  _e(t) ? Dn("", !0) : (Ee(), et(cr, { key: 0 }, [
109061
- _e(e)?.isActive("toc") || _e(e)?.isActive("pageBreak") || _e(e)?.isActive("horizontalRule") || _e(e)?.isActive("codeBlock") || _e(e)?.getAttributes("image").error ? (Ee(), Tt(lh, { key: 0 })) : _e(e)?.isActive("image") && !_e(e)?.getAttributes("image").error || _e(e)?.isActive("inlineImage") && !_e(e)?.getAttributes("inlineImage").error ? (Ee(), Tt(TBe, { key: 1 })) : _e(e)?.isActive("video") || _e(e)?.isActive("audio") || _e(e)?.isActive("file") ? (Ee(), Tt(MBe, { key: 2 })) : _e(e)?.isActive("iframe") ? (Ee(), Tt(rze, { key: 3 })) : _e(e)?.isActive("table") ? (Ee(), Tt(RBe, { key: 4 })) : _e(e)?.isActive("tag") ? (Ee(), Tt(VBe, { key: 5 })) : _e(e)?.isActive("echarts") ? (Ee(), Tt(aze, { key: 6 })) : (Ee(), Tt(qBe, { key: 7 }))
109025
+ _e(e)?.isActive("toc") || _e(e)?.isActive("pageBreak") || _e(e)?.isActive("horizontalRule") || _e(e)?.isActive("codeBlock") || _e(e)?.getAttributes("image").error ? (Ee(), Tt(lh, { key: 0 })) : _e(e)?.isActive("image") && !_e(e)?.getAttributes("image").error || _e(e)?.isActive("inlineImage") && !_e(e)?.getAttributes("inlineImage").error ? (Ee(), Tt(wBe, { key: 1 })) : _e(e)?.isActive("video") || _e(e)?.isActive("audio") || _e(e)?.isActive("file") ? (Ee(), Tt(kBe, { key: 2 })) : _e(e)?.isActive("iframe") ? (Ee(), Tt(nze, { key: 3 })) : _e(e)?.isActive("table") ? (Ee(), Tt(IBe, { key: 4 })) : _e(e)?.isActive("tag") ? (Ee(), Tt(FBe, { key: 5 })) : _e(e)?.isActive("echarts") ? (Ee(), Tt(ize, { key: 6 })) : (Ee(), Tt(WBe, { key: 7 }))
109062
109026
  ], 64)),
109063
- _e(t) ? (Ee(), Tt(hze, { key: 1 })) : Dn("", !0)
109027
+ _e(t) ? (Ee(), Tt(dze, { key: 1 })) : Dn("", !0)
109064
109028
  ]),
109065
109029
  _: 1
109066
109030
  }, 8, ["class", "editor", "tippy-options"]));
109067
109031
  }
109068
- }), vze = {
109032
+ }), pze = {
109069
109033
  key: 0,
109070
109034
  class: "w-full h-[4rem]"
109071
- }, gze = {
109035
+ }, vze = {
109072
109036
  key: 1,
109073
109037
  class: "w-full h-[4rem]"
109074
- }, mze = /* @__PURE__ */ ft({
109038
+ }, gze = /* @__PURE__ */ ft({
109075
109039
  __name: "index",
109076
109040
  setup(n) {
109077
109041
  const e = dt("editor"), t = dt("page"), r = fn(() => {
@@ -109087,7 +109051,7 @@ const iBe = () => {
109087
109051
  width: i.value
109088
109052
  })
109089
109053
  }, [
109090
- _e(t).layout === "page" ? (Ee(), et("div", vze)) : Dn("", !0),
109054
+ _e(t).layout === "page" ? (Ee(), et("div", pze)) : Dn("", !0),
109091
109055
  Ve(_e(Moe), {
109092
109056
  editor: _e(e),
109093
109057
  class: pn(["white-editor-content flex-1 flex flex-col", {
@@ -109096,19 +109060,19 @@ const iBe = () => {
109096
109060
  "format-painter": _e(e)?.view?.painter?.enabled
109097
109061
  }])
109098
109062
  }, null, 8, ["editor", "class"]),
109099
- _e(t).layout === "page" ? (Ee(), et("div", gze)) : Dn("", !0),
109100
- _e(e) ? (Ee(), Tt(pze, { key: 2 })) : Dn("", !0)
109063
+ _e(t).layout === "page" ? (Ee(), et("div", vze)) : Dn("", !0),
109064
+ _e(e) ? (Ee(), Tt(hze, { key: 2 })) : Dn("", !0)
109101
109065
  ], 6));
109102
109066
  }
109103
- }), yze = (n) => n && typeof n == "string" && !n.startsWith("<") ? (console.log(n.split(`
109067
+ }), mze = (n) => n && typeof n == "string" && !n.startsWith("<") ? (console.log(n.split(`
109104
109068
  `)), n.split(`
109105
- `).map((e) => `<p>${e}</p>`).join("")) : n, bze = { class: "flex flex-col white-give-editor-wrapper white-editor-namespace" }, _ze = {
109069
+ `).map((e) => `<p>${e}</p>`).join("")) : n, yze = { class: "flex flex-col white-give-editor-wrapper white-editor-namespace" }, bze = {
109106
109070
  key: 0,
109107
109071
  class: "w-full flex-none border-b border-[#d9d9d9]"
109108
- }, xze = ["id"], Sze = {
109072
+ }, _ze = ["id"], xze = {
109109
109073
  key: 1,
109110
109074
  class: "w-full h-[40px] flex-none border-t border-[#d9d9d9] px-[2rem]"
109111
- }, wze = /* @__PURE__ */ ft({
109075
+ }, Sze = /* @__PURE__ */ ft({
109112
109076
  __name: "HomeView",
109113
109077
  setup(n) {
109114
109078
  const e = dt("editor"), t = dt("container"), r = dt("options"), i = dt("uploadFileMap"), a = dt("page"), o = w4e({
@@ -109119,7 +109083,7 @@ const iBe = () => {
109119
109083
  editable: !r.value?.editor?.readOnly,
109120
109084
  autofocus: r.value?.editor?.autofocus,
109121
109085
  // 内容
109122
- content: yze(r.value.document?.content),
109086
+ content: mze(r.value.document?.content),
109123
109087
  // 输入内容规则
109124
109088
  enableInputRules: Z9(r),
109125
109089
  // 粘贴内容规则
@@ -109136,23 +109100,23 @@ const iBe = () => {
109136
109100
  // 扩展
109137
109101
  extensions: o
109138
109102
  });
109139
- return e.value = s, e.value.storage.container = t, e.value.storage.options = r.value, (l, u) => (Ee(), et("div", bze, [
109140
- _e(r).layout.toolbar.show ? (Ee(), et("div", _ze, [
109141
- Ve($6e)
109103
+ return e.value = s, e.value.storage.container = t, e.value.storage.options = r.value, (l, u) => (Ee(), et("div", yze, [
109104
+ _e(r).layout.toolbar.show ? (Ee(), et("div", bze, [
109105
+ Ve(V6e)
109142
109106
  ])) : Dn("", !0),
109143
109107
  me("div", {
109144
109108
  class: "w-full flex-1 min-h-0 flex overflow-hidden",
109145
109109
  id: _e(t)
109146
109110
  }, [
109147
- _e(a).showToc && _e(r).layout.toc.show ? (Ee(), Tt(_Be, { key: 0 })) : Dn("", !0),
109111
+ _e(a).showToc && _e(r).layout.toc.show ? (Ee(), Tt(bBe, { key: 0 })) : Dn("", !0),
109148
109112
  me("div", {
109149
109113
  class: pn(["flex-1 h-full overflow-y-auto py-[20px]", _e(a).layout === "page" ? "bg-[#f4f6fa]" : ""])
109150
109114
  }, [
109151
- Ve(mze)
109115
+ Ve(gze)
109152
109116
  ], 2)
109153
- ], 8, xze),
109154
- _e(r).layout.foot.show ? (Ee(), et("div", Sze, [
109155
- Ve(fBe)
109117
+ ], 8, _ze),
109118
+ _e(r).layout.foot.show ? (Ee(), et("div", xze, [
109119
+ Ve(cBe)
109156
109120
  ])) : Dn("", !0)
109157
109121
  ]));
109158
109122
  }
@@ -109161,22 +109125,22 @@ const iBe = () => {
109161
109125
  emits: [
109162
109126
  "beforeCreate",
109163
109127
  "created",
109164
- "changed",
109165
- "changed:selection",
109166
- "changed:transaction",
109167
- "changed:menu",
109168
- "changed:toolbar",
109169
- "changed:pageLayout",
109170
- "changed:pageSize",
109171
- "changed:pageOrientation",
109172
- "changed:pageMargin",
109173
- "changed:pageBackground",
109174
- "changed:pageShowToc",
109175
- "changed:pagePreview",
109176
- "changed:pageZoom",
109177
- "changed:pageWatermark",
109178
- "changed:locale",
109179
- "changed:theme",
109128
+ "change",
109129
+ "change:selection",
109130
+ "change:transaction",
109131
+ "change:menu",
109132
+ "change:toolbar",
109133
+ "change:pageLayout",
109134
+ "change:pageSize",
109135
+ "change:pageOrientation",
109136
+ "change:pageMargin",
109137
+ "change:pageBackground",
109138
+ "change:pageShowToc",
109139
+ "change:pagePreview",
109140
+ "change:pageZoom",
109141
+ "change:pageWatermark",
109142
+ "change:locale",
109143
+ "change:theme",
109180
109144
  "contentError",
109181
109145
  "print",
109182
109146
  "focus",
@@ -109257,6 +109221,44 @@ const iBe = () => {
109257
109221
  label: "3 倍行距",
109258
109222
  value: 3
109259
109223
  }
109224
+ ],
109225
+ // 纸张尺寸
109226
+ pageSizeOption: [
109227
+ { label: "网页", layout: "web" },
109228
+ { label: "A4", width: 21, height: 29.7, default: !0, layout: "page" },
109229
+ { label: "A3", width: 29.7, height: 42, layout: "page" },
109230
+ { label: "A5", width: 14.8, height: 21, layout: "page" },
109231
+ { label: "B5", width: 17.6, height: 25, layout: "page" },
109232
+ {
109233
+ label: "5号信纸",
109234
+ width: 10.9,
109235
+ height: 12.9,
109236
+ layout: "page"
109237
+ },
109238
+ {
109239
+ label: "6号信纸",
109240
+ width: 11.9,
109241
+ height: 22.9,
109242
+ layout: "page"
109243
+ },
109244
+ {
109245
+ label: "7号信纸",
109246
+ width: 16.1,
109247
+ height: 22.8,
109248
+ layout: "page"
109249
+ },
109250
+ {
109251
+ label: "9号信纸",
109252
+ width: 22.8,
109253
+ height: 32.3,
109254
+ layout: "page"
109255
+ },
109256
+ {
109257
+ label: "法律用纸",
109258
+ width: 21.5,
109259
+ height: 33.5,
109260
+ layout: "page"
109261
+ }
109260
109262
  ]
109261
109263
  },
109262
109264
  file: {
@@ -109348,11 +109350,11 @@ const iBe = () => {
109348
109350
  o.value && (o.value.on("create", ({ editor: f }) => {
109349
109351
  t("created", { editor: f });
109350
109352
  }), o.value.on("update", ({ editor: f }) => {
109351
- t("changed", { editor: f });
109353
+ t("change", { editor: f });
109352
109354
  }), o.value.on("selectionUpdate", ({ editor: f }) => {
109353
- t("changed:selection", { editor: f });
109355
+ t("change:selection", { editor: f });
109354
109356
  }), o.value.on("transaction", ({ editor: f, transaction: d }) => {
109355
- t("changed:transaction", { editor: f, transaction: d });
109357
+ t("change:transaction", { editor: f, transaction: d });
109356
109358
  }), o.value.on("focus", ({ editor: f, event: d }) => {
109357
109359
  t("focus", { editor: f, event: d });
109358
109360
  }), o.value.on("contentError", ({ editor: f, error: d, disableCollaboration: h }) => {
@@ -109363,9 +109365,9 @@ const iBe = () => {
109363
109365
  t("destroy");
109364
109366
  }));
109365
109367
  }
109366
- ), (f, d) => (Ee(), Tt(wze));
109368
+ ), (f, d) => (Ee(), Tt(Sze));
109367
109369
  }
109368
- }), kg = "TOOLTIP_INSTANCE", Tze = {
109370
+ }), kg = "TOOLTIP_INSTANCE", wze = {
109369
109371
  mounted(n, e) {
109370
109372
  let t = "", r = "top", i = [300, 0];
109371
109373
  typeof e.value == "string" ? t = e.value : (t = e.value.content, e.value.placement !== void 0 && (r = e.value.placement), e.value.delay !== void 0 && (i = e.value.delay)), n[kg] = xu(n, {
@@ -109385,16 +109387,16 @@ const iBe = () => {
109385
109387
  unmounted(n) {
109386
109388
  n[kg] && n[kg].destroy();
109387
109389
  }
109388
- }, Cze = {
109390
+ }, Tze = {
109389
109391
  install(n) {
109390
- n.directive("tooltip", Tze);
109392
+ n.directive("tooltip", wze);
109391
109393
  }
109392
- }, Ize = {
109394
+ }, Oze = {
109393
109395
  install: (n, e) => {
109394
- n.provide("providedOptions", e ?? {}), n.component(R7.name ?? "WhiteEditor", R7), n.use(Cze);
109396
+ n.provide("providedOptions", e ?? {}), n.component(R7.name ?? "WhiteEditor", R7), n.use(Tze);
109395
109397
  }
109396
109398
  };
109397
109399
  export {
109398
109400
  R7 as default,
109399
- Ize as useWhiteEditor
109401
+ Oze as useWhiteEditor
109400
109402
  };