@haluo/biz 2.0.42-next.4 → 2.0.43-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,9 @@
2
2
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("element-plus"), require("vue"), require("@element-plus/icons-vue"), require("@haluo/util"), require("vuedraggable")) : typeof define === "function" && define.amd ? define(["exports", "element-plus", "vue", "@element-plus/icons-vue", "@haluo/util", "vuedraggable"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["haluo-biz"] = {}, global2["element-plus"], global2.Vue, global2["@element-plus/icons-vue"], global2.hUtil, global2.vuedraggable));
3
3
  })(this, function(exports2, elementPlus, vue, iconsVue, util, draggable) {
4
4
  "use strict";
5
+ const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
6
+ const util__default = /* @__PURE__ */ _interopDefaultLegacy(util);
7
+ const draggable__default = /* @__PURE__ */ _interopDefaultLegacy(draggable);
5
8
  const __vite_glob_0_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLBAMAAADKYGfZAAAAG1BMVEUAAAAAAABHcExSUlLz8/P////IyMifn5/k5OQx49C2AAAACXRSTlMzZgB/7//CpN1ci7LLAAABHUlEQVR4AY3TgUbAUBjF8e0NmiiAY28QIYCkXqB9GUBIT7AHCHvvss3l73Y4g3vx87ft3m8Yp+C5GZSxecyYMuZzZMqYz5EpYz5Hpoz5HJkS1uceP67N7TeYyF7r59xs9XmxlgNbj/W+6hmMua86c9vfCsbcXdV6xpYHsj53xF4msj7XYmB97oqB9bmlxcC6XIuBdbkWI2Nur3qfyFouqc0K3g05/6XI+f+GnD8F5NyZMmdvCHP2vjFX7vYyt7tZYO7p7f/JYs7NKXMZk2fMZUyeMZcxecZcxuQZcxmTZ8xlTJ4xlzF5xlzG5BlzGZNnzGVMnjGXMXnGXMbkGXMZk2fMZUyeMZcxecZcxuQZcxmTZ8xlTJ4xlzFlbB5+AVncQI3j46OFAAAAAElFTkSuQmCC";
6
9
  const __vite_glob_0_2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkU2MThGQUEzOUM3QTExRThBMkI0RDI5RUQ4MzE1NUMwIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkU2MThGQUE0OUM3QTExRThBMkI0RDI5RUQ4MzE1NUMwIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RTYxOEZBQTE5QzdBMTFFOEEyQjREMjlFRDgzMTU1QzAiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RTYxOEZBQTI5QzdBMTFFOEEyQjREMjlFRDgzMTU1QzAiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6cZvOcAAABiklEQVR42uyXu0rEQBRAs3GxtlHEIqDFioWIkA+wUBCsFKwUGxdRrHSx8Ed8gIWlIKyICKIigu0uYmFjIbIfIFqJyhrPwC3CEIvNZEKEGThMHpAcJvcxKUVR5BV5+F7BhxN0gk7QCTpBSyMMw37oLqQgYgNMt1A3lfQtyd3AMMyYSvoW5dTcMpX0LcrNw5SpZCntdouXxU974U6Te5V7FbiCAM5hrtFofOW9gj3wJnILsAhdcu8JLuR4GiY6eXDZUKxPVu8RNuAZdmFWVnMd9mEF2lBl9S7zElQxdy2fchOacCRy6tpBgtxhLkkSS4gR+IQXTW4SVk3lUgkmZKuKuT1N7htGZU4t13EW/yG3o8n9wAOMq8xF7tQkyMuGde4dPrTPOgbLcC94uQgytkVOFd61WJ1bgkHYisXckGR2rruZmhTaQApvRa63NbkqnGXVoTqNQdWq6tK6WtLKallka2atLkEysCWXuhdrktbkTDcLSvIYTmzJGQm6nyYn6ASdoBN0gv9D8FeAAQD7bZlccR+RLgAAAABJRU5ErkJggg==";
7
10
  const __vite_glob_0_3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA8CAYAAAAOhRhuAAAAAXNSR0IArs4c6QAAALZJREFUaEPtlLENwCAMBGEilmAOhmNMmkTp0h1BLqzoIlGdYqzzm7rWukqir9oQTENDFFcNaYgMEDdDGiIDxM2QhsgAcTMUYmjOSXWOeGutPOf9bY2s9350If00xijP+dwQFY7kW4YiL6RaNqQhMkB8K0Pp1j7dw0iaI/nWyCIvpFo29E9D6bYs3TtEc4/kbhnZ1NA/DaVb+3QPI809krtlZFNDGiIDxM2QhsgAcTOkITJAPF2GbhF2A9gQfAOGAAAAAElFTkSuQmCC";
@@ -110,6 +113,7 @@
110
113
  }
111
114
  const D = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, R = "__vueuse_ssr_handlers__";
112
115
  D[R] = D[R] || {};
116
+ D[R];
113
117
  var q;
114
118
  (function(e) {
115
119
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
@@ -151,7 +155,7 @@
151
155
  ke({
152
156
  linear: me
153
157
  }, he);
154
- const J = (e) => (vue.pushScopeId("data-v-b46fc003"), e = e(), vue.popScopeId(), e), we = { class: "hd" }, Oe = { class: "bd" }, Ie = /* @__PURE__ */ J(() => /* @__PURE__ */ vue.createElementVNode("h3", null, "主题颜色", -1)), Ee = { class: "tColor" }, Pe = ["onMouseover", "onClick"], Me = { class: "bColor" }, Ae = ["onMouseover", "onClick"], $e = /* @__PURE__ */ J(() => /* @__PURE__ */ vue.createElementVNode("h3", null, "标准颜色", -1)), Te = { class: "tColor" }, Be = ["onMouseover", "onClick"], Ve = {
158
+ const J = (e) => (vue.pushScopeId("data-v-b46fc003"), e = e(), vue.popScopeId(), e), we = { class: "hd" }, Oe = { class: "bd" }, Ie = /* @__PURE__ */ J(() => /* @__PURE__ */ vue.createElementVNode("h3", null, "\u4E3B\u9898\u989C\u8272", -1)), Ee = { class: "tColor" }, Pe = ["onMouseover", "onClick"], Me = { class: "bColor" }, Ae = ["onMouseover", "onClick"], $e = /* @__PURE__ */ J(() => /* @__PURE__ */ vue.createElementVNode("h3", null, "\u6807\u51C6\u989C\u8272", -1)), Te = { class: "tColor" }, Be = ["onMouseover", "onClick"], Ve = {
155
159
  name: "colorPicker"
156
160
  }, Ne = /* @__PURE__ */ vue.defineComponent({
157
161
  ...Ve,
@@ -216,13 +220,13 @@
216
220
  l.stopPropagation();
217
221
  })
218
222
  }, [
219
- vue.createCommentVNode(" 颜色显示小方块 "),
223
+ vue.createCommentVNode(" \u989C\u8272\u663E\u793A\u5C0F\u65B9\u5757 "),
220
224
  vue.createElementVNode("div", {
221
225
  class: vue.normalizeClass(["colorBtn", { disabled: e.disabled }]),
222
226
  style: vue.normalizeStyle(`background-color: ${vue.unref(a)}`),
223
227
  onClick: p
224
228
  }, null, 6),
225
- vue.createCommentVNode(" 颜色色盘 "),
229
+ vue.createCommentVNode(" \u989C\u8272\u8272\u76D8 "),
226
230
  vue.createElementVNode("div", {
227
231
  class: vue.normalizeClass(["box", { open: s.value }])
228
232
  }, [
@@ -236,7 +240,7 @@
236
240
  onClick: Y,
237
241
  onMouseover: r[0] || (r[0] = (l) => d(e.defaultColor)),
238
242
  onMouseout: r[1] || (r[1] = (l) => d(""))
239
- }, "默认颜色", 32)
243
+ }, "\u9ED8\u8BA4\u989C\u8272", 32)
240
244
  ]),
241
245
  vue.createElementVNode("div", Oe, [
242
246
  Ie,
@@ -272,8 +276,8 @@
272
276
  onClick: (f) => E(l)
273
277
  }, null, 44, Be)), 64))
274
278
  ]),
275
- vue.createElementVNode("h3", { onClick: X }, "更多颜色..."),
276
- vue.createCommentVNode(" 用以激活HTML5颜色面板 "),
279
+ vue.createElementVNode("h3", { onClick: X }, "\u66F4\u591A\u989C\u8272..."),
280
+ vue.createCommentVNode(" \u7528\u4EE5\u6FC0\u6D3BHTML5\u989C\u8272\u9762\u677F "),
277
281
  vue.withDirectives(vue.createElementVNode("input", {
278
282
  type: "color",
279
283
  ref_key: "html5ColorEl",
@@ -307,7 +311,7 @@
307
311
  colorPicker: O
308
312
  };
309
313
  const style = "";
310
- const ToolBar_vue_vue_type_style_index_0_scoped_50235bb8_lang = "";
314
+ const ToolBar_vue_vue_type_style_index_0_scoped_true_lang = "";
311
315
  const ToolBar_vue_vue_type_style_index_1_lang = "";
312
316
  const _export_sfc = (sfc, props) => {
313
317
  const target = sfc.__vccOpts || sfc;
@@ -337,15 +341,15 @@
337
341
  activeImgType: false,
338
342
  activeAlign: "",
339
343
  alignMethods: [
340
- { value: "left", name: "左对齐" },
341
- { value: "right", name: "右对齐" },
342
- { value: "center", name: "居中对齐" },
343
- { value: "justify", name: "两端对齐" }
344
+ { value: "left", name: "\u5DE6\u5BF9\u9F50" },
345
+ { value: "right", name: "\u53F3\u5BF9\u9F50" },
346
+ { value: "center", name: "\u5C45\u4E2D\u5BF9\u9F50" },
347
+ { value: "justify", name: "\u4E24\u7AEF\u5BF9\u9F50" }
344
348
  ],
345
349
  activeFontsize: "17",
346
350
  fontsizes: [
347
- { value: "17px", name: "17", desc: "默认正文字号" },
348
- { value: "18px", name: "18", desc: "默认标题字号" },
351
+ { value: "17px", name: "17", desc: "\u9ED8\u8BA4\u6B63\u6587\u5B57\u53F7" },
352
+ { value: "18px", name: "18", desc: "\u9ED8\u8BA4\u6807\u9898\u5B57\u53F7" },
349
353
  { value: "19px", name: "19" },
350
354
  { value: "20px", name: "20" },
351
355
  { value: "24px", name: "24" },
@@ -426,7 +430,7 @@
426
430
  this.editor.clearFormat();
427
431
  },
428
432
  setColor(val) {
429
- console.log("文字颜色");
433
+ console.log("\u6587\u5B57\u989C\u8272");
430
434
  this.updatePosition(() => {
431
435
  this.editor.setColor(val);
432
436
  });
@@ -485,7 +489,6 @@
485
489
  this.popoverVisibleList = false;
486
490
  this.popoverVisibleImg = false;
487
491
  },
488
- // todo 富文本设置样式位置会回到顶部
489
492
  updatePosition(fn) {
490
493
  const scrollTop = document.documentElement.scrollTop;
491
494
  fn && fn();
@@ -522,11 +525,11 @@
522
525
  key: 0,
523
526
  class: "tools"
524
527
  };
525
- const _hoisted_2$5 = { class: "tools-content" };
526
- const _hoisted_3$5 = ["src"];
527
- const _hoisted_4$3 = ["src"];
528
- const _hoisted_5$3 = ["src"];
529
- const _hoisted_6$2 = { class: "box" };
528
+ const _hoisted_2$7 = { class: "tools-content" };
529
+ const _hoisted_3$7 = ["src"];
530
+ const _hoisted_4$6 = ["src"];
531
+ const _hoisted_5$5 = ["src"];
532
+ const _hoisted_6$3 = { class: "box" };
530
533
  const _hoisted_7$2 = ["src"];
531
534
  const _hoisted_8$2 = {
532
535
  key: 0,
@@ -536,10 +539,10 @@
536
539
  const _hoisted_10$2 = ["src"];
537
540
  const _hoisted_11$2 = { class: "tools-font" };
538
541
  const _hoisted_12$2 = ["onClick"];
539
- const _hoisted_13$1 = { style: { "font-size": "10px" } };
540
- const _hoisted_14$1 = { class: "box" };
541
- const _hoisted_15$1 = ["src"];
542
- const _hoisted_16$1 = {
542
+ const _hoisted_13$2 = { style: { "font-size": "10px" } };
543
+ const _hoisted_14$2 = { class: "box" };
544
+ const _hoisted_15$2 = ["src"];
545
+ const _hoisted_16$2 = {
543
546
  key: 0,
544
547
  class: "box-mask"
545
548
  };
@@ -565,12 +568,12 @@
565
568
  key: 0,
566
569
  class: "box-mask"
567
570
  };
568
- const _hoisted_30 = { class: "box" };
569
- const _hoisted_31 = ["src"];
570
- const _hoisted_32 = ["src"];
571
- const _hoisted_33 = ["src"];
572
- const _hoisted_34 = ["src"];
573
- const _hoisted_35 = { class: "tools-title" };
571
+ const _hoisted_30$1 = { class: "box" };
572
+ const _hoisted_31$1 = ["src"];
573
+ const _hoisted_32$1 = ["src"];
574
+ const _hoisted_33$1 = ["src"];
575
+ const _hoisted_34$1 = ["src"];
576
+ const _hoisted_35$1 = { class: "tools-title" };
574
577
  const _hoisted_36 = ["src"];
575
578
  const _hoisted_37 = ["src"];
576
579
  const _hoisted_38 = { class: "tools-title_content" };
@@ -591,11 +594,11 @@
591
594
  const _component_colorPicker = vue.resolveComponent("colorPicker");
592
595
  const _directive_click_outside = vue.resolveDirective("click-outside");
593
596
  return $props.editor.fontInfo ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
594
- vue.createElementVNode("div", _hoisted_2$5, [
597
+ vue.createElementVNode("div", _hoisted_2$7, [
595
598
  vue.createVNode(_component_el_tooltip, {
596
599
  class: "item",
597
600
  effect: "dark",
598
- content: "撤回",
601
+ content: "\u64A4\u56DE",
599
602
  placement: "top"
600
603
  }, {
601
604
  default: vue.withCtx(() => [
@@ -607,14 +610,14 @@
607
610
  height: "40",
608
611
  alt: "",
609
612
  onClick: _cache[0] || (_cache[0] = ($event) => $options.back($event))
610
- }, null, 12, _hoisted_3$5)
613
+ }, null, 12, _hoisted_3$7)
611
614
  ]),
612
615
  _: 1
613
616
  }),
614
617
  vue.createVNode(_component_el_tooltip, {
615
618
  class: "item",
616
619
  effect: "dark",
617
- content: "反撤回",
620
+ content: "\u53CD\u64A4\u56DE",
618
621
  placement: "top"
619
622
  }, {
620
623
  default: vue.withCtx(() => [
@@ -626,7 +629,7 @@
626
629
  height: "40",
627
630
  alt: "",
628
631
  onClick: _cache[1] || (_cache[1] = ($event) => $options.forward($event))
629
- }, null, 12, _hoisted_4$3)
632
+ }, null, 12, _hoisted_4$6)
630
633
  ]),
631
634
  _: 1
632
635
  }),
@@ -637,7 +640,7 @@
637
640
  vue.createVNode(_component_el_tooltip, {
638
641
  class: "item",
639
642
  effect: "dark",
640
- content: "清除格式",
643
+ content: "\u6E05\u9664\u683C\u5F0F",
641
644
  placement: "top"
642
645
  }, {
643
646
  default: vue.withCtx(() => [
@@ -647,18 +650,18 @@
647
650
  height: "40",
648
651
  alt: "",
649
652
  onClick: _cache[2] || (_cache[2] = (...args) => $options.clearFormat && $options.clearFormat(...args))
650
- }, null, 8, _hoisted_5$3)
653
+ }, null, 8, _hoisted_5$5)
651
654
  ]),
652
655
  _: 1
653
656
  }),
