@haluo/biz 2.0.43 → 2.0.44

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