@haluo/biz 2.0.46 → 2.0.48-beta.0
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 +696 -794
- package/dist/haluo-biz.umd.cjs +708 -817
- package/dist/{squire-raw-1aaeff0b.js → squire-raw.3e73a64b.js} +4 -18
- package/dist/style.css +52 -40
- package/package.json +1 -1
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, "
|
|
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
|
-
}, "
|
|
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("
|
|
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
|
|
312
|
+
const ToolBar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
312
313
|
const ToolBar_vue_vue_type_style_index_1_lang = "";
|
|
313
314
|
const _export_sfc = (sfc, props) => {
|
|
314
315
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -338,15 +339,15 @@ const _sfc_main$8 = {
|
|
|
338
339
|
activeImgType: false,
|
|
339
340
|
activeAlign: "",
|
|
340
341
|
alignMethods: [
|
|
341
|
-
{ value: "left", name: "
|
|
342
|
-
{ value: "right", name: "
|
|
343
|
-
{ value: "center", name: "
|
|
344
|
-
{ value: "justify", name: "
|
|
342
|
+
{ value: "left", name: "\u5DE6\u5BF9\u9F50" },
|
|
343
|
+
{ value: "right", name: "\u53F3\u5BF9\u9F50" },
|
|
344
|
+
{ value: "center", name: "\u5C45\u4E2D\u5BF9\u9F50" },
|
|
345
|
+
{ value: "justify", name: "\u4E24\u7AEF\u5BF9\u9F50" }
|
|
345
346
|
],
|
|
346
347
|
activeFontsize: "17",
|
|
347
348
|
fontsizes: [
|
|
348
|
-
{ value: "17px", name: "17", desc: "
|
|
349
|
-
{ value: "18px", name: "18", desc: "
|
|
349
|
+
{ value: "17px", name: "17", desc: "\u9ED8\u8BA4\u6B63\u6587\u5B57\u53F7" },
|
|
350
|
+
{ value: "18px", name: "18", desc: "\u9ED8\u8BA4\u6807\u9898\u5B57\u53F7" },
|
|
350
351
|
{ value: "19px", name: "19" },
|
|
351
352
|
{ value: "20px", name: "20" },
|
|
352
353
|
{ value: "24px", name: "24" },
|
|
@@ -427,7 +428,7 @@ const _sfc_main$8 = {
|
|
|
427
428
|
this.editor.clearFormat();
|
|
428
429
|
},
|
|
429
430
|
setColor(val) {
|
|
430
|
-
console.log("
|
|
431
|
+
console.log("\u6587\u5B57\u989C\u8272");
|
|
431
432
|
this.updatePosition(() => {
|
|
432
433
|
this.editor.setColor(val);
|
|
433
434
|
});
|
|
@@ -486,7 +487,6 @@ const _sfc_main$8 = {
|
|
|
486
487
|
this.popoverVisibleList = false;
|
|
487
488
|
this.popoverVisibleImg = false;
|
|
488
489
|
},
|
|
489
|
-
// todo 富文本设置样式位置会回到顶部
|
|
490
490
|
updatePosition(fn) {
|
|
491
491
|
const scrollTop = document.documentElement.scrollTop;
|
|
492
492
|
fn && fn();
|
|
@@ -523,11 +523,11 @@ const _hoisted_1$8 = {
|
|
|
523
523
|
key: 0,
|
|
524
524
|
class: "tools"
|
|
525
525
|
};
|
|
526
|
-
const _hoisted_2$
|
|
527
|
-
const _hoisted_3$
|
|
528
|
-
const _hoisted_4$
|
|
529
|
-
const _hoisted_5$
|
|
530
|
-
const _hoisted_6$
|
|
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$
|
|
541
|
-
const _hoisted_14$
|
|
542
|
-
const _hoisted_15$
|
|
543
|
-
const _hoisted_16$
|
|
540
|
+
const _hoisted_13$2 = { style: { "font-size": "10px" } };
|
|
541
|
+
const _hoisted_14$2 = { class: "box" };
|
|
542
|
+
const _hoisted_15$2 = ["src"];
|
|
543
|
+
const _hoisted_16$2 = {
|
|
544
544
|
key: 0,
|
|
545
545
|
class: "box-mask"
|
|
546
546
|
};
|
|
@@ -566,12 +566,12 @@ const _hoisted_29$1 = {
|
|
|
566
566
|
key: 0,
|
|
567
567
|
class: "box-mask"
|
|
568
568
|
};
|
|
569
|
-
const _hoisted_30 = { class: "box" };
|
|
570
|
-
const _hoisted_31 = ["src"];
|
|
571
|
-
const _hoisted_32 = ["src"];
|
|
572
|
-
const _hoisted_33 = ["src"];
|
|
573
|
-
const _hoisted_34 = ["src"];
|
|
574
|
-
const _hoisted_35 = { class: "tools-title" };
|
|
569
|
+
const _hoisted_30$1 = { class: "box" };
|
|
570
|
+
const _hoisted_31$1 = ["src"];
|
|
571
|
+
const _hoisted_32$1 = ["src"];
|
|
572
|
+
const _hoisted_33$1 = ["src"];
|
|
573
|
+
const _hoisted_34$1 = ["src"];
|
|
574
|
+
const _hoisted_35$1 = { class: "tools-title" };
|
|
575
575
|
const _hoisted_36 = ["src"];
|
|
576
576
|
const _hoisted_37 = ["src"];
|
|
577
577
|
const _hoisted_38 = { class: "tools-title_content" };
|
|
@@ -592,11 +592,11 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
592
592
|
const _component_colorPicker = resolveComponent("colorPicker");
|
|
593
593
|
const _directive_click_outside = resolveDirective("click-outside");
|
|
594
594
|
return $props.editor.fontInfo ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
595
|
-
createElementVNode("div", _hoisted_2$
|
|
595
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
596
596
|
createVNode(_component_el_tooltip, {
|
|
597
597
|
class: "item",
|
|
598
598
|
effect: "dark",
|
|
599
|
-
content: "
|
|
599
|
+
content: "\u64A4\u56DE",
|
|
600
600
|
placement: "top"
|
|
601
601
|
}, {
|
|
602
602
|
default: withCtx(() => [
|
|
@@ -608,14 +608,14 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
608
608
|
height: "40",
|
|
609
609
|
alt: "",
|
|
610
610
|
onClick: _cache[0] || (_cache[0] = ($event) => $options.back($event))
|
|
611
|
-
}, null, 12, _hoisted_3$
|
|
611
|
+
}, null, 12, _hoisted_3$7)
|
|
612
612
|
]),
|
|
613
613
|
_: 1
|
|
614
614
|
}),
|
|
615
615
|
createVNode(_component_el_tooltip, {
|
|
616
616
|
class: "item",
|
|
617
617
|
effect: "dark",
|
|
618
|
-
content: "
|
|
618
|
+
content: "\u53CD\u64A4\u56DE",
|
|
619
619
|
placement: "top"
|
|
620
620
|
}, {
|
|
621
621
|
default: withCtx(() => [
|
|
@@ -627,7 +627,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
627
627
|
height: "40",
|
|
628
628
|
alt: "",
|
|
629
629
|
onClick: _cache[1] || (_cache[1] = ($event) => $options.forward($event))
|
|
630
|
-
}, null, 12, _hoisted_4$
|
|
630
|
+
}, null, 12, _hoisted_4$6)
|
|
631
631
|
]),
|
|
632
632
|
_: 1
|
|
633
633
|
}),
|
|
@@ -638,7 +638,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
638
638
|
createVNode(_component_el_tooltip, {
|
|
639
639
|
class: "item",
|
|
640
640
|
effect: "dark",
|
|
641
|
-
content: "
|
|
641
|
+
content: "\u6E05\u9664\u683C\u5F0F",
|
|
642
642
|
placement: "top"
|
|
643
643
|
}, {
|
|
644
644
|
default: withCtx(() => [
|
|
@@ -648,18 +648,18 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
648
648
|
height: "40",
|
|
649
649
|
alt: "",
|
|
650
650
|
onClick: _cache[2] || (_cache[2] = (...args) => $options.clearFormat && $options.clearFormat(...args))
|
|
651
|
-
}, null, 8, _hoisted_5$
|
|
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$
|
|
662
|
+
createElementVNode("div", _hoisted_6$3, [
|
|
663
663
|
createElementVNode("img", {
|
|
664
664
|
src: $options.getImageUrl("tools_refresh@3x.png"),
|
|
665
665
|
width: "40",
|
|
@@ -686,7 +686,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
686
686
|
createVNode(_component_el_tooltip, {
|
|
687
687
|
class: "item",
|
|
688
688
|
effect: "dark",
|
|
689
|
-
content: "
|
|
689
|
+
content: "\u5B57\u53F7",
|
|
690
690
|
placement: "top"
|
|
691
691
|
}, {
|
|
692
692
|
default: withCtx(() => [
|
|
@@ -720,7 +720,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
720
720
|
createElementVNode("span", {
|
|
721
721
|
style: normalizeStyle({ fontSize: item.value })
|
|
722
722
|
}, toDisplayString(item.name), 5),
|
|
723
|
-
createElementVNode("span", _hoisted_13$
|
|
723
|
+
createElementVNode("span", _hoisted_13$2, toDisplayString(item.desc), 1)
|
|
724
724
|
], 10, _hoisted_12$2);
|
|
725
725
|
}), 128))
|
|
726
726
|
])), [
|
|
@@ -736,11 +736,11 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
736
736
|
createVNode(_component_el_tooltip, {
|
|
737
737
|
class: "item",
|
|
738
738
|
effect: "dark",
|
|
739
|
-
content: "
|
|
739
|
+
content: "\u6807\u9898",
|
|
740
740
|
placement: "top"
|
|
741
741
|
}, {
|
|
742
742
|
default: withCtx(() => [
|
|
743
|
-
createElementVNode("div", _hoisted_14$
|
|
743
|
+
createElementVNode("div", _hoisted_14$2, [
|
|
744
744
|
createElementVNode("img", {
|
|
745
745
|
src: $options.getImageUrl("tools_title@3x.png"),
|
|
746
746
|
"data-editor-id": "makeHeader",
|
|
@@ -748,8 +748,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
748
748
|
height: "40",
|
|
749
749
|
alt: "",
|
|
750
750
|
onClick: _cache[5] || (_cache[5] = ($event) => $options.setTitle($event, $data.statusInfo.title ? 0 : 1))
|
|
751
|
-
}, null, 8, _hoisted_15$
|
|
752
|
-
$data.statusInfo && $data.statusInfo.title ? (openBlock(), createElementBlock("div", _hoisted_16$
|
|
751
|
+
}, null, 8, _hoisted_15$2),
|
|
752
|
+
$data.statusInfo && $data.statusInfo.title ? (openBlock(), createElementBlock("div", _hoisted_16$2)) : createCommentVNode("", true)
|
|
753
753
|
])
|
|
754
754
|
]),
|
|
755
755
|
_: 1
|
|
@@ -757,7 +757,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
757
757
|
createVNode(_component_el_tooltip, {
|
|
758
758
|
class: "item",
|
|
759
759
|
effect: "dark",
|
|
760
|
-
content: "
|
|
760
|
+
content: "\u52A0\u7C97",
|
|
761
761
|
placement: "top"
|
|
762
762
|
}, {
|
|
763
763
|
default: withCtx(() => [
|
|
@@ -785,7 +785,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
785
785
|
createVNode(_component_el_tooltip, {
|
|
786
786
|
class: "item",
|
|
787
787
|
effect: "dark",
|
|
788
|
-
content: "
|
|
788
|
+
content: "\u5217\u8868",
|
|
789
789
|
placement: "top"
|
|
790
790
|
}, {
|
|
791
791
|
default: withCtx(() => [
|
|
@@ -819,13 +819,13 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
819
819
|
onClick: _cache[8] || (_cache[8] = ($event) => $options.updatePosition(() => {
|
|
820
820
|
$options.setStyle("makeUnorderedList");
|
|
821
821
|
}))
|
|
822
|
-
}, "
|
|
822
|
+
}, "\u65E0\u5E8F\u5217\u8868"),
|
|
823
823
|
createElementVNode("li", {
|
|
824
824
|
"data-editor-id": "makeHeader",
|
|
825
825
|
onClick: _cache[9] || (_cache[9] = ($event) => $options.updatePosition(() => {
|
|
826
826
|
$options.setStyle("makeOrderedList");
|
|
827
827
|
}))
|
|
828
|
-
}, "
|
|
828
|
+
}, "\u6709\u5E8F\u5217\u8868")
|
|
829
829
|
])), [
|
|
830
830
|
[_directive_click_outside, $options.handlePopover]
|
|
831
831
|
])
|
|
@@ -836,7 +836,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
836
836
|
createVNode(_component_el_tooltip, {
|
|
837
837
|
class: "item",
|
|
838
838
|
effect: "dark",
|
|
839
|
-
content: "
|
|
839
|
+
content: "\u503E\u659C",
|
|
840
840
|
placement: "top"
|
|
841
841
|
}, {
|
|
842
842
|
default: withCtx(() => [
|
|
@@ -856,7 +856,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
856
856
|
createVNode(_component_el_tooltip, {
|
|
857
857
|
class: "item",
|
|
858
858
|
effect: "dark",
|
|
859
|
-
content: "
|
|
859
|
+
content: "\u4E0B\u5212\u7EBF",
|
|
860
860
|
placement: "top"
|
|
861
861
|
}, {
|
|
862
862
|
default: withCtx(() => [
|
|
@@ -877,18 +877,18 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
877
877
|
key: 0,
|
|
878
878
|
class: "item",
|
|
879
879
|
effect: "dark",
|
|
880
|
-
content: "
|
|
880
|
+
content: "\u94FE\u63A5",
|
|
881
881
|
placement: "top"
|
|
882
882
|
}, {
|
|
883
883
|
default: withCtx(() => [
|
|
884
|
-
createElementVNode("div", _hoisted_30, [
|
|
884
|
+
createElementVNode("div", _hoisted_30$1, [
|
|
885
885
|
createElementVNode("img", {
|
|
886
886
|
src: $options.getImageUrl("icon_web_link@2x.png"),
|
|
887
887
|
width: "40",
|
|
888
888
|
height: "40",
|
|
889
889
|
alt: "",
|
|
890
890
|
onClick: _cache[12] || (_cache[12] = (...args) => $options.insertLink && $options.insertLink(...args))
|
|
891
|
-
}, null, 8, _hoisted_31)
|
|
891
|
+
}, null, 8, _hoisted_31$1)
|
|
892
892
|
])
|
|
893
893
|
]),
|
|
894
894
|
_: 1
|
|
@@ -896,7 +896,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
896
896
|
createVNode(_component_el_tooltip, {
|
|
897
897
|
class: "item",
|
|
898
898
|
effect: "dark",
|
|
899
|
-
content: "
|
|
899
|
+
content: "\u9996\u884C\u7F29\u8FDB",
|
|
900
900
|
placement: "top"
|
|
901
901
|
}, {
|
|
902
902
|
default: withCtx(() => [
|
|
@@ -906,14 +906,14 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
906
906
|
height: "40",
|
|
907
907
|
alt: "",
|
|
908
908
|
onClick: _cache[13] || (_cache[13] = ($event) => $options.setStyle("setIndent"))
|
|
909
|
-
}, null, 8, _hoisted_32)
|
|
909
|
+
}, null, 8, _hoisted_32$1)
|
|
910
910
|
]),
|
|
911
911
|
_: 1
|
|
912
912
|
}),
|
|
913
913
|
createVNode(_component_el_tooltip, {
|
|
914
914
|
class: "item",
|
|
915
915
|
effect: "dark",
|
|
916
|
-
content: "
|
|
916
|
+
content: "\u6587\u5B57\u989C\u8272",
|
|
917
917
|
placement: "top"
|
|
918
918
|
}, {
|
|
919
919
|
default: withCtx(() => [
|
|
@@ -926,13 +926,13 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
926
926
|
width: "24",
|
|
927
927
|
height: "40",
|
|
928
928
|
alt: ""
|
|
929
|
-
}, null, 8, _hoisted_33),
|
|
929
|
+
}, null, 8, _hoisted_33$1),
|
|
930
930
|
createElementVNode("img", {
|
|
931
931
|
src: $options.getImageUrl("tools_arrow@3x.png"),
|
|
932
932
|
width: "16",
|
|
933
933
|
height: "40",
|
|
934
934
|
alt: ""
|
|
935
|
-
}, null, 8, _hoisted_34),
|
|
935
|
+
}, null, 8, _hoisted_34$1),
|
|
936
936
|
createVNode(_component_colorPicker, {
|
|
937
937
|
ref: "colorPicker",
|
|
938
938
|
modelValue: $data.color,
|
|
@@ -953,11 +953,11 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
953
953
|
width: "152"
|
|
954
954
|
}, {
|
|
955
955
|
reference: withCtx(() => [
|
|
956
|
-
createElementVNode("div", _hoisted_35, [
|
|
956
|
+
createElementVNode("div", _hoisted_35$1, [
|
|
957
957
|
createVNode(_component_el_tooltip, {
|
|
958
958
|
class: "item",
|
|
959
959
|
effect: "dark",
|
|
960
|
-
content: "
|
|
960
|
+
content: "\u5BF9\u9F50\u65B9\u5F0F",
|
|
961
961
|
placement: "top"
|
|
962
962
|
}, {
|
|
963
963
|
default: withCtx(() => [
|
|
@@ -1015,7 +1015,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1015
1015
|
createVNode(_component_el_tooltip, {
|
|
1016
1016
|
class: "item",
|
|
1017
1017
|
effect: "dark",
|
|
1018
|
-
content: "
|
|
1018
|
+
content: "\u63D2\u5165\u56FE\u7247",
|
|
1019
1019
|
placement: "top"
|
|
1020
1020
|
}, {
|
|
1021
1021
|
default: withCtx(() => [
|
|
@@ -1037,11 +1037,11 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1037
1037
|
createElementVNode("li", {
|
|
1038
1038
|
class: normalizeClass([$data.activeImgType === "normal" ? "active" : ""]),
|
|
1039
1039
|
onClick: _cache[18] || (_cache[18] = ($event) => $options.insertImg("normal"))
|
|
1040
|
-
}, toDisplayString("
|
|
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("
|
|
1044
|
+
}, toDisplayString("\u4E0A\u4F20\u65E0\u7F1D\u62FC\u63A5\u56FE\u7247"), 2)
|
|
1045
1045
|
])), [
|
|
1046
1046
|
[_directive_click_outside, $options.handlePopover]
|
|
1047
1047
|
])
|
|
@@ -1052,7 +1052,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1052
1052
|
key: 2,
|
|
1053
1053
|
class: "item",
|
|
1054
1054
|
effect: "dark",
|
|
1055
|
-
content: "
|
|
1055
|
+
content: "\u63D2\u5165\u89C6\u9891",
|
|
1056
1056
|
placement: "top"
|
|
1057
1057
|
}, {
|
|
1058
1058
|
default: withCtx(() => [
|
|
@@ -1070,7 +1070,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1070
1070
|
key: 3,
|
|
1071
1071
|
class: "item",
|
|
1072
1072
|
effect: "dark",
|
|
1073
|
-
content: "
|
|
1073
|
+
content: "\u63D2\u5165\u6587\u7AE0/\u89C6\u9891",
|
|
1074
1074
|
placement: "top"
|
|
1075
1075
|
}, {
|
|
1076
1076
|
default: withCtx(() => [
|
|
@@ -1088,7 +1088,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1088
1088
|
key: 4,
|
|
1089
1089
|
class: "item",
|
|
1090
1090
|
effect: "dark",
|
|
1091
|
-
content: "
|
|
1091
|
+
content: "\u91C7\u96C6\u6587\u7AE0",
|
|
1092
1092
|
placement: "top"
|
|
1093
1093
|
}, {
|
|
1094
1094
|
default: withCtx(() => [
|
|
@@ -1105,16 +1105,20 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1105
1105
|
])
|
|
1106
1106
|
])) : createCommentVNode("", true);
|
|
1107
1107
|
}
|
|
1108
|
-
const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$4], ["__scopeId", "data-v-
|
|
1108
|
+
const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$4], ["__scopeId", "data-v-24d161f2"]]);
|
|
1109
1109
|
const __vite_glob_0_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAmCAYAAAClI5npAAAA0UlEQVR42uWYwQnDMAxFfckAXkFDmGzgS1foDpnFS3gTb+IFtIDyA4UeBKUtNR8qwTvlkAdyfmSletySmRUwgIIJOijXs9VcLxegwNVDRFYLdHtdCg6wrRKY9l4NUFYIqH1WDeTfCXxXE9w5Ar4tQhBwh7SBjSDg2lJJAj47SAI+OwgC7pDuJAGfHQQBnx0kAZ8dBAF3SOtTgCchybjV2QLKFpihW6BAQn6GA0i4KG4g037H4QaSDiTWUMocyweQcFezBjLrer5TFxR/uaKhL6lOdeUQ8G6X1pQAAAAASUVORK5CYII=";
|
|
1110
|
+
const index_vue_vue_type_style_index_0_lang$5 = "";
|
|
1110
1111
|
const _hoisted_1$7 = { key: 0 };
|
|
1111
|
-
const _hoisted_2$
|
|
1112
|
-
const _hoisted_3$
|
|
1112
|
+
const _hoisted_2$6 = { class: "basic-dialog_title" };
|
|
1113
|
+
const _hoisted_3$6 = /* @__PURE__ */ createElementVNode("span", { class: "basic-dialog_divider" }, null, -1);
|
|
1114
|
+
const _hoisted_4$5 = {
|
|
1113
1115
|
key: 0,
|
|
1114
1116
|
class: "dialog-footer"
|
|
1115
1117
|
};
|
|
1118
|
+
const _hoisted_5$4 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
|
|
1119
|
+
const _hoisted_6$2 = /* @__PURE__ */ createTextVNode("\u786E\u8BA4");
|
|
1116
1120
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1117
|
-
|
|
1121
|
+
name: "index",
|
|
1118
1122
|
props: {
|
|
1119
1123
|
visible: { type: Boolean, default: false },
|
|
1120
1124
|
showBtn: { type: Boolean, default: true },
|
|
@@ -1122,10 +1126,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1122
1126
|
showTitle: { type: Boolean, default: true }
|
|
1123
1127
|
},
|
|
1124
1128
|
emits: ["submit", "cancel"],
|
|
1125
|
-
setup(__props, { emit:
|
|
1129
|
+
setup(__props, { emit: emits }) {
|
|
1126
1130
|
const props = __props;
|
|
1127
1131
|
const parent = inject("vm");
|
|
1128
|
-
const emits = __emit;
|
|
1129
1132
|
const handleClose = () => {
|
|
1130
1133
|
var _a;
|
|
1131
1134
|
(_a = parent.setStatus) == null ? void 0 : _a.call(parent, false);
|
|
@@ -1147,31 +1150,31 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1147
1150
|
});
|
|
1148
1151
|
return (_ctx, _cache) => {
|
|
1149
1152
|
return openBlock(), createBlock(unref(ElDialog), {
|
|
1150
|
-
modelValue: dialogVisible
|
|
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:
|
|
1154
|
-
class: normalizeClass(["basic-dialog", { "hide-title": !
|
|
1156
|
+
width: __props.width,
|
|
1157
|
+
class: normalizeClass(["basic-dialog", { "hide-title": !__props.showTitle }])
|
|
1155
1158
|
}, {
|
|
1156
1159
|
header: withCtx(() => [
|
|
1157
|
-
|
|
1158
|
-
createElementVNode("div", _hoisted_2$
|
|
1159
|
-
|
|
1160
|
+
__props.showTitle ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
1161
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
1162
|
+
_hoisted_3$6,
|
|
1160
1163
|
renderSlot(_ctx.$slots, "title")
|
|
1161
1164
|
])
|
|
1162
1165
|
])) : createCommentVNode("", true)
|
|
1163
1166
|
]),
|
|
1164
1167
|
footer: withCtx(() => [
|
|
1165
|
-
|
|
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(() =>
|
|
1173
|
-
|
|
1174
|
-
])
|
|
1175
|
+
default: withCtx(() => [
|
|
1176
|
+
_hoisted_5$4
|
|
1177
|
+
]),
|
|
1175
1178
|
_: 1
|
|
1176
1179
|
}),
|
|
1177
1180
|
createVNode(unref(ElButton), {
|
|
@@ -1180,9 +1183,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1180
1183
|
type: "primary",
|
|
1181
1184
|
onClick: confirm
|
|
1182
1185
|
}, {
|
|
1183
|
-
default: withCtx(() =>
|
|
1184
|
-
|
|
1185
|
-
])
|
|
1186
|
+
default: withCtx(() => [
|
|
1187
|
+
_hoisted_6$2
|
|
1188
|
+
]),
|
|
1186
1189
|
_: 1
|
|
1187
1190
|
})
|
|
1188
1191
|
])) : createCommentVNode("", true)
|
|
@@ -1195,18 +1198,16 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1195
1198
|
};
|
|
1196
1199
|
}
|
|
1197
1200
|
});
|
|
1198
|
-
const index_vue_vue_type_style_index_0_lang$5 = "";
|
|
1199
1201
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
1200
1202
|
function getDefaultExportFromCjs(x) {
|
|
1201
1203
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1202
1204
|
}
|
|
1203
|
-
var date$
|
|
1204
|
-
|
|
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"
|
|
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
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
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
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
timeData
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
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
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
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
|
-
|
|
1303
|
-
|
|
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
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
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
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
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
|
|
1327
|
+
return replacementDate(o, fmt);
|
|
1336
1328
|
};
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
)
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
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 &&
|
|
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
|
-
|
|
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
|
-
|
|
3235
|
-
|
|
3236
|
-
function
|
|
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");
|
|
3228
|
+
}
|
|
3229
|
+
var html = document.documentElement;
|
|
3230
|
+
html.style.overflow = "hidden";
|
|
3231
|
+
html.style.height = "100%";
|
|
3232
|
+
var body = document.body;
|
|
3233
|
+
body.style.overflow = "hidden";
|
|
3234
|
+
body.style.height = "100%";
|
|
3235
|
+
if (className) {
|
|
3236
|
+
var dom = document.querySelector("." + className);
|
|
3237
|
+
dom && dom.addEventListener("touchmove", _this.__setDefault__);
|
|
3340
3238
|
}
|
|
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
3239
|
};
|
|
3362
|
-
|
|
3363
|
-
var _this = this;
|
|
3240
|
+
this.startScroll = function(className) {
|
|
3364
3241
|
if (!(window && window.document)) {
|
|
3365
|
-
return new Error("
|
|
3366
|
-
}
|
|
3367
|
-
var
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
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
|
-
};
|
|
3388
|
-
ToolsClass2.prototype.clipboard = function(str) {
|
|
3389
|
-
if (!(window && window.document)) {
|
|
3390
|
-
return new Error("仅支持浏览器");
|
|
3391
|
-
}
|
|
3392
|
-
var copy = requireClipboardCopy();
|
|
3393
|
-
return copy(str);
|
|
3394
|
-
};
|
|
3395
|
-
ToolsClass2.prototype.firstUpperCase = function(str) {
|
|
3396
|
-
return str.charAt(0).toUpperCase() + str.toString().slice(1);
|
|
3397
|
-
};
|
|
3398
|
-
ToolsClass2.prototype.slice = function(target, length) {
|
|
3399
|
-
if (target === void 0) {
|
|
3400
|
-
target = "";
|
|
3401
|
-
}
|
|
3402
|
-
if (length === void 0) {
|
|
3403
|
-
length = 0;
|
|
3242
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3243
|
+
}
|
|
3244
|
+
var html = document.documentElement;
|
|
3245
|
+
html.style.overflow = "visible";
|
|
3246
|
+
html.style.height = "auto";
|
|
3247
|
+
var body = document.body;
|
|
3248
|
+
body.style.overflow = "visible";
|
|
3249
|
+
body.style.height = "auto";
|
|
3250
|
+
if (className) {
|
|
3251
|
+
var dom = document.querySelector("." + className);
|
|
3252
|
+
dom && dom.removeEventListener("touchmove", _this.__setDefault__);
|
|
3404
3253
|
}
|
|
3405
|
-
return target.slice(0, length);
|
|
3406
3254
|
};
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
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
|
|
3264
|
+
return arr;
|
|
3412
3265
|
};
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
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
|
|
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
|
-
|
|
3428
|
-
return
|
|
3277
|
+
this.isDefined = function(val) {
|
|
3278
|
+
return val !== void 0 && val !== null;
|
|
3429
3279
|
};
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3280
|
+
this.__loaded__ = {};
|
|
3281
|
+
this.__setDefault__ = function(e) {
|
|
3282
|
+
e && e.preventDefault();
|
|
3433
3283
|
};
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
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
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
if (
|
|
3444
|
-
|
|
3445
|
-
|
|
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
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3318
|
+
return delay;
|
|
3319
|
+
};
|
|
3320
|
+
ToolsClass2.prototype.getUrlName = function(url) {
|
|
3321
|
+
return url && url.split("?")[0].split("/").reverse()[0];
|
|
3322
|
+
};
|
|
3323
|
+
ToolsClass2.prototype.loadJs = function(url) {
|
|
3324
|
+
var _this = this;
|
|
3325
|
+
if (!(window && window.document)) {
|
|
3326
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3327
|
+
}
|
|
3328
|
+
var name = this.getUrlName(url);
|
|
3329
|
+
var id = "js_" + name;
|
|
3330
|
+
return new Promise(function(resolve, reject) {
|
|
3331
|
+
if (_this.__loaded__[id]) {
|
|
3332
|
+
return resolve();
|
|
3333
|
+
}
|
|
3334
|
+
var script = document.createElement("script");
|
|
3335
|
+
script.type = "text/javascript";
|
|
3336
|
+
script.async = true;
|
|
3337
|
+
script.src = url;
|
|
3338
|
+
script.id = id;
|
|
3339
|
+
script.onload = function() {
|
|
3340
|
+
_this.__loaded__[id] = true;
|
|
3341
|
+
resolve();
|
|
3342
|
+
};
|
|
3343
|
+
script.onerror = function(e) {
|
|
3344
|
+
reject(e);
|
|
3345
|
+
};
|
|
3346
|
+
document.body.appendChild(script);
|
|
3347
|
+
});
|
|
3348
|
+
};
|
|
3349
|
+
ToolsClass2.prototype.loadCss = function(url) {
|
|
3350
|
+
var _this = this;
|
|
3351
|
+
if (!(window && window.document)) {
|
|
3352
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3353
|
+
}
|
|
3354
|
+
var name = this.getUrlName(url);
|
|
3355
|
+
var id = "css_" + name;
|
|
3356
|
+
return new Promise(function(resolve, reject) {
|
|
3357
|
+
if (_this.__loaded__[id]) {
|
|
3358
|
+
return resolve();
|
|
3359
|
+
}
|
|
3360
|
+
var link = document.createElement("link");
|
|
3361
|
+
link.type = "text/css";
|
|
3362
|
+
link.rel = "stylesheet";
|
|
3363
|
+
link.href = url;
|
|
3364
|
+
link.id = id;
|
|
3365
|
+
link.onload = function() {
|
|
3366
|
+
_this.__loaded__[id] = true;
|
|
3367
|
+
resolve();
|
|
3368
|
+
};
|
|
3369
|
+
link.onerror = function(e) {
|
|
3370
|
+
reject(e);
|
|
3371
|
+
};
|
|
3372
|
+
document.head.appendChild(link);
|
|
3373
|
+
});
|
|
3374
|
+
};
|
|
3375
|
+
ToolsClass2.prototype.clipboard = function(str) {
|
|
3376
|
+
if (!(window && window.document)) {
|
|
3377
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3378
|
+
}
|
|
3379
|
+
var copy = requireClipboardCopy();
|
|
3380
|
+
return copy(str);
|
|
3381
|
+
};
|
|
3382
|
+
ToolsClass2.prototype.firstUpperCase = function(str) {
|
|
3383
|
+
return str.charAt(0).toUpperCase() + str.toString().slice(1);
|
|
3384
|
+
};
|
|
3385
|
+
ToolsClass2.prototype.slice = function(target, length) {
|
|
3386
|
+
if (target === void 0) {
|
|
3387
|
+
target = "";
|
|
3388
|
+
}
|
|
3389
|
+
if (length === void 0) {
|
|
3390
|
+
length = 0;
|
|
3391
|
+
}
|
|
3392
|
+
return target.slice(0, length);
|
|
3393
|
+
};
|
|
3394
|
+
ToolsClass2.prototype.guid = function() {
|
|
3395
|
+
function S4() {
|
|
3396
|
+
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
3397
|
+
}
|
|
3398
|
+
return S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4();
|
|
3399
|
+
};
|
|
3400
|
+
ToolsClass2.prototype.getBytesOfText = function(str) {
|
|
3401
|
+
if (str === void 0) {
|
|
3402
|
+
str = "";
|
|
3403
|
+
}
|
|
3404
|
+
return str.replace(/[^\u0000-\u00ff]/g, "aa").length;
|
|
3405
|
+
};
|
|
3406
|
+
ToolsClass2.prototype.uniqueArr = function(arr) {
|
|
3407
|
+
return Array.from(new Set(arr));
|
|
3408
|
+
};
|
|
3409
|
+
ToolsClass2.prototype.swapArray = function(array, index1, index2) {
|
|
3410
|
+
var _a;
|
|
3411
|
+
_a = [array[index2], array[index1]], array[index1] = _a[0], array[index2] = _a[1];
|
|
3412
|
+
return array;
|
|
3413
|
+
};
|
|
3414
|
+
ToolsClass2.prototype.filterEmoji = function(str) {
|
|
3415
|
+
return str.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/mg, "");
|
|
3416
|
+
};
|
|
3417
|
+
ToolsClass2.prototype.containsEmoji = function(str) {
|
|
3418
|
+
var reg = /\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/mg;
|
|
3419
|
+
return reg.test(str);
|
|
3420
|
+
};
|
|
3421
|
+
ToolsClass2.prototype.containsHanZi = function(str) {
|
|
3422
|
+
var reg = /[\u4e00-\u9fa5]/mg;
|
|
3423
|
+
return reg.test(str);
|
|
3424
|
+
};
|
|
3425
|
+
ToolsClass2.prototype.isEmpty = function(val) {
|
|
3426
|
+
if (val == null)
|
|
3427
|
+
return true;
|
|
3428
|
+
if (typeof val === "boolean")
|
|
3429
|
+
return false;
|
|
3430
|
+
if (typeof val === "number")
|
|
3431
|
+
return !val;
|
|
3432
|
+
if (val instanceof Error)
|
|
3433
|
+
return val.message === "";
|
|
3434
|
+
switch (Object.prototype.toString.call(val)) {
|
|
3435
|
+
case "[object String]":
|
|
3436
|
+
case "[object Array]":
|
|
3437
|
+
return !val.length;
|
|
3438
|
+
case "[object File]":
|
|
3439
|
+
case "[object Map]":
|
|
3440
|
+
case "[object Set]": {
|
|
3441
|
+
return !val.size;
|
|
3442
|
+
}
|
|
3443
|
+
case "[object Object]": {
|
|
3444
|
+
return !Object.keys(val).length;
|
|
3476
3445
|
}
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
)
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3446
|
+
}
|
|
3447
|
+
return false;
|
|
3448
|
+
};
|
|
3449
|
+
ToolsClass2.prototype.sensitiveField = function(field, before, after) {
|
|
3450
|
+
if (before === void 0) {
|
|
3451
|
+
before = 3;
|
|
3452
|
+
}
|
|
3453
|
+
if (after === void 0) {
|
|
3454
|
+
after = 4;
|
|
3455
|
+
}
|
|
3456
|
+
if (!field) {
|
|
3457
|
+
return "";
|
|
3458
|
+
}
|
|
3459
|
+
field = String(field);
|
|
3460
|
+
var sensitiveLen = field.length - before - after;
|
|
3461
|
+
if (sensitiveLen < 0) {
|
|
3462
|
+
sensitiveLen = 0;
|
|
3463
|
+
}
|
|
3464
|
+
var regItem = "[\u4E00-\u9FA5a-zA-Z0-9]";
|
|
3465
|
+
var regExp = "(" + regItem + "{" + before + "})" + regItem + "*(" + regItem + "{" + after + "})";
|
|
3466
|
+
var reg = new RegExp(regExp);
|
|
3467
|
+
return field.replace(reg, "$1" + "*".repeat(sensitiveLen) + "$2");
|
|
3468
|
+
};
|
|
3469
|
+
return ToolsClass2;
|
|
3470
|
+
}();
|
|
3471
|
+
tools$1.exports = new ToolsClass();
|
|
3472
|
+
const tools = /* @__PURE__ */ getDefaultExportFromCjs(tools$1.exports);
|
|
3473
|
+
const index_vue_vue_type_style_index_0_lang$4 = "";
|
|
3474
|
+
const _hoisted_1$6 = /* @__PURE__ */ createTextVNode("\u63D2\u5165\u6587\u7AE0/\u89C6\u9891");
|
|
3475
|
+
const _hoisted_2$5 = { style: { "margin-left": "20px", "color": "#FF5A25" } };
|
|
3476
|
+
const _hoisted_3$5 = { class: "insert-article" };
|
|
3477
|
+
const _hoisted_4$4 = /* @__PURE__ */ createTextVNode("\u4ECE\u6211\u7684\u6587\u7AE0\u4E2D\u9009\u62E9");
|
|
3478
|
+
const _hoisted_5$3 = /* @__PURE__ */ createTextVNode("\u4ECE\u6211\u7684\u89C6\u9891\u4E2D\u9009\u62E9");
|
|
3479
|
+
const _hoisted_6$1 = /* @__PURE__ */ createTextVNode("\u4ECE\u6240\u6709\u6587\u7AE0\u4E2D\u9009\u62E9");
|
|
3480
|
+
const _hoisted_7$1 = { class: "insert-article_input" };
|
|
3481
|
+
const _hoisted_8$1 = {
|
|
3492
3482
|
key: 0,
|
|
3493
3483
|
class: "nodata"
|
|
3494
3484
|
};
|
|
3495
|
-
const
|
|
3496
|
-
const
|
|
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
|
|
3501
|
-
const
|
|
3502
|
-
const
|
|
3503
|
-
const
|
|
3504
|
-
const
|
|
3505
|
-
const
|
|
3490
|
+
const _hoisted_11$1 = { class: "video-pic" };
|
|
3491
|
+
const _hoisted_12$1 = ["src"];
|
|
3492
|
+
const _hoisted_13$1 = ["src"];
|
|
3493
|
+
const _hoisted_14$1 = { class: "video-text" };
|
|
3494
|
+
const _hoisted_15$1 = { class: "dotdotdot2" };
|
|
3495
|
+
const _hoisted_16$1 = {
|
|
3506
3496
|
key: 1,
|
|
3507
3497
|
style: { "display": "inline-flex", "flex-direction": "column" }
|
|
3508
3498
|
};
|
|
3509
3499
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
3510
|
-
|
|
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:
|
|
3517
|
-
const
|
|
3506
|
+
setup(__props, { emit: emits }) {
|
|
3507
|
+
const props = __props;
|
|
3508
|
+
const { debounce } = tools;
|
|
3518
3509
|
const vInfiniteScroll = ElInfiniteScroll;
|
|
3519
3510
|
const Radio_Type = {
|
|
3520
3511
|
MY_ARITICLE: "1",
|
|
@@ -3532,9 +3523,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3532
3523
|
emits("update:visible", val);
|
|
3533
3524
|
}
|
|
3534
3525
|
});
|
|
3535
|
-
const props = __props;
|
|
3536
3526
|
const { visible, getList } = toRefs(props);
|
|
3537
|
-
const emits = __emit;
|
|
3538
3527
|
const data = reactive({
|
|
3539
3528
|
params: {
|
|
3540
3529
|
autherid: "",
|
|
@@ -3565,7 +3554,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3565
3554
|
};
|
|
3566
3555
|
const confirm = () => {
|
|
3567
3556
|
if (!data.article) {
|
|
3568
|
-
ElMessage.error(
|
|
3557
|
+
ElMessage.error(`\u8BF7\u9009\u62E9${isVideo ? "\u89C6\u9891" : "\u6587\u7AE0"}`);
|
|
3569
3558
|
return;
|
|
3570
3559
|
}
|
|
3571
3560
|
data.article.isVideo = isVideo;
|
|
@@ -3589,7 +3578,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3589
3578
|
autherid: data.params.radio !== Radio_Type.ALL_ARITICLE ? userId : "",
|
|
3590
3579
|
limit: 20,
|
|
3591
3580
|
allType: data.params.radio,
|
|
3592
|
-
// 只有4 是查视频 其他是文章
|
|
3593
3581
|
title: data.params.title,
|
|
3594
3582
|
page: ++data.page
|
|
3595
3583
|
});
|
|
@@ -3609,21 +3597,21 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3609
3597
|
}, {
|
|
3610
3598
|
title: withCtx(() => [
|
|
3611
3599
|
createElementVNode("span", null, [
|
|
3612
|
-
|
|
3613
|
-
createElementVNode("strong",
|
|
3600
|
+
_hoisted_1$6,
|
|
3601
|
+
createElementVNode("strong", _hoisted_2$5, "\u5E73\u53F0\u4EC5\u652F\u6301\u63D2\u5165" + toDisplayString(`${unref(isVideo) ? "2\u5E74" : "18\u4E2A\u6708"}`) + "\u5185\u7684\u63A8\u8350\u5185\u5BB9", 1)
|
|
3614
3602
|
])
|
|
3615
3603
|
]),
|
|
3616
3604
|
default: withCtx(() => [
|
|
3617
|
-
createElementVNode("div",
|
|
3605
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
3618
3606
|
createElementVNode("div", null, [
|
|
3619
3607
|
createVNode(unref(ElRadio), {
|
|
3620
3608
|
modelValue: data.params.radio,
|
|
3621
3609
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.params.radio = $event),
|
|
3622
3610
|
label: Radio_Type.MY_ARITICLE
|
|
3623
3611
|
}, {
|
|
3624
|
-
default: withCtx(() =>
|
|
3625
|
-
|
|
3626
|
-
])
|
|
3612
|
+
default: withCtx(() => [
|
|
3613
|
+
_hoisted_4$4
|
|
3614
|
+
]),
|
|
3627
3615
|
_: 1
|
|
3628
3616
|
}, 8, ["modelValue", "label"]),
|
|
3629
3617
|
createVNode(unref(ElRadio), {
|
|
@@ -3631,9 +3619,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3631
3619
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data.params.radio = $event),
|
|
3632
3620
|
label: Radio_Type.MY_VIDEO
|
|
3633
3621
|
}, {
|
|
3634
|
-
default: withCtx(() =>
|
|
3635
|
-
|
|
3636
|
-
])
|
|
3622
|
+
default: withCtx(() => [
|
|
3623
|
+
_hoisted_5$3
|
|
3624
|
+
]),
|
|
3637
3625
|
_: 1
|
|
3638
3626
|
}, 8, ["modelValue", "label"]),
|
|
3639
3627
|
createVNode(unref(ElRadio), {
|
|
@@ -3641,17 +3629,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3641
3629
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => data.params.radio = $event),
|
|
3642
3630
|
label: Radio_Type.ALL_ARITICLE
|
|
3643
3631
|
}, {
|
|
3644
|
-
default: withCtx(() =>
|
|
3645
|
-
|
|
3646
|
-
])
|
|
3632
|
+
default: withCtx(() => [
|
|
3633
|
+
_hoisted_6$1
|
|
3634
|
+
]),
|
|
3647
3635
|
_: 1
|
|
3648
3636
|
}, 8, ["modelValue", "label"])
|
|
3649
3637
|
]),
|
|
3650
|
-
createElementVNode("div",
|
|
3638
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
3651
3639
|
createVNode(unref(ElInput), {
|
|
3652
3640
|
modelValue: data.params.title,
|
|
3653
3641
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => data.params.title = $event),
|
|
3654
|
-
placeholder: isVideo
|
|
3642
|
+
placeholder: unref(isVideo) ? "\u8F93\u5165\u89C6\u9891\u63CF\u8FF0\u67E5\u627E\u5E73\u53F0\u53D1\u5E03\u8FC7\u7684\u89C6\u9891" : "\u8F93\u5165\u6807\u9898\u540D\u67E5\u627E\u5E73\u53F0\u53D1\u8FC7\u7684\u6587\u7AE0",
|
|
3655
3643
|
onKeyup: _cache[5] || (_cache[5] = withKeys(($event) => unref(getArticleList)(true), ["enter", "native"])),
|
|
3656
3644
|
onInput: _cache[6] || (_cache[6] = ($event) => unref(getArticleList)(true))
|
|
3657
3645
|
}, {
|
|
@@ -3665,11 +3653,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3665
3653
|
_: 1
|
|
3666
3654
|
}, 8, ["modelValue", "placeholder"])
|
|
3667
3655
|
]),
|
|
3668
|
-
data.data.length === 0 && !data.busy ? (openBlock(), createElementBlock("div",
|
|
3656
|
+
data.data.length === 0 && !data.busy ? (openBlock(), createElementBlock("div", _hoisted_8$1, toDisplayString(`\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684${unref(isVideo) ? "\u89C6\u9891" : "\u6587\u7AE0"}\u54E6\uFF0C\u4F60\u53EF\u4EE5\u8BD5\u8BD5\u641C\u7D22\u5176\u4ED6${unref(isVideo) ? "\u89C6\u9891" : "\u6587\u7AE0"}\uFF5E`), 1)) : withDirectives((openBlock(), createElementBlock("div", {
|
|
3669
3657
|
key: 1,
|
|
3670
3658
|
"infinite-scroll-immediate": false,
|
|
3671
3659
|
class: "insert-article_list",
|
|
3672
|
-
"infinite-scroll-disabled": disable
|
|
3660
|
+
"infinite-scroll-disabled": unref(disable)
|
|
3673
3661
|
}, [
|
|
3674
3662
|
(openBlock(true), createElementBlock(Fragment, null, renderList(data.data, (item, index) => {
|
|
3675
3663
|
return openBlock(), createElementBlock("div", {
|
|
@@ -3685,24 +3673,24 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3685
3673
|
default: withCtx(() => {
|
|
3686
3674
|
var _a;
|
|
3687
3675
|
return [
|
|
3688
|
-
isVideo
|
|
3689
|
-
createElementVNode("div",
|
|
3676
|
+
unref(isVideo) ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
3677
|
+
createElementVNode("div", _hoisted_11$1, [
|
|
3690
3678
|
createElementVNode("img", {
|
|
3691
3679
|
class: "video-pic",
|
|
3692
3680
|
src: (_a = item == null ? void 0 : item.mediaInfo[0]) == null ? void 0 : _a.img
|
|
3693
|
-
}, null, 8,
|
|
3681
|
+
}, null, 8, _hoisted_12$1),
|
|
3694
3682
|
createElementVNode("img", {
|
|
3695
3683
|
class: "play",
|
|
3696
3684
|
src: getImageUrl("play.png")
|
|
3697
|
-
}, null, 8,
|
|
3685
|
+
}, null, 8, _hoisted_13$1)
|
|
3698
3686
|
]),
|
|
3699
|
-
createElementVNode("div",
|
|
3700
|
-
createElementVNode("span",
|
|
3701
|
-
createElementVNode("span", null, toDisplayString(unref(date
|
|
3687
|
+
createElementVNode("div", _hoisted_14$1, [
|
|
3688
|
+
createElementVNode("span", _hoisted_15$1, toDisplayString(item.content || "[\u65E0\u6807\u9898]"), 1),
|
|
3689
|
+
createElementVNode("span", null, toDisplayString(unref(date).format(item.createTime * 1e3, "YYYY-MM-DD hh-mm")), 1)
|
|
3702
3690
|
])
|
|
3703
|
-
])) : (openBlock(), createElementBlock("div",
|
|
3704
|
-
createElementVNode("span", null, toDisplayString(item.title || "[
|
|
3705
|
-
createElementVNode("span", null, toDisplayString(unref(date
|
|
3691
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_16$1, [
|
|
3692
|
+
createElementVNode("span", null, toDisplayString(item.title || "[\u65E0\u6807\u9898]"), 1),
|
|
3693
|
+
createElementVNode("span", null, toDisplayString(unref(date).format(item.createTime * 1e3, "YYYY-MM-DD")), 1)
|
|
3706
3694
|
]))
|
|
3707
3695
|
];
|
|
3708
3696
|
}),
|
|
@@ -3710,7 +3698,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3710
3698
|
}, 1032, ["modelValue", "label", "onChange"])
|
|
3711
3699
|
]);
|
|
3712
3700
|
}), 128))
|
|
3713
|
-
], 8,
|
|
3701
|
+
], 8, _hoisted_9$1)), [
|
|
3714
3702
|
[unref(vInfiniteScroll), unref(getArticleList)]
|
|
3715
3703
|
])
|
|
3716
3704
|
])
|
|
@@ -3720,7 +3708,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3720
3708
|
};
|
|
3721
3709
|
}
|
|
3722
3710
|
});
|
|
3723
|
-
const index_vue_vue_type_style_index_0_lang$4 = "";
|
|
3724
3711
|
let getRandomValues;
|
|
3725
3712
|
const rnds8 = new Uint8Array(16);
|
|
3726
3713
|
function rng() {
|
|
@@ -3737,7 +3724,7 @@ for (let i = 0; i < 256; ++i) {
|
|
|
3737
3724
|
byteToHex.push((i + 256).toString(16).slice(1));
|
|
3738
3725
|
}
|
|
3739
3726
|
function unsafeStringify(arr, offset = 0) {
|
|
3740
|
-
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
3727
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
3741
3728
|
}
|
|
3742
3729
|
const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
3743
3730
|
const native = {
|
|
@@ -3760,14 +3747,15 @@ function v4(options, buf, offset) {
|
|
|
3760
3747
|
}
|
|
3761
3748
|
return unsafeStringify(rnds);
|
|
3762
3749
|
}
|
|
3750
|
+
const index_vue_vue_type_style_index_0_lang$3 = "";
|
|
3763
3751
|
const _hoisted_1$5 = { class: "img-upload-content" };
|
|
3764
|
-
const _hoisted_2$
|
|
3765
|
-
const _hoisted_3$
|
|
3766
|
-
const _hoisted_4$
|
|
3752
|
+
const _hoisted_2$4 = { class: "title-box" };
|
|
3753
|
+
const _hoisted_3$4 = ["onClick"];
|
|
3754
|
+
const _hoisted_4$3 = {
|
|
3767
3755
|
key: 0,
|
|
3768
3756
|
class: "line"
|
|
3769
3757
|
};
|
|
3770
|
-
const _hoisted_5$
|
|
3758
|
+
const _hoisted_5$2 = {
|
|
3771
3759
|
key: 0,
|
|
3772
3760
|
class: "prompt-restriction"
|
|
3773
3761
|
};
|
|
@@ -3791,39 +3779,45 @@ const _hoisted_13 = {
|
|
|
3791
3779
|
key: 0,
|
|
3792
3780
|
class: "upload-wrap"
|
|
3793
3781
|
};
|
|
3794
|
-
const _hoisted_14 =
|
|
3782
|
+
const _hoisted_14 = /* @__PURE__ */ createElementVNode("span", null, "\u672C\u5730\u4E0A\u4F20", -1);
|
|
3783
|
+
const _hoisted_15 = /* @__PURE__ */ createElementVNode("span", { class: "remark" }, "\u652F\u6301jpg\u3001jpeg\u3001png\u7B49\u591A\u79CD\u683C\u5F0F\uFF0C\u5355\u5F20\u56FE\u7247\u6700\u5927\u652F\u630120MB", -1);
|
|
3784
|
+
const _hoisted_16 = {
|
|
3795
3785
|
key: 1,
|
|
3796
3786
|
class: "img-list"
|
|
3797
3787
|
};
|
|
3798
|
-
const
|
|
3799
|
-
const
|
|
3800
|
-
const
|
|
3788
|
+
const _hoisted_17 = ["src"];
|
|
3789
|
+
const _hoisted_18 = { class: "upload-btn" };
|
|
3790
|
+
const _hoisted_19 = {
|
|
3801
3791
|
key: 2,
|
|
3802
3792
|
class: "map-depot"
|
|
3803
3793
|
};
|
|
3804
|
-
const
|
|
3805
|
-
const
|
|
3806
|
-
const
|
|
3807
|
-
const
|
|
3808
|
-
const
|
|
3794
|
+
const _hoisted_20 = { class: "screen" };
|
|
3795
|
+
const _hoisted_21 = /* @__PURE__ */ createTextVNode("\u641C\u7D22");
|
|
3796
|
+
const _hoisted_22 = { key: 0 };
|
|
3797
|
+
const _hoisted_23 = { class: "tab-box" };
|
|
3798
|
+
const _hoisted_24 = ["onClick"];
|
|
3799
|
+
const _hoisted_25 = {
|
|
3809
3800
|
key: 0,
|
|
3810
3801
|
class: "line"
|
|
3811
3802
|
};
|
|
3812
|
-
const
|
|
3813
|
-
const
|
|
3814
|
-
const
|
|
3815
|
-
const
|
|
3803
|
+
const _hoisted_26 = { class: "image-list depot-image" };
|
|
3804
|
+
const _hoisted_27 = ["onClick"];
|
|
3805
|
+
const _hoisted_28 = ["src"];
|
|
3806
|
+
const _hoisted_29 = {
|
|
3816
3807
|
key: 0,
|
|
3817
3808
|
class: "shade"
|
|
3818
3809
|
};
|
|
3819
|
-
const
|
|
3820
|
-
const
|
|
3810
|
+
const _hoisted_30 = { class: "num" };
|
|
3811
|
+
const _hoisted_31 = {
|
|
3821
3812
|
key: 1,
|
|
3822
3813
|
class: "protocol-box"
|
|
3823
3814
|
};
|
|
3824
|
-
const
|
|
3815
|
+
const _hoisted_32 = /* @__PURE__ */ createElementVNode("div", null, " \u56FE\u5E93\u4E2D\u7684\u56FE\u7247\u4EC5\u9650\u4E0B\u8F7D\u6469\u6258\u8303\u4EE5\u7F16\u8F91\u53D1\u5E03\u6587\u7AE0\u4F7F\u7528,\u4E0D\u5F97\u7528\u4E8E\u5176\u4ED6\u4EFB\u4F55\u5E73\u53F0\u53CA\u7528\u9014 ", -1);
|
|
3816
|
+
const _hoisted_33 = /* @__PURE__ */ createTextVNode(" \u8BF7\u9605\u8BFB");
|
|
3817
|
+
const _hoisted_34 = ["href"];
|
|
3818
|
+
const _hoisted_35 = /* @__PURE__ */ createTextVNode(",\u60A8\u7684\u884C\u4E3A\u89C6\u4E3A\u60A8\u5DF2\u540C\u610F\u8BE5\u534F\u8BAE\u3002 ");
|
|
3825
3819
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3826
|
-
|
|
3820
|
+
name: "index",
|
|
3827
3821
|
props: {
|
|
3828
3822
|
visible: { type: Boolean, default: false },
|
|
3829
3823
|
imgList: { default: [] },
|
|
@@ -3832,8 +3826,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3832
3826
|
imgNum: { default: 20 }
|
|
3833
3827
|
},
|
|
3834
3828
|
emits: ["update:imgList", "update:visible", "submit"],
|
|
3835
|
-
setup(__props, { emit:
|
|
3836
|
-
const emits = __emit;
|
|
3829
|
+
setup(__props, { emit: emits }) {
|
|
3837
3830
|
const props = __props;
|
|
3838
3831
|
const drag = ref(false);
|
|
3839
3832
|
const imgListTemp = computed({
|
|
@@ -3857,7 +3850,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3857
3850
|
const tempImgs = [...props.imgList];
|
|
3858
3851
|
Array.from(imgFile).forEach((file) => {
|
|
3859
3852
|
if (file.size > 20 * 1024 * 1024) {
|
|
3860
|
-
ElMessage.error("
|
|
3853
|
+
ElMessage.error("\u5355\u5F20\u56FE\u7247\u6700\u5927\u652F\u630120M");
|
|
3861
3854
|
return;
|
|
3862
3855
|
}
|
|
3863
3856
|
const id = v4();
|
|
@@ -3887,14 +3880,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3887
3880
|
const list = [
|
|
3888
3881
|
{
|
|
3889
3882
|
id: 2,
|
|
3890
|
-
value: "
|
|
3883
|
+
value: "\u4E0A\u4F20\u56FE\u7247"
|
|
3891
3884
|
}
|
|
3892
3885
|
];
|
|
3893
3886
|
activeTitle.value = 2;
|
|
3894
3887
|
if (props.imgNum < 20) {
|
|
3895
3888
|
list.unshift({
|
|
3896
3889
|
id: 1,
|
|
3897
|
-
value: "
|
|
3890
|
+
value: "\u6B63\u6587\u56FE\u7247"
|
|
3898
3891
|
});
|
|
3899
3892
|
activeTitle.value = 1;
|
|
3900
3893
|
getContentImgList();
|
|
@@ -3902,7 +3895,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3902
3895
|
if (props.chartGallery) {
|
|
3903
3896
|
list.push({
|
|
3904
3897
|
id: 3,
|
|
3905
|
-
value: isEmotofine ? "
|
|
3898
|
+
value: isEmotofine ? "\u7535\u6469\u8303\u56FE\u5E93" : "\u6469\u6258\u8303\u56FE\u5E93"
|
|
3906
3899
|
});
|
|
3907
3900
|
}
|
|
3908
3901
|
titleList.value = list;
|
|
@@ -4047,13 +4040,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4047
4040
|
const tabList = ref([]);
|
|
4048
4041
|
const search = () => {
|
|
4049
4042
|
if (!selectData.brandId) {
|
|
4050
|
-
return ElMessage.error("
|
|
4043
|
+
return ElMessage.error("\u8BF7\u9009\u62E9\u54C1\u724C");
|
|
4051
4044
|
}
|
|
4052
4045
|
if (!selectData.goodId) {
|
|
4053
|
-
return ElMessage.error("
|
|
4046
|
+
return ElMessage.error("\u8BF7\u9009\u62E9\u8F66\u578B");
|
|
4054
4047
|
}
|
|
4055
4048
|
if (!selectData.carId) {
|
|
4056
|
-
return ElMessage.error("
|
|
4049
|
+
return ElMessage.error("\u8BF7\u9009\u62E9\u6B3E\u578B");
|
|
4057
4050
|
}
|
|
4058
4051
|
tabList.value = [];
|
|
4059
4052
|
emits("update:imgList", []);
|
|
@@ -4110,7 +4103,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4110
4103
|
}, {
|
|
4111
4104
|
default: withCtx(() => [
|
|
4112
4105
|
createElementVNode("div", _hoisted_1$5, [
|
|
4113
|
-
createElementVNode("div", _hoisted_2$
|
|
4106
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
4114
4107
|
(openBlock(true), createElementBlock(Fragment, null, renderList(titleList.value, (item, index) => {
|
|
4115
4108
|
return openBlock(), createElementBlock("div", {
|
|
4116
4109
|
key: index,
|
|
@@ -4118,15 +4111,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4118
4111
|
onClick: ($event) => changeTab(item)
|
|
4119
4112
|
}, [
|
|
4120
4113
|
createTextVNode(toDisplayString(item.value) + " ", 1),
|
|
4121
|
-
item.id === activeTitle.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
4122
|
-
], 10, _hoisted_3$
|
|
4114
|
+
item.id === activeTitle.value ? (openBlock(), createElementBlock("div", _hoisted_4$3)) : createCommentVNode("", true)
|
|
4115
|
+
], 10, _hoisted_3$4);
|
|
4123
4116
|
}), 128)),
|
|
4124
|
-
[1, 3].includes(activeTitle.value) && props.imgList.length ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
4125
|
-
activeTitle.value === 2 && props.imgList.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(props.imgList.length) + "
|
|
4117
|
+
[1, 3].includes(activeTitle.value) && props.imgList.length ? (openBlock(), createElementBlock("div", _hoisted_5$2, " \u6700\u591A\u53EF\u9009" + toDisplayString(props.imgNum) + "\u5F20\u56FE\u7247\uFF0C\u5DF2\u9009" + toDisplayString(props.imgList.length) + "\u5F20 ", 1)) : createCommentVNode("", true),
|
|
4118
|
+
activeTitle.value === 2 && props.imgList.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(props.imgList.length) + "\u5F20\u4E0A\u4F20\u6210\u529F \u62D6\u52A8\u53EF\u8C03\u6574\u987A\u5E8F ", 1)) : createCommentVNode("", true)
|
|
4126
4119
|
]),
|
|
4127
4120
|
activeTitle.value === 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
4128
4121
|
createElementVNode("div", _hoisted_8, [
|
|
4129
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(contentImgList
|
|
4122
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(contentImgList), (item, index) => {
|
|
4130
4123
|
return openBlock(), createElementBlock("div", {
|
|
4131
4124
|
key: index,
|
|
4132
4125
|
class: "image-item",
|
|
@@ -4159,13 +4152,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4159
4152
|
]),
|
|
4160
4153
|
_: 1
|
|
4161
4154
|
}),
|
|
4162
|
-
|
|
4155
|
+
_hoisted_14
|
|
4163
4156
|
]),
|
|
4164
|
-
|
|
4165
|
-
])) : (openBlock(), createElementBlock("div",
|
|
4157
|
+
_hoisted_15
|
|
4158
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
4166
4159
|
createVNode(unref(draggable), {
|
|
4167
|
-
modelValue: imgListTemp
|
|
4168
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => imgListTemp.value = $event),
|
|
4160
|
+
modelValue: unref(imgListTemp),
|
|
4161
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(imgListTemp) ? imgListTemp.value = $event : null),
|
|
4169
4162
|
handle: ".img-item",
|
|
4170
4163
|
class: "img-wrap",
|
|
4171
4164
|
group: "people",
|
|
@@ -4183,7 +4176,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4183
4176
|
style: { "object-fit": "contain" },
|
|
4184
4177
|
width: "120",
|
|
4185
4178
|
height: "120"
|
|
4186
|
-
}, null, 8,
|
|
4179
|
+
}, null, 8, _hoisted_17),
|
|
4187
4180
|
createVNode(unref(CircleCloseFilled), {
|
|
4188
4181
|
class: "icon pointer",
|
|
4189
4182
|
onClick: ($event) => deleteImg(element)
|
|
@@ -4206,7 +4199,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4206
4199
|
_: 1
|
|
4207
4200
|
}, 8, ["modelValue"])
|
|
4208
4201
|
])),
|
|
4209
|
-
createElementVNode("div",
|
|
4202
|
+
createElementVNode("div", _hoisted_18, [
|
|
4210
4203
|
createElementVNode("input", {
|
|
4211
4204
|
type: "file",
|
|
4212
4205
|
name: "file",
|
|
@@ -4217,13 +4210,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4217
4210
|
}, null, 32)
|
|
4218
4211
|
])
|
|
4219
4212
|
], 2)) : createCommentVNode("", true),
|
|
4220
|
-
activeTitle.value === 3 ? (openBlock(), createElementBlock("div",
|
|
4221
|
-
createElementVNode("div",
|
|
4213
|
+
activeTitle.value === 3 ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
4214
|
+
createElementVNode("div", _hoisted_20, [
|
|
4222
4215
|
createElementVNode("div", null, [
|
|
4223
4216
|
createVNode(unref(ElSelect), {
|
|
4224
4217
|
modelValue: selectData.brandId,
|
|
4225
4218
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => selectData.brandId = $event),
|
|
4226
|
-
placeholder: "
|
|
4219
|
+
placeholder: "\u8BF7\u9009\u62E9\u54C1\u724C",
|
|
4227
4220
|
size: "large",
|
|
4228
4221
|
class: "select_1",
|
|
4229
4222
|
filterable: "",
|
|
@@ -4244,7 +4237,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4244
4237
|
createVNode(unref(ElSelect), {
|
|
4245
4238
|
modelValue: selectData.goodId,
|
|
4246
4239
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => selectData.goodId = $event),
|
|
4247
|
-
placeholder: "
|
|
4240
|
+
placeholder: "\u8BF7\u9009\u62E9\u8F66\u578B",
|
|
4248
4241
|
size: "large",
|
|
4249
4242
|
class: "select_1",
|
|
4250
4243
|
filterable: "",
|
|
@@ -4265,7 +4258,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4265
4258
|
createVNode(unref(ElSelect), {
|
|
4266
4259
|
modelValue: selectData.carId,
|
|
4267
4260
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => selectData.carId = $event),
|
|
4268
|
-
placeholder: "
|
|
4261
|
+
placeholder: "\u8BF7\u9009\u62E9\u6B3E\u578B",
|
|
4269
4262
|
size: "large",
|
|
4270
4263
|
class: "select_2",
|
|
4271
4264
|
filterable: "",
|
|
@@ -4289,14 +4282,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4289
4282
|
style: { "width": "80px" },
|
|
4290
4283
|
onClick: search
|
|
4291
4284
|
}, {
|
|
4292
|
-
default: withCtx(() =>
|
|
4293
|
-
|
|
4294
|
-
])
|
|
4285
|
+
default: withCtx(() => [
|
|
4286
|
+
_hoisted_21
|
|
4287
|
+
]),
|
|
4295
4288
|
_: 1
|
|
4296
4289
|
})
|
|
4297
4290
|
]),
|
|
4298
|
-
tabList.value && tabList.value.length ? (openBlock(), createElementBlock("div",
|
|
4299
|
-
createElementVNode("div",
|
|
4291
|
+
tabList.value && tabList.value.length ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
4292
|
+
createElementVNode("div", _hoisted_23, [
|
|
4300
4293
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tabList.value, (item, index) => {
|
|
4301
4294
|
return openBlock(), createElementBlock("div", {
|
|
4302
4295
|
key: index,
|
|
@@ -4304,12 +4297,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4304
4297
|
onClick: ($event) => activeTab.value = item.type
|
|
4305
4298
|
}, [
|
|
4306
4299
|
createTextVNode(toDisplayString(item.name) + " ", 1),
|
|
4307
|
-
item.type === activeTab.value ? (openBlock(), createElementBlock("div",
|
|
4308
|
-
], 10,
|
|
4300
|
+
item.type === activeTab.value ? (openBlock(), createElementBlock("div", _hoisted_25)) : createCommentVNode("", true)
|
|
4301
|
+
], 10, _hoisted_24);
|
|
4309
4302
|
}), 128))
|
|
4310
4303
|
]),
|
|
4311
|
-
createElementVNode("div",
|
|
4312
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(imageList
|
|
4304
|
+
createElementVNode("div", _hoisted_26, [
|
|
4305
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(imageList), (item, index) => {
|
|
4313
4306
|
return openBlock(), createElementBlock("div", {
|
|
4314
4307
|
key: index,
|
|
4315
4308
|
class: "image-item",
|
|
@@ -4319,25 +4312,25 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4319
4312
|
src: item.imgOrgUrl,
|
|
4320
4313
|
alt: "",
|
|
4321
4314
|
class: "image"
|
|
4322
|
-
}, null, 8,
|
|
4323
|
-
item.num ? (openBlock(), createElementBlock("div",
|
|
4324
|
-
createElementVNode("div",
|
|
4315
|
+
}, null, 8, _hoisted_28),
|
|
4316
|
+
item.num ? (openBlock(), createElementBlock("div", _hoisted_29, [
|
|
4317
|
+
createElementVNode("div", _hoisted_30, toDisplayString(item.num), 1)
|
|
4325
4318
|
])) : createCommentVNode("", true)
|
|
4326
|
-
], 8,
|
|
4319
|
+
], 8, _hoisted_27);
|
|
4327
4320
|
}), 128))
|
|
4328
4321
|
])
|
|
4329
|
-
])) : (openBlock(), createElementBlock("div",
|
|
4322
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_31, [
|
|
4330
4323
|
createElementVNode("div", null, [
|
|
4331
|
-
|
|
4324
|
+
_hoisted_32,
|
|
4332
4325
|
createElementVNode("div", null, [
|
|
4333
|
-
|
|
4326
|
+
_hoisted_33,
|
|
4334
4327
|
createElementVNode("a", {
|
|
4335
4328
|
href: `https://${unref(hostName)}/about?type=imageLicenseAgreement`,
|
|
4336
4329
|
target: "_blank",
|
|
4337
4330
|
rel: "noopener noreferrer",
|
|
4338
4331
|
class: "link"
|
|
4339
|
-
}, "
|
|
4340
|
-
|
|
4332
|
+
}, "\u300A\u6469\u6258\u8303\u56FE\u7247\u8BB8\u53EF\u4F7F\u7528\u534F\u8BAE\u300B", 8, _hoisted_34),
|
|
4333
|
+
_hoisted_35
|
|
4341
4334
|
])
|
|
4342
4335
|
])
|
|
4343
4336
|
]))
|
|
@@ -4349,23 +4342,25 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4349
4342
|
};
|
|
4350
4343
|
}
|
|
4351
4344
|
});
|
|
4352
|
-
const index_vue_vue_type_style_index_0_lang$
|
|
4353
|
-
const _hoisted_1$4 =
|
|
4345
|
+
const index_vue_vue_type_style_index_0_lang$2 = "";
|
|
4346
|
+
const _hoisted_1$4 = /* @__PURE__ */ createElementVNode("span", null, "\u63D2\u5165\u89C6\u9891", -1);
|
|
4347
|
+
const _hoisted_2$3 = { class: "insert-video" };
|
|
4348
|
+
const _hoisted_3$3 = /* @__PURE__ */ createTextVNode("\u9009\u62E9\u89C6\u9891");
|
|
4349
|
+
const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("span", { class: "remark" }, "\u4E3A\u4E86\u83B7\u5F97\u66F4\u9AD8\u7684\u63A8\u8350\u91CF\u548C\u70B9\u51FB\u91CF\uFF0C\u5EFA\u8BAE\u4E0A\u4F20720p\uFF081280*720\uFF09\u6216\u66F4\u9AD8\u5206\u8FA8\u7387\u7684\u89C6\u9891\uFF0C\u89C6\u9891\u683C\u5F0F\u4E3A.mp4\u6216.mov\uFF0C\u5927\u5C0F\u4E0D\u8D85\u8FC71G", -1);
|
|
4354
4350
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
4355
|
-
|
|
4351
|
+
name: "index",
|
|
4356
4352
|
props: {
|
|
4357
4353
|
visible: { type: Boolean, default: false },
|
|
4358
|
-
fileSelected:
|
|
4354
|
+
fileSelected: null
|
|
4359
4355
|
},
|
|
4360
4356
|
emits: ["update:visible"],
|
|
4361
|
-
setup(__props, { emit:
|
|
4362
|
-
const
|
|
4357
|
+
setup(__props, { emit: emits }) {
|
|
4358
|
+
const props = __props;
|
|
4363
4359
|
provide("vm", {
|
|
4364
4360
|
setStatus(val) {
|
|
4365
4361
|
emits("update:visible", val);
|
|
4366
4362
|
}
|
|
4367
4363
|
});
|
|
4368
|
-
const props = __props;
|
|
4369
4364
|
const { visible, fileSelected } = toRefs(props);
|
|
4370
4365
|
const emitEvent = () => {
|
|
4371
4366
|
var event = new MouseEvent("click");
|
|
@@ -4379,23 +4374,23 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4379
4374
|
width: "600px",
|
|
4380
4375
|
height: "100px"
|
|
4381
4376
|
}, {
|
|
4382
|
-
title: withCtx(() =>
|
|
4383
|
-
|
|
4384
|
-
])
|
|
4377
|
+
title: withCtx(() => [
|
|
4378
|
+
_hoisted_1$4
|
|
4379
|
+
]),
|
|
4385
4380
|
default: withCtx(() => [
|
|
4386
|
-
createElementVNode("div",
|
|
4381
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
4387
4382
|
createVNode(unref(ElButton), {
|
|
4388
4383
|
style: { "width": "120px" },
|
|
4389
4384
|
round: "",
|
|
4390
4385
|
type: "primary",
|
|
4391
4386
|
onClick: emitEvent
|
|
4392
4387
|
}, {
|
|
4393
|
-
default: withCtx(() =>
|
|
4394
|
-
|
|
4395
|
-
])
|
|
4388
|
+
default: withCtx(() => [
|
|
4389
|
+
_hoisted_3$3
|
|
4390
|
+
]),
|
|
4396
4391
|
_: 1
|
|
4397
4392
|
}),
|
|
4398
|
-
|
|
4393
|
+
_hoisted_4$2,
|
|
4399
4394
|
createElementVNode("input", {
|
|
4400
4395
|
type: "file",
|
|
4401
4396
|
accept: "video/*",
|
|
@@ -4410,17 +4405,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4410
4405
|
};
|
|
4411
4406
|
}
|
|
4412
4407
|
});
|
|
4413
|
-
const index_vue_vue_type_style_index_0_lang$2 = "";
|
|
4414
4408
|
const index_vue_vue_type_style_index_0_lang$1 = "";
|
|
4415
4409
|
const _sfc_main$3 = {
|
|
4416
4410
|
name: "TopicManager",
|
|
4417
4411
|
props: {
|
|
4418
|
-
// 编辑器DOM引用
|
|
4419
4412
|
editorDom: {
|
|
4420
4413
|
type: Object,
|
|
4421
4414
|
default: null
|
|
4422
4415
|
},
|
|
4423
|
-
// 话题API请求方法
|
|
4424
4416
|
request: {
|
|
4425
4417
|
type: Object,
|
|
4426
4418
|
default: null
|
|
@@ -4428,13 +4420,10 @@ const _sfc_main$3 = {
|
|
|
4428
4420
|
},
|
|
4429
4421
|
data() {
|
|
4430
4422
|
return {
|
|
4431
|
-
// 话题弹框相关数据
|
|
4432
4423
|
topicPopover: {
|
|
4433
4424
|
visible: false,
|
|
4434
4425
|
type: "hot",
|
|
4435
|
-
// 'hot' 热门话题, 'search' 搜索话题
|
|
4436
4426
|
activeTab: "hot",
|
|
4437
|
-
// 'hot' 热门话题, 'recent' 最近使用
|
|
4438
4427
|
position: { top: 0, left: 0 },
|
|
4439
4428
|
searchKeyword: "",
|
|
4440
4429
|
hotTopics: [],
|
|
@@ -4445,28 +4434,22 @@ const _sfc_main$3 = {
|
|
|
4445
4434
|
hasMore: true,
|
|
4446
4435
|
searchPage: 1,
|
|
4447
4436
|
searchHasMore: true,
|
|
4448
|
-
// 用于增量更新的计数器
|
|
4449
4437
|
newHotTopicsCount: 0,
|
|
4450
4438
|
newSearchTopicsCount: 0,
|
|
4451
|
-
// 保存原始的selection和range信息
|
|
4452
4439
|
originalRange: null,
|
|
4453
4440
|
originalSelection: null,
|
|
4454
|
-
// 保存触发位置信息
|
|
4455
4441
|
triggerInfo: {
|
|
4456
4442
|
paragraph: null,
|
|
4457
4443
|
hashIndex: -1,
|
|
4458
4444
|
cursorPosition: 0
|
|
4459
4445
|
},
|
|
4460
|
-
// 全局弹框DOM引用
|
|
4461
4446
|
globalContainer: null,
|
|
4462
4447
|
globalMask: null
|
|
4463
4448
|
},
|
|
4464
|
-
// 中文输入法状态
|
|
4465
4449
|
isComposing: false
|
|
4466
4450
|
};
|
|
4467
4451
|
},
|
|
4468
4452
|
methods: {
|
|
4469
|
-
// 初始化话题管理器
|
|
4470
4453
|
init() {
|
|
4471
4454
|
if (!this.editorDom) {
|
|
4472
4455
|
console.warn("TopicManager: editorDom is required");
|
|
@@ -4474,7 +4457,6 @@ const _sfc_main$3 = {
|
|
|
4474
4457
|
}
|
|
4475
4458
|
setTimeout(() => this.bindEditorEvents(), 0);
|
|
4476
4459
|
},
|
|
4477
|
-
// 绑定编辑器事件
|
|
4478
4460
|
bindEditorEvents() {
|
|
4479
4461
|
if (!this.editorDom)
|
|
4480
4462
|
return;
|
|
@@ -4483,7 +4465,6 @@ const _sfc_main$3 = {
|
|
|
4483
4465
|
this.editorDom.addEventListener("compositionend", this.handleCompositionEnd.bind(this));
|
|
4484
4466
|
this.editorDom.addEventListener("input", this.handleInput.bind(this));
|
|
4485
4467
|
},
|
|
4486
|
-
// 解绑编辑器事件
|
|
4487
4468
|
unbindEditorEvents() {
|
|
4488
4469
|
if (!this.editorDom)
|
|
4489
4470
|
return;
|
|
@@ -4492,18 +4473,15 @@ const _sfc_main$3 = {
|
|
|
4492
4473
|
this.editorDom.removeEventListener("compositionend", this.handleCompositionEnd.bind(this));
|
|
4493
4474
|
this.editorDom.removeEventListener("input", this.handleInput.bind(this));
|
|
4494
4475
|
},
|
|
4495
|
-
// 中文输入法开始事件
|
|
4496
4476
|
handleCompositionStart() {
|
|
4497
4477
|
this.isComposing = true;
|
|
4498
4478
|
},
|
|
4499
|
-
// 中文输入法结束事件(中文)
|
|
4500
4479
|
handleCompositionEnd() {
|
|
4501
4480
|
this.isComposing = false;
|
|
4502
4481
|
setTimeout(() => {
|
|
4503
4482
|
this.handleInputChange();
|
|
4504
4483
|
}, 10);
|
|
4505
4484
|
},
|
|
4506
|
-
// input事件处理(英文)
|
|
4507
4485
|
handleInput() {
|
|
4508
4486
|
if (!this.isComposing) {
|
|
4509
4487
|
setTimeout(() => {
|
|
@@ -4511,7 +4489,6 @@ const _sfc_main$3 = {
|
|
|
4511
4489
|
}, 10);
|
|
4512
4490
|
}
|
|
4513
4491
|
},
|
|
4514
|
-
// 处理输入变化
|
|
4515
4492
|
handleInputChange() {
|
|
4516
4493
|
var _a;
|
|
4517
4494
|
const selection = window.getSelection();
|
|
@@ -4539,7 +4516,6 @@ const _sfc_main$3 = {
|
|
|
4539
4516
|
return;
|
|
4540
4517
|
this.checkAndTriggerSearch(paragraph);
|
|
4541
4518
|
},
|
|
4542
|
-
// 话题输入处理
|
|
4543
4519
|
handleTopicInput(event) {
|
|
4544
4520
|
var _a;
|
|
4545
4521
|
const activeElement = document.activeElement;
|
|
@@ -4580,9 +4556,7 @@ const _sfc_main$3 = {
|
|
|
4580
4556
|
const triggerInfo = {
|
|
4581
4557
|
paragraph,
|
|
4582
4558
|
hashIndex: cursorPosition,
|
|
4583
|
-
// #号的位置
|
|
4584
4559
|
cursorPosition: cursorPosition + 1
|
|
4585
|
-
// #号后的位置
|
|
4586
4560
|
};
|
|
4587
4561
|
this.showTopicPopover("hot", position, "", triggerInfo);
|
|
4588
4562
|
}, 10);
|
|
@@ -4678,7 +4652,6 @@ const _sfc_main$3 = {
|
|
|
4678
4652
|
tempElement.remove();
|
|
4679
4653
|
const position = {
|
|
4680
4654
|
top: rect.bottom,
|
|
4681
|
-
// 弹框显示在光标下方
|
|
4682
4655
|
left: rect.left
|
|
4683
4656
|
};
|
|
4684
4657
|
const viewportWidth = window.innerWidth;
|
|
@@ -4696,7 +4669,7 @@ const _sfc_main$3 = {
|
|
|
4696
4669
|
}
|
|
4697
4670
|
return position;
|
|
4698
4671
|
} catch (error) {
|
|
4699
|
-
console.warn("
|
|
4672
|
+
console.warn("\u83B7\u53D6\u5149\u6807\u4F4D\u7F6E\u5931\u8D25\uFF0C\u4F7F\u7528fallback\u65B9\u6CD5:", error);
|
|
4700
4673
|
const rect = range.getBoundingClientRect();
|
|
4701
4674
|
return {
|
|
4702
4675
|
top: rect.bottom,
|
|
@@ -4704,10 +4677,9 @@ const _sfc_main$3 = {
|
|
|
4704
4677
|
};
|
|
4705
4678
|
}
|
|
4706
4679
|
},
|
|
4707
|
-
// 话题弹框相关方法
|
|
4708
4680
|
showTopicPopover(type, position, searchKeyword = "", triggerInfo = null) {
|
|
4709
4681
|
if (!this.request || !this.request.getTopic) {
|
|
4710
|
-
console.warn("
|
|
4682
|
+
console.warn("\u8BDD\u9898\u529F\u80FD\u9700\u8981\u63D0\u4F9B request.getTopic \u65B9\u6CD5");
|
|
4711
4683
|
return;
|
|
4712
4684
|
}
|
|
4713
4685
|
const selection = window.getSelection();
|
|
@@ -4780,11 +4752,11 @@ const _sfc_main$3 = {
|
|
|
4780
4752
|
}
|
|
4781
4753
|
}
|
|
4782
4754
|
} else {
|
|
4783
|
-
console.warn("
|
|
4755
|
+
console.warn("\u52A0\u8F7D\u70ED\u95E8\u8BDD\u9898\u5931\u8D25:", response);
|
|
4784
4756
|
this.topicPopover.hasMore = false;
|
|
4785
4757
|
}
|
|
4786
4758
|
} catch (error) {
|
|
4787
|
-
console.error("
|
|
4759
|
+
console.error("\u52A0\u8F7D\u70ED\u95E8\u8BDD\u9898\u5931\u8D25:", error);
|
|
4788
4760
|
this.topicPopover.hasMore = false;
|
|
4789
4761
|
} finally {
|
|
4790
4762
|
this.topicPopover.loading = false;
|
|
@@ -4818,18 +4790,17 @@ const _sfc_main$3 = {
|
|
|
4818
4790
|
this.topicPopover.searchHasMore = topics.length >= 50;
|
|
4819
4791
|
}
|
|
4820
4792
|
} else {
|
|
4821
|
-
console.warn("
|
|
4793
|
+
console.warn("\u641C\u7D22\u8BDD\u9898\u5931\u8D25:", response);
|
|
4822
4794
|
this.topicPopover.searchHasMore = false;
|
|
4823
4795
|
}
|
|
4824
4796
|
} catch (error) {
|
|
4825
|
-
console.error("
|
|
4797
|
+
console.error("\u641C\u7D22\u8BDD\u9898\u5931\u8D25:", error);
|
|
4826
4798
|
this.topicPopover.searchHasMore = false;
|
|
4827
4799
|
} finally {
|
|
4828
4800
|
this.topicPopover.loading = false;
|
|
4829
4801
|
this.updateGlobalTopicPopover();
|
|
4830
4802
|
}
|
|
4831
4803
|
},
|
|
4832
|
-
// 加载更多搜索话题
|
|
4833
4804
|
async loadSearchTopics() {
|
|
4834
4805
|
if (this.topicPopover.loading || !this.topicPopover.searchHasMore)
|
|
4835
4806
|
return;
|
|
@@ -4857,11 +4828,11 @@ const _sfc_main$3 = {
|
|
|
4857
4828
|
}
|
|
4858
4829
|
}
|
|
4859
4830
|
} else {
|
|
4860
|
-
console.warn("
|
|
4831
|
+
console.warn("\u52A0\u8F7D\u66F4\u591A\u641C\u7D22\u8BDD\u9898\u5931\u8D25:", response);
|
|
4861
4832
|
this.topicPopover.searchHasMore = false;
|
|
4862
4833
|
}
|
|
4863
4834
|
} catch (error) {
|
|
4864
|
-
console.error("
|
|
4835
|
+
console.error("\u52A0\u8F7D\u66F4\u591A\u641C\u7D22\u8BDD\u9898\u5931\u8D25:", error);
|
|
4865
4836
|
this.topicPopover.searchHasMore = false;
|
|
4866
4837
|
} finally {
|
|
4867
4838
|
this.topicPopover.loading = false;
|
|
@@ -4873,7 +4844,7 @@ const _sfc_main$3 = {
|
|
|
4873
4844
|
const localTopics = JSON.parse(localStorage.getItem("localTopic") || "[]");
|
|
4874
4845
|
this.topicPopover.recentTopics = localTopics;
|
|
4875
4846
|
} catch (error) {
|
|
4876
|
-
console.error("
|
|
4847
|
+
console.error("\u52A0\u8F7D\u6700\u8FD1\u4F7F\u7528\u8BDD\u9898\u5931\u8D25:", error);
|
|
4877
4848
|
this.topicPopover.recentTopics = [];
|
|
4878
4849
|
}
|
|
4879
4850
|
},
|
|
@@ -4893,10 +4864,9 @@ const _sfc_main$3 = {
|
|
|
4893
4864
|
}
|
|
4894
4865
|
localStorage.setItem("localTopic", JSON.stringify(recentTopics));
|
|
4895
4866
|
} catch (error) {
|
|
4896
|
-
console.error("
|
|
4867
|
+
console.error("\u4FDD\u5B58\u6700\u8FD1\u4F7F\u7528\u8BDD\u9898\u5931\u8D25:", error);
|
|
4897
4868
|
}
|
|
4898
4869
|
},
|
|
4899
|
-
// 创建全局话题弹框
|
|
4900
4870
|
createGlobalTopicPopover() {
|
|
4901
4871
|
this.removeGlobalTopicPopover();
|
|
4902
4872
|
const mask = document.createElement("div");
|
|
@@ -4920,7 +4890,6 @@ const _sfc_main$3 = {
|
|
|
4920
4890
|
this.topicPopover.globalContainer = container;
|
|
4921
4891
|
this.bindTopicPopoverEvents();
|
|
4922
4892
|
},
|
|
4923
|
-
// 移除全局话题弹框
|
|
4924
4893
|
removeGlobalTopicPopover() {
|
|
4925
4894
|
if (this.topicPopover.globalMask) {
|
|
4926
4895
|
document.body.removeChild(this.topicPopover.globalMask);
|
|
@@ -4931,14 +4900,12 @@ const _sfc_main$3 = {
|
|
|
4931
4900
|
this.topicPopover.globalContainer = null;
|
|
4932
4901
|
}
|
|
4933
4902
|
},
|
|
4934
|
-
// 更新全局话题弹框内容
|
|
4935
4903
|
updateGlobalTopicPopover() {
|
|
4936
4904
|
if (!this.topicPopover.globalContainer)
|
|
4937
4905
|
return;
|
|
4938
4906
|
this.topicPopover.globalContainer.innerHTML = this.createTopicPopoverContent();
|
|
4939
4907
|
this.bindTopicPopoverEvents();
|
|
4940
4908
|
},
|
|
4941
|
-
// 增量添加热门话题到DOM,避免重绘
|
|
4942
4909
|
appendHotTopicsToDOM() {
|
|
4943
4910
|
if (!this.topicPopover.globalContainer || this.topicPopover.newHotTopicsCount === 0)
|
|
4944
4911
|
return;
|
|
@@ -4962,7 +4929,6 @@ const _sfc_main$3 = {
|
|
|
4962
4929
|
this.updateLoadingState(topicList, this.topicPopover.loading, this.topicPopover.hasMore);
|
|
4963
4930
|
this.topicPopover.newHotTopicsCount = 0;
|
|
4964
4931
|
},
|
|
4965
|
-
// 增量添加搜索话题到DOM,避免重绘
|
|
4966
4932
|
appendSearchTopicsToDOM() {
|
|
4967
4933
|
if (!this.topicPopover.globalContainer || this.topicPopover.newSearchTopicsCount === 0)
|
|
4968
4934
|
return;
|
|
@@ -4986,7 +4952,6 @@ const _sfc_main$3 = {
|
|
|
4986
4952
|
this.updateLoadingState(topicList, this.topicPopover.loading, this.topicPopover.searchHasMore);
|
|
4987
4953
|
this.topicPopover.newSearchTopicsCount = 0;
|
|
4988
4954
|
},
|
|
4989
|
-
// 更新加载状态显示
|
|
4990
4955
|
updateLoadingState(topicList, loading, hasMore) {
|
|
4991
4956
|
const existingLoading = topicList.querySelector(".topic-loading");
|
|
4992
4957
|
const existingEmpty = topicList.querySelector(".topic-empty");
|
|
@@ -4997,16 +4962,15 @@ const _sfc_main$3 = {
|
|
|
4997
4962
|
if (loading) {
|
|
4998
4963
|
const loadingElement = document.createElement("div");
|
|
4999
4964
|
loadingElement.className = "topic-loading";
|
|
5000
|
-
loadingElement.textContent = "
|
|
4965
|
+
loadingElement.textContent = "\u52A0\u8F7D\u66F4\u591A...";
|
|
5001
4966
|
topicList.appendChild(loadingElement);
|
|
5002
4967
|
} else if (!hasMore) {
|
|
5003
4968
|
const emptyElement = document.createElement("div");
|
|
5004
4969
|
emptyElement.className = "topic-empty";
|
|
5005
|
-
emptyElement.textContent = "
|
|
4970
|
+
emptyElement.textContent = "\u6CA1\u6709\u66F4\u591A\u4E86";
|
|
5006
4971
|
topicList.appendChild(emptyElement);
|
|
5007
4972
|
}
|
|
5008
4973
|
},
|
|
5009
|
-
// 创建话题弹框内容
|
|
5010
4974
|
createTopicPopoverContent() {
|
|
5011
4975
|
if (this.topicPopover.type === "hot") {
|
|
5012
4976
|
return this.getHotTopicPopoverHTML();
|
|
@@ -5015,7 +4979,6 @@ const _sfc_main$3 = {
|
|
|
5015
4979
|
}
|
|
5016
4980
|
return "";
|
|
5017
4981
|
},
|
|
5018
|
-
// 获取热门话题弹框HTML
|
|
5019
4982
|
getHotTopicPopoverHTML() {
|
|
5020
4983
|
const activeTab = this.topicPopover.activeTab;
|
|
5021
4984
|
const hotTopics = this.topicPopover.hotTopics;
|
|
@@ -5025,22 +4988,22 @@ const _sfc_main$3 = {
|
|
|
5025
4988
|
let topicListHTML = "";
|
|
5026
4989
|
if (activeTab === "hot") {
|
|
5027
4990
|
if (loading && hotTopics.length === 0) {
|
|
5028
|
-
topicListHTML = '<div class="topic-loading"
|
|
4991
|
+
topicListHTML = '<div class="topic-loading">\u52A0\u8F7D\u4E2D...</div>';
|
|
5029
4992
|
} else if (hotTopics.length === 0) {
|
|
5030
|
-
topicListHTML = '<div class="topic-empty"
|
|
4993
|
+
topicListHTML = '<div class="topic-empty">\u6682\u65E0\u70ED\u95E8\u8BDD\u9898</div>';
|
|
5031
4994
|
} else {
|
|
5032
4995
|
topicListHTML = hotTopics.map(
|
|
5033
4996
|
(topic) => `<div class="topic-item" data-topic-id="${topic.id}" data-topic-type="${topic.type}">#${topic.exactlyMatchTitle}</div>`
|
|
5034
4997
|
).join("");
|
|
5035
4998
|
if (loading) {
|
|
5036
|
-
topicListHTML += '<div class="topic-loading"
|
|
4999
|
+
topicListHTML += '<div class="topic-loading">\u52A0\u8F7D\u66F4\u591A...</div>';
|
|
5037
5000
|
} else if (!hasMore) {
|
|
5038
|
-
topicListHTML += '<div class="topic-empty"
|
|
5001
|
+
topicListHTML += '<div class="topic-empty">\u6CA1\u6709\u66F4\u591A\u4E86</div>';
|
|
5039
5002
|
}
|
|
5040
5003
|
}
|
|
5041
5004
|
} else {
|
|
5042
5005
|
if (recentTopics.length === 0) {
|
|
5043
|
-
topicListHTML = '<div class="topic-empty"
|
|
5006
|
+
topicListHTML = '<div class="topic-empty">\u6682\u65E0\u6700\u8FD1\u4F7F\u7528\u8BB0\u5F55</div>';
|
|
5044
5007
|
} else {
|
|
5045
5008
|
topicListHTML = recentTopics.map(
|
|
5046
5009
|
(topic) => `<div class="topic-item" data-topic-id="${topic.id}" data-topic-type="${topic.type}">#${topic.exactlyMatchTitle}</div>`
|
|
@@ -5051,10 +5014,10 @@ const _sfc_main$3 = {
|
|
|
5051
5014
|
<div class="topic-popover-content">
|
|
5052
5015
|
<div class="topic-tabs">
|
|
5053
5016
|
<div class="topic-tab ${activeTab === "hot" ? "active" : ""}" data-tab="hot">
|
|
5054
|
-
|
|
5017
|
+
\u70ED\u95E8\u8BDD\u9898
|
|
5055
5018
|
</div>
|
|
5056
5019
|
<div class="topic-tab ${activeTab === "recent" ? "active" : ""}" data-tab="recent">
|
|
5057
|
-
|
|
5020
|
+
\u6700\u8FD1\u4F7F\u7528
|
|
5058
5021
|
</div>
|
|
5059
5022
|
</div>
|
|
5060
5023
|
<div class="topic-list-container">
|
|
@@ -5065,7 +5028,6 @@ const _sfc_main$3 = {
|
|
|
5065
5028
|
</div>
|
|
5066
5029
|
`;
|
|
5067
5030
|
},
|
|
5068
|
-
// 获取搜索话题弹框HTML
|
|
5069
5031
|
getSearchTopicPopoverHTML() {
|
|
5070
5032
|
const searchKeyword = this.topicPopover.searchKeyword;
|
|
5071
5033
|
const searchTopics = this.topicPopover.searchTopics;
|
|
@@ -5073,17 +5035,17 @@ const _sfc_main$3 = {
|
|
|
5073
5035
|
const searchHasMore = this.topicPopover.searchHasMore;
|
|
5074
5036
|
let topicListHTML = "";
|
|
5075
5037
|
if (loading && searchTopics.length === 0) {
|
|
5076
|
-
topicListHTML = '<div class="topic-loading"
|
|
5038
|
+
topicListHTML = '<div class="topic-loading">\u641C\u7D22\u4E2D...</div>';
|
|
5077
5039
|
} else if (searchTopics.length === 0) {
|
|
5078
|
-
topicListHTML = '<div class="topic-empty"
|
|
5040
|
+
topicListHTML = '<div class="topic-empty">\u6CA1\u6709\u5339\u914D\u5230\u8BDD\u9898\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165</div>';
|
|
5079
5041
|
} else {
|
|
5080
5042
|
topicListHTML = searchTopics.map(
|
|
5081
5043
|
(topic) => `<div class="topic-item" data-topic-id="${topic.id}" data-topic-type="${topic.type}">#${topic.exactlyMatchTitle}</div>`
|
|
5082
5044
|
).join("");
|
|
5083
5045
|
if (loading) {
|
|
5084
|
-
topicListHTML += '<div class="topic-loading"
|
|
5046
|
+
topicListHTML += '<div class="topic-loading">\u52A0\u8F7D\u66F4\u591A...</div>';
|
|
5085
5047
|
} else if (!searchHasMore) {
|
|
5086
|
-
topicListHTML += '<div class="topic-empty"
|
|
5048
|
+
topicListHTML += '<div class="topic-empty">\u6CA1\u6709\u66F4\u591A\u4E86</div>';
|
|
5087
5049
|
}
|
|
5088
5050
|
}
|
|
5089
5051
|
return `
|
|
@@ -5099,7 +5061,6 @@ const _sfc_main$3 = {
|
|
|
5099
5061
|
</div>
|
|
5100
5062
|
`;
|
|
5101
5063
|
},
|
|
5102
|
-
// 绑定话题弹框事件
|
|
5103
5064
|
bindTopicPopoverEvents() {
|
|
5104
5065
|
if (!this.topicPopover.globalContainer)
|
|
5105
5066
|
return;
|
|
@@ -5131,7 +5092,6 @@ const _sfc_main$3 = {
|
|
|
5131
5092
|
});
|
|
5132
5093
|
}
|
|
5133
5094
|
},
|
|
5134
|
-
// 根据ID查找话题
|
|
5135
5095
|
findTopicById(topicId) {
|
|
5136
5096
|
let topic = this.topicPopover.hotTopics.find((t) => t.id === topicId);
|
|
5137
5097
|
if (topic)
|
|
@@ -5250,15 +5210,13 @@ const _sfc_main$3 = {
|
|
|
5250
5210
|
topicId: topic.id,
|
|
5251
5211
|
topicType: topic.type || 0,
|
|
5252
5212
|
startIndex: 0,
|
|
5253
|
-
// 会在updateTopicPosition中更新
|
|
5254
5213
|
endIndex: 0
|
|
5255
|
-
// 会在updateTopicPosition中更新
|
|
5256
5214
|
}));
|
|
5257
5215
|
topicElement.textContent = topicText;
|
|
5258
5216
|
topicElement.setAttribute("contenteditable", "false");
|
|
5259
5217
|
range.deleteContents();
|
|
5260
5218
|
range.insertNode(topicElement);
|
|
5261
|
-
const spaceNode = document.createTextNode("
|
|
5219
|
+
const spaceNode = document.createTextNode("\xA0");
|
|
5262
5220
|
range.setStartAfter(topicElement);
|
|
5263
5221
|
range.insertNode(spaceNode);
|
|
5264
5222
|
const newRange = document.createRange();
|
|
@@ -5282,7 +5240,6 @@ const _sfc_main$3 = {
|
|
|
5282
5240
|
}, 0);
|
|
5283
5241
|
this.$emit("update-topic-position");
|
|
5284
5242
|
},
|
|
5285
|
-
// 销毁话题管理器
|
|
5286
5243
|
destroy() {
|
|
5287
5244
|
this.unbindEditorEvents();
|
|
5288
5245
|
this.hideTopicPopover();
|
|
@@ -5351,12 +5308,14 @@ const _sfc_main$2 = {
|
|
|
5351
5308
|
setStatus(val) {
|
|
5352
5309
|
this.$emit("update:visible", val);
|
|
5353
5310
|
}
|
|
5354
|
-
// submit() {
|
|
5355
|
-
// this.$emit('submit')
|
|
5356
|
-
// }
|
|
5357
5311
|
}
|
|
5358
5312
|
};
|
|
5359
|
-
const _hoisted_1$2 =
|
|
5313
|
+
const _hoisted_1$2 = /* @__PURE__ */ createElementVNode("div", null, [
|
|
5314
|
+
/* @__PURE__ */ createElementVNode("span", null, "\u91C7\u96C6\u6587\u7AE0"),
|
|
5315
|
+
/* @__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")
|
|
5316
|
+
], -1);
|
|
5317
|
+
const _hoisted_2$2 = { class: "collect-article_content" };
|
|
5318
|
+
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);
|
|
5360
5319
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5361
5320
|
const _component_el_input = resolveComponent("el-input");
|
|
5362
5321
|
const _component_BasicDialog = resolveComponent("BasicDialog");
|
|
@@ -5365,19 +5324,16 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5365
5324
|
width: "600px",
|
|
5366
5325
|
height: "50px"
|
|
5367
5326
|
}, {
|
|
5368
|
-
title: withCtx(() =>
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
createElementVNode("span", { class: "collect-article_lable" }, "如需获得正式使用权,请自行联系版权所有者")
|
|
5372
|
-
], -1)
|
|
5373
|
-
])),
|
|
5327
|
+
title: withCtx(() => [
|
|
5328
|
+
_hoisted_1$2
|
|
5329
|
+
]),
|
|
5374
5330
|
default: withCtx(() => [
|
|
5375
|
-
createElementVNode("div",
|
|
5376
|
-
|
|
5331
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
5332
|
+
_hoisted_3$2,
|
|
5377
5333
|
createVNode(_component_el_input, {
|
|
5378
5334
|
modelValue: $options.input,
|
|
5379
5335
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.input = $event),
|
|
5380
|
-
placeholder: "
|
|
5336
|
+
placeholder: "\u4EC5\u652F\u6301\u5FAE\u4FE1\u94FE\u63A5"
|
|
5381
5337
|
}, null, 8, ["modelValue"])
|
|
5382
5338
|
])
|
|
5383
5339
|
]),
|
|
@@ -5385,7 +5341,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5385
5341
|
}, 8, ["visible"]);
|
|
5386
5342
|
}
|
|
5387
5343
|
const CollectArticle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
5388
|
-
const
|
|
5344
|
+
const index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5389
5345
|
const _sfc_main$1 = {
|
|
5390
5346
|
components: {
|
|
5391
5347
|
ElIconError: CircleCloseFilled
|
|
@@ -5416,8 +5372,8 @@ const _hoisted_1$1 = {
|
|
|
5416
5372
|
};
|
|
5417
5373
|
const _hoisted_2$1 = ["src"];
|
|
5418
5374
|
const _hoisted_3$1 = { class: "article-item_right" };
|
|
5419
|
-
const _hoisted_4 = { class: "name" };
|
|
5420
|
-
const _hoisted_5 = { class: "score" };
|
|
5375
|
+
const _hoisted_4$1 = { class: "name" };
|
|
5376
|
+
const _hoisted_5$1 = { class: "score" };
|
|
5421
5377
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5422
5378
|
const _component_el_icon_error = resolveComponent("el-icon-error");
|
|
5423
5379
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
@@ -5427,11 +5383,11 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5427
5383
|
alt: ""
|
|
5428
5384
|
}, null, 8, _hoisted_2$1)) : createCommentVNode("", true),
|
|
5429
5385
|
createElementVNode("div", _hoisted_3$1, [
|
|
5430
|
-
createElementVNode("div", _hoisted_4, toDisplayString($props.article.title), 1),
|
|
5431
|
-
createElementVNode("div", _hoisted_5, [
|
|
5386
|
+
createElementVNode("div", _hoisted_4$1, toDisplayString($props.article.title), 1),
|
|
5387
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
5432
5388
|
createElementVNode("span", null, toDisplayString($props.article.author), 1),
|
|
5433
|
-
createElementVNode("span", null, toDisplayString($props.article.viewNum) + "
|
|
5434
|
-
createElementVNode("span", null, toDisplayString($props.article.replycnt) + "
|
|
5389
|
+
createElementVNode("span", null, toDisplayString($props.article.viewNum) + "\u6D4F\u89C8", 1),
|
|
5390
|
+
createElementVNode("span", null, toDisplayString($props.article.replycnt) + "\u8BC4\u8BBA", 1)
|
|
5435
5391
|
])
|
|
5436
5392
|
]),
|
|
5437
5393
|
createVNode(_component_el_icon_error, {
|
|
@@ -5443,10 +5399,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5443
5399
|
class: normalizeClass([{
|
|
5444
5400
|
"article-bg-height": $props.article.img || $props.article.mediaInfo && $props.article.mediaInfo.length
|
|
5445
5401
|
}, "article-bg"])
|
|
5446
|
-
}, "
|
|
5402
|
+
}, " \u5E73\u53F0\u4EC5\u652F\u6301\u5C55\u793A18\u4E2A\u6708\u7684\u63A8\u8350\u5185\u5BB9 ", 2)) : createCommentVNode("", true)
|
|
5447
5403
|
]);
|
|
5448
5404
|
}
|
|
5449
|
-
const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
5405
|
+
const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-45d58d86"]]);
|
|
5450
5406
|
const mountArticleDom = (props, del) => {
|
|
5451
5407
|
const className = "article-wrap";
|
|
5452
5408
|
const article = props.article;
|
|
@@ -5506,7 +5462,6 @@ const _sfc_main = {
|
|
|
5506
5462
|
hasArticleCard: false,
|
|
5507
5463
|
cursorStyle: "auto",
|
|
5508
5464
|
titleCount: 0,
|
|
5509
|
-
// 标题数量
|
|
5510
5465
|
viewLinkDialog: false,
|
|
5511
5466
|
linkForm: {
|
|
5512
5467
|
linkAddress: "",
|
|
@@ -5514,54 +5469,39 @@ const _sfc_main = {
|
|
|
5514
5469
|
},
|
|
5515
5470
|
setAlignFlag: true,
|
|
5516
5471
|
article: {},
|
|
5517
|
-
// 插入的文章
|
|
5518
5472
|
imgList: [],
|
|
5519
5473
|
imgNum: 20,
|
|
5520
5474
|
videoList: [],
|
|
5521
5475
|
visibleVideo: false,
|
|
5522
5476
|
visibleCollectArticle: false,
|
|
5523
5477
|
visibleArticle: false,
|
|
5524
|
-
// 插入文章
|
|
5525
5478
|
visibleImg: false,
|
|
5526
|
-
// 插入图片
|
|
5527
5479
|
imgType: "normal",
|
|
5528
|
-
//
|
|
5529
5480
|
typeEnum: {
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
视频文字: "7",
|
|
5481
|
+
\u6587\u5B57: "1",
|
|
5482
|
+
\u56FE\u7247: "2",
|
|
5483
|
+
\u56FE\u6587: "3",
|
|
5484
|
+
\u6BB5\u843D\u6807\u9898: "4",
|
|
5485
|
+
\u5173\u8054: "5",
|
|
5486
|
+
\u5355\u89C6\u9891: "6",
|
|
5487
|
+
\u89C6\u9891\u6587\u5B57: "7",
|
|
5538
5488
|
URL: "8",
|
|
5539
|
-
|
|
5489
|
+
\u6587\u7AE0\u5361\u7247: "11"
|
|
5540
5490
|
},
|
|
5541
5491
|
fontInfo: {
|
|
5542
5492
|
size: ""
|
|
5543
5493
|
},
|
|
5544
5494
|
user: {},
|
|
5545
|
-
// 用户
|
|
5546
5495
|
editor: {},
|
|
5547
|
-
// 编辑器实例对象
|
|
5548
5496
|
editorDom: {},
|
|
5549
|
-
// 编辑器Dom
|
|
5550
5497
|
uploadStore: {},
|
|
5551
|
-
// 待上传的图片池
|
|
5552
5498
|
linkContent: "",
|
|
5553
|
-
// 插入链接的地址
|
|
5554
5499
|
loadingText: "",
|
|
5555
|
-
// loaing的提示文字
|
|
5556
5500
|
progressPercent: "",
|
|
5557
|
-
// 上传进度
|
|
5558
5501
|
currentIndex: 0,
|
|
5559
5502
|
loading: false,
|
|
5560
|
-
// 是否提交中
|
|
5561
5503
|
viewStatus: false,
|
|
5562
|
-
// todo: 改名
|
|
5563
5504
|
linkStatus: false,
|
|
5564
|
-
// todo: 改名
|
|
5565
5505
|
styleStatus: {
|
|
5566
5506
|
bold: false,
|
|
5567
5507
|
italic: false,
|
|
@@ -5585,7 +5525,6 @@ const _sfc_main = {
|
|
|
5585
5525
|
targetMove: "",
|
|
5586
5526
|
moverClasses: ["halo-img-content", "halo-video-content"],
|
|
5587
5527
|
selectDom: null
|
|
5588
|
-
//选中的dom
|
|
5589
5528
|
};
|
|
5590
5529
|
},
|
|
5591
5530
|
computed: {
|
|
@@ -5602,12 +5541,12 @@ const _sfc_main = {
|
|
|
5602
5541
|
watch: {
|
|
5603
5542
|
progressPercent(val) {
|
|
5604
5543
|
const inner = document.querySelector(".video-progress .inner");
|
|
5605
|
-
console.log(val, "
|
|
5544
|
+
console.log(val, "\u89C6\u9891\u4E0A\u4F20\u8FDB\u5EA6");
|
|
5606
5545
|
if (inner) {
|
|
5607
5546
|
inner.style.width = val + "%";
|
|
5608
5547
|
if (val === 100) {
|
|
5609
5548
|
document.querySelector(".video-progress").innerHTML = `
|
|
5610
|
-
<div class="no-calc" style="text-align:center;color:#999999;font-size:18px;"
|
|
5549
|
+
<div class="no-calc" style="text-align:center;color:#999999;font-size:18px;">\u6B63\u5728\u83B7\u53D6\u89C6\u9891\u5C01\u9762</div>
|
|
5611
5550
|
`;
|
|
5612
5551
|
}
|
|
5613
5552
|
}
|
|
@@ -5636,7 +5575,7 @@ const _sfc_main = {
|
|
|
5636
5575
|
me2.editorDom = document.getElementById("editor-content");
|
|
5637
5576
|
me2.editorDom.addEventListener("blur", this.canSetAlign);
|
|
5638
5577
|
if (!window.Squire) {
|
|
5639
|
-
import("./squire-raw
|
|
5578
|
+
import("./squire-raw.3e73a64b.js").then(function() {
|
|
5640
5579
|
me2.initSquire();
|
|
5641
5580
|
});
|
|
5642
5581
|
} else {
|
|
@@ -5696,10 +5635,10 @@ const _sfc_main = {
|
|
|
5696
5635
|
this.visibleVideo = false;
|
|
5697
5636
|
const fileName = (files[0] && files[0].name || "").toLowerCase();
|
|
5698
5637
|
if (files[0].size > 1 * 1024 * 1024 * 1024) {
|
|
5699
|
-
return me2.setToast("
|
|
5638
|
+
return me2.setToast("\u89C6\u9891\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC71GB");
|
|
5700
5639
|
}
|
|
5701
5640
|
if (fileName.indexOf(".mp4") === -1 && fileName.indexOf(".mov") === -1) {
|
|
5702
|
-
return me2.setToast("
|
|
5641
|
+
return me2.setToast("\u89C6\u9891\u683C\u5F0F\u4E0D\u662Fmp4\u6216mov");
|
|
5703
5642
|
}
|
|
5704
5643
|
const me2 = this;
|
|
5705
5644
|
if (me2.loading)
|
|
@@ -5719,9 +5658,7 @@ const _sfc_main = {
|
|
|
5719
5658
|
id: result.videoId,
|
|
5720
5659
|
desc: "",
|
|
5721
5660
|
vodSize: result.vodSize || "",
|
|
5722
|
-
// 视频大小
|
|
5723
5661
|
vodType: result.vodType || ""
|
|
5724
|
-
// 图片尺寸
|
|
5725
5662
|
};
|
|
5726
5663
|
me2.$emit("updateAddVideo", true);
|
|
5727
5664
|
me2.editor["insertVideo"](result.videoUrl, video);
|
|
@@ -5775,11 +5712,11 @@ const _sfc_main = {
|
|
|
5775
5712
|
},
|
|
5776
5713
|
insertLink() {
|
|
5777
5714
|
if (!this.linkForm.linkAddress)
|
|
5778
|
-
return ElMessage.error("
|
|
5715
|
+
return ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740");
|
|
5779
5716
|
if (!this.linkForm.linkWriting)
|
|
5780
|
-
return ElMessage.error("
|
|
5717
|
+
return ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u6587\u6848");
|
|
5781
5718
|
if (!this.validUrl(this.linkForm.linkAddress)) {
|
|
5782
|
-
return this.setToast("URL
|
|
5719
|
+
return this.setToast("URL\u65E0\u6548");
|
|
5783
5720
|
}
|
|
5784
5721
|
this.editor.insertLink(
|
|
5785
5722
|
this.linkForm.linkAddress,
|
|
@@ -5808,7 +5745,6 @@ const _sfc_main = {
|
|
|
5808
5745
|
});
|
|
5809
5746
|
});
|
|
5810
5747
|
},
|
|
5811
|
-
// TopicManager事件处理
|
|
5812
5748
|
onTopicInserted(topic) {
|
|
5813
5749
|
this.updateData(true);
|
|
5814
5750
|
},
|
|
@@ -6266,7 +6202,7 @@ const _sfc_main = {
|
|
|
6266
6202
|
}
|
|
6267
6203
|
this.updateData(true);
|
|
6268
6204
|
} else {
|
|
6269
|
-
this.setToast(rst.origin.name + "
|
|
6205
|
+
this.setToast(rst.origin.name + "\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
|
|
6270
6206
|
}
|
|
6271
6207
|
},
|
|
6272
6208
|
insertVideoBtns(editor, node) {
|
|
@@ -6281,7 +6217,7 @@ const _sfc_main = {
|
|
|
6281
6217
|
me2.currentVideo = node;
|
|
6282
6218
|
e.stopPropagation();
|
|
6283
6219
|
};
|
|
6284
|
-
replaceBtn.innerText = "
|
|
6220
|
+
replaceBtn.innerText = "\u66F4\u6362\u5C01\u9762";
|
|
6285
6221
|
return replaceBtn;
|
|
6286
6222
|
},
|
|
6287
6223
|
insertImgOperateBtns(editor, data) {
|
|
@@ -6304,19 +6240,21 @@ const _sfc_main = {
|
|
|
6304
6240
|
var descInputWrap;
|
|
6305
6241
|
var descInput = editor.createElement("textarea", {
|
|
6306
6242
|
class: "desc-input",
|
|
6307
|
-
maxlength: "
|
|
6308
|
-
rows: "2",
|
|
6243
|
+
maxlength: "100",
|
|
6309
6244
|
cols: "50",
|
|
6310
|
-
placeholder: "
|
|
6245
|
+
placeholder: "\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0(\u6700\u591A100\u5B57)",
|
|
6311
6246
|
contenteditable: "false"
|
|
6312
6247
|
});
|
|
6313
6248
|
descInput.disabled = me2.disabled;
|
|
6314
6249
|
descInput.oninput = function(e) {
|
|
6250
|
+
e.target.style.height = "auto";
|
|
6251
|
+
e.target.style.height = e.target.scrollHeight + "px";
|
|
6252
|
+
replaceBtn.style.bottom = e.target.scrollHeight + 52 + "px";
|
|
6315
6253
|
const parent = me2.findParentByClass(e.target, "halo-img-content");
|
|
6316
6254
|
const img = parent.querySelector(".halo-picture-area");
|
|
6317
6255
|
img.dataset.desc = e.target.value;
|
|
6318
|
-
if (e.target.value.length >
|
|
6319
|
-
return me2.setToast("
|
|
6256
|
+
if (e.target.value.length > 99) {
|
|
6257
|
+
return me2.setToast("\u9650\u5236100\u4E2A\u5B57\u7B26");
|
|
6320
6258
|
}
|
|
6321
6259
|
};
|
|
6322
6260
|
descInput.value = data.content || "";
|
|
@@ -6334,7 +6272,7 @@ const _sfc_main = {
|
|
|
6334
6272
|
return;
|
|
6335
6273
|
const current = me2.findParentByClass(e.target, "halo-img-content");
|
|
6336
6274
|
const range = document.createRange();
|
|
6337
|
-
range.setEnd(current.previousElementSibling, 1);
|
|
6275
|
+
range.setEnd(current.previousElementSibling || current, 1);
|
|
6338
6276
|
range.collapse(false);
|
|
6339
6277
|
me2.range = range;
|
|
6340
6278
|
me2.replaceSeamless = data.seamlessFlag || "0";
|
|
@@ -6366,7 +6304,7 @@ const _sfc_main = {
|
|
|
6366
6304
|
me2.removeParentByClass(e.target, "halo-img-content");
|
|
6367
6305
|
me2.updateData(true);
|
|
6368
6306
|
};
|
|
6369
|
-
replaceBtn.innerHTML = "
|
|
6307
|
+
replaceBtn.innerHTML = "\u66FF\u6362";
|
|
6370
6308
|
return [replaceBtn, delBtn, descInputWrap];
|
|
6371
6309
|
},
|
|
6372
6310
|
removeSeamlessLaster(e) {
|
|
@@ -6390,7 +6328,6 @@ const _sfc_main = {
|
|
|
6390
6328
|
}
|
|
6391
6329
|
}
|
|
6392
6330
|
},
|
|
6393
|
-
// 初始化编辑器数据,数据是 html 格式(displayData)
|
|
6394
6331
|
initData(data = "", essayPicRelVOList) {
|
|
6395
6332
|
this.parseHtml(data, essayPicRelVOList).then((res) => {
|
|
6396
6333
|
this.editorDom.innerHTML = "";
|
|
@@ -6398,13 +6335,10 @@ const _sfc_main = {
|
|
|
6398
6335
|
this.updateData();
|
|
6399
6336
|
});
|
|
6400
6337
|
},
|
|
6401
|
-
// TODO jsonToHtml、htmlToJson 实现这 2 个方法里面的逻辑,数据结构参考方法里面的注释,出参入参都为字符串,注意:mdd-topic 里面的属性数据 和 json 中的topicPosition数据是一一对应的,startIndex、endIndex为mdd-topic的起止位置 从 content 里面进行分割处理
|
|
6402
|
-
// json、html 数据格式互转,暂时只支持文字、短话题
|
|
6403
6338
|
jsonToHtml(json) {
|
|
6404
6339
|
},
|
|
6405
6340
|
htmlToJson(html) {
|
|
6406
6341
|
},
|
|
6407
|
-
// 设置富文本组件
|
|
6408
6342
|
initSquire() {
|
|
6409
6343
|
const me2 = this;
|
|
6410
6344
|
const editorDom = me2.editorDom;
|
|
@@ -6854,7 +6788,6 @@ const _sfc_main = {
|
|
|
6854
6788
|
window.Squire.empty(block)
|
|
6855
6789
|
]);
|
|
6856
6790
|
output.appendChild(
|
|
6857
|
-
// 段落才能添加标题
|
|
6858
6791
|
Array.from(block.classList).indexOf("halo-img-content") > -1 ? block : container
|
|
6859
6792
|
);
|
|
6860
6793
|
}
|
|
@@ -6877,20 +6810,21 @@ const _sfc_main = {
|
|
|
6877
6810
|
});
|
|
6878
6811
|
loading.innerHTML = `
|
|
6879
6812
|
<img class="img-loading-icon" src="/img/upload-image-loading.png"/>
|
|
6880
|
-
<span class="img-loading-tip"
|
|
6813
|
+
<span class="img-loading-tip">\u4E0A\u4F20\u4E2D...</span>
|
|
6881
6814
|
`;
|
|
6882
6815
|
var fail = this.createElement("div", {
|
|
6883
6816
|
class: "img-fail hide",
|
|
6884
6817
|
contenteditable: "false"
|
|
6885
6818
|
});
|
|
6886
|
-
fail.innerHTML = "
|
|
6819
|
+
fail.innerHTML = "\u4E0A\u4F20\u5931\u8D25<br>\u8BF7\u4E0B\u8F7D\u56FE\u7247\u81F3\u672C\u5730\u540E\u91CD\u65B0\u4E0A\u4F20";
|
|
6887
6820
|
var again = this.createElement("button", {
|
|
6888
6821
|
class: "img-again hide",
|
|
6889
6822
|
contenteditable: "false"
|
|
6890
6823
|
});
|
|
6891
|
-
again.innerHTML = "
|
|
6824
|
+
again.innerHTML = "\u91CD\u65B0\u4E0A\u4F20";
|
|
6892
6825
|
const isGif = src && src.indexOf(".gif") > -1;
|
|
6893
|
-
|
|
6826
|
+
const isGifNowater = src && src.indexOf(".gif!nowater") > -1;
|
|
6827
|
+
if (isGif && !isGifNowater) {
|
|
6894
6828
|
src = src.replace(".gif", ".gif!nowater");
|
|
6895
6829
|
}
|
|
6896
6830
|
var img = this.createElement("img", {
|
|
@@ -6943,7 +6877,7 @@ const _sfc_main = {
|
|
|
6943
6877
|
});
|
|
6944
6878
|
div.innerHTML = `
|
|
6945
6879
|
<div class="video-progress">
|
|
6946
|
-
<div class="label"
|
|
6880
|
+
<div class="label">\u4E0A\u4F20\u4E2D...</div>
|
|
6947
6881
|
<div class="box">
|
|
6948
6882
|
<div class="inner" style="width:20%"></div>
|
|
6949
6883
|
</div>
|
|
@@ -6966,7 +6900,6 @@ const _sfc_main = {
|
|
|
6966
6900
|
data: JSON.stringify(data),
|
|
6967
6901
|
"data-content": data.content || "",
|
|
6968
6902
|
poster: data.img || ""
|
|
6969
|
-
// 'contenteditable': 'true',
|
|
6970
6903
|
});
|
|
6971
6904
|
var delBtn = me2.genIconDom({
|
|
6972
6905
|
class: "pointer video-delete icon",
|
|
@@ -7024,7 +6957,6 @@ const _sfc_main = {
|
|
|
7024
6957
|
}
|
|
7025
6958
|
};
|
|
7026
6959
|
},
|
|
7027
|
-
// 撤销重做 会把 所有的监听全都移除,所以需要重新绑定
|
|
7028
6960
|
setListener(dom) {
|
|
7029
6961
|
const me2 = this;
|
|
7030
6962
|
const doms = dom ? [dom] : Array.from(this.editorDom.children);
|
|
@@ -7035,7 +6967,7 @@ const _sfc_main = {
|
|
|
7035
6967
|
p.onclick = function(e) {
|
|
7036
6968
|
var _a;
|
|
7037
6969
|
if (area.nodeName === "VIDEO" && ((_a = me2.selectDom) == null ? void 0 : _a.className) === "halo-video-content") {
|
|
7038
|
-
me2.setToast("
|
|
6970
|
+
me2.setToast("\u4E0D\u652F\u6301\u64AD\u653E");
|
|
7039
6971
|
}
|
|
7040
6972
|
if (e.target.className.includes("desc-input")) {
|
|
7041
6973
|
return;
|
|
@@ -7099,7 +7031,6 @@ const _sfc_main = {
|
|
|
7099
7031
|
};
|
|
7100
7032
|
return del;
|
|
7101
7033
|
},
|
|
7102
|
-
// 转换数据,返回给业务
|
|
7103
7034
|
getEditorData() {
|
|
7104
7035
|
const me2 = this;
|
|
7105
7036
|
const children = Array.from(me2.editorDom.children);
|
|
@@ -7157,11 +7088,9 @@ const _sfc_main = {
|
|
|
7157
7088
|
videoIds
|
|
7158
7089
|
};
|
|
7159
7090
|
},
|
|
7160
|
-
// 是否是摩托范的图片
|
|
7161
7091
|
isHaloImage(url = "") {
|
|
7162
|
-
return url.indexOf("jddmoto") > -1 || url.indexOf("58moto") > -1 || url.indexOf("emotofine") > -1 || url.indexOf("dronefine") > -1;
|
|
7092
|
+
return url.indexOf("jddmoto") > -1 || url.indexOf("58moto") > -1 || url.indexOf("emotofine") > -1 || url.indexOf("dronefine") > -1 || url.indexOf("evtolfine") > -1 || url.indexOf("biaofine") > -1;
|
|
7163
7093
|
},
|
|
7164
|
-
// 获取待上传图片列表
|
|
7165
7094
|
updateUploads() {
|
|
7166
7095
|
const me2 = this;
|
|
7167
7096
|
setTimeout(() => {
|
|
@@ -7208,8 +7137,8 @@ const _sfc_main = {
|
|
|
7208
7137
|
const currentImg = me2.uploadStore[key];
|
|
7209
7138
|
const imageUrl = key.split("|")[1] || "";
|
|
7210
7139
|
if (!currentImg) {
|
|
7211
|
-
console.log("
|
|
7212
|
-
return Promise.reject("
|
|
7140
|
+
console.log("\u56FE\u7247\u4E0D\u5B58\u5728", key);
|
|
7141
|
+
return Promise.reject("\u56FE\u7247\u4E0D\u5B58\u5728");
|
|
7213
7142
|
}
|
|
7214
7143
|
const parent = currentImg.parentNode || "";
|
|
7215
7144
|
const uploadFailHandler = (currentImg2) => {
|
|
@@ -7253,7 +7182,6 @@ const _sfc_main = {
|
|
|
7253
7182
|
parent && uploadFailHandler(currentImg);
|
|
7254
7183
|
});
|
|
7255
7184
|
},
|
|
7256
|
-
// 更新上传的图片
|
|
7257
7185
|
updateImage(img, currentImg = {}) {
|
|
7258
7186
|
const data = JSON.parse(currentImg.getAttribute("data") || "{}");
|
|
7259
7187
|
data.img = img;
|
|
@@ -7276,11 +7204,9 @@ const _sfc_main = {
|
|
|
7276
7204
|
parent.appendChild(arr[2]);
|
|
7277
7205
|
}
|
|
7278
7206
|
},
|
|
7279
|
-
// 获取ctrl + v 后内容
|
|
7280
7207
|
getSticker(type, handler) {
|
|
7281
7208
|
this.setSticker(type.fragment.children);
|
|
7282
7209
|
},
|
|
7283
|
-
// 粘贴表格内容,tr换行形成段落
|
|
7284
7210
|
setStickerTableContent(data) {
|
|
7285
7211
|
const me2 = this;
|
|
7286
7212
|
const rows = data.querySelectorAll("tr") || [];
|
|
@@ -7309,7 +7235,6 @@ const _sfc_main = {
|
|
|
7309
7235
|
});
|
|
7310
7236
|
this.updateData(true);
|
|
7311
7237
|
},
|
|
7312
|
-
// 粘贴
|
|
7313
7238
|
setSticker(data) {
|
|
7314
7239
|
const me2 = this;
|
|
7315
7240
|
data = Array.from(data);
|
|
@@ -7348,7 +7273,6 @@ const _sfc_main = {
|
|
|
7348
7273
|
const me2 = this;
|
|
7349
7274
|
me2.updateData();
|
|
7350
7275
|
},
|
|
7351
|
-
// 监测 添加、撤回、恢复、删除
|
|
7352
7276
|
setBack(e, type) {
|
|
7353
7277
|
const me2 = this;
|
|
7354
7278
|
me2.refreshImg();
|
|
@@ -7381,7 +7305,6 @@ const _sfc_main = {
|
|
|
7381
7305
|
}
|
|
7382
7306
|
});
|
|
7383
7307
|
},
|
|
7384
|
-
// 设置scoll
|
|
7385
7308
|
sticky() {
|
|
7386
7309
|
const me2 = this;
|
|
7387
7310
|
me2.$nextTick(function() {
|
|
@@ -7401,8 +7324,6 @@ const _sfc_main = {
|
|
|
7401
7324
|
document.addEventListener("scroll", onScroll);
|
|
7402
7325
|
});
|
|
7403
7326
|
},
|
|
7404
|
-
// ==========toolbox==========
|
|
7405
|
-
// 撤回、恢复、段落标题
|
|
7406
7327
|
setContent(e, obj) {
|
|
7407
7328
|
const me2 = this;
|
|
7408
7329
|
const id = e.target.id || e.target.dataset.editorId;
|
|
@@ -7444,11 +7365,10 @@ const _sfc_main = {
|
|
|
7444
7365
|
this.fontInfo = this.editor.getFontInfo();
|
|
7445
7366
|
this.updateData(true);
|
|
7446
7367
|
},
|
|
7447
|
-
// 增加link
|
|
7448
7368
|
addLink(type) {
|
|
7449
7369
|
const me2 = this;
|
|
7450
|
-
me2.linkTitleName = type === "link" ? "
|
|
7451
|
-
me2.linkPlaceholder = type === "link" ? "
|
|
7370
|
+
me2.linkTitleName = type === "link" ? "\u6DFB\u52A0\u94FE\u63A5" : "\u6DFB\u52A0\u5BFC\u5165\u94FE\u63A5\u5730\u5740";
|
|
7371
|
+
me2.linkPlaceholder = type === "link" ? "\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740" : "\u4EC5\u652F\u6301\u8F93\u5165\u5FAE\u4FE1\u94FE\u63A5";
|
|
7452
7372
|
me2.viewStatus = true;
|
|
7453
7373
|
me2.linkStatus = true;
|
|
7454
7374
|
},
|
|
@@ -7456,31 +7376,29 @@ const _sfc_main = {
|
|
|
7456
7376
|
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.,;?'&%$#=~_-]+))*$/;
|
|
7457
7377
|
return objExp.test(url);
|
|
7458
7378
|
},
|
|
7459
|
-
// 确认增加link
|
|
7460
7379
|
confirmLink() {
|
|
7461
7380
|
const me2 = this;
|
|
7462
7381
|
if (!me2.linkContent) {
|
|
7463
|
-
return ElMessage.error("
|
|
7382
|
+
return ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740\uFF01");
|
|
7464
7383
|
}
|
|
7465
|
-
if (me2.linkTitleName === "
|
|
7384
|
+
if (me2.linkTitleName === "\u6DFB\u52A0\u5BFC\u5165\u94FE\u63A5\u5730\u5740" || this.visibleCollectArticle) {
|
|
7466
7385
|
this.visibleCollectArticle = false;
|
|
7467
7386
|
return me2.importLinkData();
|
|
7468
7387
|
}
|
|
7469
7388
|
if (!this.validUrl(me2.linkContent)) {
|
|
7470
|
-
return me2.setToast("URL
|
|
7389
|
+
return me2.setToast("URL\u65E0\u6548");
|
|
7471
7390
|
}
|
|
7472
7391
|
if (!me2.isHaloImage(me2.linkContent)) {
|
|
7473
|
-
return me2.setToast("
|
|
7392
|
+
return me2.setToast("\u8BF7\u8F93\u5165\u6469\u6258\u8303\u5185\u90E8\u7F51\u5740");
|
|
7474
7393
|
}
|
|
7475
7394
|
me2.editor["insertLink"](me2.linkContent);
|
|
7476
7395
|
me2.linkContent = "";
|
|
7477
7396
|
me2.closeDialog();
|
|
7478
7397
|
},
|
|
7479
|
-
// 增加link导入数据
|
|
7480
7398
|
importLinkData() {
|
|
7481
7399
|
const me2 = this;
|
|
7482
7400
|
if (me2.loading) {
|
|
7483
|
-
return ElMessage("
|
|
7401
|
+
return ElMessage("\u6B63\u5728\u83B7\u53D6\u4FE1\u606F\uFF0C\u8BF7\u7A0D\u540E...");
|
|
7484
7402
|
}
|
|
7485
7403
|
me2.loading = true;
|
|
7486
7404
|
const params = {
|
|
@@ -7502,44 +7420,39 @@ const _sfc_main = {
|
|
|
7502
7420
|
me2.linkContent = "";
|
|
7503
7421
|
return;
|
|
7504
7422
|
} else {
|
|
7505
|
-
me2.setToast("
|
|
7423
|
+
me2.setToast("\u5BFC\u5165\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
|
|
7506
7424
|
}
|
|
7507
7425
|
}).catch((err) => {
|
|
7508
7426
|
console.log(err.message);
|
|
7509
|
-
me2.setToast("
|
|
7427
|
+
me2.setToast("\u5BFC\u5165\u5F02\u5E38\uFF0C\u8BF7\u91CD\u8BD5");
|
|
7510
7428
|
}).finally((_) => {
|
|
7511
7429
|
me2.loading = false;
|
|
7512
7430
|
});
|
|
7513
7431
|
},
|
|
7514
|
-
// 打开 图片、视频、一键导入 弹框
|
|
7515
7432
|
openDialog(name) {
|
|
7516
7433
|
const me2 = this;
|
|
7517
|
-
me2.viewName = name === "img" ? "
|
|
7518
|
-
me2.viewButton = name === "img" ? "
|
|
7519
|
-
me2.viewTip = name === "img" ? "" : "
|
|
7434
|
+
me2.viewName = name === "img" ? "\u6DFB\u52A0\u56FE\u7247" : "\u6DFB\u52A0\u89C6\u9891";
|
|
7435
|
+
me2.viewButton = name === "img" ? "\u9009\u62E9\u56FE\u7247" : "\u9009\u62E9\u89C6\u9891";
|
|
7436
|
+
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)";
|
|
7520
7437
|
me2.viewStatus = true;
|
|
7521
7438
|
},
|
|
7522
|
-
// 关闭弹框
|
|
7523
7439
|
closeDialog() {
|
|
7524
7440
|
this.viewStatus = false;
|
|
7525
7441
|
this.linkStatus = false;
|
|
7526
7442
|
this.linkContent = "";
|
|
7527
7443
|
},
|
|
7528
|
-
// ==========toolbox end==========
|
|
7529
|
-
// 弹框提示
|
|
7530
7444
|
setToast(content) {
|
|
7531
7445
|
ElMessage.error(content);
|
|
7532
7446
|
},
|
|
7533
7447
|
setMessageBoxNoCancel(content) {
|
|
7534
7448
|
ElMessageBox.confirm(content, "", {
|
|
7535
|
-
confirmButtonText: "
|
|
7536
|
-
cancelButtonText: "
|
|
7449
|
+
confirmButtonText: "\u786E\u5B9A",
|
|
7450
|
+
cancelButtonText: "\u53D6\u6D88",
|
|
7537
7451
|
type: "warning"
|
|
7538
7452
|
}).then(() => {
|
|
7539
7453
|
}).catch(() => {
|
|
7540
7454
|
});
|
|
7541
7455
|
},
|
|
7542
|
-
// 检查是否会创建嵌套的halo-paragraph
|
|
7543
7456
|
wouldCreateNestedParagraph(range) {
|
|
7544
7457
|
let container = range.startContainer;
|
|
7545
7458
|
while (container && container !== this.editorDom) {
|
|
@@ -7550,7 +7463,6 @@ const _sfc_main = {
|
|
|
7550
7463
|
}
|
|
7551
7464
|
return false;
|
|
7552
7465
|
},
|
|
7553
|
-
// 检查光标是否在两个连续的mdd-topic之间
|
|
7554
7466
|
isBetweenTwoTopics(range) {
|
|
7555
7467
|
const container = range.startContainer;
|
|
7556
7468
|
const offset = range.startOffset;
|
|
@@ -7566,7 +7478,6 @@ const _sfc_main = {
|
|
|
7566
7478
|
}
|
|
7567
7479
|
return false;
|
|
7568
7480
|
},
|
|
7569
|
-
// 处理两个话题之间的回车或话题前面的回车
|
|
7570
7481
|
handleEnterBetweenTopics(range) {
|
|
7571
7482
|
var _a;
|
|
7572
7483
|
const me2 = this;
|
|
@@ -7604,7 +7515,6 @@ const _sfc_main = {
|
|
|
7604
7515
|
selection.addRange(newRange);
|
|
7605
7516
|
me2.updateData(true);
|
|
7606
7517
|
},
|
|
7607
|
-
// 更精确地提取光标后的内容(专门用于话题分割)
|
|
7608
7518
|
extractContentAfterCursorPrecise(range, paragraph) {
|
|
7609
7519
|
const fragment = document.createDocumentFragment();
|
|
7610
7520
|
const container = range.startContainer;
|
|
@@ -7630,7 +7540,6 @@ const _sfc_main = {
|
|
|
7630
7540
|
}
|
|
7631
7541
|
return fragment;
|
|
7632
7542
|
},
|
|
7633
|
-
// 处理包含话题的段落中的回车键
|
|
7634
7543
|
handleEnterKeyInParagraphWithTopic(range) {
|
|
7635
7544
|
var _a;
|
|
7636
7545
|
const me2 = this;
|
|
@@ -7705,7 +7614,6 @@ const _sfc_main = {
|
|
|
7705
7614
|
selection.addRange(newRange);
|
|
7706
7615
|
me2.updateData(true);
|
|
7707
7616
|
},
|
|
7708
|
-
// 检查光标是否在第一个话题前面
|
|
7709
7617
|
isCursorBeforeFirstTopic(range, paragraph) {
|
|
7710
7618
|
const container = range.startContainer;
|
|
7711
7619
|
const offset = range.startOffset;
|
|
@@ -7767,7 +7675,6 @@ const _sfc_main = {
|
|
|
7767
7675
|
}
|
|
7768
7676
|
return false;
|
|
7769
7677
|
},
|
|
7770
|
-
// 获取不包含mdd-topic内部文本的段落文本
|
|
7771
7678
|
getParagraphTextExcludingTopics(paragraph, range) {
|
|
7772
7679
|
let textContent = "";
|
|
7773
7680
|
let cursorPosition = 0;
|
|
@@ -7798,12 +7705,10 @@ const _sfc_main = {
|
|
|
7798
7705
|
}
|
|
7799
7706
|
return { textContent, cursorPosition };
|
|
7800
7707
|
},
|
|
7801
|
-
// 检查光标是否在段落开头
|
|
7802
7708
|
isCursorAtStartOfParagraph(range, paragraph) {
|
|
7803
7709
|
const { cursorPosition } = this.getParagraphTextExcludingTopics(paragraph, range);
|
|
7804
7710
|
return cursorPosition === 0;
|
|
7805
7711
|
},
|
|
7806
|
-
// 检查光标是否在段落末尾
|
|
7807
7712
|
isCursorAtEndOfParagraph(range, paragraph) {
|
|
7808
7713
|
const walker = document.createTreeWalker(
|
|
7809
7714
|
paragraph,
|
|
@@ -7830,7 +7735,6 @@ const _sfc_main = {
|
|
|
7830
7735
|
const { cursorPosition } = this.getParagraphTextExcludingTopics(paragraph, range);
|
|
7831
7736
|
return cursorPosition >= totalLength;
|
|
7832
7737
|
},
|
|
7833
|
-
// 获取当前段落
|
|
7834
7738
|
getCurrentParagraph(range) {
|
|
7835
7739
|
let container = range.startContainer;
|
|
7836
7740
|
while (container && container !== this.editorDom) {
|
|
@@ -7841,13 +7745,12 @@ const _sfc_main = {
|
|
|
7841
7745
|
}
|
|
7842
7746
|
return null;
|
|
7843
7747
|
},
|
|
7844
|
-
// 提取光标后的内容
|
|
7845
7748
|
extractContentAfterCursor(range, paragraph) {
|
|
7846
7749
|
const fragment = document.createDocumentFragment();
|
|
7847
7750
|
const container = range.startContainer;
|
|
7848
7751
|
const offset = range.startOffset;
|
|
7849
7752
|
let topicSpaceNode = null;
|
|
7850
|
-
if (container.nodeType === Node.TEXT_NODE && container.textContent === "
|
|
7753
|
+
if (container.nodeType === Node.TEXT_NODE && container.textContent === "\xA0" && container.previousSibling && container.previousSibling.tagName === "MDD-TOPIC") {
|
|
7851
7754
|
topicSpaceNode = container;
|
|
7852
7755
|
}
|
|
7853
7756
|
const extractRange = document.createRange();
|
|
@@ -7902,8 +7805,7 @@ const _sfc_main = {
|
|
|
7902
7805
|
try {
|
|
7903
7806
|
extractRange.setStartBefore(startNode);
|
|
7904
7807
|
let lastNode = paragraph.lastChild;
|
|
7905
|
-
while (lastNode && lastNode.nodeType === Node.TEXT_NODE && lastNode.textContent === "" &&
|
|
7906
|
-
lastNode !== startNode) {
|
|
7808
|
+
while (lastNode && lastNode.nodeType === Node.TEXT_NODE && lastNode.textContent === "" && lastNode !== startNode) {
|
|
7907
7809
|
lastNode = lastNode.previousSibling;
|
|
7908
7810
|
}
|
|
7909
7811
|
if (lastNode) {
|
|
@@ -7923,7 +7825,6 @@ const _sfc_main = {
|
|
|
7923
7825
|
}
|
|
7924
7826
|
return fragment;
|
|
7925
7827
|
},
|
|
7926
|
-
// 统一的光标设置方法 - 设置光标到元素后面
|
|
7927
7828
|
setCursorAfterElement(element) {
|
|
7928
7829
|
const newRange = document.createRange();
|
|
7929
7830
|
newRange.setStartAfter(element);
|
|
@@ -7932,7 +7833,6 @@ const _sfc_main = {
|
|
|
7932
7833
|
selection.removeAllRanges();
|
|
7933
7834
|
selection.addRange(newRange);
|
|
7934
7835
|
},
|
|
7935
|
-
// 统一的光标设置方法 - 设置光标到元素前面
|
|
7936
7836
|
setCursorBeforeElement(element) {
|
|
7937
7837
|
const newRange = document.createRange();
|
|
7938
7838
|
newRange.setStartBefore(element);
|
|
@@ -7952,6 +7852,8 @@ const _hoisted_3 = {
|
|
|
7952
7852
|
slot: "footer",
|
|
7953
7853
|
class: "dialog-footer"
|
|
7954
7854
|
};
|
|
7855
|
+
const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u53D6 \u6D88");
|
|
7856
|
+
const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u786E \u5B9A");
|
|
7955
7857
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7956
7858
|
const _component_el_input = resolveComponent("el-input");
|
|
7957
7859
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
@@ -7967,7 +7869,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7967
7869
|
withDirectives(createElementVNode("div", {
|
|
7968
7870
|
style: normalizeStyle({ textAlign: $options.align }),
|
|
7969
7871
|
class: "placeholder"
|
|
7970
|
-
}, toDisplayString($props.placeholder || "
|
|
7872
|
+
}, toDisplayString($props.placeholder || "\u8BF7\u8F93\u5165\u6B63\u6587"), 5), [
|
|
7971
7873
|
[vShow, !$options.isInputing && !$data.titleCount && !$data.hasArticleCard]
|
|
7972
7874
|
]),
|
|
7973
7875
|
$data.overLine ? (openBlock(), createElementBlock("div", {
|
|
@@ -7992,26 +7894,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7992
7894
|
createVNode(_component_el_form, { model: $data.linkForm }, {
|
|
7993
7895
|
default: withCtx(() => [
|
|
7994
7896
|
createVNode(_component_el_form_item, {
|
|
7995
|
-
label: "
|
|
7897
|
+
label: "\u6DFB\u52A0\u94FE\u63A5",
|
|
7996
7898
|
class: "link-title"
|
|
7997
7899
|
}, {
|
|
7998
7900
|
default: withCtx(() => [
|
|
7999
7901
|
createVNode(_component_el_input, {
|
|
8000
7902
|
modelValue: $data.linkForm.linkAddress,
|
|
8001
7903
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.linkForm.linkAddress = $event),
|
|
8002
|
-
placeholder: "
|
|
7904
|
+
placeholder: "\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"
|
|
8003
7905
|
}, null, 8, ["modelValue"])
|
|
8004
7906
|
]),
|
|
8005
7907
|
_: 1
|
|
8006
7908
|
}),
|
|
8007
|
-
createVNode(_component_el_form_item, { label: "
|
|
7909
|
+
createVNode(_component_el_form_item, { label: "\u94FE\u63A5\u6587\u6848" }, {
|
|
8008
7910
|
default: withCtx(() => [
|
|
8009
7911
|
createVNode(_component_el_input, {
|
|
8010
7912
|
modelValue: $data.linkForm.linkWriting,
|
|
8011
7913
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.linkForm.linkWriting = $event),
|
|
8012
7914
|
type: "textarea",
|
|
8013
7915
|
autosize: "",
|
|
8014
|
-
placeholder: "
|
|
7916
|
+
placeholder: "\u8BF7\u8F93\u5165\u94FE\u63A5\u6587\u6848"
|
|
8015
7917
|
}, null, 8, ["modelValue"])
|
|
8016
7918
|
]),
|
|
8017
7919
|
_: 1
|
|
@@ -8024,18 +7926,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8024
7926
|
createVNode(_component_el_button, {
|
|
8025
7927
|
onClick: _cache[3] || (_cache[3] = ($event) => $data.viewLinkDialog = false)
|
|
8026
7928
|
}, {
|
|
8027
|
-
default: withCtx(() =>
|
|
8028
|
-
|
|
8029
|
-
])
|
|
7929
|
+
default: withCtx(() => [
|
|
7930
|
+
_hoisted_4
|
|
7931
|
+
]),
|
|
8030
7932
|
_: 1
|
|
8031
7933
|
}),
|
|
8032
7934
|
createVNode(_component_el_button, {
|
|
8033
7935
|
type: "primary",
|
|
8034
7936
|
onClick: $options.insertLink
|
|
8035
7937
|
}, {
|
|
8036
|
-
default: withCtx(() =>
|
|
8037
|
-
|
|
8038
|
-
])
|
|
7938
|
+
default: withCtx(() => [
|
|
7939
|
+
_hoisted_5
|
|
7940
|
+
]),
|
|
8039
7941
|
_: 1
|
|
8040
7942
|
}, 8, ["onClick"])
|
|
8041
7943
|
])
|
|
@@ -8052,7 +7954,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8052
7954
|
}, null, 8, ["article", "visible", "getList", "onDelete", "onChange"]),
|
|
8053
7955
|
createVNode(_component_ImgUpload, {
|
|
8054
7956
|
"img-list": $data.imgList,
|
|
8055
|
-
"onUpdate:
|
|
7957
|
+
"onUpdate:img-list": _cache[6] || (_cache[6] = ($event) => $data.imgList = $event),
|
|
8056
7958
|
visible: $data.visibleImg,
|
|
8057
7959
|
"onUpdate:visible": _cache[7] || (_cache[7] = ($event) => $data.visibleImg = $event),
|
|
8058
7960
|
chartGallery: $props.chartGallery,
|
|
@@ -8067,7 +7969,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8067
7969
|
}, null, 8, ["visible", "file-selected"]),
|
|
8068
7970
|
createVNode(_component_CollectArticle, {
|
|
8069
7971
|
"link-content": $data.linkContent,
|
|
8070
|
-
"onUpdate:
|
|
7972
|
+
"onUpdate:link-content": _cache[9] || (_cache[9] = ($event) => $data.linkContent = $event),
|
|
8071
7973
|
visible: $data.visibleCollectArticle,
|
|
8072
7974
|
"onUpdate:visible": _cache[10] || (_cache[10] = ($event) => $data.visibleCollectArticle = $event),
|
|
8073
7975
|
onSubmit: $options.confirmLink
|