654
657
  vue.createVNode(_component_el_tooltip, {
655
658
  class: "item",
656
659
  effect: "dark",
657
- content: "格式刷",
660
+ content: "\u683C\u5F0F\u5237",
658
661
  placement: "top"
659
662
  }, {
660
663
  default: vue.withCtx(() => [
661
- vue.createElementVNode("div", _hoisted_6$2, [
664
+ vue.createElementVNode("div", _hoisted_6$3, [
662
665
  vue.createElementVNode("img", {
663
666
  src: $options.getImageUrl("tools_refresh@3x.png"),
664
667
  width: "40",
@@ -685,7 +688,7 @@
685
688
  vue.createVNode(_component_el_tooltip, {
686
689
  class: "item",
687
690
  effect: "dark",
688
- content: "字号",
691
+ content: "\u5B57\u53F7",
689
692
  placement: "top"
690
693
  }, {
691
694
  default: vue.withCtx(() => [
@@ -719,7 +722,7 @@
719
722
  vue.createElementVNode("span", {
720
723
  style: vue.normalizeStyle({ fontSize: item.value })
721
724
  }, vue.toDisplayString(item.name), 5),
722
- vue.createElementVNode("span", _hoisted_13$1, vue.toDisplayString(item.desc), 1)
725
+ vue.createElementVNode("span", _hoisted_13$2, vue.toDisplayString(item.desc), 1)
723
726
  ], 10, _hoisted_12$2);
724
727
  }), 128))
725
728
  ])), [
@@ -735,11 +738,11 @@
735
738
  vue.createVNode(_component_el_tooltip, {
736
739
  class: "item",
737
740
  effect: "dark",
738
- content: "标题",
741
+ content: "\u6807\u9898",
739
742
  placement: "top"
740
743
  }, {
741
744
  default: vue.withCtx(() => [
742
- vue.createElementVNode("div", _hoisted_14$1, [
745
+ vue.createElementVNode("div", _hoisted_14$2, [
743
746
  vue.createElementVNode("img", {
744
747
  src: $options.getImageUrl("tools_title@3x.png"),
745
748
  "data-editor-id": "makeHeader",
@@ -747,8 +750,8 @@
747
750
  height: "40",
748
751
  alt: "",
749
752
  onClick: _cache[5] || (_cache[5] = ($event) => $options.setTitle($event, $data.statusInfo.title ? 0 : 1))
750
- }, null, 8, _hoisted_15$1),
751
- $data.statusInfo && $data.statusInfo.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$1)) : vue.createCommentVNode("", true)
753
+ }, null, 8, _hoisted_15$2),
754
+ $data.statusInfo && $data.statusInfo.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$2)) : vue.createCommentVNode("", true)
752
755
  ])
753
756
  ]),
754
757
  _: 1
@@ -756,7 +759,7 @@
756
759
  vue.createVNode(_component_el_tooltip, {
757
760
  class: "item",
758
761
  effect: "dark",
759
- content: "加粗",
762
+ content: "\u52A0\u7C97",
760
763
  placement: "top"
761
764
  }, {
762
765
  default: vue.withCtx(() => [
@@ -784,7 +787,7 @@
784
787
  vue.createVNode(_component_el_tooltip, {
785
788
  class: "item",
786
789
  effect: "dark",
787
- content: "列表",
790
+ content: "\u5217\u8868",
788
791
  placement: "top"
789
792
  }, {
790
793
  default: vue.withCtx(() => [
@@ -818,13 +821,13 @@
818
821
  onClick: _cache[8] || (_cache[8] = ($event) => $options.updatePosition(() => {
819
822
  $options.setStyle("makeUnorderedList");
820
823
  }))
821
- }, "无序列表"),
824
+ }, "\u65E0\u5E8F\u5217\u8868"),
822
825
  vue.createElementVNode("li", {
823
826
  "data-editor-id": "makeHeader",
824
827
  onClick: _cache[9] || (_cache[9] = ($event) => $options.updatePosition(() => {
825
828
  $options.setStyle("makeOrderedList");
826
829
  }))
827
- }, "有序列表")
830
+ }, "\u6709\u5E8F\u5217\u8868")
828
831
  ])), [
829
832
  [_directive_click_outside, $options.handlePopover]
830
833
  ])
@@ -835,7 +838,7 @@
835
838
  vue.createVNode(_component_el_tooltip, {
836
839
  class: "item",
837
840
  effect: "dark",
838
- content: "倾斜",
841
+ content: "\u503E\u659C",
839
842
  placement: "top"
840
843
  }, {
841
844
  default: vue.withCtx(() => [
@@ -855,7 +858,7 @@
855
858
  vue.createVNode(_component_el_tooltip, {
856
859
  class: "item",
857
860
  effect: "dark",
858
- content: "下划线",
861
+ content: "\u4E0B\u5212\u7EBF",
859
862
  placement: "top"
860
863
  }, {
861
864
  default: vue.withCtx(() => [
@@ -876,18 +879,18 @@
876
879
  key: 0,
877
880
  class: "item",
878
881
  effect: "dark",
879
- content: "链接",
882
+ content: "\u94FE\u63A5",
880
883
  placement: "top"
881
884
  }, {
882
885
  default: vue.withCtx(() => [
883
- vue.createElementVNode("div", _hoisted_30, [
886
+ vue.createElementVNode("div", _hoisted_30$1, [
884
887
  vue.createElementVNode("img", {
885
888
  src: $options.getImageUrl("icon_web_link@2x.png"),
886
889
  width: "40",
887
890
  height: "40",
888
891
  alt: "",
889
892
  onClick: _cache[12] || (_cache[12] = (...args) => $options.insertLink && $options.insertLink(...args))
890
- }, null, 8, _hoisted_31)
893
+ }, null, 8, _hoisted_31$1)
891
894
  ])
892
895
  ]),
893
896
  _: 1
@@ -895,7 +898,7 @@
895
898
  vue.createVNode(_component_el_tooltip, {
896
899
  class: "item",
897
900
  effect: "dark",
898
- content: "首行缩进",
901
+ content: "\u9996\u884C\u7F29\u8FDB",
899
902
  placement: "top"
900
903
  }, {
901
904
  default: vue.withCtx(() => [
@@ -905,14 +908,14 @@
905
908
  height: "40",
906
909
  alt: "",
907
910
  onClick: _cache[13] || (_cache[13] = ($event) => $options.setStyle("setIndent"))
908
- }, null, 8, _hoisted_32)
911
+ }, null, 8, _hoisted_32$1)
909
912
  ]),
910
913
  _: 1
911
914
  }),
912
915
  vue.createVNode(_component_el_tooltip, {
913
916
  class: "item",
914
917
  effect: "dark",
915
- content: "文字颜色",
918
+ content: "\u6587\u5B57\u989C\u8272",
916
919
  placement: "top"
917
920
  }, {
918
921
  default: vue.withCtx(() => [
@@ -925,13 +928,13 @@
925
928
  width: "24",
926
929
  height: "40",
927
930
  alt: ""
928
- }, null, 8, _hoisted_33),
931
+ }, null, 8, _hoisted_33$1),
929
932
  vue.createElementVNode("img", {
930
933
  src: $options.getImageUrl("tools_arrow@3x.png"),
931
934
  width: "16",
932
935
  height: "40",
933
936
  alt: ""
934
- }, null, 8, _hoisted_34),
937
+ }, null, 8, _hoisted_34$1),
935
938
  vue.createVNode(_component_colorPicker, {
936
939
  ref: "colorPicker",
937
940
  modelValue: $data.color,
@@ -952,11 +955,11 @@
952
955
  width: "152"
953
956
  }, {
954
957
  reference: vue.withCtx(() => [
955
- vue.createElementVNode("div", _hoisted_35, [
958
+ vue.createElementVNode("div", _hoisted_35$1, [
956
959
  vue.createVNode(_component_el_tooltip, {
957
960
  class: "item",
958
961
  effect: "dark",
959
- content: "对齐方式",
962
+ content: "\u5BF9\u9F50\u65B9\u5F0F",
960
963
  placement: "top"
961
964
  }, {
962
965
  default: vue.withCtx(() => [
@@ -1014,7 +1017,7 @@
1014
1017
  vue.createVNode(_component_el_tooltip, {
1015
1018
  class: "item",
1016
1019
  effect: "dark",
1017
- content: "插入图片",
1020
+ content: "\u63D2\u5165\u56FE\u7247",
1018
1021
  placement: "top"
1019
1022
  }, {
1020
1023
  default: vue.withCtx(() => [
@@ -1036,11 +1039,11 @@
1036
1039
  vue.createElementVNode("li", {
1037
1040
  class: vue.normalizeClass([$data.activeImgType === "normal" ? "active" : ""]),
1038
1041
  onClick: _cache[18] || (_cache[18] = ($event) => $options.insertImg("normal"))
1039
- }, vue.toDisplayString("上传图片"), 2),
1042
+ }, vue.toDisplayString("\u4E0A\u4F20\u56FE\u7247"), 2),
1040
1043
  vue.createElementVNode("li", {
1041
1044
  class: vue.normalizeClass([$data.activeImgType === "seamless" ? "active" : ""]),
1042
1045
  onClick: _cache[19] || (_cache[19] = ($event) => $options.insertImg("seamless"))
1043
- }, vue.toDisplayString("上传无缝拼接图片"), 2)
1046
+ }, vue.toDisplayString("\u4E0A\u4F20\u65E0\u7F1D\u62FC\u63A5\u56FE\u7247"), 2)
1044
1047
  ])), [
1045
1048
  [_directive_click_outside, $options.handlePopover]
1046
1049
  ])
@@ -1051,7 +1054,7 @@
1051
1054
  key: 2,
1052
1055
  class: "item",
1053
1056
  effect: "dark",
1054
- content: "插入视频",
1057
+ content: "\u63D2\u5165\u89C6\u9891",
1055
1058
  placement: "top"
1056
1059
  }, {
1057
1060
  default: vue.withCtx(() => [
@@ -1069,7 +1072,7 @@
1069
1072
  key: 3,
1070
1073
  class: "item",
1071
1074
  effect: "dark",
1072
- content: "插入文章/视频",
1075
+ content: "\u63D2\u5165\u6587\u7AE0/\u89C6\u9891",
1073
1076
  placement: "top"
1074
1077
  }, {
1075
1078
  default: vue.withCtx(() => [
@@ -1087,7 +1090,7 @@
1087
1090
  key: 4,
1088
1091
  class: "item",
1089
1092
  effect: "dark",
1090
- content: "采集文章",
1093
+ content: "\u91C7\u96C6\u6587\u7AE0",
1091
1094
  placement: "top"
1092
1095
  }, {
1093
1096
  default: vue.withCtx(() => [
@@ -1104,16 +1107,20 @@
1104
1107
  ])
1105
1108
  ])) : vue.createCommentVNode("", true);
1106
1109
  }
1107
- const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$4], ["__scopeId", "data-v-50235bb8"]]);
1110
+ const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$4], ["__scopeId", "data-v-24d161f2"]]);
1108
1111
  const __vite_glob_0_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAmCAYAAAClI5npAAAA0UlEQVR42uWYwQnDMAxFfckAXkFDmGzgS1foDpnFS3gTb+IFtIDyA4UeBKUtNR8qwTvlkAdyfmSletySmRUwgIIJOijXs9VcLxegwNVDRFYLdHtdCg6wrRKY9l4NUFYIqH1WDeTfCXxXE9w5Ar4tQhBwh7SBjSDg2lJJAj47SAI+OwgC7pDuJAGfHQQBnx0kAZ8dBAF3SOtTgCchybjV2QLKFpihW6BAQn6GA0i4KG4g037H4QaSDiTWUMocyweQcFezBjLrer5TFxR/uaKhL6lOdeUQ8G6X1pQAAAAASUVORK5CYII=";
1112
+ const index_vue_vue_type_style_index_0_lang$5 = "";
1109
1113
  const _hoisted_1$7 = { key: 0 };
1110
- const _hoisted_2$4 = { class: "basic-dialog_title" };
1111
- const _hoisted_3$4 = {
1114
+ const _hoisted_2$6 = { class: "basic-dialog_title" };
1115
+ const _hoisted_3$6 = /* @__PURE__ */ vue.createElementVNode("span", { class: "basic-dialog_divider" }, null, -1);
1116
+ const _hoisted_4$5 = {
1112
1117
  key: 0,
1113
1118
  class: "dialog-footer"
1114
1119
  };
1120
+ const _hoisted_5$4 = /* @__PURE__ */ vue.createTextVNode("\u53D6\u6D88");
1121
+ const _hoisted_6$2 = /* @__PURE__ */ vue.createTextVNode("\u786E\u8BA4");
1115
1122
  const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
1116
- __name: "index",
1123
+ name: "index",
1117
1124
  props: {
1118
1125
  visible: { type: Boolean, default: false },
1119
1126
  showBtn: { type: Boolean, default: true },
@@ -1121,10 +1128,9 @@
1121
1128
  showTitle: { type: Boolean, default: true }
1122
1129
  },
1123
1130
  emits: ["submit", "cancel"],
1124
- setup(__props, { emit: __emit }) {
1131
+ setup(__props, { emit: emits }) {
1125
1132
  const props = __props;
1126
1133
  const parent = vue.inject("vm");
1127
- const emits = __emit;
1128
1134
  const handleClose = () => {
1129
1135
  var _a;
1130
1136
  (_a = parent.setStatus) == null ? void 0 : _a.call(parent, false);
@@ -1146,31 +1152,31 @@
1146
1152
  });
1147
1153
  return (_ctx, _cache) => {
1148
1154
  return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDialog), {
1149
- modelValue: dialogVisible.value,
1150
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
1155
+ modelValue: vue.unref(dialogVisible),
1156
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(dialogVisible) ? dialogVisible.value = $event : null),
1151
1157
  "before-close": handleClose,
1152
- width: _ctx.width,
1153
- class: vue.normalizeClass(["basic-dialog", { "hide-title": !_ctx.showTitle }])
1158
+ width: __props.width,
1159
+ class: vue.normalizeClass(["basic-dialog", { "hide-title": !__props.showTitle }])
1154
1160
  }, {
1155
1161
  header: vue.withCtx(() => [
1156
- _ctx.showTitle ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
1157
- vue.createElementVNode("div", _hoisted_2$4, [
1158
- _cache[1] || (_cache[1] = vue.createElementVNode("span", { class: "basic-dialog_divider" }, null, -1)),
1162
+ __props.showTitle ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
1163
+ vue.createElementVNode("div", _hoisted_2$6, [
1164
+ _hoisted_3$6,
1159
1165
  vue.renderSlot(_ctx.$slots, "title")
1160
1166
  ])
1161
1167
  ])) : vue.createCommentVNode("", true)
1162
1168
  ]),
1163
1169
  footer: vue.withCtx(() => [
1164
- _ctx.showBtn ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$4, [
1170
+ __props.showBtn ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$5, [
1165
1171
  vue.createVNode(vue.unref(elementPlus.ElButton), {
1166
1172
  style: { "width": "120px", "border-color": "#cccccc", "color": "#333333" },
1167
1173
  plain: "",
1168
1174
  round: "",
1169
1175
  onClick: handleClose
1170
1176
  }, {
1171
- default: vue.withCtx(() => _cache[2] || (_cache[2] = [
1172
- vue.createTextVNode("取消")
1173
- ])),
1177
+ default: vue.withCtx(() => [
1178
+ _hoisted_5$4
1179
+ ]),
1174
1180
  _: 1
1175
1181
  }),
1176
1182
  vue.createVNode(vue.unref(elementPlus.ElButton), {
@@ -1179,9 +1185,9 @@
1179
1185
  type: "primary",
1180
1186
  onClick: confirm
1181
1187
  }, {
1182
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
1183
- vue.createTextVNode("确认")
1184
- ])),
1188
+ default: vue.withCtx(() => [
1189
+ _hoisted_6$2
1190
+ ]),
1185
1191
  _: 1
1186
1192
  })
1187
1193
  ])) : vue.createCommentVNode("", true)
@@ -1194,18 +1200,16 @@
1194
1200
  };
1195
1201
  }
1196
1202
  });
1197
- const index_vue_vue_type_style_index_0_lang$5 = "";
1198
1203
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1199
1204
  function getDefaultExportFromCjs(x) {
1200
1205
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1201
1206
  }
1202
- var date$2 = { exports: {} };
1203
- var date = date$2.exports;
1204
- Object.defineProperty(date, "__esModule", { value: true });
1207
+ var date$1 = { exports: {} };
1208
+ Object.defineProperty(date$1.exports, "__esModule", { value: true });
1205
1209
  function replacementDate(data, fmt) {
1206
1210
  for (var k in data) {
1207
1211
  if (new RegExp("(" + k + ")").test(fmt)) {
1208
- fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? data[k] : "00".concat(data[k]).substr(("" + data[k]).length));
1212
+ fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? data[k] : ("00" + data[k]).substr(("" + data[k]).length));
1209
1213
  }
1210
1214
  }
1211
1215
  return fmt;
@@ -1216,130 +1220,126 @@
1216
1220
  }
1217
1221
  return fmt;
1218
1222
  }
