@haluo/biz 2.0.36 → 2.0.37

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$7 = {
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$7 = {
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$7 = {
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$7 = {
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$3(_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$7, [
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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_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$3(_ctx, _cache, $props, $setup, $data, $options) {
1105
1105
  ])
1106
1106
  ])) : createCommentVNode("", true);
1107
1107
  }
1108
- const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-50235bb8"]]);
1108
+ const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__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$4 = "";
1110
1111
  const _hoisted_1$6 = { 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$6 = /* @__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$6 = /* @__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$6 = /* @__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$6, [
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$6, [
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$6 = /* @__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$6 = /* @__PURE__ */ defineComponent({
1195
1198
  };
1196
1199
  }
1197
1200
  });
1198
- const index_vue_vue_type_style_index_0_lang$4 = "";
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;
3222
+ var ToolsClass = function() {
3223
+ function ToolsClass2() {
3224
+ var _this = this;
3225
+ this.stopScroll = function(className) {
3338
3226
  if (!(window && window.document)) {
3339
- return new Error("仅支持浏览器");
3227
+ return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
3340
3228
  }
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;
3364
- if (!(window && window.document)) {
3365
- return new Error("仅支持浏览器");
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("仅支持浏览器");
3242
+ return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
3391
3243
  }
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 = "";
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__);
3401
3253
  }
3402
- if (length === void 0) {
3403
- length = 0;
3404
- }
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;
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();
3465
3333
  }
3466
- if (after === void 0) {
3467
- after = 4;
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();
3468
3359
  }
3469
- if (!field) {
3470
- return "";
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;
3471
3442
  }