1219
- var DateClass = (
1220
- /** @class */
1221
- function() {
1222
- function DateClass2() {
1223
- }
1224
- DateClass2.prototype.format = function(date2, fmt) {
1225
- if (fmt === void 0) {
1226
- fmt = "YYYY-MM-DD HH:mm:ss";
1227
- }
1228
- if (!date2)
1229
- return "";
1230
- var timeData = typeof date2 === "string" ? new Date(date2.replace(/-/g, "/")) : date2;
1231
- timeData = typeof date2 === "number" ? new Date(date2) : timeData;
1232
- var o = {
1233
- "M+": timeData.getMonth() + 1,
1234
- "D+": timeData.getDate(),
1235
- "h+": timeData.getHours() % 12 === 0 ? 12 : timeData.getHours() % 12,
1236
- "H+": timeData.getHours(),
1237
- "m+": timeData.getMinutes(),
1238
- "s+": timeData.getSeconds(),
1239
- "q+": Math.floor((timeData.getMonth() + 3) / 3),
1240
- "S": timeData.getMilliseconds()
1241
- };
1242
- var week = {
1243
- "0": "日",
1244
- "1": "一",
1245
- "2": "二",
1246
- "3": "三",
1247
- "4": "四",
1248
- "5": "五",
1249
- "6": "六"
1250
- };
1251
- fmt = replacementYear(timeData, fmt);
1252
- if (/(E+)/.test(fmt)) {
1253
- fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "星期" : "周" : "") + week["".concat(timeData.getDay(), " ")]);
1254
- }
1255
- return replacementDate(o, fmt);
1256
- };
1257
- DateClass2.prototype.addDaysToDate = function(date2, days) {
1258
- var d = typeof date2 === "object" ? date2 : new Date(date2);
1259
- d.setDate(d.getDate() + days);
1260
- return d.toISOString().split("T")[0];
1261
- };
1262
- DateClass2.prototype.remainTime = function(endTime, startTime) {
1263
- if (startTime === void 0) {
1264
- startTime = /* @__PURE__ */ new Date();
1265
- }
1266
- var ts = Number(endTime) - Number(startTime);
1267
- var dd = Math.floor(ts / 1e3 / 60 / 60 / 24);
1268
- var hh = Math.floor(ts / 1e3 / 60 / 60 % 24);
1269
- var mm = Math.floor(ts / 1e3 / 60 % 60);
1270
- var ss = Math.floor(ts / 1e3 % 60);
1271
- if (ts <= 0)
1272
- return false;
1273
- return {
1274
- dd: dd < 10 ? "0".concat(dd) : dd,
1275
- hh: hh < 10 ? "0".concat(hh) : hh,
1276
- mm: mm < 10 ? "0".concat(mm) : mm,
1277
- ss: ss < 10 ? "0".concat(ss) : ss
1278
- };
1223
+ var DateClass = function() {
1224
+ function DateClass2() {
1225
+ }
1226
+ DateClass2.prototype.format = function(date2, fmt) {
1227
+ if (fmt === void 0) {
1228
+ fmt = "YYYY-MM-DD HH:mm:ss";
1229
+ }
1230
+ if (!date2)
1231
+ return "";
1232
+ var timeData = typeof date2 === "string" ? new Date(date2.replace(/-/g, "/")) : date2;
1233
+ timeData = typeof date2 === "number" ? new Date(date2) : timeData;
1234
+ var o = {
1235
+ "M+": timeData.getMonth() + 1,
1236
+ "D+": timeData.getDate(),
1237
+ "h+": timeData.getHours() % 12 === 0 ? 12 : timeData.getHours() % 12,
1238
+ "H+": timeData.getHours(),
1239
+ "m+": timeData.getMinutes(),
1240
+ "s+": timeData.getSeconds(),
1241
+ "q+": Math.floor((timeData.getMonth() + 3) / 3),
1242
+ "S": timeData.getMilliseconds()
1279
1243
  };
1280
- DateClass2.prototype.formatPassTime = function(startTime) {
1281
- var currentTime = /* @__PURE__ */ new Date();
1282
- var time = currentTime - startTime;
1283
- var year = Math.floor(time / (1e3 * 60 * 60 * 24) / 30 / 12);
1284
- if (year)
1285
- return "".concat(year, "年前");
1286
- var month = Math.floor(time / (1e3 * 60 * 60 * 24) / 30);
1287
- if (month)
1288
- return "".concat(month, "个月前");
1289
- var day = Math.floor(time / (1e3 * 60 * 60 * 24));
1290
- if (day)
1291
- return "".concat(day, "天前");
1292
- var hour = Math.floor(time / (1e3 * 60 * 60));
1293
- if (hour)
1294
- return "".concat(hour, "小时前");
1295
- var min = Math.floor(time / (1e3 * 60));
1296
- if (min)
1297
- return "".concat(min, "分钟前");
1298
- else
1299
- return "刚刚";
1244
+ var week = {
1245
+ "0": "\u65E5",
1246
+ "1": "\u4E00",
1247
+ "2": "\u4E8C",
1248
+ "3": "\u4E09",
1249
+ "4": "\u56DB",
1250
+ "5": "\u4E94",
1251
+ "6": "\u516D"
1300
1252
  };
1301
- DateClass2.prototype.formatPassTimeForList = function(time) {
1302
- return DateClass2.prototype.formatPassTimeForDetail(time, "YYYY年MM月DD日", true);
1253
+ fmt = replacementYear(timeData, fmt);
1254
+ if (/(E+)/.test(fmt)) {
1255
+ fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "\u661F\u671F" : "\u5468" : "") + week[timeData.getDay() + " "]);
1256
+ }
1257
+ return replacementDate(o, fmt);
1258
+ };
1259
+ DateClass2.prototype.addDaysToDate = function(date2, days) {
1260
+ var d = typeof date2 === "object" ? date2 : new Date(date2);
1261
+ d.setDate(d.getDate() + days);
1262
+ return d.toISOString().split("T")[0];
1263
+ };
1264
+ DateClass2.prototype.remainTime = function(endTime, startTime) {
1265
+ if (startTime === void 0) {
1266
+ startTime = new Date();
1267
+ }
1268
+ var ts = Number(endTime) - Number(startTime);
1269
+ var dd = Math.floor(ts / 1e3 / 60 / 60 / 24);
1270
+ var hh = Math.floor(ts / 1e3 / 60 / 60 % 24);
1271
+ var mm = Math.floor(ts / 1e3 / 60 % 60);
1272
+ var ss = Math.floor(ts / 1e3 % 60);
1273
+ if (ts <= 0)
1274
+ return false;
1275
+ return {
1276
+ dd: dd < 10 ? "0" + dd : dd,
1277
+ hh: hh < 10 ? "0" + hh : hh,
1278
+ mm: mm < 10 ? "0" + mm : mm,
1279
+ ss: ss < 10 ? "0" + ss : ss
1303
1280
  };
1304
- DateClass2.prototype.formatPassTimeForDetail = function(time, fmt, noYear) {
1305
- if (fmt === void 0) {
1306
- fmt = "YYYY-MM-DD";
1307
- }
1308
- var date2 = typeof time === "number" ? new Date(time) : new Date((time || "").replace(/-/g, "/"));
1309
- var diff = ((/* @__PURE__ */ new Date()).getTime() - date2.getTime()) / 1e3;
1310
- var dayDiff = Math.floor(diff / 86400);
1311
- var isValidDate = Object.prototype.toString.call(date2) === "[object Date]" && !isNaN(date2.getTime());
1312
- if (!isValidDate)
1313
- return "";
1314
- var formatDate = function() {
1315
- var today = new Date(date2);
1316
- var o = {
1317
- "Y+": today.getFullYear(),
1318
- "M+": ("0" + (today.getMonth() + 1)).slice(-2),
1319
- "D+": ("0" + today.getDate()).slice(-2)
1320
- };
1321
- fmt = replacementYear(date2, fmt);
1322
- var year = today.getFullYear();
1323
- if (!((/* @__PURE__ */ new Date()).getFullYear() > year) && noYear) {
1324
- var backData = replacementDate(o, fmt);
1325
- return backData.split("年")[1];
1326
- }
1327
- return replacementDate(o, fmt);
1281
+ };
1282
+ DateClass2.prototype.formatPassTime = function(startTime) {
1283
+ var currentTime = new Date();
1284
+ var time = currentTime - startTime;
1285
+ var year = Math.floor(time / (1e3 * 60 * 60 * 24) / 30 / 12);
1286
+ if (year)
1287
+ return year + "\u5E74\u524D";
1288
+ var month = Math.floor(time / (1e3 * 60 * 60 * 24) / 30);
1289
+ if (month)
1290
+ return month + "\u4E2A\u6708\u524D";
1291
+ var day = Math.floor(time / (1e3 * 60 * 60 * 24));
1292
+ if (day)
1293
+ return day + "\u5929\u524D";
1294
+ var hour = Math.floor(time / (1e3 * 60 * 60));
1295
+ if (hour)
1296
+ return hour + "\u5C0F\u65F6\u524D";
1297
+ var min = Math.floor(time / (1e3 * 60));
1298
+ if (min)
1299
+ return min + "\u5206\u949F\u524D";
1300
+ else
1301
+ return "\u521A\u521A";
1302
+ };
1303
+ DateClass2.prototype.formatPassTimeForList = function(time) {
1304
+ return DateClass2.prototype.formatPassTimeForDetail(time, "YYYY\u5E74MM\u6708DD\u65E5", true);
1305
+ };
1306
+ DateClass2.prototype.formatPassTimeForDetail = function(time, fmt, noYear) {
1307
+ if (fmt === void 0) {
1308
+ fmt = "YYYY-MM-DD";
1309
+ }
1310
+ var date2 = typeof time === "number" ? new Date(time) : new Date((time || "").replace(/-/g, "/"));
1311
+ var diff = (new Date().getTime() - date2.getTime()) / 1e3;
1312
+ var dayDiff = Math.floor(diff / 86400);
1313
+ var isValidDate = Object.prototype.toString.call(date2) === "[object Date]" && !isNaN(date2.getTime());
1314
+ if (!isValidDate)
1315
+ return "";
1316
+ var formatDate = function() {
1317
+ var today = new Date(date2);
1318
+ var o = {
1319
+ "Y+": today.getFullYear(),
1320
+ "M+": ("0" + (today.getMonth() + 1)).slice(-2),
1321
+ "D+": ("0" + today.getDate()).slice(-2)
1328
1322
  };
1329
- if (dayDiff === -1) {
1330
- return "刚刚";
1331
- } else if (isNaN(dayDiff) || dayDiff < 0 || dayDiff >= 15) {
1332
- return formatDate();
1323
+ fmt = replacementYear(date2, fmt);
1324
+ var year = today.getFullYear();
1325
+ if (!(new Date().getFullYear() > year) && noYear) {
1326
+ var backData = replacementDate(o, fmt);
1327
+ return backData.split("\u5E74")[1];
1333
1328
  }
1334
- return dayDiff === 0 && (diff < 60 && "刚刚" || diff < 120 && "1分钟前" || diff < 3600 && Math.floor(diff / 60) + "分钟前" || diff < 7200 && "1小时前" || diff < 86400 && Math.floor(diff / 3600) + "小时前") || dayDiff < 16 && dayDiff + "天前";
1329
+ return replacementDate(o, fmt);
1335
1330
  };
1336
- return DateClass2;
1337
- }()
1338
- );
1339
- date$2.exports = new DateClass();
1340
- var dateExports = date$2.exports;
1341
- const date$1 = /* @__PURE__ */ getDefaultExportFromCjs(dateExports);
1342
- var tools$2 = { exports: {} };
1331
+ if (dayDiff === -1) {
1332
+ return "\u521A\u521A";
1333
+ } else if (isNaN(dayDiff) || dayDiff < 0 || dayDiff >= 15) {
1334
+ return formatDate();
1335
+ }
1336
+ return dayDiff === 0 && (diff < 60 && "\u521A\u521A" || diff < 120 && "1\u5206\u949F\u524D" || diff < 3600 && Math.floor(diff / 60) + "\u5206\u949F\u524D" || diff < 7200 && "1\u5C0F\u65F6\u524D" || diff < 86400 && Math.floor(diff / 3600) + "\u5C0F\u65F6\u524D") || dayDiff < 16 && dayDiff + "\u5929\u524D";
1337
+ };
1338
+ return DateClass2;
1339
+ }();
1340
+ date$1.exports = new DateClass();
1341
+ const date = /* @__PURE__ */ getDefaultExportFromCjs(date$1.exports);
1342
+ var tools$1 = { exports: {} };
1343
1343
  var _listCacheClear;
1344
1344
  var hasRequired_listCacheClear;
1345
1345
  function require_listCacheClear() {
@@ -2246,7 +2246,6 @@
2246
2246
  stubFalse_1 = stubFalse;
2247
2247
  return stubFalse_1;
2248
2248
  }
2249
- isBuffer.exports;
2250
2249
  var hasRequiredIsBuffer;
2251
2250
  function requireIsBuffer() {
2252
2251
  if (hasRequiredIsBuffer)
@@ -2326,7 +2325,6 @@
2326
2325
  return _baseUnary;
2327
2326
  }
2328
2327
  var _nodeUtil = { exports: {} };
2329
- _nodeUtil.exports;
2330
2328
  var hasRequired_nodeUtil;
2331
2329
  function require_nodeUtil() {
2332
2330
  if (hasRequired_nodeUtil)
@@ -2376,11 +2374,7 @@
2376
2374
  function arrayLikeKeys(value, inherited) {
2377
2375
  var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer2(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
2378
2376
  for (var key in value) {
2379
- if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
2380
- (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
2381
- isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
2382
- isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
2383
- isIndex(key, length)))) {
2377
+ if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
2384
2378
  result.push(key);
2385
2379
  }
2386
2380
  }
@@ -2560,7 +2554,6 @@
2560
2554
  return _baseAssignIn;
2561
2555
  }
2562
2556
  var _cloneBuffer = { exports: {} };
2563
- _cloneBuffer.exports;
2564
2557
  var hasRequired_cloneBuffer;
2565
2558
  function require_cloneBuffer() {
2566
2559
  if (hasRequired_cloneBuffer)
@@ -3225,295 +3218,296 @@
3225
3218
  }
3226
3219
  return clipboardCopy_1;
3227
3220
  }
3228
- var tools = tools$2.exports;
3229
- Object.defineProperty(tools, "__esModule", { value: true });
3221
+ Object.defineProperty(tools$1.exports, "__esModule", { value: true });
3230
3222
  var previous = 0;
3231
3223
  var timeout = null;
3232
- var ToolsClass = (
3233
- /** @class */
3234
- function() {
3235
- function ToolsClass2() {
3236
- var _this = this;
3237
- this.stopScroll = function(className) {
3238
- if (!(window && window.document)) {
3239
- return new Error("仅支持浏览器");
3240
- }
3241
- var html = document.documentElement;
3242
- html.style.overflow = "hidden";
3243
- html.style.height = "100%";
3244
- var body = document.body;
3245
- body.style.overflow = "hidden";
3246
- body.style.height = "100%";
3247
- if (className) {
3248
- var dom = document.querySelector(".".concat(className));
3249
- dom && dom.addEventListener("touchmove", _this.__setDefault__);
3250
- }
3251
- };
3252
- this.startScroll = function(className) {
3253
- if (!(window && window.document)) {
3254
- return new Error("仅支持浏览器");
3255
- }
3256
- var html = document.documentElement;
3257
- html.style.overflow = "visible";
3258
- html.style.height = "auto";
3259
- var body = document.body;
3260
- body.style.overflow = "visible";
3261
- body.style.height = "auto";
3262
- if (className) {
3263
- var dom = document.querySelector(".".concat(className));
3264
- dom && dom.removeEventListener("touchmove", _this.__setDefault__);
3265
- }
3266
- };
3267
- this.objectToArray = function(obj) {
3268
- var arr = [];
3269
- if (typeof obj === "object") {
3270
- for (var key in obj) {
3271
- if (obj.hasOwnProperty(key)) {
3272
- arr.push([key, obj[key]].join("="));
3273
- }
3274
- }
3275
- }
3276
- return arr;
3277
- };
3278
- this.convertKeyValueEnum = function(obj) {
3279
- var result = {};
3280
- if (typeof obj === "object") {
3281
- for (var key in obj) {
3282
- if (obj.hasOwnProperty(key)) {
3283
- result[obj[key]] = key;
3284
- }
3285
- }
3286
- }
3287
- return result;
3288
- };
3289
- this.isDefined = function(val) {
3290
- return val !== void 0 && val !== null;
3291
- };
3292
- this.__loaded__ = {};
3293
- this.__setDefault__ = function(e) {
3294
- e && e.preventDefault();
3295
- };
3296
- }
3297
- ToolsClass2.prototype.deepCopy = function(data) {
3298
- return JSON.parse(JSON.stringify(data));
3299
- };
3300
- ToolsClass2.prototype.deepCopy2 = function(obj) {
3301
- var _obj = Array.isArray(obj) ? [] : {};
3302
- for (var i in obj) {
3303
- _obj[i] = typeof obj[i] === "object" ? this.deepCopy2(obj[i]) : obj[i];
3304
- }
3305
- return _obj;
3306
- };
3307
- ToolsClass2.prototype.deepCopy3 = function(obj) {
3308
- var deepcopy = requireCloneDeep();
3309
- return deepcopy(obj);
3310
- };
3311
- ToolsClass2.prototype.debounce = function(func, wait) {
3312
- var delay = function() {
3313
- var args = arguments;
3314
- if (timeout)
3315
- clearTimeout(timeout);
3316
- timeout = setTimeout(function() {
3317
- func.apply(delay, args);
3318
- }, wait);
3319
- };
3320
- return delay;
3321
- };
3322
- ToolsClass2.prototype.throttle = function(func, wait) {
3323
- var delay = function() {
3324
- var now = Date.now();
3325
- if (now - previous > wait) {
3326
- func.apply(delay, arguments);
3327
- previous = now;
3328
- }
3329
- };
3330
- return delay;
3331
- };
3332
- ToolsClass2.prototype.getUrlName = function(url) {
3333
- return url && url.split("?")[0].split("/").reverse()[0];
3334
- };
3335
- ToolsClass2.prototype.loadJs = function(url) {
3336
- var _this = this;
3224
+ var ToolsClass = function() {
3225
+ function ToolsClass2() {
3226
+ var _this = this;
3227
+ this.stopScroll = function(className) {
3337
3228
  if (!(window && window.document)) {
3338
- return new Error("仅支持浏览器");
3339
- }
3340
- var name = this.getUrlName(url);
3341
- var id = "js_" + name;
3342
- return new Promise(function(resolve, reject) {
3343
- if (_this.__loaded__[id]) {
3344
- return resolve();
3345
- }
3346
- var script = document.createElement("script");
3347
- script.type = "text/javascript";
3348
- script.async = true;
3349
- script.src = url;
3350
- script.id = id;
3351
- script.onload = function() {
3352
- _this.__loaded__[id] = true;
3353
- resolve();
3354
- };
3355
- script.onerror = function(e) {
3356
- reject(e);
3357
- };
3358
- document.body.appendChild(script);
3359
- });
3360
- };
3361
- ToolsClass2.prototype.loadCss = function(url) {
3362
- var _this = this;
3363
- if (!(window && window.document)) {
3364
- return new Error("仅支持浏览器");
3365
- }
3366
- var name = this.getUrlName(url);
3367
- var id = "css_" + name;
3368
- return new Promise(function(resolve, reject) {
3369
- if (_this.__loaded__[id]) {
3370
- return resolve();
3371
- }
3372
- var link = document.createElement("link");
3373
- link.type = "text/css";
3374
- link.rel = "stylesheet";
3375
- link.href = url;
3376
- link.id = id;
3377
- link.onload = function() {
3378
- _this.__loaded__[id] = true;
3379
- resolve();
3380
- };
3381
- link.onerror = function(e) {
3382
- reject(e);
3383
- };
3384
- document.head.appendChild(link);
3385
- });
3386
- };
3387
- ToolsClass2.prototype.clipboard = function(str) {
3388
- if (!(window && window.document)) {
3389
- return new Error("仅支持浏览器");
3229
+ return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
3230
+ }
3231
+ var html = document.documentElement;
3232
+ html.style.overflow = "hidden";
3233
+ html.style.height = "100%";
3234
+ var body = document.body;
3235
+ body.style.overflow = "hidden";
3236
+ body.style.height = "100%";
3237
+ if (className) {
3238
+ var dom = document.querySelector("." + className);
3239
+ dom && dom.addEventListener("touchmove", _this.__setDefault__);
3390
3240
  }
3391
- var copy = requireClipboardCopy();
3392
- return copy(str);
3393
- };
3394
- ToolsClass2.prototype.firstUpperCase = function(str) {
3395
- return str.charAt(0).toUpperCase() + str.toString().slice(1);
3396
3241
  };
3397
- ToolsClass2.prototype.slice = function(target, length) {
3398
- if (target === void 0) {
3399
- target = "";
3400
- }
3401
- if (length === void 0) {
3402
- length = 0;
3242
+ this.startScroll = function(className) {
3243
+ if (!(window && window.document)) {
3244
+ return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
3245
+ }
3246
+ var html = document.documentElement;
3247
+ html.style.overflow = "visible";
3248
+ html.style.height = "auto";
3249
+ var body = document.body;
3250
+ body.style.overflow = "visible";
3251
+ body.style.height = "auto";
3252
+ if (className) {
3253
+ var dom = document.querySelector("." + className);
3254
+ dom && dom.removeEventListener("touchmove", _this.__setDefault__);
3403
3255
  }
3404
- return target.slice(0, length);
3405
3256
  };
3406
- ToolsClass2.prototype.guid = function() {
3407
- function S4() {
3408
- return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
3257
+ this.objectToArray = function(obj) {
3258
+ var arr = [];
3259
+ if (typeof obj === "object") {
3260
+ for (var key in obj) {
3261
+ if (obj.hasOwnProperty(key)) {
3262
+ arr.push([key, obj[key]].join("="));
3263
+ }
3264
+ }
3409
3265
  }
3410
- return S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4();
3266
+ return arr;
3411
3267
  };
3412
- ToolsClass2.prototype.getBytesOfText = function(str) {
3413
- if (str === void 0) {
3414
- str = "";
3268
+ this.convertKeyValueEnum = function(obj) {
3269
+ var result = {};
3270
+ if (typeof obj === "object") {
3271
+ for (var key in obj) {
3272
+ if (obj.hasOwnProperty(key)) {
3273
+ result[obj[key]] = key;
3274
+ }
3275
+ }
3415
3276
  }
3416
- return str.replace(/[^\u0000-\u00ff]/g, "aa").length;
3417
- };
3418
- ToolsClass2.prototype.uniqueArr = function(arr) {
3419
- return Array.from(new Set(arr));
3420
- };
3421
- ToolsClass2.prototype.swapArray = function(array, index1, index2) {
3422
- var _a;
3423
- _a = [array[index2], array[index1]], array[index1] = _a[0], array[index2] = _a[1];
3424
- return array;
3277
+ return result;
3425
3278
  };
3426
- ToolsClass2.prototype.filterEmoji = function(str) {
3427
- return str.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/mg, "");
3279
+ this.isDefined = function(val) {
3280
+ return val !== void 0 && val !== null;
3428
3281
  };
3429
- ToolsClass2.prototype.containsEmoji = function(str) {
3430
- var reg = /\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/mg;
3431
- return reg.test(str);
3282
+ this.__loaded__ = {};
3283
+ this.__setDefault__ = function(e) {
3284
+ e && e.preventDefault();
3432
3285
  };
3433
- ToolsClass2.prototype.containsHanZi = function(str) {
3434
- var reg = /[\u4e00-\u9fa5]/mg;
3435
- return reg.test(str);
3286
+ }
3287
+ ToolsClass2.prototype.deepCopy = function(data) {
3288
+ return JSON.parse(JSON.stringify(data));
3289
+ };
3290
+ ToolsClass2.prototype.deepCopy2 = function(obj) {
3291
+ var _obj = Array.isArray(obj) ? [] : {};
3292
+ for (var i in obj) {
3293
+ _obj[i] = typeof obj[i] === "object" ? this.deepCopy2(obj[i]) : obj[i];
3294
+ }
3295
+ return _obj;
3296
+ };
3297
+ ToolsClass2.prototype.deepCopy3 = function(obj) {
3298
+ var deepcopy = requireCloneDeep();
3299
+ return deepcopy(obj);
3300
+ };
3301
+ ToolsClass2.prototype.debounce = function(func, wait) {
3302
+ var delay = function() {
3303
+ var args = arguments;
3304
+ if (timeout)
3305
+ clearTimeout(timeout);
3306
+ timeout = setTimeout(function() {
3307
+ func.apply(delay, args);
3308
+ }, wait);
3436
3309
  };
3437
- ToolsClass2.prototype.isEmpty = function(val) {
3438
- if (val == null)
3439
- return true;
3440
- if (typeof val === "boolean")
3441
- return false;
3442
- if (typeof val === "number")
3443
- return !val;
3444
- if (val instanceof Error)
3445
- return val.message === "";
3446
- switch (Object.prototype.toString.call(val)) {
3447
- case "[object String]":
3448
- case "[object Array]":
3449
- return !val.length;
3450
- case "[object File]":
3451
- case "[object Map]":
3452
- case "[object Set]": {
3453
- return !val.size;
3454
- }
3455
- case "[object Object]": {
3456
- return !Object.keys(val).length;
3457
- }
3310
+ return delay;
3311
+ };
3312
+ ToolsClass2.prototype.throttle = function(func, wait) {
3313
+ var delay = function() {
3314
+ var now = Date.now();
3315
+ if (now - previous > wait) {
3316
+ func.apply(delay, arguments);
3317
+ previous = now;
3458
3318
  }
3459
- return false;
3460
3319
  };
3461
- ToolsClass2.prototype.sensitiveField = function(field, before, after) {
3462
- if (before === void 0) {
3463
- before = 3;
3464
- }
3465
- if (after === void 0) {
3466
- after = 4;
3467
- }
3468
- if (!field) {
3469
- return "";
3470
- }
3471
- field = String(field);
3472
- var sensitiveLen = field.length - before - after;
3473
- if (sensitiveLen < 0) {
3474
- sensitiveLen = 0;
3320
+ return delay;
3321
+ };
3322
+ ToolsClass2.prototype.getUrlName = function(url) {
3323
+ return url && url.split("?")[0].split("/").reverse()[0];
3324
+ };
3325
+ ToolsClass2.prototype.loadJs = function(url) {
3326
+ var _this = this;
3327
+ if (!(window && window.document)) {
3328
+ return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
3329
+ }
3330
+ var name = this.getUrlName(url);
3331
+ var id = "js_" + name;
3332
+ return new Promise(function(resolve, reject) {
3333
+ if (_this.__loaded__[id]) {
3334
+ return resolve();
3335
+ }
3336
+ var script = document.createElement("script");
3337
+ script.type = "text/javascript";
3338
+ script.async = true;
3339
+ script.src = url;
3340
+ script.id = id;
3341
+ script.onload = function() {
3342
+ _this.__loaded__[id] = true;
3343
+ resolve();
3344
+ };
3345
+ script.onerror = function(e) {
3346
+ reject(e);
3347
+ };
3348
+ document.body.appendChild(script);
3349
+ });
3350
+ };
3351
+ ToolsClass2.prototype.loadCss = function(url) {
3352
+ var _this = this;
3353
+ if (!(window && window.document)) {
3354
+ return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
3355
+ }
3356
+ var name = this.getUrlName(url);
3357
+ var id = "css_" + name;
3358
+ return new Promise(function(resolve, reject) {
3359
+ if (_this.__loaded__[id]) {
3360
+ return resolve();
3361
+ }
3362
+ var link = document.createElement("link");
3363
+ link.type = "text/css";
3364
+ link.rel = "stylesheet";
3365
+ link.href = url;
3366
+ link.id = id;
3367
+ link.onload = function() {
3368
+ _this.__loaded__[id] = true;
3369
+ resolve();
3370
+ };
3371
+ link.onerror = function(e) {
3372
+ reject(e);
3373
+ };
3374
+ document.head.appendChild(link);
3375
+ });
3376
+ };
3377
+ ToolsClass2.prototype.clipboard = function(str) {
3378
+ if (!(window && window.document)) {
3379
+ return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
3380
+ }
3381
+ var copy = requireClipboardCopy();
3382
+ return copy(str);
3383
+ };
3384
+ ToolsClass2.prototype.firstUpperCase = function(str) {
3385
+ return str.charAt(0).toUpperCase() + str.toString().slice(1);
3386
+ };
3387
+ ToolsClass2.prototype.slice = function(target, length) {
3388
+ if (target === void 0) {
3389
+ target = "";
3390
+ }
3391
+ if (length === void 0) {
3392
+ length = 0;
3393
+ }
3394
+ return target.slice(0, length);
3395
+ };
3396
+ ToolsClass2.prototype.guid = function() {
3397
+ function S4() {
3398
+ return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
3399
+ }
3400
+ return S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4();
3401
+ };
3402
+ ToolsClass2.prototype.getBytesOfText = function(str) {
3403
+ if (str === void 0) {
3404
+ str = "";
3405
+ }
3406
+ return str.replace(/[^\u0000-\u00ff]/g, "aa").length;
3407
+ };
3408
+ ToolsClass2.prototype.uniqueArr = function(arr) {
3409
+ return Array.from(new Set(arr));
3410
+ };
3411
+ ToolsClass2.prototype.swapArray = function(array, index1, index2) {
3412
+ var _a;
3413
+ _a = [array[index2], array[index1]], array[index1] = _a[0], array[index2] = _a[1];
3414
+ return array;
3415
+ };
3416
+ ToolsClass2.prototype.filterEmoji = function(str) {
3417
+ return str.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/mg, "");
3418
+ };
3419
+ ToolsClass2.prototype.containsEmoji = function(str) {
3420
+ var reg = /\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/mg;
3421
+ return reg.test(str);
3422
+ };
3423
+ ToolsClass2.prototype.containsHanZi = function(str) {
3424
+ var reg = /[\u4e00-\u9fa5]/mg;
3425
+ return reg.test(str);
3426
+ };
3427
+ ToolsClass2.prototype.isEmpty = function(val) {
3428
+ if (val == null)
3429
+ return true;
3430
+ if (typeof val === "boolean")
3431
+ return false;
3432
+ if (typeof val === "number")
3433
+ return !val;
3434
+ if (val instanceof Error)
3435
+ return val.message === "";
3436
+ switch (Object.prototype.toString.call(val)) {
3437
+ case "[object String]":
3438
+ case "[object Array]":
3439
+ return !val.length;
3440
+ case "[object File]":
3441
+ case "[object Map]":
3442
+ case "[object Set]": {
3443
+ return !val.size;
3444
+ }
3445
+ case "[object Object]": {
3446
+ return !Object.keys(val).length;
3475
3447
  }
3476
- var regItem = "[一-龥a-zA-Z0-9]";
3477
- var regExp = "(".concat(regItem, "{").concat(before, "})").concat(regItem, "*(").concat(regItem, "{").concat(after, "})");
3478
- var reg = new RegExp(regExp);
3479
- return field.replace(reg, "$1".concat("*".repeat(sensitiveLen), "$2"));
3480
- };
3481
- return ToolsClass2;
3482
- }()
3483
- );
3484
- tools$2.exports = new ToolsClass();
3485
- var toolsExports = tools$2.exports;
3486
- const tools$1 = /* @__PURE__ */ getDefaultExportFromCjs(toolsExports);
3487
- const _hoisted_1$6 = { style: { "margin-left": "20px", "color": "#FF5A25" } };
3488
- const _hoisted_2$3 = { class: "insert-article" };
3489
- const _hoisted_3$3 = { class: "insert-article_input" };
3490
- const _hoisted_4$2 = {
3448
+ }
3449
+ return false;
3450
+ };
3451
+ ToolsClass2.prototype.sensitiveField = function(field, before, after) {
3452
+ if (before === void 0) {
3453
+ before = 3;
3454
+ }
3455
+ if (after === void 0) {
3456
+ after = 4;
3457
+ }
3458
+ if (!field) {
3459
+ return "";
3460
+ }
3461
+ field = String(field);
3462
+ var sensitiveLen = field.length - before - after;
3463
+ if (sensitiveLen < 0) {
3464
+ sensitiveLen = 0;
3465
+ }
3466
+ var regItem = "[\u4E00-\u9FA5a-zA-Z0-9]";
3467
+ var regExp = "(" + regItem + "{" + before + "})" + regItem + "*(" + regItem + "{" + after + "})";
3468
+ var reg = new RegExp(regExp);
3469
+ return field.replace(reg, "$1" + "*".repeat(sensitiveLen) + "$2");
3470
+ };
3471
+ return ToolsClass2;
3472
+ }();
3473
+ tools$1.exports = new ToolsClass();
3474
+ const tools = /* @__PURE__ */ getDefaultExportFromCjs(tools$1.exports);
3475
+ const index_vue_vue_type_style_index_0_lang$4 = "";
3476
+ const _hoisted_1$6 = /* @__PURE__ */ vue.createTextVNode("\u63D2\u5165\u6587\u7AE0/\u89C6\u9891");
3477
+ const _hoisted_2$5 = { style: { "margin-left": "20px", "color": "#FF5A25" } };
3478
+ const _hoisted_3$5 = { class: "insert-article" };
3479
+ const _hoisted_4$4 = /* @__PURE__ */ vue.createTextVNode("\u4ECE\u6211\u7684\u6587\u7AE0\u4E2D\u9009\u62E9");
3480
+ const _hoisted_5$3 = /* @__PURE__ */ vue.createTextVNode("\u4ECE\u6211\u7684\u89C6\u9891\u4E2D\u9009\u62E9");
3481
+ const _hoisted_6$1 = /* @__PURE__ */ vue.createTextVNode("\u4ECE\u6240\u6709\u6587\u7AE0\u4E2D\u9009\u62E9");
3482
+ const _hoisted_7$1 = { class: "insert-article_input" };
3483
+ const _hoisted_8$1 = {
3491
3484
  key: 0,
3492
3485
  class: "nodata"
3493
3486
  };
3494
- const _hoisted_5$2 = ["infinite-scroll-disabled"];
3495
- const _hoisted_6$1 = {
3487
+ const _hoisted_9$1 = ["infinite-scroll-disabled"];
3488
+ const _hoisted_10$1 = {
3496
3489
  key: 0,
3497
3490
  class: "video-item"
3498
3491
  };
3499
- const _hoisted_7$1 = { class: "video-pic" };
3500
- const _hoisted_8$1 = ["src"];
3501
- const _hoisted_9$1 = ["src"];
3502
- const _hoisted_10$1 = { class: "video-text" };
3503
- const _hoisted_11$1 = { class: "dotdotdot2" };
3504
- const _hoisted_12$1 = {
3492
+ const _hoisted_11$1 = { class: "video-pic" };
3493
+ const _hoisted_12$1 = ["src"];
3494
+ const _hoisted_13$1 = ["src"];
3495
+ const _hoisted_14$1 = { class: "video-text" };
3496
+ const _hoisted_15$1 = { class: "dotdotdot2" };
3497
+ const _hoisted_16$1 = {
3505
3498
  key: 1,
3506
3499
  style: { "display": "inline-flex", "flex-direction": "column" }
3507
3500
  };
3508
3501
  const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
3509
- __name: "index",
3502
+ name: "index",
3510
3503
  props: {
3511
3504
  visible: { type: Boolean, default: false },
3512
- getList: {}
3505
+ getList: null
3513
3506
  },
3514
3507
  emits: ["change", "submit", "update:visible"],
3515
- setup(__props, { emit: __emit }) {
3516
- const { debounce } = tools$1;
3508
+ setup(__props, { emit: emits }) {
3509
+ const props = __props;
3510
+ const { debounce } = tools;
3517
3511
  const vInfiniteScroll = elementPlus.ElInfiniteScroll;
3518
3512
  const Radio_Type = {
3519
3513
  MY_ARITICLE: "1",
@@ -3531,9 +3525,7 @@
3531
3525
  emits("update:visible", val);
3532
3526
  }
3533
3527
  });
3534
- const props = __props;
3535
3528
  const { visible, getList } = vue.toRefs(props);
3536
- const emits = __emit;
3537
3529
  const data = vue.reactive({
3538
3530
  params: {
3539
3531
  autherid: "",
@@ -3564,7 +3556,7 @@
3564
3556
  };
3565
3557
  const confirm = () => {
3566
3558
  if (!data.article) {
3567
- elementPlus.ElMessage.error(`请选择${isVideo ? "视频" : "文章"}`);
3559
+ elementPlus.ElMessage.error(`\u8BF7\u9009\u62E9${isVideo ? "\u89C6\u9891" : "\u6587\u7AE0"}`);
3568
3560
  return;
3569
3561
  }
3570
3562
  data.article.isVideo = isVideo;
@@ -3588,7 +3580,6 @@
3588
3580
  autherid: data.params.radio !== Radio_Type.ALL_ARITICLE ? userId : "",
3589
3581
  limit: 20,
3590
3582
  allType: data.params.radio,
3591
- // 只有4 是查视频 其他是文章
3592
3583
  title: data.params.title,
3593
3584
  page: ++data.page
3594
3585
  });
@@ -3608,21 +3599,21 @@
3608
3599
  }, {
3609
3600
  title: vue.withCtx(() => [
3610
3601
  vue.createElementVNode("span", null, [
3611
- _cache[8] || (_cache[8] = vue.createTextVNode("插入文章/视频")),
3612
- vue.createElementVNode("strong", _hoisted_1$6, "平台仅支持插入" + vue.toDisplayString(`${isVideo.value ? "2" : "18个月"}`) + "内的推荐内容", 1)
3602
+ _hoisted_1$6,
3603
+ vue.createElementVNode("strong", _hoisted_2$5, "\u5E73\u53F0\u4EC5\u652F\u6301\u63D2\u5165" + vue.toDisplayString(`${vue.unref(isVideo) ? "2\u5E74" : "18\u4E2A\u6708"}`) + "\u5185\u7684\u63A8\u8350\u5185\u5BB9", 1)
3613
3604
  ])
3614
3605
  ]),
3615
3606
  default: vue.withCtx(() => [
3616
- vue.createElementVNode("div", _hoisted_2$3, [
3607
+ vue.createElementVNode("div", _hoisted_3$5, [
3617
3608
  vue.createElementVNode("div", null, [
3618
3609
  vue.createVNode(vue.unref(elementPlus.ElRadio), {
3619
3610
  modelValue: data.params.radio,
3620
3611
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.params.radio = $event),
3621
3612
  label: Radio_Type.MY_ARITICLE
3622
3613
  }, {
3623
- default: vue.withCtx(() => _cache[9] || (_cache[9] = [
3624
- vue.createTextVNode("从我的文章中选择")
3625
- ])),
3614
+ default: vue.withCtx(() => [
3615
+ _hoisted_4$4
3616
+ ]),
3626
3617
  _: 1
3627
3618
  }, 8, ["modelValue", "label"]),
3628
3619
  vue.createVNode(vue.unref(elementPlus.ElRadio), {
@@ -3630,9 +3621,9 @@
3630
3621
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data.params.radio = $event),
3631
3622
  label: Radio_Type.MY_VIDEO
3632
3623
  }, {
3633
- default: vue.withCtx(() => _cache[10] || (_cache[10] = [
3634
- vue.createTextVNode("从我的视频中选择")
3635
- ])),
3624
+ default: vue.withCtx(() => [
3625
+ _hoisted_5$3
3626
+ ]),
3636
3627
  _: 1
3637
3628
  }, 8, ["modelValue", "label"]),
3638
3629
  vue.createVNode(vue.unref(elementPlus.ElRadio), {
@@ -3640,17 +3631,17 @@
3640
3631
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => data.params.radio = $event),
3641
3632
  label: Radio_Type.ALL_ARITICLE
3642
3633
  }, {
3643
- default: vue.withCtx(() => _cache[11] || (_cache[11] = [
3644
- vue.createTextVNode("从所有文章中选择")
3645
- ])),
3634
+ default: vue.withCtx(() => [
3635
+ _hoisted_6$1
3636
+ ]),
3646
3637
  _: 1
3647
3638
  }, 8, ["modelValue", "label"])
3648
3639
  ]),
3649
- vue.createElementVNode("div", _hoisted_3$3, [
3640
+ vue.createElementVNode("div", _hoisted_7$1, [
3650
3641
  vue.createVNode(vue.unref(elementPlus.ElInput), {
3651
3642
  modelValue: data.params.title,
3652
3643
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => data.params.title = $event),
3653
- placeholder: isVideo.value ? "输入视频描述查找平台发布过的视频" : "输入标题名查找平台发过的文章",
3644
+ placeholder: vue.unref(isVideo) ? "\u8F93\u5165\u89C6\u9891\u63CF\u8FF0\u67E5\u627E\u5E73\u53F0\u53D1\u5E03\u8FC7\u7684\u89C6\u9891" : "\u8F93\u5165\u6807\u9898\u540D\u67E5\u627E\u5E73\u53F0\u53D1\u8FC7\u7684\u6587\u7AE0",
3654
3645
  onKeyup: _cache[5] || (_cache[5] = vue.withKeys(($event) => vue.unref(getArticleList)(true), ["enter", "native"])),
3655
3646
  onInput: _cache[6] || (_cache[6] = ($event) => vue.unref(getArticleList)(true))
3656
3647
  }, {
@@ -3664,11 +3655,11 @@
3664
3655
  _: 1
3665
3656
  }, 8, ["modelValue", "placeholder"])
3666
3657
  ]),
3667
- data.data.length === 0 && !data.busy ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, vue.toDisplayString(`没有符合条件的${isVideo.value ? "视频" : "文章"}哦,你可以试试搜索其他${isVideo.value ? "视频" : "文章"}~`), 1)) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
3658
+ data.data.length === 0 && !data.busy ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$1, vue.toDisplayString(`\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684${vue.unref(isVideo) ? "\u89C6\u9891" : "\u6587\u7AE0"}\u54E6\uFF0C\u4F60\u53EF\u4EE5\u8BD5\u8BD5\u641C\u7D22\u5176\u4ED6${vue.unref(isVideo) ? "\u89C6\u9891" : "\u6587\u7AE0"}\uFF5E`), 1)) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
3668
3659
  key: 1,
3669
3660
  "infinite-scroll-immediate": false,
3670
3661
  class: "insert-article_list",
3671
- "infinite-scroll-disabled": disable.value
3662
+ "infinite-scroll-disabled": vue.unref(disable)
3672
3663
  }, [
3673
3664
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(data.data, (item, index) => {
3674
3665
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -3684,24 +3675,24 @@
3684
3675
  default: vue.withCtx(() => {
3685
3676
  var _a;
3686
3677
  return [
3687
- isVideo.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
3688
- vue.createElementVNode("div", _hoisted_7$1, [
3678
+ vue.unref(isVideo) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$1, [
3679
+ vue.createElementVNode("div", _hoisted_11$1, [
3689
3680
  vue.createElementVNode("img", {
3690
3681
  class: "video-pic",
3691
3682
  src: (_a = item == null ? void 0 : item.mediaInfo[0]) == null ? void 0 : _a.img
3692
- }, null, 8, _hoisted_8$1),
3683
+ }, null, 8, _hoisted_12$1),
3693
3684
  vue.createElementVNode("img", {
3694
3685
  class: "play",
3695
3686
  src: getImageUrl("play.png")
3696
- }, null, 8, _hoisted_9$1)
3687
+ }, null, 8, _hoisted_13$1)
3697
3688
  ]),
3698
- vue.createElementVNode("div", _hoisted_10$1, [
3699
- vue.createElementVNode("span", _hoisted_11$1, vue.toDisplayString(item.content || "[无标题]"), 1),
3700
- vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(date$1).format(item.createTime * 1e3, "YYYY-MM-DD hh-mm")), 1)
3689
+ vue.createElementVNode("div", _hoisted_14$1, [
3690
+ vue.createElementVNode("span", _hoisted_15$1, vue.toDisplayString(item.content || "[\u65E0\u6807\u9898]"), 1),
3691
+ vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(date).format(item.createTime * 1e3, "YYYY-MM-DD hh-mm")), 1)
3701
3692
  ])
3702
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$1, [
3703
- vue.createElementVNode("span", null, vue.toDisplayString(item.title || "[无标题]"), 1),
3704
- vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(date$1).format(item.createTime * 1e3, "YYYY-MM-DD")), 1)
3693
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$1, [
3694
+ vue.createElementVNode("span", null, vue.toDisplayString(item.title || "[\u65E0\u6807\u9898]"), 1),
3695
+ vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(date).format(item.createTime * 1e3, "YYYY-MM-DD")), 1)
3705
3696
  ]))
3706
3697
  ];
3707
3698
  }),
@@ -3709,7 +3700,7 @@
3709
3700
  }, 1032, ["modelValue", "label", "onChange"])
3710
3701
  ]);
3711
3702
  }), 128))
3712
- ], 8, _hoisted_5$2)), [
3703
+ ], 8, _hoisted_9$1)), [
3713
3704
  [vue.unref(vInfiniteScroll), vue.unref(getArticleList)]
3714
3705
  ])
3715
3706
  ])
@@ -3719,7 +3710,6 @@
3719
3710
  };
3720
3711
  }
3721
3712
  });
3722
- const index_vue_vue_type_style_index_0_lang$4 = "";
3723
3713
  let getRandomValues;
3724
3714
  const rnds8 = new Uint8Array(16);
3725
3715
  function rng() {
@@ -3736,7 +3726,7 @@
3736
3726
  byteToHex.push((i + 256).toString(16).slice(1));
3737
3727
  }
3738
3728
  function unsafeStringify(arr, offset = 0) {
3739
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
3729
+ return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
3740
3730
  }
3741
3731
  const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3742
3732
  const native = {
@@ -3759,14 +3749,15 @@
3759
3749
  }
3760
3750
  return unsafeStringify(rnds);
3761
3751
  }
3752
+ const index_vue_vue_type_style_index_0_lang$3 = "";
3762
3753
  const _hoisted_1$5 = { class: "img-upload-content" };
3763
- const _hoisted_2$2 = { class: "title-box" };
3764
- const _hoisted_3$2 = ["onClick"];
3765
- const _hoisted_4$1 = {
3754
+ const _hoisted_2$4 = { class: "title-box" };
3755
+ const _hoisted_3$4 = ["onClick"];
3756
+ const _hoisted_4$3 = {
3766
3757
  key: 0,
3767
3758
  class: "line"
3768
3759
  };
3769
- const _hoisted_5$1 = {
3760
+ const _hoisted_5$2 = {
3770
3761
  key: 0,
3771
3762
  class: "prompt-restriction"
3772
3763
  };
@@ -3790,39 +3781,45 @@
3790
3781
  key: 0,
3791
3782
  class: "upload-wrap"
3792
3783
  };
3793
- const _hoisted_14 = {
3784
+ const _hoisted_14 = /* @__PURE__ */ vue.createElementVNode("span", null, "\u672C\u5730\u4E0A\u4F20", -1);
3785
+ const _hoisted_15 = /* @__PURE__ */ vue.createElementVNode("span", { class: "remark" }, "\u652F\u6301jpg\u3001jpeg\u3001png\u7B49\u591A\u79CD\u683C\u5F0F\uFF0C\u5355\u5F20\u56FE\u7247\u6700\u5927\u652F\u630120MB", -1);
3786
+ const _hoisted_16 = {
3794
3787
  key: 1,
3795
3788
  class: "img-list"
3796
3789
  };
3797
- const _hoisted_15 = ["src"];
3798
- const _hoisted_16 = { class: "upload-btn" };
3799
- const _hoisted_17 = {
3790
+ const _hoisted_17 = ["src"];
3791
+ const _hoisted_18 = { class: "upload-btn" };
3792
+ const _hoisted_19 = {
3800
3793
  key: 2,
3801
3794
  class: "map-depot"
3802
3795
  };
3803
- const _hoisted_18 = { class: "screen" };
3804
- const _hoisted_19 = { key: 0 };
3805
- const _hoisted_20 = { class: "tab-box" };
3806
- const _hoisted_21 = ["onClick"];
3807
- const _hoisted_22 = {
3796
+ const _hoisted_20 = { class: "screen" };
3797
+ const _hoisted_21 = /* @__PURE__ */ vue.createTextVNode("\u641C\u7D22");
3798
+ const _hoisted_22 = { key: 0 };
3799
+ const _hoisted_23 = { class: "tab-box" };
3800
+ const _hoisted_24 = ["onClick"];
3801
+ const _hoisted_25 = {
3808
3802
  key: 0,
3809
3803
  class: "line"
3810
3804
  };
3811
- const _hoisted_23 = { class: "image-list depot-image" };
3812
- const _hoisted_24 = ["onClick"];
3813
- const _hoisted_25 = ["src"];
3814
- const _hoisted_26 = {
3805
+ const _hoisted_26 = { class: "image-list depot-image" };
3806
+ const _hoisted_27 = ["onClick"];
3807
+ const _hoisted_28 = ["src"];
3808
+ const _hoisted_29 = {
3815
3809
  key: 0,
3816
3810
  class: "shade"
3817
3811
  };
3818
- const _hoisted_27 = { class: "num" };
3819
- const _hoisted_28 = {
3812
+ const _hoisted_30 = { class: "num" };
3813
+ const _hoisted_31 = {
3820
3814
  key: 1,
3821
3815
  class: "protocol-box"
3822
3816
  };
3823
- const _hoisted_29 = ["href"];
3817
+ const _hoisted_32 = /* @__PURE__ */ vue.createElementVNode("div", null, " \u56FE\u5E93\u4E2D\u7684\u56FE\u7247\u4EC5\u9650\u4E0B\u8F7D\u6469\u6258\u8303\u4EE5\u7F16\u8F91\u53D1\u5E03\u6587\u7AE0\u4F7F\u7528,\u4E0D\u5F97\u7528\u4E8E\u5176\u4ED6\u4EFB\u4F55\u5E73\u53F0\u53CA\u7528\u9014 ", -1);
3818
+ const _hoisted_33 = /* @__PURE__ */ vue.createTextVNode(" \u8BF7\u9605\u8BFB");
3819
+ const _hoisted_34 = ["href"];
3820
+ const _hoisted_35 = /* @__PURE__ */ vue.createTextVNode(",\u60A8\u7684\u884C\u4E3A\u89C6\u4E3A\u60A8\u5DF2\u540C\u610F\u8BE5\u534F\u8BAE\u3002 ");
3824
3821
  const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
3825
- __name: "index",
3822
+ name: "index",
3826
3823
  props: {
3827
3824
  visible: { type: Boolean, default: false },
3828
3825
  imgList: { default: [] },
@@ -3831,8 +3828,7 @@
3831
3828
  imgNum: { default: 20 }
3832
3829
  },
3833
3830
  emits: ["update:imgList", "update:visible", "submit"],
3834
- setup(__props, { emit: __emit }) {
3835
- const emits = __emit;
3831
+ setup(__props, { emit: emits }) {
3836
3832
  const props = __props;
3837
3833
  const drag = vue.ref(false);
3838
3834
  const imgListTemp = vue.computed({
@@ -3856,7 +3852,7 @@
3856
3852
  const tempImgs = [...props.imgList];
3857
3853
  Array.from(imgFile).forEach((file) => {
3858
3854
  if (file.size > 20 * 1024 * 1024) {
3859
- elementPlus.ElMessage.error("单张图片最大支持20M");
3855
+ elementPlus.ElMessage.error("\u5355\u5F20\u56FE\u7247\u6700\u5927\u652F\u630120M");
3860
3856
  return;
3861
3857
  }
3862
3858
  const id = v4();
@@ -3886,14 +3882,14 @@
3886
3882
  const list = [
3887
3883
  {
3888
3884
  id: 2,
3889
- value: "上传图片"
3885
+ value: "\u4E0A\u4F20\u56FE\u7247"
3890
3886
  }
3891
3887
  ];
3892
3888
  activeTitle.value = 2;
3893
3889
  if (props.imgNum < 20) {
3894
3890
  list.unshift({
3895
3891
  id: 1,
3896
- value: "正文图片"
3892
+ value: "\u6B63\u6587\u56FE\u7247"
3897
3893
  });
3898
3894
  activeTitle.value = 1;
3899
3895
  getContentImgList();
@@ -3901,7 +3897,7 @@
3901
3897
  if (props.chartGallery) {
3902
3898
  list.push({
3903
3899
  id: 3,
3904
- value: isEmotofine ? "电摩范图库" : "摩托范图库"
3900
+ value: isEmotofine ? "\u7535\u6469\u8303\u56FE\u5E93" : "\u6469\u6258\u8303\u56FE\u5E93"
3905
3901
  });
3906
3902
  }
3907
3903
  titleList.value = list;
@@ -4046,13 +4042,13 @@
4046
4042
  const tabList = vue.ref([]);
4047
4043
  const search = () => {
4048
4044
  if (!selectData.brandId) {
4049
- return elementPlus.ElMessage.error("请选择品牌");
4045
+ return elementPlus.ElMessage.error("\u8BF7\u9009\u62E9\u54C1\u724C");
4050
4046
  }
4051
4047
  if (!selectData.goodId) {
4052
- return elementPlus.ElMessage.error("请选择车型");
4048
+ return elementPlus.ElMessage.error("\u8BF7\u9009\u62E9\u8F66\u578B");
4053
4049
  }
4054
4050
  if (!selectData.carId) {
4055
- return elementPlus.ElMessage.error("请选择款型");
4051
+ return elementPlus.ElMessage.error("\u8BF7\u9009\u62E9\u6B3E\u578B");
4056
4052
  }
4057
4053
  tabList.value = [];
4058
4054
  emits("update:imgList", []);
@@ -4109,7 +4105,7 @@
4109
4105
  }, {
4110
4106
  default: vue.withCtx(() => [
4111
4107
  vue.createElementVNode("div", _hoisted_1$5, [
4112
- vue.createElementVNode("div", _hoisted_2$2, [
4108
+ vue.createElementVNode("div", _hoisted_2$4, [
4113
4109
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(titleList.value, (item, index) => {
4114
4110
  return vue.openBlock(), vue.createElementBlock("div", {
4115
4111
  key: index,
@@ -4117,15 +4113,15 @@
4117
4113
  onClick: ($event) => changeTab(item)
4118
4114
  }, [
4119
4115
  vue.createTextVNode(vue.toDisplayString(item.value) + " ", 1),
4120
- item.id === activeTitle.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1)) : vue.createCommentVNode("", true)
4121
- ], 10, _hoisted_3$2);
4116
+ item.id === activeTitle.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3)) : vue.createCommentVNode("", true)
4117
+ ], 10, _hoisted_3$4);
4122
4118
  }), 128)),
4123
- [1, 3].includes(activeTitle.value) && props.imgList.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, " 最多可选" + vue.toDisplayString(props.imgNum) + "张图片,已选" + vue.toDisplayString(props.imgList.length) + " ", 1)) : vue.createCommentVNode("", true),
4124
- activeTitle.value === 2 && props.imgList.length > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, vue.toDisplayString(props.imgList.length) + "张上传成功 拖动可调整顺序 ", 1)) : vue.createCommentVNode("", true)
4119
+ [1, 3].includes(activeTitle.value) && props.imgList.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$2, " \u6700\u591A\u53EF\u9009" + vue.toDisplayString(props.imgNum) + "\u5F20\u56FE\u7247\uFF0C\u5DF2\u9009" + vue.toDisplayString(props.imgList.length) + "\u5F20 ", 1)) : vue.createCommentVNode("", true),
4120
+ activeTitle.value === 2 && props.imgList.length > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, vue.toDisplayString(props.imgList.length) + "\u5F20\u4E0A\u4F20\u6210\u529F \u62D6\u52A8\u53EF\u8C03\u6574\u987A\u5E8F ", 1)) : vue.createCommentVNode("", true)
4125
4121
  ]),
4126
4122
  activeTitle.value === 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
4127
4123
  vue.createElementVNode("div", _hoisted_8, [
4128
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(contentImgList.value, (item, index) => {
4124
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(contentImgList), (item, index) => {
4129
4125
  return vue.openBlock(), vue.createElementBlock("div", {
4130
4126
  key: index,
4131
4127
  class: "image-item",
@@ -4158,13 +4154,13 @@
4158
4154
  ]),
4159
4155
  _: 1
4160
4156
  }),
4161
- _cache[7] || (_cache[7] = vue.createElementVNode("span", null, "本地上传", -1))
4157
+ _hoisted_14
4162
4158
  ]),
4163
- _cache[8] || (_cache[8] = vue.createElementVNode("span", { class: "remark" }, "支持jpg、jpeg、png等多种格式,单张图片最大支持20MB", -1))
4164
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
4165
- vue.createVNode(vue.unref(draggable), {
4166
- modelValue: imgListTemp.value,
4167
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => imgListTemp.value = $event),
4159
+ _hoisted_15
4160
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
4161
+ vue.createVNode(vue.unref(draggable__default.default), {
4162
+ modelValue: vue.unref(imgListTemp),
4163
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(imgListTemp) ? imgListTemp.value = $event : null),
4168
4164
  handle: ".img-item",
4169
4165
  class: "img-wrap",
4170
4166
  group: "people",
@@ -4182,7 +4178,7 @@
4182
4178
  style: { "object-fit": "contain" },
4183
4179
  width: "120",
4184
4180
  height: "120"
4185
- }, null, 8, _hoisted_15),
4181
+ }, null, 8, _hoisted_17),
4186
4182
  vue.createVNode(vue.unref(iconsVue.CircleCloseFilled), {
4187
4183
  class: "icon pointer",
4188
4184
  onClick: ($event) => deleteImg(element)
@@ -4205,7 +4201,7 @@
4205
4201
  _: 1
4206
4202
  }, 8, ["modelValue"])
4207
4203
  ])),