3472
- field = String(field);
3473
- var sensitiveLen = field.length - before - after;
3474
- if (sensitiveLen < 0) {
3475
- sensitiveLen = 0;
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$5 = { 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$3 = "";
3474
+ const _hoisted_1$5 = /* @__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$5 = /* @__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$5 = /* @__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$5 = /* @__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;
@@ -3587,7 +3576,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3587
3576
  autherid: data.params.radio !== Radio_Type.ALL_ARITICLE ? userId : "",
3588
3577
  limit: 20,
3589
3578
  allType: data.params.radio,
3590
- // 只有4 是查视频 其他是文章
3591
3579
  title: data.params.title,
3592
3580
  page: ++data.page
3593
3581
  });
@@ -3607,21 +3595,21 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3607
3595
  }, {
3608
3596
  title: withCtx(() => [
3609
3597
  createElementVNode("span", null, [
3610
- _cache[8] || (_cache[8] = createTextVNode("插入文章/视频")),
3611
- createElementVNode("strong", _hoisted_1$5, "平台仅支持插入" + toDisplayString(`${isVideo.value ? "2" : "18个月"}`) + "内的推荐内容", 1)
3598
+ _hoisted_1$5,
3599
+ 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)
3612
3600
  ])
3613
3601
  ]),
3614
3602
  default: withCtx(() => [
3615
- createElementVNode("div", _hoisted_2$3, [
3603
+ createElementVNode("div", _hoisted_3$5, [
3616
3604
  createElementVNode("div", null, [
3617
3605
  createVNode(unref(ElRadio), {
3618
3606
  modelValue: data.params.radio,
3619
3607
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.params.radio = $event),
3620
3608
  label: Radio_Type.MY_ARITICLE
3621
3609
  }, {
3622
- default: withCtx(() => _cache[9] || (_cache[9] = [
3623
- createTextVNode("从我的文章中选择")
3624
- ])),
3610
+ default: withCtx(() => [
3611
+ _hoisted_4$4
3612
+ ]),
3625
3613
  _: 1
3626
3614
  }, 8, ["modelValue", "label"]),
3627
3615
  createVNode(unref(ElRadio), {
@@ -3629,9 +3617,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3629
3617
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data.params.radio = $event),
3630
3618
  label: Radio_Type.MY_VIDEO
3631
3619
  }, {
3632
- default: withCtx(() => _cache[10] || (_cache[10] = [
3633
- createTextVNode("从我的视频中选择")
3634
- ])),
3620
+ default: withCtx(() => [
3621
+ _hoisted_5$3
3622
+ ]),
3635
3623
  _: 1
3636
3624
  }, 8, ["modelValue", "label"]),
3637
3625
  createVNode(unref(ElRadio), {
@@ -3639,17 +3627,17 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3639
3627
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => data.params.radio = $event),
3640
3628
  label: Radio_Type.ALL_ARITICLE
3641
3629
  }, {
3642
- default: withCtx(() => _cache[11] || (_cache[11] = [
3643
- createTextVNode("从所有文章中选择")
3644
- ])),
3630
+ default: withCtx(() => [
3631
+ _hoisted_6$1
3632
+ ]),
3645
3633
  _: 1
3646
3634
  }, 8, ["modelValue", "label"])
3647
3635
  ]),
3648
- createElementVNode("div", _hoisted_3$3, [
3636
+ createElementVNode("div", _hoisted_7$1, [
3649
3637
  createVNode(unref(ElInput), {
3650
3638
  modelValue: data.params.title,
3651
3639
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => data.params.title = $event),
3652
- placeholder: isVideo.value ? "输入视频描述查找平台发布过的视频" : "输入标题名查找平台发过的文章",
3640
+ 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",
3653
3641
  onKeyup: _cache[5] || (_cache[5] = withKeys(($event) => unref(getArticleList)(true), ["enter", "native"])),
3654
3642
  onInput: _cache[6] || (_cache[6] = ($event) => unref(getArticleList)(true))
3655
3643
  }, {
@@ -3663,11 +3651,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3663
3651
  _: 1
3664
3652
  }, 8, ["modelValue", "placeholder"])
3665
3653
  ]),
3666
- data.data.length === 0 && !data.busy ? (openBlock(), createElementBlock("div", _hoisted_4$2, toDisplayString(`没有符合条件的${isVideo.value ? "视频" : "文章"}哦,你可以试试搜索其他${isVideo.value ? "视频" : "文章"}~`), 1)) : withDirectives((openBlock(), createElementBlock("div", {
3654
+ 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", {
3667
3655
  key: 1,
3668
3656
  "infinite-scroll-immediate": false,
3669
3657
  class: "insert-article_list",
3670
- "infinite-scroll-disabled": disable.value
3658
+ "infinite-scroll-disabled": unref(disable)
3671
3659
  }, [
3672
3660
  (openBlock(true), createElementBlock(Fragment, null, renderList(data.data, (item, index) => {
3673
3661
  return openBlock(), createElementBlock("div", {
@@ -3683,24 +3671,24 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3683
3671
  default: withCtx(() => {
3684
3672
  var _a;
3685
3673
  return [
3686
- isVideo.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
3687
- createElementVNode("div", _hoisted_7$1, [
3674
+ unref(isVideo) ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
3675
+ createElementVNode("div", _hoisted_11$1, [
3688
3676
  createElementVNode("img", {
3689
3677
  class: "video-pic",
3690
3678
  src: (_a = item == null ? void 0 : item.mediaInfo[0]) == null ? void 0 : _a.img
3691
- }, null, 8, _hoisted_8$1),
3679
+ }, null, 8, _hoisted_12$1),
3692
3680
  createElementVNode("img", {
3693
3681
  class: "play",
3694
3682
  src: getImageUrl("play.png")
3695
- }, null, 8, _hoisted_9$1)
3683
+ }, null, 8, _hoisted_13$1)
3696
3684
  ]),
3697
- createElementVNode("div", _hoisted_10$1, [
3698
- createElementVNode("span", _hoisted_11$1, toDisplayString(item.content || "[无标题]"), 1),
3699
- createElementVNode("span", null, toDisplayString(unref(date$1).format(item.createTime * 1e3, "YYYY-MM-DD hh-mm")), 1)
3685
+ createElementVNode("div", _hoisted_14$1, [
3686
+ createElementVNode("span", _hoisted_15$1, toDisplayString(item.content || "[\u65E0\u6807\u9898]"), 1),
3687
+ createElementVNode("span", null, toDisplayString(unref(date).format(item.createTime * 1e3, "YYYY-MM-DD hh-mm")), 1)
3700
3688
  ])
3701
- ])) : (openBlock(), createElementBlock("div", _hoisted_12$1, [
3702
- createElementVNode("span", null, toDisplayString(item.title || "[无标题]"), 1),
3703
- createElementVNode("span", null, toDisplayString(unref(date$1).format(item.createTime * 1e3, "YYYY-MM-DD")), 1)
3689
+ ])) : (openBlock(), createElementBlock("div", _hoisted_16$1, [
3690
+ createElementVNode("span", null, toDisplayString(item.title || "[\u65E0\u6807\u9898]"), 1),
3691
+ createElementVNode("span", null, toDisplayString(unref(date).format(item.createTime * 1e3, "YYYY-MM-DD")), 1)
3704
3692
  ]))
3705
3693
  ];
3706
3694
  }),
@@ -3708,7 +3696,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3708
3696
  }, 1032, ["modelValue", "label", "onChange"])
3709
3697
  ]);
3710
3698
  }), 128))
3711
- ], 8, _hoisted_5$2)), [
3699
+ ], 8, _hoisted_9$1)), [
3712
3700
  [unref(vInfiniteScroll), unref(getArticleList)]
3713
3701
  ])
3714
3702
  ])
@@ -3718,7 +3706,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3718
3706
  };
3719
3707
  }
3720
3708
  });
3721
- const index_vue_vue_type_style_index_0_lang$3 = "";
3722
3709
  let getRandomValues;
3723
3710
  const rnds8 = new Uint8Array(16);
3724
3711
  function rng() {
@@ -3735,7 +3722,7 @@ for (let i = 0; i < 256; ++i) {
3735
3722
  byteToHex.push((i + 256).toString(16).slice(1));
3736
3723
  }
3737
3724
  function unsafeStringify(arr, offset = 0) {
3738
- 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]];
3725
+ 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();
3739
3726
  }
3740
3727
  const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3741
3728
  const native = {
@@ -3758,14 +3745,15 @@ function v4(options, buf, offset) {
3758
3745
  }
3759
3746
  return unsafeStringify(rnds);
3760
3747
  }
3748
+ const index_vue_vue_type_style_index_0_lang$2 = "";
3761
3749
  const _hoisted_1$4 = { class: "img-upload-content" };
3762
- const _hoisted_2$2 = { class: "title-box" };
3763
- const _hoisted_3$2 = ["onClick"];
3764
- const _hoisted_4$1 = {
3750
+ const _hoisted_2$4 = { class: "title-box" };
3751
+ const _hoisted_3$4 = ["onClick"];
3752
+ const _hoisted_4$3 = {
3765
3753
  key: 0,
3766
3754
  class: "line"
3767
3755
  };
3768
- const _hoisted_5$1 = {
3756
+ const _hoisted_5$2 = {
3769
3757
  key: 0,
3770
3758
  class: "prompt-restriction"
3771
3759
  };
@@ -3789,39 +3777,45 @@ const _hoisted_13 = {
3789
3777
  key: 0,
3790
3778
  class: "upload-wrap"
3791
3779
  };
3792
- const _hoisted_14 = {
3780
+ const _hoisted_14 = /* @__PURE__ */ createElementVNode("span", null, "\u672C\u5730\u4E0A\u4F20", -1);
3781
+ 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);
3782
+ const _hoisted_16 = {
3793
3783
  key: 1,
3794
3784
  class: "img-list"
3795
3785
  };
3796
- const _hoisted_15 = ["src"];
3797
- const _hoisted_16 = { class: "upload-btn" };
3798
- const _hoisted_17 = {
3786
+ const _hoisted_17 = ["src"];
3787
+ const _hoisted_18 = { class: "upload-btn" };
3788
+ const _hoisted_19 = {
3799
3789
  key: 2,
3800
3790
  class: "map-depot"
3801
3791
  };
3802
- const _hoisted_18 = { class: "screen" };
3803
- const _hoisted_19 = { key: 0 };
3804
- const _hoisted_20 = { class: "tab-box" };
3805
- const _hoisted_21 = ["onClick"];
3806
- const _hoisted_22 = {
3792
+ const _hoisted_20 = { class: "screen" };
3793
+ const _hoisted_21 = /* @__PURE__ */ createTextVNode("\u641C\u7D22");
3794
+ const _hoisted_22 = { key: 0 };
3795
+ const _hoisted_23 = { class: "tab-box" };
3796
+ const _hoisted_24 = ["onClick"];
3797
+ const _hoisted_25 = {
3807
3798
  key: 0,
3808
3799
  class: "line"
3809
3800
  };
3810
- const _hoisted_23 = { class: "image-list depot-image" };
3811
- const _hoisted_24 = ["onClick"];
3812
- const _hoisted_25 = ["src"];
3813
- const _hoisted_26 = {
3801
+ const _hoisted_26 = { class: "image-list depot-image" };
3802
+ const _hoisted_27 = ["onClick"];
3803
+ const _hoisted_28 = ["src"];
3804
+ const _hoisted_29 = {
3814
3805
  key: 0,
3815
3806
  class: "shade"
3816
3807
  };
3817
- const _hoisted_27 = { class: "num" };
3818
- const _hoisted_28 = {
3808
+ const _hoisted_30 = { class: "num" };
3809
+ const _hoisted_31 = {
3819
3810
  key: 1,
3820
3811
  class: "protocol-box"
3821
3812
  };
3822
- const _hoisted_29 = ["href"];
3813
+ 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);
3814
+ const _hoisted_33 = /* @__PURE__ */ createTextVNode(" \u8BF7\u9605\u8BFB");
3815
+ const _hoisted_34 = ["href"];
3816
+ const _hoisted_35 = /* @__PURE__ */ createTextVNode(",\u60A8\u7684\u884C\u4E3A\u89C6\u4E3A\u60A8\u5DF2\u540C\u610F\u8BE5\u534F\u8BAE\u3002 ");
3823
3817
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3824
- __name: "index",
3818
+ name: "index",
3825
3819
  props: {
3826
3820
  visible: { type: Boolean, default: false },
3827
3821
  imgList: { default: [] },
@@ -3830,8 +3824,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3830
3824
  imgNum: { default: 20 }
3831
3825
  },
3832
3826
  emits: ["update:imgList", "update:visible", "submit"],
3833
- setup(__props, { emit: __emit }) {
3834
- const emits = __emit;
3827
+ setup(__props, { emit: emits }) {
3835
3828
  const props = __props;
3836
3829
  const drag = ref(false);
3837
3830
  const imgListTemp = computed({
@@ -3855,7 +3848,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3855
3848
  const tempImgs = [...props.imgList];
3856
3849
  Array.from(imgFile).forEach((file) => {
3857
3850
  if (file.size > 20 * 1024 * 1024) {
3858
- ElMessage.error("单张图片最大支持20M");
3851
+ ElMessage.error("\u5355\u5F20\u56FE\u7247\u6700\u5927\u652F\u630120M");
3859
3852
  return;
3860
3853
  }
3861
3854
  const id = v4();
@@ -3885,14 +3878,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3885
3878
  const list = [
3886
3879
  {
3887
3880
  id: 2,
3888
- value: "上传图片"
3881
+ value: "\u4E0A\u4F20\u56FE\u7247"
3889
3882
  }
3890
3883
  ];
3891
3884
  activeTitle.value = 2;
3892
3885
  if (props.imgNum < 20) {
3893
3886
  list.unshift({
3894
3887
  id: 1,
3895
- value: "正文图片"
3888
+ value: "\u6B63\u6587\u56FE\u7247"
3896
3889
  });
3897
3890
  activeTitle.value = 1;
3898
3891
  getContentImgList();
@@ -3900,7 +3893,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3900
3893
  if (props.chartGallery) {
3901
3894
  list.push({
3902
3895
  id: 3,
3903
- value: isEmotofine ? "电摩范图库" : "摩托范图库"
3896
+ value: isEmotofine ? "\u7535\u6469\u8303\u56FE\u5E93" : "\u6469\u6258\u8303\u56FE\u5E93"
3904
3897
  });
3905
3898
  }
3906
3899
  titleList.value = list;
@@ -4045,13 +4038,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4045
4038
  const tabList = ref([]);
4046
4039
  const search = () => {
4047
4040
  if (!selectData.brandId) {
4048
- return ElMessage.error("请选择品牌");
4041
+ return ElMessage.error("\u8BF7\u9009\u62E9\u54C1\u724C");
4049
4042
  }
4050
4043
  if (!selectData.goodId) {
4051
- return ElMessage.error("请选择车型");
4044
+ return ElMessage.error("\u8BF7\u9009\u62E9\u8F66\u578B");
4052
4045
  }
4053
4046
  if (!selectData.carId) {
4054
- return ElMessage.error("请选择款型");
4047
+ return ElMessage.error("\u8BF7\u9009\u62E9\u6B3E\u578B");
4055
4048
  }
4056
4049
  tabList.value = [];
4057
4050
  emits("update:imgList", []);
@@ -4108,7 +4101,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4108
4101
  }, {
4109
4102
  default: withCtx(() => [
4110
4103
  createElementVNode("div", _hoisted_1$4, [
4111
- createElementVNode("div", _hoisted_2$2, [
4104
+ createElementVNode("div", _hoisted_2$4, [
4112
4105
  (openBlock(true), createElementBlock(Fragment, null, renderList(titleList.value, (item, index) => {
4113
4106
  return openBlock(), createElementBlock("div", {
4114
4107
  key: index,
@@ -4116,15 +4109,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4116
4109
  onClick: ($event) => changeTab(item)
4117
4110
  }, [
4118
4111
  createTextVNode(toDisplayString(item.value) + " ", 1),
4119
- item.id === activeTitle.value ? (openBlock(), createElementBlock("div", _hoisted_4$1)) : createCommentVNode("", true)
4120
- ], 10, _hoisted_3$2);
4112
+ item.id === activeTitle.value ? (openBlock(), createElementBlock("div", _hoisted_4$3)) : createCommentVNode("", true)
4113
+ ], 10, _hoisted_3$4);
4121
4114
  }), 128)),
4122
- [1, 3].includes(activeTitle.value) && props.imgList.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, " 最多可选" + toDisplayString(props.imgNum) + "张图片,已选" + toDisplayString(props.imgList.length) + " ", 1)) : createCommentVNode("", true),
4123
- activeTitle.value === 2 && props.imgList.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(props.imgList.length) + "张上传成功 拖动可调整顺序 ", 1)) : createCommentVNode("", true)
4115
+ [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),
4116
+ 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)
4124
4117
  ]),
4125
4118
  activeTitle.value === 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
4126
4119
  createElementVNode("div", _hoisted_8, [
4127
- (openBlock(true), createElementBlock(Fragment, null, renderList(contentImgList.value, (item, index) => {
4120
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(contentImgList), (item, index) => {
4128
4121
  return openBlock(), createElementBlock("div", {
4129
4122
  key: index,
4130
4123
  class: "image-item",
@@ -4157,13 +4150,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4157
4150
  ]),
4158
4151
  _: 1
4159
4152
  }),
4160
- _cache[7] || (_cache[7] = createElementVNode("span", null, "本地上传", -1))
4153
+ _hoisted_14
4161
4154
  ]),
4162
- _cache[8] || (_cache[8] = createElementVNode("span", { class: "remark" }, "支持jpg、jpeg、png等多种格式,单张图片最大支持20MB", -1))
4163
- ])) : (openBlock(), createElementBlock("div", _hoisted_14, [
4155
+ _hoisted_15
4156
+ ])) : (openBlock(), createElementBlock("div", _hoisted_16, [
4164
4157
  createVNode(unref(draggable), {
4165
- modelValue: imgListTemp.value,
4166
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => imgListTemp.value = $event),
4158
+ modelValue: unref(imgListTemp),
4159
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(imgListTemp) ? imgListTemp.value = $event : null),
4167
4160
  handle: ".img-item",
4168
4161
  class: "img-wrap",
4169
4162
  group: "people",
@@ -4181,7 +4174,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4181
4174
  style: { "object-fit": "contain" },
4182
4175
  width: "120",
4183
4176
  height: "120"
4184
- }, null, 8, _hoisted_15),
4177
+ }, null, 8, _hoisted_17),
4185
4178
  createVNode(unref(CircleCloseFilled), {
4186
4179
  class: "icon pointer",
4187
4180
  onClick: ($event) => deleteImg(element)
@@ -4204,7 +4197,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4204
4197
  _: 1
4205
4198
  }, 8, ["modelValue"])
4206
4199
  ])),
4207
- createElementVNode("div", _hoisted_16, [
4200
+ createElementVNode("div", _hoisted_18, [
4208
4201
  createElementVNode("input", {
4209
4202
  type: "file",
4210
4203
  name: "file",
@@ -4215,13 +4208,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4215
4208
  }, null, 32)
4216
4209
  ])
4217
4210
  ], 2)) : createCommentVNode("", true),
4218
- activeTitle.value === 3 ? (openBlock(), createElementBlock("div", _hoisted_17, [
4219
- createElementVNode("div", _hoisted_18, [
4211
+ activeTitle.value === 3 ? (openBlock(), createElementBlock("div", _hoisted_19, [
4212
+ createElementVNode("div", _hoisted_20, [
4220
4213
  createElementVNode("div", null, [
4221
4214
  createVNode(unref(ElSelect), {
4222
4215
  modelValue: selectData.brandId,
4223
4216
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => selectData.brandId = $event),
4224
- placeholder: "请选择品牌",
4217
+ placeholder: "\u8BF7\u9009\u62E9\u54C1\u724C",
4225
4218
  size: "large",
4226
4219
  class: "select_1",
4227
4220
  filterable: "",
@@ -4242,7 +4235,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4242
4235
  createVNode(unref(ElSelect), {
4243
4236
  modelValue: selectData.goodId,
4244
4237
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => selectData.goodId = $event),
4245
- placeholder: "请选择车型",
4238
+ placeholder: "\u8BF7\u9009\u62E9\u8F66\u578B",
4246
4239
  size: "large",
4247
4240
  class: "select_1",
4248
4241
  filterable: "",
@@ -4263,7 +4256,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4263
4256
  createVNode(unref(ElSelect), {
4264
4257
  modelValue: selectData.carId,
4265
4258
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => selectData.carId = $event),
4266
- placeholder: "请选择款型",
4259
+ placeholder: "\u8BF7\u9009\u62E9\u6B3E\u578B",
4267
4260
  size: "large",
4268
4261
  class: "select_2",
4269
4262
  filterable: "",
@@ -4287,14 +4280,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4287
4280
  style: { "width": "80px" },
4288
4281
  onClick: search
4289
4282
  }, {
4290
- default: withCtx(() => _cache[9] || (_cache[9] = [
4291
- createTextVNode("搜索")
4292
- ])),
4283
+ default: withCtx(() => [
4284
+ _hoisted_21
4285
+ ]),
4293
4286
  _: 1
4294
4287
  })
4295
4288
  ]),
4296
- tabList.value && tabList.value.length ? (openBlock(), createElementBlock("div", _hoisted_19, [
4297
- createElementVNode("div", _hoisted_20, [
4289
+ tabList.value && tabList.value.length ? (openBlock(), createElementBlock("div", _hoisted_22, [
4290
+ createElementVNode("div", _hoisted_23, [
4298
4291
  (openBlock(true), createElementBlock(Fragment, null, renderList(tabList.value, (item, index) => {
4299
4292
  return openBlock(), createElementBlock("div", {
4300
4293
  key: index,
@@ -4302,12 +4295,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4302
4295
  onClick: ($event) => activeTab.value = item.type
4303
4296
  }, [
4304
4297
  createTextVNode(toDisplayString(item.name) + " ", 1),
4305
- item.type === activeTab.value ? (openBlock(), createElementBlock("div", _hoisted_22)) : createCommentVNode("", true)
4306
- ], 10, _hoisted_21);
4298
+ item.type === activeTab.value ? (openBlock(), createElementBlock("div", _hoisted_25)) : createCommentVNode("", true)
4299
+ ], 10, _hoisted_24);
4307
4300
  }), 128))
4308
4301
  ]),
4309
- createElementVNode("div", _hoisted_23, [
4310
- (openBlock(true), createElementBlock(Fragment, null, renderList(imageList.value, (item, index) => {
4302
+ createElementVNode("div", _hoisted_26, [
4303
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(imageList), (item, index) => {
4311
4304
  return openBlock(), createElementBlock("div", {
4312
4305
  key: index,
4313
4306
  class: "image-item",
@@ -4317,25 +4310,25 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4317
4310
  src: item.imgOrgUrl,
4318
4311
  alt: "",
4319
4312
  class: "image"
4320
- }, null, 8, _hoisted_25),
4321
- item.num ? (openBlock(), createElementBlock("div", _hoisted_26, [
4322
- createElementVNode("div", _hoisted_27, toDisplayString(item.num), 1)
4313
+ }, null, 8, _hoisted_28),
4314
+ item.num ? (openBlock(), createElementBlock("div", _hoisted_29, [
4315
+ createElementVNode("div", _hoisted_30, toDisplayString(item.num), 1)
4323
4316
  ])) : createCommentVNode("", true)
4324
- ], 8, _hoisted_24);
4317
+ ], 8, _hoisted_27);
4325
4318
  }), 128))
4326
4319
  ])
4327
- ])) : (openBlock(), createElementBlock("div", _hoisted_28, [
4320
+ ])) : (openBlock(), createElementBlock("div", _hoisted_31, [
4328
4321
  createElementVNode("div", null, [
4329
- _cache[12] || (_cache[12] = createElementVNode("div", null, " 图库中的图片仅限下载摩托范以编辑发布文章使用,不得用于其他任何平台及用途 ", -1)),
4322
+ _hoisted_32,
4330
4323
  createElementVNode("div", null, [
4331
- _cache[10] || (_cache[10] = createTextVNode(" 请阅读")),
4324
+ _hoisted_33,
4332
4325
  createElementVNode("a", {
4333
4326
  href: `https://${unref(hostName)}/about?type=imageLicenseAgreement`,
4334
4327
  target: "_blank",
4335
4328
  rel: "noopener noreferrer",
4336
4329
  class: "link"
4337
- }, "《摩托范图片许可使用协议》", 8, _hoisted_29),
4338
- _cache[11] || (_cache[11] = createTextVNode(",您的行为视为您已同意该协议。 "))
4330
+ }, "\u300A\u6469\u6258\u8303\u56FE\u7247\u8BB8\u53EF\u4F7F\u7528\u534F\u8BAE\u300B", 8, _hoisted_34),
4331
+ _hoisted_35
4339
4332
  ])
4340
4333
  ])
4341
4334
  ]))
@@ -4347,23 +4340,25 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4347
4340
  };
4348
4341
  }
4349
4342
  });
4350
- const index_vue_vue_type_style_index_0_lang$2 = "";
4351
- const _hoisted_1$3 = { class: "insert-video" };
4343
+ const index_vue_vue_type_style_index_0_lang$1 = "";
4344
+ const _hoisted_1$3 = /* @__PURE__ */ createElementVNode("span", null, "\u63D2\u5165\u89C6\u9891", -1);
4345
+ const _hoisted_2$3 = { class: "insert-video" };
4346
+ const _hoisted_3$3 = /* @__PURE__ */ createTextVNode("\u9009\u62E9\u89C6\u9891");
4347
+ 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);
4352
4348
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4353
- __name: "index",
4349
+ name: "index",
4354
4350
  props: {
4355
4351
  visible: { type: Boolean, default: false },
4356
- fileSelected: {}
4352
+ fileSelected: null
4357
4353
  },
4358
4354
  emits: ["update:visible"],
4359
- setup(__props, { emit: __emit }) {
4360
- const emits = __emit;
4355
+ setup(__props, { emit: emits }) {
4356
+ const props = __props;
4361
4357
  provide("vm", {
4362
4358
  setStatus(val) {
4363
4359
  emits("update:visible", val);
4364
4360
  }
4365
4361
  });
4366
- const props = __props;
4367
4362
  const { visible, fileSelected } = toRefs(props);
4368
4363
  const emitEvent = () => {
4369
4364
  var event = new MouseEvent("click");
@@ -4377,23 +4372,23 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4377
4372
  width: "600px",
4378
4373
  height: "100px"
4379
4374
  }, {
4380
- title: withCtx(() => _cache[1] || (_cache[1] = [
4381
- createElementVNode("span", null, "插入视频", -1)
4382
- ])),
4375
+ title: withCtx(() => [
4376
+ _hoisted_1$3
4377
+ ]),
4383
4378
  default: withCtx(() => [
4384
- createElementVNode("div", _hoisted_1$3, [
4379
+ createElementVNode("div", _hoisted_2$3, [
4385
4380
  createVNode(unref(ElButton), {
4386
4381
  style: { "width": "120px" },
4387
4382
  round: "",
4388
4383
  type: "primary",
4389
4384
  onClick: emitEvent
4390
4385
  }, {
4391
- default: withCtx(() => _cache[2] || (_cache[2] = [
4392
- createTextVNode("选择视频")
4393
- ])),
4386
+ default: withCtx(() => [
4387
+ _hoisted_3$3
4388
+ ]),
4394
4389
  _: 1
4395
4390
  }),
4396
- _cache[3] || (_cache[3] = createElementVNode("span", { class: "remark" }, "为了获得更高的推荐量和点击量,建议上传720p(1280*720)或更高分辨率的视频,视频格式为.mp4或.mov,大小不超过1G", -1)),
4391
+ _hoisted_4$2,
4397
4392
  createElementVNode("input", {
4398
4393
  type: "file",
4399
4394
  accept: "video/*",
@@ -4408,7 +4403,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4408
4403
  };
4409
4404
  }
4410
4405
  });
4411
- const index_vue_vue_type_style_index_0_lang$1 = "";
4412
4406
  const index_vue_vue_type_style_index_0_lang = "";
4413
4407
  const _sfc_main$2 = {
4414
4408
  provide() {
@@ -4460,12 +4454,14 @@ const _sfc_main$2 = {
4460
4454
  setStatus(val) {
4461
4455
  this.$emit("update:visible", val);
4462
4456
  }
4463
- // submit() {
4464
- // this.$emit('submit')
4465
- // }
4466
4457
  }
4467
4458
  };
4468
- const _hoisted_1$2 = { class: "collect-article_content" };
4459
+ const _hoisted_1$2 = /* @__PURE__ */ createElementVNode("div", null, [
4460
+ /* @__PURE__ */ createElementVNode("span", null, "\u91C7\u96C6\u6587\u7AE0"),
4461
+ /* @__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")
4462
+ ], -1);
4463
+ const _hoisted_2$2 = { class: "collect-article_content" };
4464
+ 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);
4469
4465
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
4470
4466
  const _component_el_input = resolveComponent("el-input");
4471
4467
  const _component_BasicDialog = resolveComponent("BasicDialog");
@@ -4474,19 +4470,16 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
4474
4470
  width: "600px",
4475
4471
  height: "50px"
4476
4472
  }, {
4477
- title: withCtx(() => _cache[1] || (_cache[1] = [
4478
- createElementVNode("div", null, [
4479
- createElementVNode("span", null, "采集文章"),
4480
- createElementVNode("span", { class: "collect-article_lable" }, "如需获得正式使用权,请自行联系版权所有者")
4481
- ], -1)
4482
- ])),
4473
+ title: withCtx(() => [
4474
+ _hoisted_1$2
4475
+ ]),
4483
4476
  default: withCtx(() => [
4484
- createElementVNode("div", _hoisted_1$2, [
4485
- _cache[2] || (_cache[2] = createElementVNode("div", { class: "tip" }, "请把需要采集的文章链接粘贴在下方的输入框:", -1)),
4477
+ createElementVNode("div", _hoisted_2$2, [
4478
+ _hoisted_3$2,
4486
4479
  createVNode(_component_el_input, {
4487
4480
  modelValue: $options.input,
4488
4481
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.input = $event),
4489
- placeholder: "仅支持微信链接"
4482
+ placeholder: "\u4EC5\u652F\u6301\u5FAE\u4FE1\u94FE\u63A5"
4490
4483
  }, null, 8, ["modelValue"])
4491
4484
  ])
4492
4485
  ]),
@@ -4494,7 +4487,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
4494
4487
  }, 8, ["visible"]);
4495
4488
  }
4496
4489
  const CollectArticle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
4497
- const index_vue_vue_type_style_index_0_scoped_4ebe06df_lang = "";
4490
+ const index_vue_vue_type_style_index_0_scoped_true_lang = "";
4498
4491
  const _sfc_main$1 = {
4499
4492
  components: {
4500
4493
  ElIconError: CircleCloseFilled
@@ -4525,8 +4518,8 @@ const _hoisted_1$1 = {
4525
4518
  };
4526
4519
  const _hoisted_2$1 = ["src"];
4527
4520
  const _hoisted_3$1 = { class: "article-item_right" };
4528
- const _hoisted_4 = { class: "name" };
4529
- const _hoisted_5 = { class: "score" };
4521
+ const _hoisted_4$1 = { class: "name" };
4522
+ const _hoisted_5$1 = { class: "score" };
4530
4523
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
4531
4524
  const _component_el_icon_error = resolveComponent("el-icon-error");
4532
4525
  return openBlock(), createElementBlock("div", _hoisted_1$1, [
@@ -4536,11 +4529,11 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
4536
4529
  alt: ""
4537
4530
  }, null, 8, _hoisted_2$1)) : createCommentVNode("", true),
4538
4531
  createElementVNode("div", _hoisted_3$1, [
4539
- createElementVNode("div", _hoisted_4, toDisplayString($props.article.title), 1),
4540
- createElementVNode("div", _hoisted_5, [
4532
+ createElementVNode("div", _hoisted_4$1, toDisplayString($props.article.title), 1),
4533
+ createElementVNode("div", _hoisted_5$1, [
4541
4534
  createElementVNode("span", null, toDisplayString($props.article.author), 1),
4542
- createElementVNode("span", null, toDisplayString($props.article.viewNum) + "浏览", 1),
4543
- createElementVNode("span", null, toDisplayString($props.article.replycnt) + "评论", 1)
4535
+ createElementVNode("span", null, toDisplayString($props.article.viewNum) + "\u6D4F\u89C8", 1),
4536
+ createElementVNode("span", null, toDisplayString($props.article.replycnt) + "\u8BC4\u8BBA", 1)
4544
4537
  ])
4545
4538
  ]),
4546
4539
  createVNode(_component_el_icon_error, {
@@ -4552,10 +4545,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
4552
4545
  class: normalizeClass([{
4553
4546
  "article-bg-height": $props.article.img || $props.article.mediaInfo && $props.article.mediaInfo.length
4554
4547
  }, "article-bg"])
4555
- }, " 平台仅支持展示18个月的推荐内容 ", 2)) : createCommentVNode("", true)
4548
+ }, " \u5E73\u53F0\u4EC5\u652F\u6301\u5C55\u793A18\u4E2A\u6708\u7684\u63A8\u8350\u5185\u5BB9 ", 2)) : createCommentVNode("", true)
4556
4549
  ]);
4557
4550
  }
4558
- const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-4ebe06df"]]);
4551
+ const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-45d58d86"]]);
4559
4552
  const mountArticleDom = (props, del) => {
4560
4553
  const className = "article-wrap";
4561
4554
  const article = props.article;
@@ -4613,7 +4606,6 @@ const _sfc_main = {
4613
4606
  hasArticleCard: false,
4614
4607
  cursorStyle: "auto",
4615
4608
  titleCount: 0,
4616
- // 标题数量
4617
4609
  viewLinkDialog: false,
4618
4610
  linkForm: {
4619
4611
  linkAddress: "",
@@ -4621,54 +4613,39 @@ const _sfc_main = {
4621
4613
  },
4622
4614
  setAlignFlag: true,
4623
4615
  article: {},
4624
- // 插入的文章
4625
4616
  imgList: [],
4626
4617
  imgNum: 20,
4627
4618
  videoList: [],
4628
4619
  visibleVideo: false,
4629
4620
  visibleCollectArticle: false,
4630
4621
  visibleArticle: false,
4631
- // 插入文章
4632
4622
  visibleImg: false,
4633
- // 插入图片
4634
4623
  imgType: "normal",
4635
- //
4636
4624
  typeEnum: {
4637
- 文字: "1",
4638
- 图片: "2",
4639
- 图文: "3",
4640
- 段落标题: "4",
4641
- 关联: "5",
4642
- // 关联车辆、轨迹、活动、商家、话题
4643
- 单视频: "6",
4644
- 视频文字: "7",
4625
+ \u6587\u5B57: "1",
4626
+ \u56FE\u7247: "2",
4627
+ \u56FE\u6587: "3",
4628
+ \u6BB5\u843D\u6807\u9898: "4",
4629
+ \u5173\u8054: "5",
4630
+ \u5355\u89C6\u9891: "6",
4631
+ \u89C6\u9891\u6587\u5B57: "7",
4645
4632
  URL: "8",
4646
- 文章卡片: "11"
4633
+ \u6587\u7AE0\u5361\u7247: "11"
4647
4634
  },
4648
4635
  fontInfo: {
4649
4636
  size: ""
4650
4637
  },
4651
4638
  user: {},
4652
- // 用户
4653
4639
  editor: {},
4654
- // 编辑器实例对象
4655
4640
  editorDom: {},
4656
- // 编辑器Dom
4657
4641
  uploadStore: {},
4658
- // 待上传的图片池
4659
4642
  linkContent: "",
4660
- // 插入链接的地址
4661
4643
  loadingText: "",
4662
- // loaing的提示文字
4663
4644
  progressPercent: "",
4664
- // 上传进度
4665
4645
  currentIndex: 0,
4666
4646
  loading: false,
4667
- // 是否提交中
4668
4647
  viewStatus: false,
4669
- // todo: 改名
4670
4648
  linkStatus: false,
4671
- // todo: 改名
4672
4649
  styleStatus: {
4673
4650
  bold: false,
4674
4651
  italic: false,
@@ -4692,7 +4669,6 @@ const _sfc_main = {
4692
4669
  targetMove: "",
4693
4670
  moverClasses: ["halo-img-content", "halo-video-content"],
4694
4671
  selectDom: null
4695
- //选中的dom
4696
4672
  };
4697
4673
  },
4698
4674
  computed: {
@@ -4709,12 +4685,12 @@ const _sfc_main = {
4709
4685
  watch: {
4710
4686
  progressPercent(val) {
4711
4687
  const inner = document.querySelector(".video-progress .inner");
4712
- console.log(val, "视频上传进度");
4688
+ console.log(val, "\u89C6\u9891\u4E0A\u4F20\u8FDB\u5EA6");
4713
4689
  if (inner) {
4714
4690
  inner.style.width = val + "%";
4715
4691
  if (val === 100) {
4716
4692
  document.querySelector(".video-progress").innerHTML = `
4717
- <div class="no-calc" style="text-align:center;color:#999999;font-size:18px;">正在获取视频封面</div>
4693
+ <div class="no-calc" style="text-align:center;color:#999999;font-size:18px;">\u6B63\u5728\u83B7\u53D6\u89C6\u9891\u5C01\u9762</div>
4718
4694
  `;
4719
4695
  }
4720
4696
  }
@@ -4743,7 +4719,7 @@ const _sfc_main = {
4743
4719
  me2.editorDom = document.getElementById("editor-content");
4744
4720
  me2.editorDom.addEventListener("blur", this.canSetAlign);
4745
4721
  if (!window.Squire) {
4746
- import("./squire-raw-97946106.js").then(function() {
4722
+ import("./squire-raw.ca3d11c8.js").then(function() {
4747
4723
  me2.initSquire();
4748
4724
  });
4749
4725
  } else {
@@ -4804,10 +4780,10 @@ const _sfc_main = {
4804
4780
  this.visibleVideo = false;
4805
4781
  const fileName = (files[0] && files[0].name || "").toLowerCase();
4806
4782
  if (files[0].size > 1 * 1024 * 1024 * 1024) {
4807
- return me2.setToast("视频大小不能超过1GB");
4783
+ return me2.setToast("\u89C6\u9891\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC71GB");
4808
4784
  }
4809
4785
  if (fileName.indexOf(".mp4") === -1 && fileName.indexOf(".mov") === -1) {
4810
- return me2.setToast("视频格式不是mp4或mov");
4786
+ return me2.setToast("\u89C6\u9891\u683C\u5F0F\u4E0D\u662Fmp4\u6216mov");
4811
4787
  }
4812
4788
  const me2 = this;
4813
4789
  if (me2.loading)
@@ -4827,9 +4803,7 @@ const _sfc_main = {
4827
4803
  id: result.videoId,
4828
4804
  desc: "",
4829
4805
  vodSize: result.vodSize || "",
4830
- // 视频大小
4831
4806
  vodType: result.vodType || ""
4832
- // 图片尺寸
4833
4807
  };
4834
4808
  me2.$emit("updateAddVideo", true);
4835
4809
  me2.editor["insertVideo"](result.videoUrl, video);
@@ -4883,11 +4857,11 @@ const _sfc_main = {
4883
4857
  },
4884
4858
  insertLink() {
4885
4859
  if (!this.linkForm.linkAddress)
4886
- return ElMessage.error("请输入链接地址");
4860
+ return ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740");
4887
4861
  if (!this.linkForm.linkWriting)
4888
- return ElMessage.error("请输入链接文案");
4862
+ return ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u6587\u6848");
4889
4863
  if (!this.validUrl(this.linkForm.linkAddress)) {
4890
- return this.setToast("URL无效");
4864
+ return this.setToast("URL\u65E0\u6548");
4891
4865
  }
4892
4866
  this.editor.insertLink(
4893
4867
  this.linkForm.linkAddress,
@@ -4896,7 +4870,6 @@ const _sfc_main = {
4896
4870
  this.updateData(true);
4897
4871
  this.viewLinkDialog = false;
4898
4872
  },
4899
- // mark MDD-TOPIC
4900
4873
  updateTopicPosition() {
4901
4874
  const paragraphList = document.querySelectorAll("#editor-content .halo-paragraph") || [];
4902
4875
  Array.from(paragraphList).forEach((paragraph) => {
@@ -5012,7 +4985,7 @@ const _sfc_main = {
5012
4985
  this.initData();
5013
4986
  },
5014
4987
  async parseHtml(html, essayPicRelVOList) {
5015
- var _a;
4988
+ var _a, _b;
5016
4989
  const div = document.createElement("div");
5017
4990
  div.innerHTML = html;
5018
4991
  const frag = document.createDocumentFragment();
@@ -5038,9 +5011,12 @@ const _sfc_main = {
5038
5011
  if (essayPicRelVOList) {
5039
5012
  const arr = img.src.split("/");
5040
5013
  const id = arr[arr.length - 1];
5041
- img.src = essayPicRelVOList.find(
5014
+ let url = (_b = essayPicRelVOList.find(
5042
5015
  (obj) => obj.id === String(id)
5043
- ).url;
5016
+ )) == null ? void 0 : _b.url;
5017
+ if (url) {
5018
+ img.src = url;
5019
+ }
5044
5020
  }
5045
5021
  this.insertImgOperateBtns(
5046
5022
  this.editor,
@@ -5360,7 +5336,7 @@ const _sfc_main = {
5360
5336
  }
5361
5337
  this.updateData(true);
5362
5338
  } else {
5363
- this.setToast(rst.origin.name + "上传失败,请重试");
5339
+ this.setToast(rst.origin.name + "\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
5364
5340
  }
5365
5341
  },
5366
5342
  insertVideoBtns(editor, node) {
@@ -5375,7 +5351,7 @@ const _sfc_main = {
5375
5351
  me2.currentVideo = node;
5376
5352
  e.stopPropagation();
5377
5353
  };
5378
- replaceBtn.innerText = "更换封面";
5354
+ replaceBtn.innerText = "\u66F4\u6362\u5C01\u9762";
5379
5355
  return replaceBtn;
5380
5356
  },
5381
5357
  insertImgOperateBtns(editor, data) {
@@ -5402,7 +5378,7 @@ const _sfc_main = {
5402
5378
  maxlength: "50",
5403
5379
  rows: "2",
5404
5380
  cols: "50",
5405
- placeholder: "请输入图片描述(最多50字)",
5381
+ placeholder: "\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0(\u6700\u591A50\u5B57)",
5406
5382
  contenteditable: "false"
5407
5383
  });
5408
5384
  descInput.disabled = me2.disabled;
@@ -5411,7 +5387,7 @@ const _sfc_main = {
5411
5387
  const img = parent.querySelector(".halo-picture-area");
5412
5388
  img.dataset.desc = e.target.value;
5413
5389
  if (e.target.value.length > 49) {
5414
- return me2.setToast("限制50个字符");
5390
+ return me2.setToast("\u9650\u523650\u4E2A\u5B57\u7B26");
5415
5391
  }
5416
5392
  };
5417
5393
  descInput.value = data.content || "";
@@ -5461,7 +5437,7 @@ const _sfc_main = {
5461
5437
  me2.removeParentByClass(e.target, "halo-img-content");
5462
5438
  me2.updateData(true);
5463
5439
  };
5464
- replaceBtn.innerHTML = "替换";
5440
+ replaceBtn.innerHTML = "\u66FF\u6362";
5465
5441
  return [replaceBtn, delBtn, descInputWrap];
5466
5442
  },
5467
5443
  removeSeamlessLaster(e) {
@@ -5485,7 +5461,6 @@ const _sfc_main = {
5485
5461
  }
5486
5462
  }
5487
5463
  },
5488
- // 初始化编辑器数据 displayData
5489
5464
  initData(data = "", essayPicRelVOList) {
5490
5465
  this.parseHtml(data, essayPicRelVOList).then((res) => {
5491
5466
  this.editorDom.innerHTML = "";
@@ -5493,7 +5468,6 @@ const _sfc_main = {
5493
5468
  this.updateData();
5494
5469
  });
5495
5470
  },
5496
- // 设置富文本组件
5497
5471
  initSquire() {
5498
5472
  const me2 = this;
5499
5473
  const editorDom = me2.editorDom;
@@ -5741,7 +5715,6 @@ const _sfc_main = {
5741
5715
  window.Squire.empty(block)
5742
5716
  ]);
5743
5717
  output.appendChild(
5744
- // 段落才能添加标题
5745
5718
  Array.from(block.classList).indexOf("halo-img-content") > -1 ? block : container
5746
5719
  );
5747
5720
  }
@@ -5765,18 +5738,18 @@ const _sfc_main = {
5765
5738
  });
5766
5739
  loading.innerHTML = `
5767
5740
  <img class="img-loading-icon" src="/img/upload-image-loading.png"/>
5768
- <span class="img-loading-tip">上传中...</span>
5741
+ <span class="img-loading-tip">\u4E0A\u4F20\u4E2D...</span>
5769
5742
  `;
5770
5743
  var fail = this.createElement("div", {
5771
5744
  class: "img-fail hide",
5772
5745
  contenteditable: "false"
5773
5746
  });
5774
- fail.innerHTML = "上传失败<br>请下载图片至本地后重新上传";
5747
+ fail.innerHTML = "\u4E0A\u4F20\u5931\u8D25<br>\u8BF7\u4E0B\u8F7D\u56FE\u7247\u81F3\u672C\u5730\u540E\u91CD\u65B0\u4E0A\u4F20";
5775
5748
  var again = this.createElement("button", {
5776
5749
  class: "img-again hide",
5777
5750
  contenteditable: "false"
5778
5751
  });
5779
- again.innerHTML = "重新上传";
5752
+ again.innerHTML = "\u91CD\u65B0\u4E0A\u4F20";
5780
5753
  const isGif = src && src.indexOf(".gif") > -1;
5781
5754
  if (isGif) {
5782
5755
  src = src.replace(".gif", ".gif!nowater");
@@ -5831,7 +5804,7 @@ const _sfc_main = {
5831
5804
  });
5832
5805
  div.innerHTML = `
5833
5806
  <div class="video-progress">
5834
- <div class="label">上传中...</div>
5807
+ <div class="label">\u4E0A\u4F20\u4E2D...</div>
5835
5808
  <div class="box">
5836
5809
  <div class="inner" style="width:20%"></div>
5837
5810
  </div>
@@ -5854,7 +5827,6 @@ const _sfc_main = {
5854
5827
  data: JSON.stringify(data),
5855
5828
  "data-content": data.content || "",
5856
5829
  poster: data.img || ""
5857
- // 'contenteditable': 'true',
5858
5830
  });
5859
5831
  var delBtn = me2.genIconDom({
5860
5832
  class: "pointer video-delete icon",
@@ -5913,7 +5885,6 @@ const _sfc_main = {
5913
5885
  }
5914
5886
  };
5915
5887
  },
5916
- // 撤销重做 会把 所有的监听全都移除,所以需要重新绑定
5917
5888
  setListener(dom) {
5918
5889
  const me2 = this;
5919
5890
  const doms = dom ? [dom] : Array.from(this.editorDom.children);
@@ -5924,7 +5895,7 @@ const _sfc_main = {
5924
5895
  p.onclick = function(e) {
5925
5896
  var _a;
5926
5897
  if (area.nodeName === "VIDEO" && ((_a = me2.selectDom) == null ? void 0 : _a.className) === "halo-video-content") {
5927
- me2.setToast("不支持播放");
5898
+ me2.setToast("\u4E0D\u652F\u6301\u64AD\u653E");
5928
5899
  }
5929
5900
  if (e.target.className.includes("desc-input")) {
5930
5901
  return;
@@ -5988,7 +5959,6 @@ const _sfc_main = {
5988
5959
  };
5989
5960
  return del;
5990
5961
  },
5991
- // 转换数据,返回给业务
5992
5962
  getEditorData() {
5993
5963
  const me2 = this;
5994
5964
  const children = Array.from(me2.editorDom.children);
@@ -6046,11 +6016,9 @@ const _sfc_main = {
6046
6016
  videoIds
6047
6017
  };
6048
6018
  },
6049
- // 是否是摩托范的图片
6050
6019
  isHaloImage(url = "") {
6051
6020
  return url.indexOf("jddmoto") > -1 || url.indexOf("58moto") > -1 || url.indexOf("emotofine") > -1;
6052
6021
  },
6053
- // 获取待上传图片列表
6054
6022
  updateUploads() {
6055
6023
  const me2 = this;
6056
6024
  setTimeout(() => {
@@ -6097,8 +6065,8 @@ const _sfc_main = {
6097
6065
  const currentImg = me2.uploadStore[key];
6098
6066
  const imageUrl = key.split("|")[1] || "";
6099
6067
  if (!currentImg) {
6100
- console.log("图片不存在", key);
6101
- return Promise.reject("图片不存在");
6068
+ console.log("\u56FE\u7247\u4E0D\u5B58\u5728", key);
6069
+ return Promise.reject("\u56FE\u7247\u4E0D\u5B58\u5728");
6102
6070
  }
6103
6071
  const parent = currentImg.parentNode || "";
6104
6072
  const uploadFailHandler = (currentImg2) => {
@@ -6142,7 +6110,6 @@ const _sfc_main = {
6142
6110
  parent && uploadFailHandler(currentImg);
6143
6111
  });
6144
6112
  },
6145
- // 更新上传的图片
6146
6113
  updateImage(img, currentImg = {}) {
6147
6114
  const data = JSON.parse(currentImg.getAttribute("data") || "{}");
6148
6115
  data.img = img;
@@ -6165,7 +6132,6 @@ const _sfc_main = {
6165
6132
  parent.appendChild(arr[2]);
6166
6133
  }
6167
6134
  },
6168
- // 获取ctrl + v 后内容
6169
6135
  getSticker(type, handler) {
6170
6136
  this.setSticker(type.fragment.children);
6171
6137
  },
@@ -6183,7 +6149,6 @@ const _sfc_main = {
6183
6149
  });
6184
6150
  this.updateData(true);
6185
6151
  },
6186
- // 粘贴
6187
6152
  setSticker(data) {
6188
6153
  const me2 = this;
6189
6154
  data = Array.from(data);
@@ -6222,7 +6187,6 @@ const _sfc_main = {
6222
6187
  const me2 = this;
6223
6188
  me2.updateData();
6224
6189
  },
6225
- // 监测 添加、撤回、恢复、删除
6226
6190
  setBack(e, type) {
6227
6191
  const me2 = this;
6228
6192
  me2.refreshImg();
@@ -6255,7 +6219,6 @@ const _sfc_main = {
6255
6219
  }
6256
6220
  });
6257
6221
  },
6258
- // 设置scoll
6259
6222
  sticky() {
6260
6223
  const me2 = this;
6261
6224
  me2.$nextTick(function() {
@@ -6275,8 +6238,6 @@ const _sfc_main = {
6275
6238
  document.addEventListener("scroll", onScroll);
6276
6239
  });
6277
6240
  },
6278
- // ==========toolbox==========
6279
- // 撤回、恢复、段落标题
6280
6241
  setContent(e, obj) {
6281
6242
  const me2 = this;
6282
6243
  const id = e.target.id || e.target.dataset.editorId;
@@ -6318,11 +6279,10 @@ const _sfc_main = {
6318
6279
  this.fontInfo = this.editor.getFontInfo();
6319
6280
  this.updateData(true);
6320
6281
  },
6321
- // 增加link
6322
6282
  addLink(type) {
6323
6283
  const me2 = this;
6324
- me2.linkTitleName = type === "link" ? "添加链接" : "添加导入链接地址";
6325
- me2.linkPlaceholder = type === "link" ? "请输入链接地址" : "仅支持输入微信链接";
6284
+ me2.linkTitleName = type === "link" ? "\u6DFB\u52A0\u94FE\u63A5" : "\u6DFB\u52A0\u5BFC\u5165\u94FE\u63A5\u5730\u5740";
6285
+ me2.linkPlaceholder = type === "link" ? "\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740" : "\u4EC5\u652F\u6301\u8F93\u5165\u5FAE\u4FE1\u94FE\u63A5";
6326
6286
  me2.viewStatus = true;
6327
6287
  me2.linkStatus = true;
6328
6288
  },
@@ -6330,31 +6290,29 @@ const _sfc_main = {
6330
6290
  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.,;?'&%$#=~_-]+))*$/;
6331
6291
  return objExp.test(url);
6332
6292
  },
6333
- // 确认增加link
6334
6293
  confirmLink() {
6335
6294
  const me2 = this;
6336
6295
  if (!me2.linkContent) {
6337
- return ElMessage.error("请输入链接地址!");
6296
+ return ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740\uFF01");
6338
6297
  }
6339
- if (me2.linkTitleName === "添加导入链接地址" || this.visibleCollectArticle) {
6298
+ if (me2.linkTitleName === "\u6DFB\u52A0\u5BFC\u5165\u94FE\u63A5\u5730\u5740" || this.visibleCollectArticle) {
6340
6299
  this.visibleCollectArticle = false;
6341
6300
  return me2.importLinkData();
6342
6301
  }
6343
6302
  if (!this.validUrl(me2.linkContent)) {
6344
- return me2.setToast("URL无效");
6303
+ return me2.setToast("URL\u65E0\u6548");
6345
6304
  }
6346
6305
  if (!me2.isHaloImage(me2.linkContent)) {
6347
- return me2.setToast("请输入摩托范内部网址");
6306
+ return me2.setToast("\u8BF7\u8F93\u5165\u6469\u6258\u8303\u5185\u90E8\u7F51\u5740");
6348
6307
  }
6349
6308
  me2.editor["insertLink"](me2.linkContent);
6350
6309
  me2.linkContent = "";
6351
6310
  me2.closeDialog();
6352
6311
  },
6353
- // 增加link导入数据
6354
6312
  importLinkData() {
6355
6313
  const me2 = this;
6356
6314
  if (me2.loading) {
6357
- return ElMessage("正在获取信息,请稍后...");
6315
+ return ElMessage("\u6B63\u5728\u83B7\u53D6\u4FE1\u606F\uFF0C\u8BF7\u7A0D\u540E...");
6358
6316
  }
6359
6317
  me2.loading = true;
6360
6318
  const params = {
@@ -6376,38 +6334,34 @@ const _sfc_main = {
6376
6334
  me2.linkContent = "";
6377
6335
  return;
6378
6336
  } else {
6379
- me2.setToast("导入失败,请重试");
6337
+ me2.setToast("\u5BFC\u5165\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
6380
6338
  }
6381
6339
  }).catch((err) => {
6382
6340
  console.log(err.message);
6383
- me2.setToast("导入异常,请重试");
6341
+ me2.setToast("\u5BFC\u5165\u5F02\u5E38\uFF0C\u8BF7\u91CD\u8BD5");
6384
6342
  }).finally((_) => {
6385
6343
  me2.loading = false;
6386
6344
  });
6387
6345
  },
6388
- // 打开 图片、视频、一键导入 弹框
6389
6346
  openDialog(name) {
6390
6347
  const me2 = this;
6391
- me2.viewName = name === "img" ? "添加图片" : "添加视频";
6392
- me2.viewButton = name === "img" ? "选择图片" : "选择视频";
6393
- me2.viewTip = name === "img" ? "" : "为了获得更高的推荐和点击量,建议上传720p(1280*720),大小不超过500MB(视频上传需要时间,请耐心等待)";
6348
+ me2.viewName = name === "img" ? "\u6DFB\u52A0\u56FE\u7247" : "\u6DFB\u52A0\u89C6\u9891";
6349
+ me2.viewButton = name === "img" ? "\u9009\u62E9\u56FE\u7247" : "\u9009\u62E9\u89C6\u9891";
6350
+ 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)";
6394
6351
  me2.viewStatus = true;
6395
6352
  },
6396
- // 关闭弹框
6397
6353
  closeDialog() {
6398
6354
  this.viewStatus = false;
6399
6355
  this.linkStatus = false;
6400
6356
  this.linkContent = "";
6401
6357
  },
6402
- // ==========toolbox end==========
6403
- // 弹框提示
6404
6358
  setToast(content) {
6405
6359
  ElMessage.error(content);
6406
6360
  },
6407
6361
  setMessageBoxNoCancel(content) {
6408
6362
  ElMessageBox.confirm(content, "", {
6409
- confirmButtonText: "确定",
6410
- cancelButtonText: "取消",
6363
+ confirmButtonText: "\u786E\u5B9A",
6364
+ cancelButtonText: "\u53D6\u6D88",
6411
6365
  type: "warning"
6412
6366
  }).then(() => {
6413
6367
  }).catch(() => {
@@ -6424,6 +6378,8 @@ const _hoisted_3 = {
6424
6378
  slot: "footer",
6425
6379
  class: "dialog-footer"
6426
6380
  };
6381
+ const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u53D6 \u6D88");
6382
+ const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u786E \u5B9A");
6427
6383
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6428
6384
  const _component_el_input = resolveComponent("el-input");
6429
6385
  const _component_el_form_item = resolveComponent("el-form-item");
@@ -6438,7 +6394,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6438
6394
  withDirectives(createElementVNode("div", {
6439
6395
  style: normalizeStyle({ textAlign: $options.align }),
6440
6396
  class: "placeholder"
6441
- }, " 请输入正文 ", 4), [
6397
+ }, " \u8BF7\u8F93\u5165\u6B63\u6587 ", 4), [
6442
6398
  [vShow, !$options.isInputing && !$data.titleCount && !$data.hasArticleCard]
6443
6399
  ]),
6444
6400
  $data.overLine ? (openBlock(), createElementBlock("div", {
@@ -6463,26 +6419,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6463
6419
  createVNode(_component_el_form, { model: $data.linkForm }, {
6464
6420
  default: withCtx(() => [
6465
6421
  createVNode(_component_el_form_item, {
6466
- label: "添加链接",
6422
+ label: "\u6DFB\u52A0\u94FE\u63A5",
6467
6423
  class: "link-title"
6468
6424
  }, {
6469
6425
  default: withCtx(() => [
6470
6426
  createVNode(_component_el_input, {
6471
6427
  modelValue: $data.linkForm.linkAddress,
6472
6428
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.linkForm.linkAddress = $event),
6473
- placeholder: "请输入链接地址"
6429
+ placeholder: "\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"
6474
6430
  }, null, 8, ["modelValue"])
6475
6431
  ]),
6476
6432
  _: 1
6477
6433
  }),
6478
- createVNode(_component_el_form_item, { label: "链接文案" }, {
6434
+ createVNode(_component_el_form_item, { label: "\u94FE\u63A5\u6587\u6848" }, {
6479
6435
  default: withCtx(() => [
6480
6436
  createVNode(_component_el_input, {
6481
6437
  modelValue: $data.linkForm.linkWriting,
6482
6438
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.linkForm.linkWriting = $event),
6483
6439
  type: "textarea",
6484
6440
  autosize: "",
6485
- placeholder: "请输入链接文案"
6441
+ placeholder: "\u8BF7\u8F93\u5165\u94FE\u63A5\u6587\u6848"
6486
6442
  }, null, 8, ["modelValue"])
6487
6443
  ]),
6488
6444
  _: 1
@@ -6495,18 +6451,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6495
6451
  createVNode(_component_el_button, {
6496
6452
  onClick: _cache[3] || (_cache[3] = ($event) => $data.viewLinkDialog = false)
6497
6453
  }, {
6498
- default: withCtx(() => _cache[14] || (_cache[14] = [
6499
- createTextVNode("取 消")
6500
- ])),
6454
+ default: withCtx(() => [
6455
+ _hoisted_4
6456
+ ]),
6501
6457
  _: 1
6502
6458
  }),
6503
6459
  createVNode(_component_el_button, {
6504
6460
  type: "primary",
6505
6461
  onClick: $options.insertLink
6506
6462
  }, {
6507
- default: withCtx(() => _cache[15] || (_cache[15] = [
6508
- createTextVNode("确 定")
6509
- ])),
6463
+ default: withCtx(() => [
6464
+ _hoisted_5
6465
+ ]),
6510
6466
  _: 1
6511
6467
  }, 8, ["onClick"])
6512
6468
  ])
@@ -6523,7 +6479,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6523
6479
  }, null, 8, ["article", "visible", "getList", "onDelete", "onChange"]),
6524
6480
  createVNode(_component_ImgUpload, {
6525
6481
  "img-list": $data.imgList,
6526
- "onUpdate:imgList": _cache[6] || (_cache[6] = ($event) => $data.imgList = $event),
6482
+ "onUpdate:img-list": _cache[6] || (_cache[6] = ($event) => $data.imgList = $event),
6527
6483
  visible: $data.visibleImg,
6528
6484
  "onUpdate:visible": _cache[7] || (_cache[7] = ($event) => $data.visibleImg = $event),
6529
6485
  chartGallery: $props.chartGallery,
@@ -6538,7 +6494,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6538
6494
  }, null, 8, ["visible", "file-selected"]),
6539
6495
  createVNode(_component_CollectArticle, {
6540
6496
  "link-content": $data.linkContent,
6541
- "onUpdate:linkContent": _cache[9] || (_cache[9] = ($event) => $data.linkContent = $event),
6497
+ "onUpdate:link-content": _cache[9] || (_cache[9] = ($event) => $data.linkContent = $event),
6542
6498
  visible: $data.visibleCollectArticle,
6543
6499
  "onUpdate:visible": _cache[10] || (_cache[10] = ($event) => $data.visibleCollectArticle = $event),
6544
6500
  onSubmit: $options.confirmLink