4208
- vue.createElementVNode("div", _hoisted_16, [
4204
+ vue.createElementVNode("div", _hoisted_18, [
4209
4205
  vue.createElementVNode("input", {
4210
4206
  type: "file",
4211
4207
  name: "file",
@@ -4216,13 +4212,13 @@
4216
4212
  }, null, 32)
4217
4213
  ])
4218
4214
  ], 2)) : vue.createCommentVNode("", true),
4219
- activeTitle.value === 3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
4220
- vue.createElementVNode("div", _hoisted_18, [
4215
+ activeTitle.value === 3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
4216
+ vue.createElementVNode("div", _hoisted_20, [
4221
4217
  vue.createElementVNode("div", null, [
4222
4218
  vue.createVNode(vue.unref(elementPlus.ElSelect), {
4223
4219
  modelValue: selectData.brandId,
4224
4220
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => selectData.brandId = $event),
4225
- placeholder: "请选择品牌",
4221
+ placeholder: "\u8BF7\u9009\u62E9\u54C1\u724C",
4226
4222
  size: "large",
4227
4223
  class: "select_1",
4228
4224
  filterable: "",
@@ -4243,7 +4239,7 @@
4243
4239
  vue.createVNode(vue.unref(elementPlus.ElSelect), {
4244
4240
  modelValue: selectData.goodId,
4245
4241
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => selectData.goodId = $event),
4246
- placeholder: "请选择车型",
4242
+ placeholder: "\u8BF7\u9009\u62E9\u8F66\u578B",
4247
4243
  size: "large",
4248
4244
  class: "select_1",
4249
4245
  filterable: "",
@@ -4264,7 +4260,7 @@
4264
4260
  vue.createVNode(vue.unref(elementPlus.ElSelect), {
4265
4261
  modelValue: selectData.carId,
4266
4262
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => selectData.carId = $event),
4267
- placeholder: "请选择款型",
4263
+ placeholder: "\u8BF7\u9009\u62E9\u6B3E\u578B",
4268
4264
  size: "large",
4269
4265
  class: "select_2",
4270
4266
  filterable: "",
@@ -4288,14 +4284,14 @@
4288
4284
  style: { "width": "80px" },
4289
4285
  onClick: search
4290
4286
  }, {
4291
- default: vue.withCtx(() => _cache[9] || (_cache[9] = [
4292
- vue.createTextVNode("搜索")
4293
- ])),
4287
+ default: vue.withCtx(() => [
4288
+ _hoisted_21
4289
+ ]),
4294
4290
  _: 1
4295
4291
  })
4296
4292
  ]),
4297
- tabList.value && tabList.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
4298
- vue.createElementVNode("div", _hoisted_20, [
4293
+ tabList.value && tabList.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22, [
4294
+ vue.createElementVNode("div", _hoisted_23, [
4299
4295
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(tabList.value, (item, index) => {
4300
4296
  return vue.openBlock(), vue.createElementBlock("div", {
4301
4297
  key: index,
@@ -4303,12 +4299,12 @@
4303
4299
  onClick: ($event) => activeTab.value = item.type
4304
4300
  }, [
4305
4301
  vue.createTextVNode(vue.toDisplayString(item.name) + " ", 1),
4306
- item.type === activeTab.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22)) : vue.createCommentVNode("", true)
4307
- ], 10, _hoisted_21);
4302
+ item.type === activeTab.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_25)) : vue.createCommentVNode("", true)
4303
+ ], 10, _hoisted_24);
4308
4304
  }), 128))
4309
4305
  ]),
4310
- vue.createElementVNode("div", _hoisted_23, [
4311
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageList.value, (item, index) => {
4306
+ vue.createElementVNode("div", _hoisted_26, [
4307
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(imageList), (item, index) => {
4312
4308
  return vue.openBlock(), vue.createElementBlock("div", {
4313
4309
  key: index,
4314
4310
  class: "image-item",
@@ -4318,25 +4314,25 @@
4318
4314
  src: item.imgOrgUrl,
4319
4315
  alt: "",
4320
4316
  class: "image"
4321
- }, null, 8, _hoisted_25),
4322
- item.num ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26, [
4323
- vue.createElementVNode("div", _hoisted_27, vue.toDisplayString(item.num), 1)
4317
+ }, null, 8, _hoisted_28),
4318
+ item.num ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_29, [
4319
+ vue.createElementVNode("div", _hoisted_30, vue.toDisplayString(item.num), 1)
4324
4320
  ])) : vue.createCommentVNode("", true)
4325
- ], 8, _hoisted_24);
4321
+ ], 8, _hoisted_27);
4326
4322
  }), 128))
4327
4323
  ])
4328
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_28, [
4324
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_31, [
4329
4325
  vue.createElementVNode("div", null, [
4330
- _cache[12] || (_cache[12] = vue.createElementVNode("div", null, " 图库中的图片仅限下载摩托范以编辑发布文章使用,不得用于其他任何平台及用途 ", -1)),
4326
+ _hoisted_32,
4331
4327
  vue.createElementVNode("div", null, [
4332
- _cache[10] || (_cache[10] = vue.createTextVNode(" 请阅读")),
4328
+ _hoisted_33,
4333
4329
  vue.createElementVNode("a", {
4334
4330
  href: `https://${vue.unref(hostName)}/about?type=imageLicenseAgreement`,
4335
4331
  target: "_blank",
4336
4332
  rel: "noopener noreferrer",
4337
4333
  class: "link"
4338
- }, "《摩托范图片许可使用协议》", 8, _hoisted_29),
4339
- _cache[11] || (_cache[11] = vue.createTextVNode(",您的行为视为您已同意该协议。 "))
4334
+ }, "\u300A\u6469\u6258\u8303\u56FE\u7247\u8BB8\u53EF\u4F7F\u7528\u534F\u8BAE\u300B", 8, _hoisted_34),
4335
+ _hoisted_35
4340
4336
  ])
4341
4337
  ])
4342
4338
  ]))
@@ -4348,23 +4344,25 @@
4348
4344
  };
4349
4345
  }
4350
4346
  });
4351
- const index_vue_vue_type_style_index_0_lang$3 = "";
4352
- const _hoisted_1$4 = { class: "insert-video" };
4347
+ const index_vue_vue_type_style_index_0_lang$2 = "";
4348
+ const _hoisted_1$4 = /* @__PURE__ */ vue.createElementVNode("span", null, "\u63D2\u5165\u89C6\u9891", -1);
4349
+ const _hoisted_2$3 = { class: "insert-video" };
4350
+ const _hoisted_3$3 = /* @__PURE__ */ vue.createTextVNode("\u9009\u62E9\u89C6\u9891");
4351
+ const _hoisted_4$2 = /* @__PURE__ */ vue.createElementVNode("span", { class: "remark" }, "\u4E3A\u4E86\u83B7\u5F97\u66F4\u9AD8\u7684\u63A8\u8350\u91CF\u548C\u70B9\u51FB\u91CF\uFF0C\u5EFA\u8BAE\u4E0A\u4F20720p\uFF081280*720\uFF09\u6216\u66F4\u9AD8\u5206\u8FA8\u7387\u7684\u89C6\u9891\uFF0C\u89C6\u9891\u683C\u5F0F\u4E3A.mp4\u6216.mov\uFF0C\u5927\u5C0F\u4E0D\u8D85\u8FC71G", -1);
4353
4352
  const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
4354
- __name: "index",
4353
+ name: "index",
4355
4354
  props: {
4356
4355
  visible: { type: Boolean, default: false },
4357
- fileSelected: {}
4356
+ fileSelected: null
4358
4357
  },
4359
4358
  emits: ["update:visible"],
4360
- setup(__props, { emit: __emit }) {
4361
- const emits = __emit;
4359
+ setup(__props, { emit: emits }) {
4360
+ const props = __props;
4362
4361
  vue.provide("vm", {
4363
4362
  setStatus(val) {
4364
4363
  emits("update:visible", val);
4365
4364
  }
4366
4365
  });
4367
- const props = __props;
4368
4366
  const { visible, fileSelected } = vue.toRefs(props);
4369
4367
  const emitEvent = () => {
4370
4368
  var event = new MouseEvent("click");
@@ -4378,23 +4376,23 @@
4378
4376
  width: "600px",
4379
4377
  height: "100px"
4380
4378
  }, {
4381
- title: vue.withCtx(() => _cache[1] || (_cache[1] = [
4382
- vue.createElementVNode("span", null, "插入视频", -1)
4383
- ])),
4379
+ title: vue.withCtx(() => [
4380
+ _hoisted_1$4
4381
+ ]),
4384
4382
  default: vue.withCtx(() => [
4385
- vue.createElementVNode("div", _hoisted_1$4, [
4383
+ vue.createElementVNode("div", _hoisted_2$3, [
4386
4384
  vue.createVNode(vue.unref(elementPlus.ElButton), {
4387
4385
  style: { "width": "120px" },
4388
4386
  round: "",
4389
4387
  type: "primary",
4390
4388
  onClick: emitEvent
4391
4389
  }, {
4392
- default: vue.withCtx(() => _cache[2] || (_cache[2] = [
4393
- vue.createTextVNode("选择视频")
4394
- ])),
4390
+ default: vue.withCtx(() => [
4391
+ _hoisted_3$3
4392
+ ]),
4395
4393
  _: 1
4396
4394
  }),
4397
- _cache[3] || (_cache[3] = vue.createElementVNode("span", { class: "remark" }, "为了获得更高的推荐量和点击量,建议上传720p(1280*720)或更高分辨率的视频,视频格式为.mp4或.mov,大小不超过1G", -1)),
4395
+ _hoisted_4$2,
4398
4396
  vue.createElementVNode("input", {
4399
4397
  type: "file",
4400
4398
  accept: "video/*",
@@ -4409,17 +4407,14 @@
4409
4407
  };
4410
4408
  }
4411
4409
  });
4412
- const index_vue_vue_type_style_index_0_lang$2 = "";
4413
4410
  const index_vue_vue_type_style_index_0_lang$1 = "";
4414
4411
  const _sfc_main$3 = {
4415
4412
  name: "TopicManager",
4416
4413
  props: {
4417
- // 编辑器DOM引用
4418
4414
  editorDom: {
4419
4415
  type: Object,
4420
4416
  default: null
4421
4417
  },
4422
- // 话题API请求方法
4423
4418
  request: {
4424
4419
  type: Object,
4425
4420
  default: null
@@ -4427,13 +4422,10 @@
4427
4422
  },
4428
4423
  data() {
4429
4424
  return {
4430
- // 话题弹框相关数据
4431
4425
  topicPopover: {
4432
4426
  visible: false,
4433
4427
  type: "hot",
4434
- // 'hot' 热门话题, 'search' 搜索话题
4435
4428
  activeTab: "hot",
4436
- // 'hot' 热门话题, 'recent' 最近使用
4437
4429
  position: { top: 0, left: 0 },
4438
4430
  searchKeyword: "",
4439
4431
  hotTopics: [],
@@ -4444,28 +4436,22 @@
4444
4436
  hasMore: true,
4445
4437
  searchPage: 1,
4446
4438
  searchHasMore: true,
4447
- // 用于增量更新的计数器
4448
4439
  newHotTopicsCount: 0,
4449
4440
  newSearchTopicsCount: 0,
4450
- // 保存原始的selection和range信息
4451
4441
  originalRange: null,
4452
4442
  originalSelection: null,
4453
- // 保存触发位置信息
4454
4443
  triggerInfo: {
4455
4444
  paragraph: null,
4456
4445
  hashIndex: -1,
4457
4446
  cursorPosition: 0
4458
4447
  },
4459
- // 全局弹框DOM引用
4460
4448
  globalContainer: null,
4461
4449
  globalMask: null
4462
4450
  },
4463
- // 中文输入法状态
4464
4451
  isComposing: false
4465
4452
  };
4466
4453
  },
4467
4454
  methods: {
4468
- // 初始化话题管理器
4469
4455
  init() {
4470
4456
  if (!this.editorDom) {
4471
4457
  console.warn("TopicManager: editorDom is required");
@@ -4473,7 +4459,6 @@
4473
4459
  }
4474
4460
  setTimeout(() => this.bindEditorEvents(), 0);
4475
4461
  },
4476
- // 绑定编辑器事件
4477
4462
  bindEditorEvents() {
4478
4463
  if (!this.editorDom)
4479
4464
  return;
@@ -4482,7 +4467,6 @@
4482
4467
  this.editorDom.addEventListener("compositionend", this.handleCompositionEnd.bind(this));
4483
4468
  this.editorDom.addEventListener("input", this.handleInput.bind(this));
4484
4469
  },
4485
- // 解绑编辑器事件
4486
4470
  unbindEditorEvents() {
4487
4471
  if (!this.editorDom)
4488
4472
  return;
@@ -4491,18 +4475,15 @@
4491
4475
  this.editorDom.removeEventListener("compositionend", this.handleCompositionEnd.bind(this));
4492
4476
  this.editorDom.removeEventListener("input", this.handleInput.bind(this));
4493
4477
  },
4494
- // 中文输入法开始事件
4495
4478
  handleCompositionStart() {
4496
4479
  this.isComposing = true;
4497
4480
  },
4498
- // 中文输入法结束事件(中文)
4499
4481
  handleCompositionEnd() {
4500
4482
  this.isComposing = false;
4501
4483
  setTimeout(() => {
4502
4484
  this.handleInputChange();
4503
4485
  }, 10);
4504
4486
  },
4505
- // input事件处理(英文)
4506
4487
  handleInput() {
4507
4488
  if (!this.isComposing) {
4508
4489
  setTimeout(() => {
@@ -4510,7 +4491,6 @@
4510
4491
  }, 10);
4511
4492
  }
4512
4493
  },
4513
- // 处理输入变化
4514
4494
  handleInputChange() {
4515
4495
  var _a;
4516
4496
  const selection = window.getSelection();
@@ -4538,7 +4518,6 @@
4538
4518
  return;
4539
4519
  this.checkAndTriggerSearch(paragraph);
4540
4520
  },
4541
- // 话题输入处理
4542
4521
  handleTopicInput(event) {
4543
4522
  var _a;
4544
4523
  const activeElement = document.activeElement;
@@ -4579,9 +4558,7 @@
4579
4558
  const triggerInfo = {
4580
4559
  paragraph,
4581
4560
  hashIndex: cursorPosition,
4582
- // #号的位置
4583
4561
  cursorPosition: cursorPosition + 1
4584
- // #号后的位置
4585
4562
  };
4586
4563
  this.showTopicPopover("hot", position, "", triggerInfo);
4587
4564
  }, 10);
@@ -4677,7 +4654,6 @@
4677
4654
  tempElement.remove();
4678
4655
  const position = {
4679
4656
  top: rect.bottom,
4680
- // 弹框显示在光标下方
4681
4657
  left: rect.left
4682
4658
  };
4683
4659
  const viewportWidth = window.innerWidth;
@@ -4695,7 +4671,7 @@
4695
4671
  }
4696
4672
  return position;
4697
4673
  } catch (error) {
4698
- console.warn("获取光标位置失败,使用fallback方法:", error);
4674
+ console.warn("\u83B7\u53D6\u5149\u6807\u4F4D\u7F6E\u5931\u8D25\uFF0C\u4F7F\u7528fallback\u65B9\u6CD5:", error);
4699
4675
  const rect = range.getBoundingClientRect();
4700
4676
  return {
4701
4677
  top: rect.bottom,
@@ -4703,10 +4679,9 @@
4703
4679
  };
4704
4680
  }
4705
4681
  },
4706
- // 话题弹框相关方法
4707
4682
  showTopicPopover(type, position, searchKeyword = "", triggerInfo = null) {
4708
4683
  if (!this.request || !this.request.getTopic) {
4709
- console.warn("话题功能需要提供 request.getTopic 方法");
4684
+ console.warn("\u8BDD\u9898\u529F\u80FD\u9700\u8981\u63D0\u4F9B request.getTopic \u65B9\u6CD5");
4710
4685
  return;
4711
4686
  }
4712
4687
  const selection = window.getSelection();
@@ -4779,11 +4754,11 @@
4779
4754
  }
4780
4755
  }
4781
4756
  } else {
4782
- console.warn("加载热门话题失败:", response);
4757
+ console.warn("\u52A0\u8F7D\u70ED\u95E8\u8BDD\u9898\u5931\u8D25:", response);
4783
4758
  this.topicPopover.hasMore = false;
4784
4759
  }
4785
4760
  } catch (error) {
4786
- console.error("加载热门话题失败:", error);
4761
+ console.error("\u52A0\u8F7D\u70ED\u95E8\u8BDD\u9898\u5931\u8D25:", error);
4787
4762
  this.topicPopover.hasMore = false;
4788
4763
  } finally {
4789
4764
  this.topicPopover.loading = false;
@@ -4817,18 +4792,17 @@
4817
4792
  this.topicPopover.searchHasMore = topics.length >= 50;
4818
4793
  }
4819
4794
  } else {
4820
- console.warn("搜索话题失败:", response);
4795
+ console.warn("\u641C\u7D22\u8BDD\u9898\u5931\u8D25:", response);
4821
4796
  this.topicPopover.searchHasMore = false;
4822
4797
  }
4823
4798
  } catch (error) {
4824
- console.error("搜索话题失败:", error);
4799
+ console.error("\u641C\u7D22\u8BDD\u9898\u5931\u8D25:", error);
4825
4800
  this.topicPopover.searchHasMore = false;
4826
4801
  } finally {
4827
4802
  this.topicPopover.loading = false;
4828
4803
  this.updateGlobalTopicPopover();
4829
4804
  }
4830
4805
  },
4831
- // 加载更多搜索话题
4832
4806
  async loadSearchTopics() {
4833
4807
  if (this.topicPopover.loading || !this.topicPopover.searchHasMore)
4834
4808
  return;
@@ -4856,11 +4830,11 @@
4856
4830
  }
4857
4831
  }
4858
4832
  } else {
4859
- console.warn("加载更多搜索话题失败:", response);
4833
+ console.warn("\u52A0\u8F7D\u66F4\u591A\u641C\u7D22\u8BDD\u9898\u5931\u8D25:", response);
4860
4834
  this.topicPopover.searchHasMore = false;
4861
4835
  }
4862
4836
  } catch (error) {
4863
- console.error("加载更多搜索话题失败:", error);
4837
+ console.error("\u52A0\u8F7D\u66F4\u591A\u641C\u7D22\u8BDD\u9898\u5931\u8D25:", error);
4864
4838
  this.topicPopover.searchHasMore = false;
4865
4839
  } finally {
4866
4840
  this.topicPopover.loading = false;
@@ -4872,7 +4846,7 @@
4872
4846
  const localTopics = JSON.parse(localStorage.getItem("localTopic") || "[]");
4873
4847
  this.topicPopover.recentTopics = localTopics;
4874
4848
  } catch (error) {
4875
- console.error("加载最近使用话题失败:", error);
4849
+ console.error("\u52A0\u8F7D\u6700\u8FD1\u4F7F\u7528\u8BDD\u9898\u5931\u8D25:", error);
4876
4850
  this.topicPopover.recentTopics = [];
4877
4851
  }
4878
4852
  },
@@ -4892,10 +4866,9 @@
4892
4866
  }
4893
4867
  localStorage.setItem("localTopic", JSON.stringify(recentTopics));
4894
4868
  } catch (error) {
4895
- console.error("保存最近使用话题失败:", error);
4869
+ console.error("\u4FDD\u5B58\u6700\u8FD1\u4F7F\u7528\u8BDD\u9898\u5931\u8D25:", error);
4896
4870
  }
4897
4871
  },
4898
- // 创建全局话题弹框
4899
4872
  createGlobalTopicPopover() {
4900
4873
  this.removeGlobalTopicPopover();
4901
4874
  const mask = document.createElement("div");
@@ -4919,7 +4892,6 @@
4919
4892
  this.topicPopover.globalContainer = container;
4920
4893
  this.bindTopicPopoverEvents();
4921
4894
  },
4922
- // 移除全局话题弹框
4923
4895
  removeGlobalTopicPopover() {
4924
4896
  if (this.topicPopover.globalMask) {
4925
4897
  document.body.removeChild(this.topicPopover.globalMask);
@@ -4930,14 +4902,12 @@
4930
4902
  this.topicPopover.globalContainer = null;
4931
4903
  }
4932
4904
  },
4933
- // 更新全局话题弹框内容
4934
4905
  updateGlobalTopicPopover() {
4935
4906
  if (!this.topicPopover.globalContainer)
4936
4907
  return;
4937
4908
  this.topicPopover.globalContainer.innerHTML = this.createTopicPopoverContent();
4938
4909
  this.bindTopicPopoverEvents();
4939
4910
  },
4940
- // 增量添加热门话题到DOM,避免重绘
4941
4911
  appendHotTopicsToDOM() {
4942
4912
  if (!this.topicPopover.globalContainer || this.topicPopover.newHotTopicsCount === 0)
4943
4913
  return;
@@ -4960,7 +4930,6 @@
4960
4930
  this.updateLoadingState(topicList, this.topicPopover.loading, this.topicPopover.hasMore);
4961
4931
  this.topicPopover.newHotTopicsCount = 0;
4962
4932
  },
4963
- // 增量添加搜索话题到DOM,避免重绘
4964
4933
  appendSearchTopicsToDOM() {
4965
4934
  if (!this.topicPopover.globalContainer || this.topicPopover.newSearchTopicsCount === 0)
4966
4935
  return;
@@ -4983,7 +4952,6 @@
4983
4952
  this.updateLoadingState(topicList, this.topicPopover.loading, this.topicPopover.searchHasMore);
4984
4953
  this.topicPopover.newSearchTopicsCount = 0;
4985
4954
  },
4986
- // 更新加载状态显示
4987
4955
  updateLoadingState(topicList, loading, hasMore) {
4988
4956
  const existingLoading = topicList.querySelector(".topic-loading");
4989
4957
  const existingEmpty = topicList.querySelector(".topic-empty");
@@ -4994,16 +4962,15 @@
4994
4962
  if (loading) {
4995
4963
  const loadingElement = document.createElement("div");
4996
4964
  loadingElement.className = "topic-loading";
4997
- loadingElement.textContent = "加载更多...";
4965
+ loadingElement.textContent = "\u52A0\u8F7D\u66F4\u591A...";
4998
4966
  topicList.appendChild(loadingElement);
4999
4967
  } else if (!hasMore) {
5000
4968
  const emptyElement = document.createElement("div");
5001
4969
  emptyElement.className = "topic-empty";
5002
- emptyElement.textContent = "没有更多了";
4970
+ emptyElement.textContent = "\u6CA1\u6709\u66F4\u591A\u4E86";
5003
4971
  topicList.appendChild(emptyElement);
5004
4972
  }
5005
4973
  },
5006
- // 创建话题弹框内容
5007
4974
  createTopicPopoverContent() {
5008
4975
  if (this.topicPopover.type === "hot") {
5009
4976
  return this.getHotTopicPopoverHTML();
@@ -5012,7 +4979,6 @@
5012
4979
  }
5013
4980
  return "";
5014
4981
  },
5015
- // 获取热门话题弹框HTML
5016
4982
  getHotTopicPopoverHTML() {
5017
4983
  const activeTab = this.topicPopover.activeTab;
5018
4984
  const hotTopics = this.topicPopover.hotTopics;
@@ -5022,22 +4988,22 @@
5022
4988
  let topicListHTML = "";
5023
4989
  if (activeTab === "hot") {
5024
4990
  if (loading && hotTopics.length === 0) {
5025
- topicListHTML = '<div class="topic-loading">加载中...</div>';
4991
+ topicListHTML = '<div class="topic-loading">\u52A0\u8F7D\u4E2D...</div>';
5026
4992
  } else if (hotTopics.length === 0) {
5027
- topicListHTML = '<div class="topic-empty">暂无热门话题</div>';
4993
+ topicListHTML = '<div class="topic-empty">\u6682\u65E0\u70ED\u95E8\u8BDD\u9898</div>';
5028
4994
  } else {
5029
4995
  topicListHTML = hotTopics.map(
5030
4996
  (topic) => `<div class="topic-item" data-topic-id="${topic.id}">#${topic.exactlyMatchTitle}</div>`
5031
4997
  ).join("");
5032
4998
  if (loading) {
5033
- topicListHTML += '<div class="topic-loading">加载更多...</div>';
4999
+ topicListHTML += '<div class="topic-loading">\u52A0\u8F7D\u66F4\u591A...</div>';
5034
5000
  } else if (!hasMore) {
5035
- topicListHTML += '<div class="topic-empty">没有更多了</div>';
5001
+ topicListHTML += '<div class="topic-empty">\u6CA1\u6709\u66F4\u591A\u4E86</div>';
5036
5002
  }
5037
5003
  }
5038
5004
  } else {
5039
5005
  if (recentTopics.length === 0) {
5040
- topicListHTML = '<div class="topic-empty">暂无最近使用记录</div>';
5006
+ topicListHTML = '<div class="topic-empty">\u6682\u65E0\u6700\u8FD1\u4F7F\u7528\u8BB0\u5F55</div>';
5041
5007
  } else {
5042
5008
  topicListHTML = recentTopics.map(
5043
5009
  (topic) => `<div class="topic-item" data-topic-id="${topic.id}">#${topic.exactlyMatchTitle}</div>`
@@ -5048,10 +5014,10 @@
5048
5014
  <div class="topic-popover-content">
5049
5015
  <div class="topic-tabs">
5050
5016
  <div class="topic-tab ${activeTab === "hot" ? "active" : ""}" data-tab="hot">
5051
- 热门话题
5017
+ \u70ED\u95E8\u8BDD\u9898
5052
5018
  </div>
5053
5019
  <div class="topic-tab ${activeTab === "recent" ? "active" : ""}" data-tab="recent">
5054
- 最近使用
5020
+ \u6700\u8FD1\u4F7F\u7528
5055
5021
  </div>
5056
5022
  </div>
5057
5023
  <div class="topic-list-container">
@@ -5062,7 +5028,6 @@
5062
5028
  </div>
5063
5029
  `;
5064
5030
  },
5065
- // 获取搜索话题弹框HTML
5066
5031
  getSearchTopicPopoverHTML() {
5067
5032
  const searchKeyword = this.topicPopover.searchKeyword;
5068
5033
  const searchTopics = this.topicPopover.searchTopics;
@@ -5070,17 +5035,17 @@
5070
5035
  const searchHasMore = this.topicPopover.searchHasMore;
5071
5036
  let topicListHTML = "";
5072
5037
  if (loading && searchTopics.length === 0) {
5073
- topicListHTML = '<div class="topic-loading">搜索中...</div>';
5038
+ topicListHTML = '<div class="topic-loading">\u641C\u7D22\u4E2D...</div>';
5074
5039
  } else if (searchTopics.length === 0) {
5075
- topicListHTML = '<div class="topic-empty">没有匹配到话题,请重新输入</div>';
5040
+ topicListHTML = '<div class="topic-empty">\u6CA1\u6709\u5339\u914D\u5230\u8BDD\u9898\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165</div>';
5076
5041
  } else {
5077
5042
  topicListHTML = searchTopics.map(
5078
5043
  (topic) => `<div class="topic-item" data-topic-id="${topic.id}">#${topic.exactlyMatchTitle}</div>`
5079
5044
  ).join("");
5080
5045
  if (loading) {
5081
- topicListHTML += '<div class="topic-loading">加载更多...</div>';
5046
+ topicListHTML += '<div class="topic-loading">\u52A0\u8F7D\u66F4\u591A...</div>';
5082
5047
  } else if (!searchHasMore) {
5083
- topicListHTML += '<div class="topic-empty">没有更多了</div>';
5048
+ topicListHTML += '<div class="topic-empty">\u6CA1\u6709\u66F4\u591A\u4E86</div>';
5084
5049
  }
5085
5050
  }
5086
5051
  return `
@@ -5096,7 +5061,6 @@
5096
5061
  </div>
5097
5062
  `;
5098
5063
  },
5099
- // 绑定话题弹框事件
5100
5064
  bindTopicPopoverEvents() {
5101
5065
  if (!this.topicPopover.globalContainer)
5102
5066
  return;
@@ -5128,7 +5092,6 @@
5128
5092
  });
5129
5093
  }
5130
5094
  },
5131
- // 根据ID查找话题
5132
5095
  findTopicById(topicId) {
5133
5096
  let topic = this.topicPopover.hotTopics.find((t) => t.id === topicId);
5134
5097
  if (topic)
@@ -5247,15 +5210,13 @@
5247
5210
  topicId: topic.id,
5248
5211
  topicType: 0,
5249
5212
  startIndex: 0,
5250
- // 会在updateTopicPosition中更新
5251
5213
  endIndex: 0
5252
- // 会在updateTopicPosition中更新
5253
5214
  }));
5254
5215
  topicElement.textContent = topicText;
5255
5216
  topicElement.setAttribute("contenteditable", "false");
5256
5217
  range.deleteContents();
5257
5218
  range.insertNode(topicElement);
5258
- const spaceNode = document.createTextNode(" ");
5219
+ const spaceNode = document.createTextNode("\xA0");
5259
5220
  range.setStartAfter(topicElement);
5260
5221
  range.insertNode(spaceNode);
5261
5222
  const newRange = document.createRange();
@@ -5279,7 +5240,6 @@
5279
5240
  }, 0);
5280
5241
  this.$emit("update-topic-position");
5281
5242
  },
5282
- // 销毁话题管理器
5283
5243
  destroy() {
5284
5244
  this.unbindEditorEvents();
5285
5245
  this.hideTopicPopover();
@@ -5307,7 +5267,7 @@
5307
5267
  components: {
5308
5268
  ElInput: elementPlus.ElInput,
5309
5269
  BasicDialog: _sfc_main$7,
5310
- draggable
5270
+ draggable: draggable__default.default
5311
5271
  },
5312
5272
  props: {
5313
5273
  visible: {
@@ -5348,12 +5308,14 @@
5348
5308
  setStatus(val) {
5349
5309
  this.$emit("update:visible", val);
5350
5310
  }
5351
- // submit() {
5352
- // this.$emit('submit')
5353
- // }
5354
5311
  }
5355
5312
  };
5356
- const _hoisted_1$2 = { class: "collect-article_content" };
5313
+ const _hoisted_1$2 = /* @__PURE__ */ vue.createElementVNode("div", null, [
5314
+ /* @__PURE__ */ vue.createElementVNode("span", null, "\u91C7\u96C6\u6587\u7AE0"),
5315
+ /* @__PURE__ */ vue.createElementVNode("span", { class: "collect-article_lable" }, "\u5982\u9700\u83B7\u5F97\u6B63\u5F0F\u4F7F\u7528\u6743\uFF0C\u8BF7\u81EA\u884C\u8054\u7CFB\u7248\u6743\u6240\u6709\u8005")
5316
+ ], -1);
5317
+ const _hoisted_2$2 = { class: "collect-article_content" };
5318
+ const _hoisted_3$2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "tip" }, "\u8BF7\u628A\u9700\u8981\u91C7\u96C6\u7684\u6587\u7AE0\u94FE\u63A5\u7C98\u8D34\u5728\u4E0B\u65B9\u7684\u8F93\u5165\u6846\uFF1A", -1);
5357
5319
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
5358
5320
  const _component_el_input = vue.resolveComponent("el-input");
5359
5321
  const _component_BasicDialog = vue.resolveComponent("BasicDialog");
@@ -5362,19 +5324,16 @@
5362
5324
  width: "600px",
5363
5325
  height: "50px"
5364
5326
  }, {
5365
- title: vue.withCtx(() => _cache[1] || (_cache[1] = [
5366
- vue.createElementVNode("div", null, [
5367
- vue.createElementVNode("span", null, "采集文章"),
5368
- vue.createElementVNode("span", { class: "collect-article_lable" }, "如需获得正式使用权,请自行联系版权所有者")
5369
- ], -1)
5370
- ])),
5327
+ title: vue.withCtx(() => [
5328
+ _hoisted_1$2
5329
+ ]),
5371
5330
  default: vue.withCtx(() => [
5372
- vue.createElementVNode("div", _hoisted_1$2, [
5373
- _cache[2] || (_cache[2] = vue.createElementVNode("div", { class: "tip" }, "请把需要采集的文章链接粘贴在下方的输入框:", -1)),
5331
+ vue.createElementVNode("div", _hoisted_2$2, [
5332
+ _hoisted_3$2,
5374
5333
  vue.createVNode(_component_el_input, {
5375
5334
  modelValue: $options.input,
5376
5335
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.input = $event),
5377
- placeholder: "仅支持微信链接"
5336
+ placeholder: "\u4EC5\u652F\u6301\u5FAE\u4FE1\u94FE\u63A5"
5378
5337
  }, null, 8, ["modelValue"])
5379
5338
  ])
5380
5339
  ]),
@@ -5382,7 +5341,7 @@
5382
5341
  }, 8, ["visible"]);
5383
5342
  }
5384
5343
  const CollectArticle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
5385
- const index_vue_vue_type_style_index_0_scoped_4ebe06df_lang = "";
5344
+ const index_vue_vue_type_style_index_0_scoped_true_lang = "";
5386
5345
  const _sfc_main$1 = {
5387
5346
  components: {
5388
5347
  ElIconError: iconsVue.CircleCloseFilled
@@ -5413,8 +5372,8 @@
5413
5372
  };
5414
5373
  const _hoisted_2$1 = ["src"];
5415
5374
  const _hoisted_3$1 = { class: "article-item_right" };
5416
- const _hoisted_4 = { class: "name" };
5417
- const _hoisted_5 = { class: "score" };
5375
+ const _hoisted_4$1 = { class: "name" };
5376
+ const _hoisted_5$1 = { class: "score" };
5418
5377
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
5419
5378
  const _component_el_icon_error = vue.resolveComponent("el-icon-error");
5420
5379
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
@@ -5424,11 +5383,11 @@
5424
5383
  alt: ""
5425
5384
  }, null, 8, _hoisted_2$1)) : vue.createCommentVNode("", true),
5426
5385
  vue.createElementVNode("div", _hoisted_3$1, [
5427
- vue.createElementVNode("div", _hoisted_4, vue.toDisplayString($props.article.title), 1),
5428
- vue.createElementVNode("div", _hoisted_5, [
5386
+ vue.createElementVNode("div", _hoisted_4$1, vue.toDisplayString($props.article.title), 1),
5387
+ vue.createElementVNode("div", _hoisted_5$1, [
5429
5388
  vue.createElementVNode("span", null, vue.toDisplayString($props.article.author), 1),
5430
- vue.createElementVNode("span", null, vue.toDisplayString($props.article.viewNum) + "浏览", 1),
5431
- vue.createElementVNode("span", null, vue.toDisplayString($props.article.replycnt) + "评论", 1)
5389
+ vue.createElementVNode("span", null, vue.toDisplayString($props.article.viewNum) + "\u6D4F\u89C8", 1),
5390
+ vue.createElementVNode("span", null, vue.toDisplayString($props.article.replycnt) + "\u8BC4\u8BBA", 1)
5432
5391
  ])
5433
5392
  ]),
5434
5393
  vue.createVNode(_component_el_icon_error, {
@@ -5440,10 +5399,10 @@
5440
5399
  class: vue.normalizeClass([{
5441
5400
  "article-bg-height": $props.article.img || $props.article.mediaInfo && $props.article.mediaInfo.length
5442
5401
  }, "article-bg"])
5443
- }, " 平台仅支持展示18个月的推荐内容 ", 2)) : vue.createCommentVNode("", true)
5402
+ }, " \u5E73\u53F0\u4EC5\u652F\u6301\u5C55\u793A18\u4E2A\u6708\u7684\u63A8\u8350\u5185\u5BB9 ", 2)) : vue.createCommentVNode("", true)
5444
5403
  ]);
5445
5404
  }
5446
- const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-4ebe06df"]]);
5405
+ const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-45d58d86"]]);
5447
5406
  const mountArticleDom = (props, del) => {
5448
5407
  const className = "article-wrap";
5449
5408
  const article = props.article;
@@ -5503,7 +5462,6 @@
5503
5462
  hasArticleCard: false,
5504
5463
  cursorStyle: "auto",
5505
5464
  titleCount: 0,
5506
- // 标题数量
5507
5465
  viewLinkDialog: false,
5508
5466
  linkForm: {
5509
5467
  linkAddress: "",
@@ -5511,54 +5469,39 @@
5511
5469
  },
5512
5470
  setAlignFlag: true,
5513
5471
  article: {},
5514
- // 插入的文章
5515
5472
  imgList: [],
5516
5473
  imgNum: 20,
5517
5474
  videoList: [],
5518
5475
  visibleVideo: false,
5519
5476
  visibleCollectArticle: false,
5520
5477
  visibleArticle: false,
5521
- // 插入文章
5522
5478
  visibleImg: false,
5523
- // 插入图片
5524
5479
  imgType: "normal",
5525
- //
5526
5480
  typeEnum: {
5527
- 文字: "1",
5528
- 图片: "2",
5529
- 图文: "3",
5530
- 段落标题: "4",
5531
- 关联: "5",
5532
- // 关联车辆、轨迹、活动、商家、话题
5533
- 单视频: "6",
5534
- 视频文字: "7",
5481
+ \u6587\u5B57: "1",
5482
+ \u56FE\u7247: "2",
5483
+ \u56FE\u6587: "3",
5484
+ \u6BB5\u843D\u6807\u9898: "4",
5485
+ \u5173\u8054: "5",
5486
+ \u5355\u89C6\u9891: "6",
5487
+ \u89C6\u9891\u6587\u5B57: "7",
5535
5488
  URL: "8",
5536
- 文章卡片: "11"
5489
+ \u6587\u7AE0\u5361\u7247: "11"
5537
5490
  },
5538
5491
  fontInfo: {
5539
5492
  size: ""
5540
5493
  },
5541
5494
  user: {},
5542
- // 用户
5543
5495
  editor: {},
5544
- // 编辑器实例对象
5545
5496
  editorDom: {},
5546
- // 编辑器Dom
5547
5497
  uploadStore: {},
5548
- // 待上传的图片池
5549
5498
  linkContent: "",
5550
- // 插入链接的地址
5551
5499
  loadingText: "",
5552
- // loaing的提示文字
5553
5500
  progressPercent: "",
5554
- // 上传进度
5555
5501
  currentIndex: 0,
5556
5502
  loading: false,
5557
- // 是否提交中
5558
5503
  viewStatus: false,
5559
- // todo: 改名
5560
5504
  linkStatus: false,
5561
- // todo: 改名
5562
5505
  styleStatus: {
5563
5506
  bold: false,
5564
5507
  italic: false,
@@ -5582,7 +5525,6 @@
5582
5525
  targetMove: "",
5583
5526
  moverClasses: ["halo-img-content", "halo-video-content"],
5584
5527
  selectDom: null
5585
- //选中的dom
5586
5528
  };
5587
5529
  },
5588
5530
  computed: {
@@ -5599,12 +5541,12 @@
5599
5541
  watch: {
5600
5542
  progressPercent(val) {
5601
5543
  const inner = document.querySelector(".video-progress .inner");
5602
- console.log(val, "视频上传进度");
5544
+ console.log(val, "\u89C6\u9891\u4E0A\u4F20\u8FDB\u5EA6");
5603
5545
  if (inner) {
5604
5546
  inner.style.width = val + "%";
5605
5547
  if (val === 100) {
5606
5548
  document.querySelector(".video-progress").innerHTML = `
5607
- <div class="no-calc" style="text-align:center;color:#999999;font-size:18px;">正在获取视频封面</div>
5549
+ <div class="no-calc" style="text-align:center;color:#999999;font-size:18px;">\u6B63\u5728\u83B7\u53D6\u89C6\u9891\u5C01\u9762</div>
5608
5550
  `;
5609
5551
  }
5610
5552
  }
@@ -5623,7 +5565,7 @@
5623
5565
  me2.user = JSON.parse(
5624
5566
  window.localStorage.getItem("user") || window.localStorage.getItem("userInfo") || "{}"
5625
5567
  );
5626
- me2.guid = me2.user.uid + "|" + util.tools.guid();
5568
+ me2.guid = me2.user.uid + "|" + util__default.default.tools.guid();
5627
5569
  },
5628
5570
  beforeDestroy() {
5629
5571
  this.editorDom && this.editorDom.removeEventListener("blur", this.canSetAlign);
@@ -5693,10 +5635,10 @@
5693
5635
  this.visibleVideo = false;
5694
5636
  const fileName = (files[0] && files[0].name || "").toLowerCase();
5695
5637
  if (files[0].size > 1 * 1024 * 1024 * 1024) {
5696
- return me2.setToast("视频大小不能超过1GB");
5638
+ return me2.setToast("\u89C6\u9891\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC71GB");
5697
5639
  }
5698
5640
  if (fileName.indexOf(".mp4") === -1 && fileName.indexOf(".mov") === -1) {
5699
- return me2.setToast("视频格式不是mp4或mov");
5641
+ return me2.setToast("\u89C6\u9891\u683C\u5F0F\u4E0D\u662Fmp4\u6216mov");
5700
5642
  }
5701
5643
  const me2 = this;
5702
5644
  if (me2.loading)
@@ -5716,9 +5658,7 @@
5716
5658
  id: result.videoId,
5717
5659
  desc: "",
5718
5660
  vodSize: result.vodSize || "",
5719
- // 视频大小
5720
5661
  vodType: result.vodType || ""
5721
- // 图片尺寸
5722
5662
  };
5723
5663
  me2.$emit("updateAddVideo", true);
5724
5664
  me2.editor["insertVideo"](result.videoUrl, video);
@@ -5772,11 +5712,11 @@
5772
5712
  },
5773
5713
  insertLink() {
5774
5714
  if (!this.linkForm.linkAddress)
5775
- return elementPlus.ElMessage.error("请输入链接地址");
5715
+ return elementPlus.ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740");
5776
5716
  if (!this.linkForm.linkWriting)
5777
- return elementPlus.ElMessage.error("请输入链接文案");
5717
+ return elementPlus.ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u6587\u6848");
5778
5718
  if (!this.validUrl(this.linkForm.linkAddress)) {
5779
- return this.setToast("URL无效");
5719
+ return this.setToast("URL\u65E0\u6548");
5780
5720
  }
5781
5721
  this.editor.insertLink(
5782
5722
  this.linkForm.linkAddress,
@@ -5805,7 +5745,6 @@
5805
5745
  });
5806
5746
  });
5807
5747
  },
5808
- // TopicManager事件处理
5809
5748
  onTopicInserted(topic) {
5810
5749
  this.updateData(true);
5811
5750
  },
@@ -6263,7 +6202,7 @@
6263
6202
  }
6264
6203
  this.updateData(true);
6265
6204
  } else {
6266
- this.setToast(rst.origin.name + "上传失败,请重试");
6205
+ this.setToast(rst.origin.name + "\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
6267
6206
  }
6268
6207
  },
6269
6208
  insertVideoBtns(editor, node) {
@@ -6278,7 +6217,7 @@
6278
6217
  me2.currentVideo = node;
6279
6218
  e.stopPropagation();
6280
6219
  };
6281
- replaceBtn.innerText = "更换封面";
6220
+ replaceBtn.innerText = "\u66F4\u6362\u5C01\u9762";
6282
6221
  return replaceBtn;
6283
6222
  },
6284
6223
  insertImgOperateBtns(editor, data) {
@@ -6304,7 +6243,7 @@
6304
6243
  maxlength: "50",
6305
6244
  rows: "2",
6306
6245
  cols: "50",
6307
- placeholder: "请输入图片描述(最多50字)",
6246
+ placeholder: "\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0(\u6700\u591A50\u5B57)",
6308
6247
  contenteditable: "false"
6309
6248
  });
6310
6249
  descInput.disabled = me2.disabled;
@@ -6313,7 +6252,7 @@
6313
6252
  const img = parent.querySelector(".halo-picture-area");
6314
6253
  img.dataset.desc = e.target.value;
6315
6254
  if (e.target.value.length > 49) {
6316
- return me2.setToast("限制50个字符");
6255
+ return me2.setToast("\u9650\u523650\u4E2A\u5B57\u7B26");
6317
6256
  }
6318
6257
  };
6319
6258
  descInput.value = data.content || "";
@@ -6363,7 +6302,7 @@
6363
6302
  me2.removeParentByClass(e.target, "halo-img-content");
6364
6303
  me2.updateData(true);
6365
6304
  };
6366
- replaceBtn.innerHTML = "替换";
6305
+ replaceBtn.innerHTML = "\u66FF\u6362";
6367
6306
  return [replaceBtn, delBtn, descInputWrap];
6368
6307
  },
6369
6308
  removeSeamlessLaster(e) {
@@ -6387,7 +6326,6 @@
6387
6326
  }
6388
6327
  }
6389
6328
  },
6390
- // 初始化编辑器数据,数据是 html 格式(displayData)
6391
6329
  initData(data = "", essayPicRelVOList) {
6392
6330
  this.parseHtml(data, essayPicRelVOList).then((res) => {
6393
6331
  this.editorDom.innerHTML = "";
@@ -6395,13 +6333,10 @@
6395
6333
  this.updateData();
6396
6334
  });
6397
6335
  },
6398
- // TODO jsonToHtml、htmlToJson 实现这 2 个方法里面的逻辑,数据结构参考方法里面的注释,出参入参都为字符串,注意:mdd-topic 里面的属性数据 和 json 中的topicPosition数据是一一对应的,startIndex、endIndex为mdd-topic的起止位置 从 content 里面进行分割处理
6399
- // json、html 数据格式互转,暂时只支持文字、短话题
6400
6336
  jsonToHtml(json) {
6401
6337
  },
6402
6338
  htmlToJson(html) {
6403
6339
  },
6404
- // 设置富文本组件
6405
6340
  initSquire() {
6406
6341
  const me2 = this;
6407
6342
  const editorDom = me2.editorDom;
@@ -6593,6 +6528,8 @@
6593
6528
  const prevParagraph = currentParagraph.previousElementSibling;
6594
6529
  if (prevParagraph && prevParagraph.classList.contains("halo-paragraph")) {
6595
6530
  const prevContent = prevParagraph.innerHTML.trim();
6531
+ if (!prevContent.toUpperCase().includes("MDD-TOPIC"))
6532
+ return;
6596
6533
  if (prevContent === "<br>" || prevContent === "") {
6597
6534
  prevParagraph.remove();
6598
6535
  event.preventDefault();
@@ -6849,7 +6786,6 @@
6849
6786
  window.Squire.empty(block)
6850
6787
  ]);
6851
6788
  output.appendChild(
6852
- // 段落才能添加标题
6853
6789
  Array.from(block.classList).indexOf("halo-img-content") > -1 ? block : container
6854
6790
  );
6855
6791
  }
@@ -6872,18 +6808,18 @@
6872
6808
  });
6873
6809
  loading.innerHTML = `
6874
6810
  <img class="img-loading-icon" src="/img/upload-image-loading.png"/>
6875
- <span class="img-loading-tip">上传中...</span>
6811
+ <span class="img-loading-tip">\u4E0A\u4F20\u4E2D...</span>
6876
6812
  `;
6877
6813
  var fail = this.createElement("div", {
6878
6814
  class: "img-fail hide",
6879
6815
  contenteditable: "false"
6880
6816
  });
6881
- fail.innerHTML = "上传失败<br>请下载图片至本地后重新上传";
6817
+ fail.innerHTML = "\u4E0A\u4F20\u5931\u8D25<br>\u8BF7\u4E0B\u8F7D\u56FE\u7247\u81F3\u672C\u5730\u540E\u91CD\u65B0\u4E0A\u4F20";
6882
6818
  var again = this.createElement("button", {
6883
6819
  class: "img-again hide",
6884
6820
  contenteditable: "false"
6885
6821
  });
6886
- again.innerHTML = "重新上传";
6822
+ again.innerHTML = "\u91CD\u65B0\u4E0A\u4F20";
6887
6823
  const isGif = src && src.indexOf(".gif") > -1;
6888
6824
  if (isGif) {
6889
6825
  src = src.replace(".gif", ".gif!nowater");
@@ -6938,7 +6874,7 @@
6938
6874
  });
6939
6875
  div.innerHTML = `
6940
6876
  <div class="video-progress">
6941
- <div class="label">上传中...</div>
6877
+ <div class="label">\u4E0A\u4F20\u4E2D...</div>
6942
6878
  <div class="box">
6943
6879
  <div class="inner" style="width:20%"></div>
6944
6880
  </div>
@@ -6961,7 +6897,6 @@
6961
6897
  data: JSON.stringify(data),
6962
6898
  "data-content": data.content || "",
6963
6899
  poster: data.img || ""
6964
- // 'contenteditable': 'true',
6965
6900
  });
6966
6901
  var delBtn = me2.genIconDom({
6967
6902
  class: "pointer video-delete icon",
@@ -7019,7 +6954,6 @@
7019
6954
  }
7020
6955
  };
7021
6956
  },
7022
- // 撤销重做 会把 所有的监听全都移除,所以需要重新绑定
7023
6957
  setListener(dom) {
7024
6958
  const me2 = this;
7025
6959
  const doms = dom ? [dom] : Array.from(this.editorDom.children);
@@ -7030,7 +6964,7 @@
7030
6964
  p.onclick = function(e) {
7031
6965
  var _a;
7032
6966
  if (area.nodeName === "VIDEO" && ((_a = me2.selectDom) == null ? void 0 : _a.className) === "halo-video-content") {
7033
- me2.setToast("不支持播放");
6967
+ me2.setToast("\u4E0D\u652F\u6301\u64AD\u653E");
7034
6968
  }
7035
6969
  if (e.target.className.includes("desc-input")) {
7036
6970
  return;
@@ -7094,7 +7028,6 @@
7094
7028
  };
7095
7029
  return del;
7096
7030
  },
7097
- // 转换数据,返回给业务
7098
7031
  getEditorData() {
7099
7032
  const me2 = this;
7100
7033
  const children = Array.from(me2.editorDom.children);
@@ -7152,11 +7085,9 @@
7152
7085
  videoIds
7153
7086
  };
7154
7087
  },
7155
- // 是否是摩托范的图片
7156
7088
  isHaloImage(url = "") {
7157
7089
  return url.indexOf("jddmoto") > -1 || url.indexOf("58moto") > -1 || url.indexOf("emotofine") > -1 || url.indexOf("dronefine") > -1;
7158
7090
  },
7159
- // 获取待上传图片列表
7160
7091
  updateUploads() {
7161
7092
  const me2 = this;
7162
7093
  setTimeout(() => {
@@ -7203,8 +7134,8 @@
7203
7134
  const currentImg = me2.uploadStore[key];
7204
7135
  const imageUrl = key.split("|")[1] || "";
7205
7136
  if (!currentImg) {
7206
- console.log("图片不存在", key);
7207
- return Promise.reject("图片不存在");
7137
+ console.log("\u56FE\u7247\u4E0D\u5B58\u5728", key);
7138
+ return Promise.reject("\u56FE\u7247\u4E0D\u5B58\u5728");
7208
7139
  }
7209
7140
  const parent = currentImg.parentNode || "";
7210
7141
  const uploadFailHandler = (currentImg2) => {
@@ -7248,7 +7179,6 @@
7248
7179
  parent && uploadFailHandler(currentImg);
7249
7180
  });
7250
7181
  },
7251
- // 更新上传的图片
7252
7182
  updateImage(img, currentImg = {}) {
7253
7183
  const data = JSON.parse(currentImg.getAttribute("data") || "{}");
7254
7184
  data.img = img;
@@ -7271,14 +7201,27 @@
7271
7201
  parent.appendChild(arr[2]);
7272
7202
  }
7273
7203
  },
7274
- // 获取ctrl + v 后内容
7275
7204
  getSticker(type, handler) {
7276
7205
  this.setSticker(type.fragment.children);
7277
7206
  },
7207
+ setStickerTableContent(data) {
7208
+ const me2 = this;
7209
+ const rows = data.querySelectorAll("tr") || [];
7210
+ Array.from(rows).forEach(function(row) {
7211
+ const text = (row.textContent || "").replace(/\u00A0/g, " ").trim();
7212
+ if (text) {
7213
+ me2.editor.makeParagraph(text);
7214
+ }
7215
+ });
7216
+ },
7278
7217
  setStickerTextContent(data) {
7279
7218
  const me2 = this;
7280
7219
  data = Array.from(data);
7281
7220
  data.map(function(value, index) {
7221
+ if (value.tagName === "TABLE") {
7222
+ me2.setStickerTableContent(value);
7223
+ return;
7224
+ }
7282
7225
  const htmlArr = (value.innerHTML || value.outerHTML).replace(/<p[^>]*>(.*?)<\/p>/gi, "(delimiter)$1(delimiter)").replace(/<(?!\/?p\b)[^>]+>/gi, "").replace(/<\/?p[^>]*>/gi, "").replace(/<\/?.+?>/g, "").split("(delimiter)");
7283
7226
  htmlArr.map(function(nValue) {
7284
7227
  if (!nValue || nValue === "&nbsp;") {
@@ -7289,7 +7232,6 @@
7289
7232
  });
7290
7233
  this.updateData(true);
7291
7234
  },
7292
- // 粘贴
7293
7235
  setSticker(data) {
7294
7236
  const me2 = this;
7295
7237
  data = Array.from(data);
@@ -7328,7 +7270,6 @@
7328
7270
  const me2 = this;
7329
7271
  me2.updateData();
7330
7272
  },
7331
- // 监测 添加、撤回、恢复、删除
7332
7273
  setBack(e, type) {
7333
7274
  const me2 = this;
7334
7275
  me2.refreshImg();
@@ -7361,7 +7302,6 @@
7361
7302
  }
7362
7303
  });
7363
7304
  },
7364
- // 设置scoll
7365
7305
  sticky() {
7366
7306
  const me2 = this;
7367
7307
  me2.$nextTick(function() {
@@ -7381,8 +7321,6 @@
7381
7321
  document.addEventListener("scroll", onScroll);
7382
7322
  });
7383
7323
  },
7384
- // ==========toolbox==========
7385
- // 撤回、恢复、段落标题
7386
7324
  setContent(e, obj) {
7387
7325
  const me2 = this;
7388
7326
  const id = e.target.id || e.target.dataset.editorId;
@@ -7424,11 +7362,10 @@
7424
7362
  this.fontInfo = this.editor.getFontInfo();
7425
7363
  this.updateData(true);
7426
7364
  },
7427
- // 增加link
7428
7365
  addLink(type) {
7429
7366
  const me2 = this;
7430
- me2.linkTitleName = type === "link" ? "添加链接" : "添加导入链接地址";
7431
- me2.linkPlaceholder = type === "link" ? "请输入链接地址" : "仅支持输入微信链接";
7367
+ me2.linkTitleName = type === "link" ? "\u6DFB\u52A0\u94FE\u63A5" : "\u6DFB\u52A0\u5BFC\u5165\u94FE\u63A5\u5730\u5740";
7368
+ me2.linkPlaceholder = type === "link" ? "\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740" : "\u4EC5\u652F\u6301\u8F93\u5165\u5FAE\u4FE1\u94FE\u63A5";
7432
7369
  me2.viewStatus = true;
7433
7370
  me2.linkStatus = true;
7434
7371
  },
@@ -7436,31 +7373,29 @@
7436
7373
  const objExp = /^(((ht|f)tp(s?)):\/\/)?(www.|[a-zA-Z].)[a-zA-Z0-9-.]+.(com|edu|gov|mil|net|org|biz|info|name|museum|us|ca|uk|cn|im)(:[0-9]+)*(\/($|[a-zA-Z0-9.,;?'&%$#=~_-]+))*$/;
7437
7374
  return objExp.test(url);
7438
7375
  },
7439
- // 确认增加link
7440
7376
  confirmLink() {
7441
7377
  const me2 = this;
7442
7378
  if (!me2.linkContent) {
7443
- return elementPlus.ElMessage.error("请输入链接地址!");
7379
+ return elementPlus.ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740\uFF01");
7444
7380
  }
7445
- if (me2.linkTitleName === "添加导入链接地址" || this.visibleCollectArticle) {
7381
+ if (me2.linkTitleName === "\u6DFB\u52A0\u5BFC\u5165\u94FE\u63A5\u5730\u5740" || this.visibleCollectArticle) {
7446
7382
  this.visibleCollectArticle = false;
7447
7383
  return me2.importLinkData();
7448
7384
  }
7449
7385
  if (!this.validUrl(me2.linkContent)) {
7450
- return me2.setToast("URL无效");
7386
+ return me2.setToast("URL\u65E0\u6548");
7451
7387
  }
7452
7388
  if (!me2.isHaloImage(me2.linkContent)) {
7453
- return me2.setToast("请输入摩托范内部网址");
7389
+ return me2.setToast("\u8BF7\u8F93\u5165\u6469\u6258\u8303\u5185\u90E8\u7F51\u5740");
7454
7390
  }
7455
7391
  me2.editor["insertLink"](me2.linkContent);
7456
7392
  me2.linkContent = "";
7457
7393
  me2.closeDialog();
7458
7394
  },
7459
- // 增加link导入数据
7460
7395
  importLinkData() {
7461
7396
  const me2 = this;
7462
7397
  if (me2.loading) {
7463
- return elementPlus.ElMessage("正在获取信息,请稍后...");
7398
+ return elementPlus.ElMessage("\u6B63\u5728\u83B7\u53D6\u4FE1\u606F\uFF0C\u8BF7\u7A0D\u540E...");
7464
7399
  }
7465
7400
  me2.loading = true;
7466
7401
  const params = {
@@ -7482,44 +7417,39 @@
7482
7417
  me2.linkContent = "";
7483
7418
  return;
7484
7419
  } else {
7485
- me2.setToast("导入失败,请重试");
7420
+ me2.setToast("\u5BFC\u5165\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
7486
7421
  }
7487
7422
  }).catch((err) => {
7488
7423
  console.log(err.message);
7489
- me2.setToast("导入异常,请重试");
7424
+ me2.setToast("\u5BFC\u5165\u5F02\u5E38\uFF0C\u8BF7\u91CD\u8BD5");
7490
7425
  }).finally((_) => {
7491
7426
  me2.loading = false;
7492
7427
  });
7493
7428
  },
7494
- // 打开 图片、视频、一键导入 弹框
7495
7429
  openDialog(name) {
7496
7430
  const me2 = this;
7497
- me2.viewName = name === "img" ? "添加图片" : "添加视频";
7498
- me2.viewButton = name === "img" ? "选择图片" : "选择视频";
7499
- me2.viewTip = name === "img" ? "" : "为了获得更高的推荐和点击量,建议上传720p(1280*720),大小不超过500MB(视频上传需要时间,请耐心等待)";
7431
+ me2.viewName = name === "img" ? "\u6DFB\u52A0\u56FE\u7247" : "\u6DFB\u52A0\u89C6\u9891";
7432
+ me2.viewButton = name === "img" ? "\u9009\u62E9\u56FE\u7247" : "\u9009\u62E9\u89C6\u9891";
7433
+ me2.viewTip = name === "img" ? "" : "\u4E3A\u4E86\u83B7\u5F97\u66F4\u9AD8\u7684\u63A8\u8350\u548C\u70B9\u51FB\u91CF\uFF0C\u5EFA\u8BAE\u4E0A\u4F20720p(1280*720)\uFF0C\u5927\u5C0F\u4E0D\u8D85\u8FC7500MB(\u89C6\u9891\u4E0A\u4F20\u9700\u8981\u65F6\u95F4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85)";
7500
7434
  me2.viewStatus = true;
7501
7435
  },
7502
- // 关闭弹框
7503
7436
  closeDialog() {
7504
7437
  this.viewStatus = false;
7505
7438
  this.linkStatus = false;
7506
7439
  this.linkContent = "";
7507
7440
  },
7508
- // ==========toolbox end==========
7509
- // 弹框提示
7510
7441
  setToast(content) {
7511
7442
  elementPlus.ElMessage.error(content);
7512
7443
  },
7513
7444
  setMessageBoxNoCancel(content) {
7514
7445
  elementPlus.ElMessageBox.confirm(content, "", {
7515
- confirmButtonText: "确定",
7516
- cancelButtonText: "取消",
7446
+ confirmButtonText: "\u786E\u5B9A",
7447
+ cancelButtonText: "\u53D6\u6D88",
7517
7448
  type: "warning"
7518
7449
  }).then(() => {
7519
7450
  }).catch(() => {
7520
7451
  });
7521
7452
  },
7522
- // 检查是否会创建嵌套的halo-paragraph
7523
7453
  wouldCreateNestedParagraph(range) {
7524
7454
  let container = range.startContainer;
7525
7455
  while (container && container !== this.editorDom) {
@@ -7530,7 +7460,6 @@
7530
7460
  }
7531
7461
  return false;
7532
7462
  },
7533
- // 检查光标是否在两个连续的mdd-topic之间
7534
7463
  isBetweenTwoTopics(range) {
7535
7464
  const container = range.startContainer;
7536
7465
  const offset = range.startOffset;
@@ -7546,7 +7475,6 @@
7546
7475
  }
7547
7476
  return false;
7548
7477
  },
7549
- // 处理两个话题之间的回车或话题前面的回车
7550
7478
  handleEnterBetweenTopics(range) {
7551
7479
  var _a;
7552
7480
  const me2 = this;
@@ -7584,7 +7512,6 @@
7584
7512
  selection.addRange(newRange);
7585
7513
  me2.updateData(true);
7586
7514
  },
7587
- // 更精确地提取光标后的内容(专门用于话题分割)
7588
7515
  extractContentAfterCursorPrecise(range, paragraph) {
7589
7516
  const fragment = document.createDocumentFragment();
7590
7517
  const container = range.startContainer;
@@ -7610,7 +7537,6 @@
7610
7537
  }
7611
7538
  return fragment;
7612
7539
  },
7613
- // 处理包含话题的段落中的回车键
7614
7540
  handleEnterKeyInParagraphWithTopic(range) {
7615
7541
  var _a;
7616
7542
  const me2 = this;
@@ -7685,7 +7611,6 @@
7685
7611
  selection.addRange(newRange);
7686
7612
  me2.updateData(true);
7687
7613
  },
7688
- // 检查光标是否在第一个话题前面
7689
7614
  isCursorBeforeFirstTopic(range, paragraph) {
7690
7615
  const container = range.startContainer;
7691
7616
  const offset = range.startOffset;
@@ -7747,7 +7672,6 @@
7747
7672
  }
7748
7673
  return false;
7749
7674
  },
7750
- // 获取不包含mdd-topic内部文本的段落文本
7751
7675
  getParagraphTextExcludingTopics(paragraph, range) {
7752
7676
  let textContent = "";
7753
7677
  let cursorPosition = 0;
@@ -7778,12 +7702,10 @@
7778
7702
  }
7779
7703
  return { textContent, cursorPosition };
7780
7704
  },
7781
- // 检查光标是否在段落开头
7782
7705
  isCursorAtStartOfParagraph(range, paragraph) {
7783
7706
  const { cursorPosition } = this.getParagraphTextExcludingTopics(paragraph, range);
7784
7707
  return cursorPosition === 0;
7785
7708
  },
7786
- // 检查光标是否在段落末尾
7787
7709
  isCursorAtEndOfParagraph(range, paragraph) {
7788
7710
  const walker = document.createTreeWalker(
7789
7711
  paragraph,
@@ -7810,7 +7732,6 @@
7810
7732
  const { cursorPosition } = this.getParagraphTextExcludingTopics(paragraph, range);
7811
7733
  return cursorPosition >= totalLength;
7812
7734
  },
7813
- // 获取当前段落
7814
7735
  getCurrentParagraph(range) {
7815
7736
  let container = range.startContainer;
7816
7737
  while (container && container !== this.editorDom) {
@@ -7821,13 +7742,12 @@
7821
7742
  }
7822
7743
  return null;
7823
7744
  },
7824
- // 提取光标后的内容
7825
7745
  extractContentAfterCursor(range, paragraph) {
7826
7746
  const fragment = document.createDocumentFragment();
7827
7747
  const container = range.startContainer;
7828
7748
  const offset = range.startOffset;
7829
7749
  let topicSpaceNode = null;
7830
- if (container.nodeType === Node.TEXT_NODE && container.textContent === " " && container.previousSibling && container.previousSibling.tagName === "MDD-TOPIC") {
7750
+ if (container.nodeType === Node.TEXT_NODE && container.textContent === "\xA0" && container.previousSibling && container.previousSibling.tagName === "MDD-TOPIC") {
7831
7751
  topicSpaceNode = container;
7832
7752
  }
7833
7753
  const extractRange = document.createRange();
@@ -7882,8 +7802,7 @@
7882
7802
  try {
7883
7803
  extractRange.setStartBefore(startNode);
7884
7804
  let lastNode = paragraph.lastChild;
7885
- while (lastNode && lastNode.nodeType === Node.TEXT_NODE && lastNode.textContent === "" && // 只跳过完全空的文本节点
7886
- lastNode !== startNode) {
7805
+ while (lastNode && lastNode.nodeType === Node.TEXT_NODE && lastNode.textContent === "" && lastNode !== startNode) {
7887
7806
  lastNode = lastNode.previousSibling;
7888
7807
  }
7889
7808
  if (lastNode) {
@@ -7903,7 +7822,6 @@
7903
7822
  }
7904
7823
  return fragment;
7905
7824
  },
7906
- // 统一的光标设置方法 - 设置光标到元素后面
7907
7825
  setCursorAfterElement(element) {
7908
7826
  const newRange = document.createRange();
7909
7827
  newRange.setStartAfter(element);
@@ -7912,7 +7830,6 @@
7912
7830
  selection.removeAllRanges();
7913
7831
  selection.addRange(newRange);
7914
7832
  },
7915
- // 统一的光标设置方法 - 设置光标到元素前面
7916
7833
  setCursorBeforeElement(element) {
7917
7834
  const newRange = document.createRange();
7918
7835
  newRange.setStartBefore(element);
@@ -7932,6 +7849,8 @@
7932
7849
  slot: "footer",
7933
7850
  class: "dialog-footer"
7934
7851
  };
7852
+ const _hoisted_4 = /* @__PURE__ */ vue.createTextVNode("\u53D6 \u6D88");
7853
+ const _hoisted_5 = /* @__PURE__ */ vue.createTextVNode("\u786E \u5B9A");
7935
7854
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7936
7855
  const _component_el_input = vue.resolveComponent("el-input");
7937
7856
  const _component_el_form_item = vue.resolveComponent("el-form-item");
@@ -7947,7 +7866,7 @@
7947
7866
  vue.withDirectives(vue.createElementVNode("div", {
7948
7867
  style: vue.normalizeStyle({ textAlign: $options.align }),
7949
7868
  class: "placeholder"
7950
- }, vue.toDisplayString($props.placeholder || "请输入正文"), 5), [
7869
+ }, vue.toDisplayString($props.placeholder || "\u8BF7\u8F93\u5165\u6B63\u6587"), 5), [
7951
7870
  [vue.vShow, !$options.isInputing && !$data.titleCount && !$data.hasArticleCard]
7952
7871
  ]),
7953
7872
  $data.overLine ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -7972,26 +7891,26 @@
7972
7891
  vue.createVNode(_component_el_form, { model: $data.linkForm }, {
7973
7892
  default: vue.withCtx(() => [
7974
7893
  vue.createVNode(_component_el_form_item, {
7975
- label: "添加链接",
7894
+ label: "\u6DFB\u52A0\u94FE\u63A5",
7976
7895
  class: "link-title"
7977
7896
  }, {
7978
7897
  default: vue.withCtx(() => [
7979
7898
  vue.createVNode(_component_el_input, {
7980
7899
  modelValue: $data.linkForm.linkAddress,
7981
7900
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.linkForm.linkAddress = $event),
7982
- placeholder: "请输入链接地址"
7901
+ placeholder: "\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"
7983
7902
  }, null, 8, ["modelValue"])
7984
7903
  ]),
7985
7904
  _: 1
7986
7905
  }),
7987
- vue.createVNode(_component_el_form_item, { label: "链接文案" }, {
7906
+ vue.createVNode(_component_el_form_item, { label: "\u94FE\u63A5\u6587\u6848" }, {
7988
7907
  default: vue.withCtx(() => [
7989
7908
  vue.createVNode(_component_el_input, {
7990
7909
  modelValue: $data.linkForm.linkWriting,
7991
7910
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.linkForm.linkWriting = $event),
7992
7911
  type: "textarea",
7993
7912
  autosize: "",
7994
- placeholder: "请输入链接文案"
7913
+ placeholder: "\u8BF7\u8F93\u5165\u94FE\u63A5\u6587\u6848"
7995
7914
  }, null, 8, ["modelValue"])
7996
7915
  ]),
7997
7916
  _: 1
@@ -8004,18 +7923,18 @@
8004
7923
  vue.createVNode(_component_el_button, {
8005
7924
  onClick: _cache[3] || (_cache[3] = ($event) => $data.viewLinkDialog = false)
8006
7925
  }, {
8007
- default: vue.withCtx(() => _cache[14] || (_cache[14] = [
8008
- vue.createTextVNode("取 消")
8009
- ])),
7926
+ default: vue.withCtx(() => [
7927
+ _hoisted_4
7928
+ ]),
8010
7929
  _: 1
8011
7930
  }),
8012
7931
  vue.createVNode(_component_el_button, {
8013
7932
  type: "primary",
8014
7933
  onClick: $options.insertLink
8015
7934
  }, {
8016
- default: vue.withCtx(() => _cache[15] || (_cache[15] = [
8017
- vue.createTextVNode("确 定")
8018
- ])),
7935
+ default: vue.withCtx(() => [
7936
+ _hoisted_5
7937
+ ]),
8019
7938
  _: 1
8020
7939
  }, 8, ["onClick"])
8021
7940
  ])
@@ -8032,7 +7951,7 @@
8032
7951
  }, null, 8, ["article", "visible", "getList", "onDelete", "onChange"]),
8033
7952
  vue.createVNode(_component_ImgUpload, {
8034
7953
  "img-list": $data.imgList,
8035
- "onUpdate:imgList": _cache[6] || (_cache[6] = ($event) => $data.imgList = $event),
7954
+ "onUpdate:img-list": _cache[6] || (_cache[6] = ($event) => $data.imgList = $event),
8036
7955
  visible: $data.visibleImg,
8037
7956
  "onUpdate:visible": _cache[7] || (_cache[7] = ($event) => $data.visibleImg = $event),
8038
7957
  chartGallery: $props.chartGallery,
@@ -8047,7 +7966,7 @@
8047
7966
  }, null, 8, ["visible", "file-selected"]),
8048
7967
  vue.createVNode(_component_CollectArticle, {
8049
7968
  "link-content": $data.linkContent,
8050
- "onUpdate:linkContent": _cache[9] || (_cache[9] = ($event) => $data.linkContent = $event),
7969
+ "onUpdate:link-content": _cache[9] || (_cache[9] = ($event) => $data.linkContent = $event),
8051
7970
  visible: $data.visibleCollectArticle,
8052
7971
  "onUpdate:visible": _cache[10] || (_cache[10] = ($event) => $data.visibleCollectArticle = $event),
8053
7972
  onSubmit: $options.confirmLink
@@ -8100,7 +8019,7 @@
8100
8019
  var COLOUR_CLASS = "colour";
8101
8020
  var FONT_FAMILY_CLASS = "font";
8102
8021
  var FONT_SIZE_CLASS = "size";
8103
- var ZWS = "";
8022
+ var ZWS = "\u200B";
8104
8023
  var win = doc.defaultView;
8105
8024
  var ua = navigator.userAgent;
8106
8025
  var isAndroid = /Android/.test(ua);
@@ -8130,17 +8049,11 @@
8130
8049
  };
8131
8050
  }
8132
8051
  var typeToBitArray = {
8133
- // ELEMENT_NODE
8134
8052
  1: 1,
8135
- // ATTRIBUTE_NODE
8136
8053
  2: 2,
8137
- // TEXT_NODE
8138
8054
  3: 4,
8139
- // COMMENT_NODE
8140
8055
  8: 128,
8141
- // DOCUMENT_NODE
8142
8056
  9: 256,
8143
- // DOCUMENT_FRAGMENT_NODE
8144
8057
  11: 1024
8145
8058
  };
8146
8059
  function TreeWalker(root, nodeType, filter) {
@@ -8474,7 +8387,7 @@
8474
8387
  node.appendChild(fixer);
8475
8388
  } catch (error) {
8476
8389
  self2.didError({
8477
- name: "Squire: fixCursor – " + error,
8390
+ name: "Squire: fixCursor \u2013\xA0" + error,
8478
8391
  message: "Parent: " + node.nodeName + "/" + node.innerHTML + " appendChild: " + fixer.nodeName
8479
8392
  });
8480
8393
  }
@@ -8809,8 +8722,7 @@
8809
8722
  block = getStartBlockOfRange(range, root);
8810
8723
  firstBlockInFrag = getNextBlock(frag, frag);
8811
8724
  replaceBlock = !!block && isEmptyBlock(block);
8812
- if (block && firstBlockInFrag && !replaceBlock && // Don't merge table cells or PRE elements into block
8813
- !getNearest(firstBlockInFrag, frag, "PRE") && !getNearest(firstBlockInFrag, frag, "TABLE")) {
8725
+ if (block && firstBlockInFrag && !replaceBlock && !getNearest(firstBlockInFrag, frag, "PRE") && !getNearest(firstBlockInFrag, frag, "TABLE")) {
8814
8726
  moveRangeBoundariesUpTree(range, block, block, root);
8815
8727
  range.collapse(true);
8816
8728
  container = range.endContainer;
@@ -8826,10 +8738,7 @@
8826
8738
  container = nodeAfterSplit.parentNode;
8827
8739
  offset = indexOf.call(container.childNodes, nodeAfterSplit);
8828
8740
  }
8829
- if (
8830
- /* isBlock( container ) && */
8831
- offset !== getLength(container)
8832
- ) {
8741
+ if (offset !== getLength(container)) {
8833
8742
  blockContentsAfterSplit = root.ownerDocument.createDocumentFragment();
8834
8743
  while (node = container.childNodes[offset]) {
8835
8744
  blockContentsAfterSplit.appendChild(node);
@@ -9878,11 +9787,9 @@
9878
9787
  if (hasImage) {
9879
9788
  this.fireEvent("dragover", {
9880
9789
  dataTransfer: clipboardData,
9881
- /* jshint loopfunc: true */
9882
9790
  preventDefault: function() {
9883
9791
  fireDrop = true;
9884
9792
  }
9885
- /* jshint loopfunc: false */
9886
9793
  });
9887
9794
  if (fireDrop) {
9888
9795
  this.fireEvent("drop", {
@@ -10089,9 +9996,7 @@
10089
9996
  leafNodeNames,
10090
9997
  undo: {
10091
9998
  documentSizeThreshold: -1,
10092
- // -1 means no threshold
10093
9999
  undoLimit: -1
10094
- // -1 means no limit
10095
10000
  },
10096
10001
  isInsertedHTMLSanitized: true,
10097
10002
  isSetHTMLSanitized: true,
@@ -11733,5 +11638,5 @@
11733
11638
  exports2.Editor = Editor;
11734
11639
  exports2.ToolBar = ToolBar;
11735
11640
  exports2.ToolsEnum = ToolsEnum;
11736
- Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
11641
+ Object.defineProperties(exports2, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
11737
11642
  });