@haluo/biz 2.0.38 → 2.0.40
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/README.md +34 -33
- package/dist/haluo-biz.js +589 -644
- package/dist/haluo-biz.umd.cjs +606 -672
- package/dist/{squire-raw-97946106.js → squire-raw.9f05be24.js} +4 -18
- package/dist/style.css +28 -28
- package/package.json +47 -47
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$7 = {
|
|
|
338
339
|
activeImgType: false,
|
|
339
340
|
activeAlign: "",
|
|
340
341
|
alignMethods: [
|
|
341
|
-
{ value: "left", name: "
|
|
342
|
-
{ value: "right", name: "
|
|
343
|
-
{ value: "center", name: "
|
|
344
|
-
{ value: "justify", name: "
|
|
342
|
+
{ value: "left", name: "\u5DE6\u5BF9\u9F50" },
|
|
343
|
+
{ value: "right", name: "\u53F3\u5BF9\u9F50" },
|
|
344
|
+
{ value: "center", name: "\u5C45\u4E2D\u5BF9\u9F50" },
|
|
345
|
+
{ value: "justify", name: "\u4E24\u7AEF\u5BF9\u9F50" }
|
|
345
346
|
],
|
|
346
347
|
activeFontsize: "17",
|
|
347
348
|
fontsizes: [
|
|
348
|
-
{ value: "17px", name: "17", desc: "
|
|
349
|
-
{ value: "18px", name: "18", desc: "
|
|
349
|
+
{ value: "17px", name: "17", desc: "\u9ED8\u8BA4\u6B63\u6587\u5B57\u53F7" },
|
|
350
|
+
{ value: "18px", name: "18", desc: "\u9ED8\u8BA4\u6807\u9898\u5B57\u53F7" },
|
|
350
351
|
{ value: "19px", name: "19" },
|
|
351
352
|
{ value: "20px", name: "20" },
|
|
352
353
|
{ value: "24px", name: "24" },
|
|
@@ -427,7 +428,7 @@ const _sfc_main$7 = {
|
|
|
427
428
|
this.editor.clearFormat();
|
|
428
429
|
},
|
|
429
430
|
setColor(val) {
|
|
430
|
-
console.log("
|
|
431
|
+
console.log("\u6587\u5B57\u989C\u8272");
|
|
431
432
|
this.updatePosition(() => {
|
|
432
433
|
this.editor.setColor(val);
|
|
433
434
|
});
|
|
@@ -486,7 +487,6 @@ const _sfc_main$7 = {
|
|
|
486
487
|
this.popoverVisibleList = false;
|
|
487
488
|
this.popoverVisibleImg = false;
|
|
488
489
|
},
|
|
489
|
-
// todo 富文本设置样式位置会回到顶部
|
|
490
490
|
updatePosition(fn) {
|
|
491
491
|
const scrollTop = document.documentElement.scrollTop;
|
|
492
492
|
fn && fn();
|
|
@@ -523,9 +523,9 @@ const _hoisted_1$7 = {
|
|
|
523
523
|
key: 0,
|
|
524
524
|
class: "tools"
|
|
525
525
|
};
|
|
526
|
-
const _hoisted_2$
|
|
527
|
-
const _hoisted_3$
|
|
528
|
-
const _hoisted_4$
|
|
526
|
+
const _hoisted_2$7 = { class: "tools-content" };
|
|
527
|
+
const _hoisted_3$7 = ["src"];
|
|
528
|
+
const _hoisted_4$4 = ["src"];
|
|
529
529
|
const _hoisted_5$3 = ["src"];
|
|
530
530
|
const _hoisted_6$2 = { class: "box" };
|
|
531
531
|
const _hoisted_7$2 = ["src"];
|
|
@@ -566,9 +566,9 @@ 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"];
|
|
569
|
+
const _hoisted_30$1 = { class: "box" };
|
|
570
|
+
const _hoisted_31$1 = ["src"];
|
|
571
|
+
const _hoisted_32$1 = ["src"];
|
|
572
572
|
const _hoisted_33 = ["src"];
|
|
573
573
|
const _hoisted_34 = ["src"];
|
|
574
574
|
const _hoisted_35 = { class: "tools-title" };
|
|
@@ -592,11 +592,11 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
592
592
|
const _component_colorPicker = resolveComponent("colorPicker");
|
|
593
593
|
const _directive_click_outside = resolveDirective("click-outside");
|
|
594
594
|
return $props.editor.fontInfo ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
595
|
-
createElementVNode("div", _hoisted_2$
|
|
595
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
596
596
|
createVNode(_component_el_tooltip, {
|
|
597
597
|
class: "item",
|
|
598
598
|
effect: "dark",
|
|
599
|
-
content: "
|
|
599
|
+
content: "\u64A4\u56DE",
|
|
600
600
|
placement: "top"
|
|
601
601
|
}, {
|
|
602
602
|
default: withCtx(() => [
|
|
@@ -608,14 +608,14 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
608
608
|
height: "40",
|
|
609
609
|
alt: "",
|
|
610
610
|
onClick: _cache[0] || (_cache[0] = ($event) => $options.back($event))
|
|
611
|
-
}, null, 12, _hoisted_3$
|
|
611
|
+
}, null, 12, _hoisted_3$7)
|
|
612
612
|
]),
|
|
613
613
|
_: 1
|
|
614
614
|
}),
|
|
615
615
|
createVNode(_component_el_tooltip, {
|
|
616
616
|
class: "item",
|
|
617
617
|
effect: "dark",
|
|
618
|
-
content: "
|
|
618
|
+
content: "\u53CD\u64A4\u56DE",
|
|
619
619
|
placement: "top"
|
|
620
620
|
}, {
|
|
621
621
|
default: withCtx(() => [
|
|
@@ -627,7 +627,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
627
627
|
height: "40",
|
|
628
628
|
alt: "",
|
|
629
629
|
onClick: _cache[1] || (_cache[1] = ($event) => $options.forward($event))
|
|
630
|
-
}, null, 12, _hoisted_4$
|
|
630
|
+
}, null, 12, _hoisted_4$4)
|
|
631
631
|
]),
|
|
632
632
|
_: 1
|
|
633
633
|
}),
|
|
@@ -638,7 +638,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
638
638
|
createVNode(_component_el_tooltip, {
|
|
639
639
|
class: "item",
|
|
640
640
|
effect: "dark",
|
|
641
|
-
content: "
|
|
641
|
+
content: "\u6E05\u9664\u683C\u5F0F",
|
|
642
642
|
placement: "top"
|
|
643
643
|
}, {
|
|
644
644
|
default: withCtx(() => [
|
|
@@ -655,7 +655,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
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(() => [
|
|
@@ -686,7 +686,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
686
686
|
createVNode(_component_el_tooltip, {
|
|
687
687
|
class: "item",
|
|
688
688
|
effect: "dark",
|
|
689
|
-
content: "
|
|
689
|
+
content: "\u5B57\u53F7",
|
|
690
690
|
placement: "top"
|
|
691
691
|
}, {
|
|
692
692
|
default: withCtx(() => [
|
|
@@ -736,7 +736,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
736
736
|
createVNode(_component_el_tooltip, {
|
|
737
737
|
class: "item",
|
|
738
738
|
effect: "dark",
|
|
739
|
-
content: "
|
|
739
|
+
content: "\u6807\u9898",
|
|
740
740
|
placement: "top"
|
|
741
741
|
}, {
|
|
742
742
|
default: withCtx(() => [
|
|
@@ -757,7 +757,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
757
757
|
createVNode(_component_el_tooltip, {
|
|
758
758
|
class: "item",
|
|
759
759
|
effect: "dark",
|
|
760
|
-
content: "
|
|
760
|
+
content: "\u52A0\u7C97",
|
|
761
761
|
placement: "top"
|
|
762
762
|
}, {
|
|
763
763
|
default: withCtx(() => [
|
|
@@ -785,7 +785,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
785
785
|
createVNode(_component_el_tooltip, {
|
|
786
786
|
class: "item",
|
|
787
787
|
effect: "dark",
|
|
788
|
-
content: "
|
|
788
|
+
content: "\u5217\u8868",
|
|
789
789
|
placement: "top"
|
|
790
790
|
}, {
|
|
791
791
|
default: withCtx(() => [
|
|
@@ -819,13 +819,13 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
819
819
|
onClick: _cache[8] || (_cache[8] = ($event) => $options.updatePosition(() => {
|
|
820
820
|
$options.setStyle("makeUnorderedList");
|
|
821
821
|
}))
|
|
822
|
-
}, "
|
|
822
|
+
}, "\u65E0\u5E8F\u5217\u8868"),
|
|
823
823
|
createElementVNode("li", {
|
|
824
824
|
"data-editor-id": "makeHeader",
|
|
825
825
|
onClick: _cache[9] || (_cache[9] = ($event) => $options.updatePosition(() => {
|
|
826
826
|
$options.setStyle("makeOrderedList");
|
|
827
827
|
}))
|
|
828
|
-
}, "
|
|
828
|
+
}, "\u6709\u5E8F\u5217\u8868")
|
|
829
829
|
])), [
|
|
830
830
|
[_directive_click_outside, $options.handlePopover]
|
|
831
831
|
])
|
|
@@ -836,7 +836,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
836
836
|
createVNode(_component_el_tooltip, {
|
|
837
837
|
class: "item",
|
|
838
838
|
effect: "dark",
|
|
839
|
-
content: "
|
|
839
|
+
content: "\u503E\u659C",
|
|
840
840
|
placement: "top"
|
|
841
841
|
}, {
|
|
842
842
|
default: withCtx(() => [
|
|
@@ -856,7 +856,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
856
856
|
createVNode(_component_el_tooltip, {
|
|
857
857
|
class: "item",
|
|
858
858
|
effect: "dark",
|
|
859
|
-
content: "
|
|
859
|
+
content: "\u4E0B\u5212\u7EBF",
|
|
860
860
|
placement: "top"
|
|
861
861
|
}, {
|
|
862
862
|
default: withCtx(() => [
|
|
@@ -877,18 +877,18 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
877
877
|
key: 0,
|
|
878
878
|
class: "item",
|
|
879
879
|
effect: "dark",
|
|
880
|
-
content: "
|
|
880
|
+
content: "\u94FE\u63A5",
|
|
881
881
|
placement: "top"
|
|
882
882
|
}, {
|
|
883
883
|
default: withCtx(() => [
|
|
884
|
-
createElementVNode("div", _hoisted_30, [
|
|
884
|
+
createElementVNode("div", _hoisted_30$1, [
|
|
885
885
|
createElementVNode("img", {
|
|
886
886
|
src: $options.getImageUrl("icon_web_link@2x.png"),
|
|
887
887
|
width: "40",
|
|
888
888
|
height: "40",
|
|
889
889
|
alt: "",
|
|
890
890
|
onClick: _cache[12] || (_cache[12] = (...args) => $options.insertLink && $options.insertLink(...args))
|
|
891
|
-
}, null, 8, _hoisted_31)
|
|
891
|
+
}, null, 8, _hoisted_31$1)
|
|
892
892
|
])
|
|
893
893
|
]),
|
|
894
894
|
_: 1
|
|
@@ -896,7 +896,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
896
896
|
createVNode(_component_el_tooltip, {
|
|
897
897
|
class: "item",
|
|
898
898
|
effect: "dark",
|
|
899
|
-
content: "
|
|
899
|
+
content: "\u9996\u884C\u7F29\u8FDB",
|
|
900
900
|
placement: "top"
|
|
901
901
|
}, {
|
|
902
902
|
default: withCtx(() => [
|
|
@@ -906,14 +906,14 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
906
906
|
height: "40",
|
|
907
907
|
alt: "",
|
|
908
908
|
onClick: _cache[13] || (_cache[13] = ($event) => $options.setStyle("setIndent"))
|
|
909
|
-
}, null, 8, _hoisted_32)
|
|
909
|
+
}, null, 8, _hoisted_32$1)
|
|
910
910
|
]),
|
|
911
911
|
_: 1
|
|
912
912
|
}),
|
|
913
913
|
createVNode(_component_el_tooltip, {
|
|
914
914
|
class: "item",
|
|
915
915
|
effect: "dark",
|
|
916
|
-
content: "
|
|
916
|
+
content: "\u6587\u5B57\u989C\u8272",
|
|
917
917
|
placement: "top"
|
|
918
918
|
}, {
|
|
919
919
|
default: withCtx(() => [
|
|
@@ -957,7 +957,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
957
957
|
createVNode(_component_el_tooltip, {
|
|
958
958
|
class: "item",
|
|
959
959
|
effect: "dark",
|
|
960
|
-
content: "
|
|
960
|
+
content: "\u5BF9\u9F50\u65B9\u5F0F",
|
|
961
961
|
placement: "top"
|
|
962
962
|
}, {
|
|
963
963
|
default: withCtx(() => [
|
|
@@ -1015,7 +1015,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1015
1015
|
createVNode(_component_el_tooltip, {
|
|
1016
1016
|
class: "item",
|
|
1017
1017
|
effect: "dark",
|
|
1018
|
-
content: "
|
|
1018
|
+
content: "\u63D2\u5165\u56FE\u7247",
|
|
1019
1019
|
placement: "top"
|
|
1020
1020
|
}, {
|
|
1021
1021
|
default: withCtx(() => [
|
|
@@ -1037,11 +1037,11 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1037
1037
|
createElementVNode("li", {
|
|
1038
1038
|
class: normalizeClass([$data.activeImgType === "normal" ? "active" : ""]),
|
|
1039
1039
|
onClick: _cache[18] || (_cache[18] = ($event) => $options.insertImg("normal"))
|
|
1040
|
-
}, toDisplayString("
|
|
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$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1052
1052
|
key: 2,
|
|
1053
1053
|
class: "item",
|
|
1054
1054
|
effect: "dark",
|
|
1055
|
-
content: "
|
|
1055
|
+
content: "\u63D2\u5165\u89C6\u9891",
|
|
1056
1056
|
placement: "top"
|
|
1057
1057
|
}, {
|
|
1058
1058
|
default: withCtx(() => [
|
|
@@ -1070,7 +1070,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1070
1070
|
key: 3,
|
|
1071
1071
|
class: "item",
|
|
1072
1072
|
effect: "dark",
|
|
1073
|
-
content: "
|
|
1073
|
+
content: "\u63D2\u5165\u6587\u7AE0/\u89C6\u9891",
|
|
1074
1074
|
placement: "top"
|
|
1075
1075
|
}, {
|
|
1076
1076
|
default: withCtx(() => [
|
|
@@ -1088,7 +1088,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1088
1088
|
key: 4,
|
|
1089
1089
|
class: "item",
|
|
1090
1090
|
effect: "dark",
|
|
1091
|
-
content: "
|
|
1091
|
+
content: "\u91C7\u96C6\u6587\u7AE0",
|
|
1092
1092
|
placement: "top"
|
|
1093
1093
|
}, {
|
|
1094
1094
|
default: withCtx(() => [
|
|
@@ -1105,15 +1105,17 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1105
1105
|
])
|
|
1106
1106
|
])) : createCommentVNode("", true);
|
|
1107
1107
|
}
|
|
1108
|
-
const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-
|
|
1108
|
+
const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-52e48332"]]);
|
|
1109
1109
|
const __vite_glob_0_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAmCAYAAAClI5npAAAA0UlEQVR42uWYwQnDMAxFfckAXkFDmGzgS1foDpnFS3gTb+IFtIDyA4UeBKUtNR8qwTvlkAdyfmSletySmRUwgIIJOijXs9VcLxegwNVDRFYLdHtdCg6wrRKY9l4NUFYIqH1WDeTfCXxXE9w5Ar4tQhBwh7SBjSDg2lJJAj47SAI+OwgC7pDuJAGfHQQBnx0kAZ8dBAF3SOtTgCchybjV2QLKFpihW6BAQn6GA0i4KG4g037H4QaSDiTWUMocyweQcFezBjLrer5TFxR/uaKhL6lOdeUQ8G6X1pQAAAAASUVORK5CYII=";
|
|
1110
|
+
const index_vue_vue_type_style_index_0_lang$4 = "";
|
|
1110
1111
|
const _hoisted_1$6 = { key: 0 };
|
|
1111
|
-
const _hoisted_2$
|
|
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$3 = {
|
|
1113
1115
|
key: 0,
|
|
1114
1116
|
class: "dialog-footer"
|
|
1115
1117
|
};
|
|
1116
|
-
const _sfc_main$6 =
|
|
1118
|
+
const _sfc_main$6 = defineComponent({
|
|
1117
1119
|
__name: "index",
|
|
1118
1120
|
props: {
|
|
1119
1121
|
visible: { type: Boolean, default: false },
|
|
@@ -1155,23 +1157,23 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1155
1157
|
}, {
|
|
1156
1158
|
header: withCtx(() => [
|
|
1157
1159
|
_ctx.showTitle ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
1158
|
-
createElementVNode("div", _hoisted_2$
|
|
1159
|
-
|
|
1160
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
1161
|
+
_hoisted_3$6,
|
|
1160
1162
|
renderSlot(_ctx.$slots, "title")
|
|
1161
1163
|
])
|
|
1162
1164
|
])) : createCommentVNode("", true)
|
|
1163
1165
|
]),
|
|
1164
1166
|
footer: withCtx(() => [
|
|
1165
|
-
_ctx.showBtn ? (openBlock(), createElementBlock("span",
|
|
1167
|
+
_ctx.showBtn ? (openBlock(), createElementBlock("span", _hoisted_4$3, [
|
|
1166
1168
|
createVNode(unref(ElButton), {
|
|
1167
1169
|
style: { "width": "120px", "border-color": "#cccccc", "color": "#333333" },
|
|
1168
1170
|
plain: "",
|
|
1169
1171
|
round: "",
|
|
1170
1172
|
onClick: handleClose
|
|
1171
1173
|
}, {
|
|
1172
|
-
default: withCtx(() =>
|
|
1173
|
-
createTextVNode("
|
|
1174
|
-
])
|
|
1174
|
+
default: withCtx(() => [
|
|
1175
|
+
createTextVNode("\u53D6\u6D88")
|
|
1176
|
+
]),
|
|
1175
1177
|
_: 1
|
|
1176
1178
|
}),
|
|
1177
1179
|
createVNode(unref(ElButton), {
|
|
@@ -1180,9 +1182,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1180
1182
|
type: "primary",
|
|
1181
1183
|
onClick: confirm
|
|
1182
1184
|
}, {
|
|
1183
|
-
default: withCtx(() =>
|
|
1184
|
-
createTextVNode("
|
|
1185
|
-
])
|
|
1185
|
+
default: withCtx(() => [
|
|
1186
|
+
createTextVNode("\u786E\u8BA4")
|
|
1187
|
+
]),
|
|
1186
1188
|
_: 1
|
|
1187
1189
|
})
|
|
1188
1190
|
])) : createCommentVNode("", true)
|
|
@@ -1195,14 +1197,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1195
1197
|
};
|
|
1196
1198
|
}
|
|
1197
1199
|
});
|
|
1198
|
-
const index_vue_vue_type_style_index_0_lang$4 = "";
|
|
1199
1200
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
1200
1201
|
function getDefaultExportFromCjs(x) {
|
|
1201
1202
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1202
1203
|
}
|
|
1203
|
-
var date$
|
|
1204
|
-
|
|
1205
|
-
Object.defineProperty(date, "__esModule", { value: true });
|
|
1204
|
+
var date$1 = { exports: {} };
|
|
1205
|
+
Object.defineProperty(date$1.exports, "__esModule", { value: true });
|
|
1206
1206
|
function replacementDate(data, fmt) {
|
|
1207
1207
|
for (var k in data) {
|
|
1208
1208
|
if (new RegExp("(" + k + ")").test(fmt)) {
|
|
@@ -1217,130 +1217,126 @@ function replacementYear(date2, fmt) {
|
|
|
1217
1217
|
}
|
|
1218
1218
|
return fmt;
|
|
1219
1219
|
}
|
|
1220
|
-
var DateClass = (
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1220
|
+
var DateClass = function() {
|
|
1221
|
+
function DateClass2() {
|
|
1222
|
+
}
|
|
1223
|
+
DateClass2.prototype.format = function(date2, fmt) {
|
|
1224
|
+
if (fmt === void 0) {
|
|
1225
|
+
fmt = "YYYY-MM-DD HH:mm:ss";
|
|
1224
1226
|
}
|
|
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
|
-
};
|
|
1227
|
+
if (!date2)
|
|
1228
|
+
return "";
|
|
1229
|
+
var timeData = typeof date2 === "string" ? new Date(date2.replace(/-/g, "/")) : date2;
|
|
1230
|
+
timeData = typeof date2 === "number" ? new Date(date2) : timeData;
|
|
1231
|
+
var o = {
|
|
1232
|
+
"M+": timeData.getMonth() + 1,
|
|
1233
|
+
"D+": timeData.getDate(),
|
|
1234
|
+
"h+": timeData.getHours() % 12 === 0 ? 12 : timeData.getHours() % 12,
|
|
1235
|
+
"H+": timeData.getHours(),
|
|
1236
|
+
"m+": timeData.getMinutes(),
|
|
1237
|
+
"s+": timeData.getSeconds(),
|
|
1238
|
+
"q+": Math.floor((timeData.getMonth() + 3) / 3),
|
|
1239
|
+
"S": timeData.getMilliseconds()
|
|
1280
1240
|
};
|
|
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 "刚刚";
|
|
1241
|
+
var week = {
|
|
1242
|
+
"0": "\u65E5",
|
|
1243
|
+
"1": "\u4E00",
|
|
1244
|
+
"2": "\u4E8C",
|
|
1245
|
+
"3": "\u4E09",
|
|
1246
|
+
"4": "\u56DB",
|
|
1247
|
+
"5": "\u4E94",
|
|
1248
|
+
"6": "\u516D"
|
|
1301
1249
|
};
|
|
1302
|
-
|
|
1303
|
-
|
|
1250
|
+
fmt = replacementYear(timeData, fmt);
|
|
1251
|
+
if (/(E+)/.test(fmt)) {
|
|
1252
|
+
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "\u661F\u671F" : "\u5468" : "") + week["".concat(timeData.getDay(), " ")]);
|
|
1253
|
+
}
|
|
1254
|
+
return replacementDate(o, fmt);
|
|
1255
|
+
};
|
|
1256
|
+
DateClass2.prototype.addDaysToDate = function(date2, days) {
|
|
1257
|
+
var d = typeof date2 === "object" ? date2 : new Date(date2);
|
|
1258
|
+
d.setDate(d.getDate() + days);
|
|
1259
|
+
return d.toISOString().split("T")[0];
|
|
1260
|
+
};
|
|
1261
|
+
DateClass2.prototype.remainTime = function(endTime, startTime) {
|
|
1262
|
+
if (startTime === void 0) {
|
|
1263
|
+
startTime = new Date();
|
|
1264
|
+
}
|
|
1265
|
+
var ts = Number(endTime) - Number(startTime);
|
|
1266
|
+
var dd = Math.floor(ts / 1e3 / 60 / 60 / 24);
|
|
1267
|
+
var hh = Math.floor(ts / 1e3 / 60 / 60 % 24);
|
|
1268
|
+
var mm = Math.floor(ts / 1e3 / 60 % 60);
|
|
1269
|
+
var ss = Math.floor(ts / 1e3 % 60);
|
|
1270
|
+
if (ts <= 0)
|
|
1271
|
+
return false;
|
|
1272
|
+
return {
|
|
1273
|
+
dd: dd < 10 ? "0".concat(dd) : dd,
|
|
1274
|
+
hh: hh < 10 ? "0".concat(hh) : hh,
|
|
1275
|
+
mm: mm < 10 ? "0".concat(mm) : mm,
|
|
1276
|
+
ss: ss < 10 ? "0".concat(ss) : ss
|
|
1304
1277
|
};
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1278
|
+
};
|
|
1279
|
+
DateClass2.prototype.formatPassTime = function(startTime) {
|
|
1280
|
+
var currentTime = new Date();
|
|
1281
|
+
var time = currentTime - startTime;
|
|
1282
|
+
var year = Math.floor(time / (1e3 * 60 * 60 * 24) / 30 / 12);
|
|
1283
|
+
if (year)
|
|
1284
|
+
return "".concat(year, "\u5E74\u524D");
|
|
1285
|
+
var month = Math.floor(time / (1e3 * 60 * 60 * 24) / 30);
|
|
1286
|
+
if (month)
|
|
1287
|
+
return "".concat(month, "\u4E2A\u6708\u524D");
|
|
1288
|
+
var day = Math.floor(time / (1e3 * 60 * 60 * 24));
|
|
1289
|
+
if (day)
|
|
1290
|
+
return "".concat(day, "\u5929\u524D");
|
|
1291
|
+
var hour = Math.floor(time / (1e3 * 60 * 60));
|
|
1292
|
+
if (hour)
|
|
1293
|
+
return "".concat(hour, "\u5C0F\u65F6\u524D");
|
|
1294
|
+
var min = Math.floor(time / (1e3 * 60));
|
|
1295
|
+
if (min)
|
|
1296
|
+
return "".concat(min, "\u5206\u949F\u524D");
|
|
1297
|
+
else
|
|
1298
|
+
return "\u521A\u521A";
|
|
1299
|
+
};
|
|
1300
|
+
DateClass2.prototype.formatPassTimeForList = function(time) {
|
|
1301
|
+
return DateClass2.prototype.formatPassTimeForDetail(time, "YYYY\u5E74MM\u6708DD\u65E5", true);
|
|
1302
|
+
};
|
|
1303
|
+
DateClass2.prototype.formatPassTimeForDetail = function(time, fmt, noYear) {
|
|
1304
|
+
if (fmt === void 0) {
|
|
1305
|
+
fmt = "YYYY-MM-DD";
|
|
1306
|
+
}
|
|
1307
|
+
var date2 = typeof time === "number" ? new Date(time) : new Date((time || "").replace(/-/g, "/"));
|
|
1308
|
+
var diff = (new Date().getTime() - date2.getTime()) / 1e3;
|
|
1309
|
+
var dayDiff = Math.floor(diff / 86400);
|
|
1310
|
+
var isValidDate = Object.prototype.toString.call(date2) === "[object Date]" && !isNaN(date2.getTime());
|
|
1311
|
+
if (!isValidDate)
|
|
1312
|
+
return "";
|
|
1313
|
+
var formatDate = function() {
|
|
1314
|
+
var today = new Date(date2);
|
|
1315
|
+
var o = {
|
|
1316
|
+
"Y+": today.getFullYear(),
|
|
1317
|
+
"M+": ("0" + (today.getMonth() + 1)).slice(-2),
|
|
1318
|
+
"D+": ("0" + today.getDate()).slice(-2)
|
|
1329
1319
|
};
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1320
|
+
fmt = replacementYear(date2, fmt);
|
|
1321
|
+
var year = today.getFullYear();
|
|
1322
|
+
if (!(new Date().getFullYear() > year) && noYear) {
|
|
1323
|
+
var backData = replacementDate(o, fmt);
|
|
1324
|
+
return backData.split("\u5E74")[1];
|
|
1334
1325
|
}
|
|
1335
|
-
return
|
|
1326
|
+
return replacementDate(o, fmt);
|
|
1336
1327
|
};
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
)
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1328
|
+
if (dayDiff === -1) {
|
|
1329
|
+
return "\u521A\u521A";
|
|
1330
|
+
} else if (isNaN(dayDiff) || dayDiff < 0 || dayDiff >= 15) {
|
|
1331
|
+
return formatDate();
|
|
1332
|
+
}
|
|
1333
|
+
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";
|
|
1334
|
+
};
|
|
1335
|
+
return DateClass2;
|
|
1336
|
+
}();
|
|
1337
|
+
date$1.exports = new DateClass();
|
|
1338
|
+
const date = /* @__PURE__ */ getDefaultExportFromCjs(date$1.exports);
|
|
1339
|
+
var tools$1 = { exports: {} };
|
|
1344
1340
|
var _listCacheClear;
|
|
1345
1341
|
var hasRequired_listCacheClear;
|
|
1346
1342
|
function require_listCacheClear() {
|
|
@@ -2247,7 +2243,6 @@ function requireStubFalse() {
|
|
|
2247
2243
|
stubFalse_1 = stubFalse;
|
|
2248
2244
|
return stubFalse_1;
|
|
2249
2245
|
}
|
|
2250
|
-
isBuffer.exports;
|
|
2251
2246
|
var hasRequiredIsBuffer;
|
|
2252
2247
|
function requireIsBuffer() {
|
|
2253
2248
|
if (hasRequiredIsBuffer)
|
|
@@ -2327,7 +2322,6 @@ function require_baseUnary() {
|
|
|
2327
2322
|
return _baseUnary;
|
|
2328
2323
|
}
|
|
2329
2324
|
var _nodeUtil = { exports: {} };
|
|
2330
|
-
_nodeUtil.exports;
|
|
2331
2325
|
var hasRequired_nodeUtil;
|
|
2332
2326
|
function require_nodeUtil() {
|
|
2333
2327
|
if (hasRequired_nodeUtil)
|
|
@@ -2377,11 +2371,7 @@ function require_arrayLikeKeys() {
|
|
|
2377
2371
|
function arrayLikeKeys(value, inherited) {
|
|
2378
2372
|
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
2373
|
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)))) {
|
|
2374
|
+
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
2375
|
result.push(key);
|
|
2386
2376
|
}
|
|
2387
2377
|
}
|
|
@@ -2561,7 +2551,6 @@ function require_baseAssignIn() {
|
|
|
2561
2551
|
return _baseAssignIn;
|
|
2562
2552
|
}
|
|
2563
2553
|
var _cloneBuffer = { exports: {} };
|
|
2564
|
-
_cloneBuffer.exports;
|
|
2565
2554
|
var hasRequired_cloneBuffer;
|
|
2566
2555
|
function require_cloneBuffer() {
|
|
2567
2556
|
if (hasRequired_cloneBuffer)
|
|
@@ -3175,13 +3164,13 @@ function requireCloneDeep() {
|
|
|
3175
3164
|
return cloneDeep_1;
|
|
3176
3165
|
}
|
|
3177
3166
|
/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3178
|
-
var
|
|
3179
|
-
var
|
|
3180
|
-
function
|
|
3181
|
-
if (
|
|
3182
|
-
return
|
|
3183
|
-
|
|
3184
|
-
|
|
3167
|
+
var _clipboardCopy_4_0_1_clipboardCopy;
|
|
3168
|
+
var hasRequired_clipboardCopy_4_0_1_clipboardCopy;
|
|
3169
|
+
function require_clipboardCopy_4_0_1_clipboardCopy() {
|
|
3170
|
+
if (hasRequired_clipboardCopy_4_0_1_clipboardCopy)
|
|
3171
|
+
return _clipboardCopy_4_0_1_clipboardCopy;
|
|
3172
|
+
hasRequired_clipboardCopy_4_0_1_clipboardCopy = 1;
|
|
3173
|
+
_clipboardCopy_4_0_1_clipboardCopy = clipboardCopy;
|
|
3185
3174
|
function makeError() {
|
|
3186
3175
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
3187
3176
|
}
|
|
@@ -3224,270 +3213,266 @@ function requireClipboardCopy() {
|
|
|
3224
3213
|
}
|
|
3225
3214
|
}
|
|
3226
3215
|
}
|
|
3227
|
-
return
|
|
3216
|
+
return _clipboardCopy_4_0_1_clipboardCopy;
|
|
3228
3217
|
}
|
|
3229
|
-
|
|
3230
|
-
Object.defineProperty(tools, "__esModule", { value: true });
|
|
3218
|
+
Object.defineProperty(tools$1.exports, "__esModule", { value: true });
|
|
3231
3219
|
var previous = 0;
|
|
3232
3220
|
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;
|
|
3221
|
+
var ToolsClass = function() {
|
|
3222
|
+
function ToolsClass2() {
|
|
3223
|
+
var _this = this;
|
|
3224
|
+
this.stopScroll = function(className) {
|
|
3338
3225
|
if (!(window && window.document)) {
|
|
3339
|
-
return new Error("
|
|
3226
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3340
3227
|
}
|
|
3341
|
-
var
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
script.src = url;
|
|
3351
|
-
script.id = id;
|
|
3352
|
-
script.onload = function() {
|
|
3353
|
-
_this.__loaded__[id] = true;
|
|
3354
|
-
resolve();
|
|
3355
|
-
};
|
|
3356
|
-
script.onerror = function(e) {
|
|
3357
|
-
reject(e);
|
|
3358
|
-
};
|
|
3359
|
-
document.body.appendChild(script);
|
|
3360
|
-
});
|
|
3361
|
-
};
|
|
3362
|
-
ToolsClass2.prototype.loadCss = function(url) {
|
|
3363
|
-
var _this = this;
|
|
3364
|
-
if (!(window && window.document)) {
|
|
3365
|
-
return new Error("仅支持浏览器");
|
|
3228
|
+
var html = document.documentElement;
|
|
3229
|
+
html.style.overflow = "hidden";
|
|
3230
|
+
html.style.height = "100%";
|
|
3231
|
+
var body = document.body;
|
|
3232
|
+
body.style.overflow = "hidden";
|
|
3233
|
+
body.style.height = "100%";
|
|
3234
|
+
if (className) {
|
|
3235
|
+
var dom = document.querySelector(".".concat(className));
|
|
3236
|
+
dom && dom.addEventListener("touchmove", _this.__setDefault__);
|
|
3366
3237
|
}
|
|
3367
|
-
var name = this.getUrlName(url);
|
|
3368
|
-
var id = "css_" + name;
|
|
3369
|
-
return new Promise(function(resolve, reject) {
|
|
3370
|
-
if (_this.__loaded__[id]) {
|
|
3371
|
-
return resolve();
|
|
3372
|
-
}
|
|
3373
|
-
var link = document.createElement("link");
|
|
3374
|
-
link.type = "text/css";
|
|
3375
|
-
link.rel = "stylesheet";
|
|
3376
|
-
link.href = url;
|
|
3377
|
-
link.id = id;
|
|
3378
|
-
link.onload = function() {
|
|
3379
|
-
_this.__loaded__[id] = true;
|
|
3380
|
-
resolve();
|
|
3381
|
-
};
|
|
3382
|
-
link.onerror = function(e) {
|
|
3383
|
-
reject(e);
|
|
3384
|
-
};
|
|
3385
|
-
document.head.appendChild(link);
|
|
3386
|
-
});
|
|
3387
3238
|
};
|
|
3388
|
-
|
|
3239
|
+
this.startScroll = function(className) {
|
|
3389
3240
|
if (!(window && window.document)) {
|
|
3390
|
-
return new Error("
|
|
3241
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3391
3242
|
}
|
|
3392
|
-
var
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
}
|
|
3402
|
-
if (length === void 0) {
|
|
3403
|
-
length = 0;
|
|
3243
|
+
var html = document.documentElement;
|
|
3244
|
+
html.style.overflow = "visible";
|
|
3245
|
+
html.style.height = "auto";
|
|
3246
|
+
var body = document.body;
|
|
3247
|
+
body.style.overflow = "visible";
|
|
3248
|
+
body.style.height = "auto";
|
|
3249
|
+
if (className) {
|
|
3250
|
+
var dom = document.querySelector(".".concat(className));
|
|
3251
|
+
dom && dom.removeEventListener("touchmove", _this.__setDefault__);
|
|
3404
3252
|
}
|
|
3405
|
-
return target.slice(0, length);
|
|
3406
3253
|
};
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3254
|
+
this.objectToArray = function(obj) {
|
|
3255
|
+
var arr = [];
|
|
3256
|
+
if (typeof obj === "object") {
|
|
3257
|
+
for (var key in obj) {
|
|
3258
|
+
if (obj.hasOwnProperty(key)) {
|
|
3259
|
+
arr.push([key, obj[key]].join("="));
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3410
3262
|
}
|
|
3411
|
-
return
|
|
3263
|
+
return arr;
|
|
3412
3264
|
};
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3265
|
+
this.convertKeyValueEnum = function(obj) {
|
|
3266
|
+
var result = {};
|
|
3267
|
+
if (typeof obj === "object") {
|
|
3268
|
+
for (var key in obj) {
|
|
3269
|
+
if (obj.hasOwnProperty(key)) {
|
|
3270
|
+
result[obj[key]] = key;
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3416
3273
|
}
|
|
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;
|
|
3274
|
+
return result;
|
|
3426
3275
|
};
|
|
3427
|
-
|
|
3428
|
-
return
|
|
3276
|
+
this.isDefined = function(val) {
|
|
3277
|
+
return val !== void 0 && val !== null;
|
|
3429
3278
|
};
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3279
|
+
this.__loaded__ = {};
|
|
3280
|
+
this.__setDefault__ = function(e) {
|
|
3281
|
+
e && e.preventDefault();
|
|
3433
3282
|
};
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3283
|
+
}
|
|
3284
|
+
ToolsClass2.prototype.deepCopy = function(data) {
|
|
3285
|
+
return JSON.parse(JSON.stringify(data));
|
|
3286
|
+
};
|
|
3287
|
+
ToolsClass2.prototype.deepCopy2 = function(obj) {
|
|
3288
|
+
var _obj = Array.isArray(obj) ? [] : {};
|
|
3289
|
+
for (var i in obj) {
|
|
3290
|
+
_obj[i] = typeof obj[i] === "object" ? this.deepCopy2(obj[i]) : obj[i];
|
|
3291
|
+
}
|
|
3292
|
+
return _obj;
|
|
3293
|
+
};
|
|
3294
|
+
ToolsClass2.prototype.deepCopy3 = function(obj) {
|
|
3295
|
+
var deepcopy = requireCloneDeep();
|
|
3296
|
+
return deepcopy(obj);
|
|
3297
|
+
};
|
|
3298
|
+
ToolsClass2.prototype.debounce = function(func, wait) {
|
|
3299
|
+
var delay = function() {
|
|
3300
|
+
var args = arguments;
|
|
3301
|
+
if (timeout)
|
|
3302
|
+
clearTimeout(timeout);
|
|
3303
|
+
timeout = setTimeout(function() {
|
|
3304
|
+
func.apply(delay, args);
|
|
3305
|
+
}, wait);
|
|
3437
3306
|
};
|
|
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
|
-
}
|
|
3307
|
+
return delay;
|
|
3308
|
+
};
|
|
3309
|
+
ToolsClass2.prototype.throttle = function(func, wait) {
|
|
3310
|
+
var delay = function() {
|
|
3311
|
+
var now = Date.now();
|
|
3312
|
+
if (now - previous > wait) {
|
|
3313
|
+
func.apply(delay, arguments);
|
|
3314
|
+
previous = now;
|
|
3459
3315
|
}
|
|
3460
|
-
return false;
|
|
3461
3316
|
};
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3317
|
+
return delay;
|
|
3318
|
+
};
|
|
3319
|
+
ToolsClass2.prototype.getUrlName = function(url) {
|
|
3320
|
+
return url && url.split("?")[0].split("/").reverse()[0];
|
|
3321
|
+
};
|
|
3322
|
+
ToolsClass2.prototype.loadJs = function(url) {
|
|
3323
|
+
var _this = this;
|
|
3324
|
+
if (!(window && window.document)) {
|
|
3325
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3326
|
+
}
|
|
3327
|
+
var name = this.getUrlName(url);
|
|
3328
|
+
var id = "js_" + name;
|
|
3329
|
+
return new Promise(function(resolve, reject) {
|
|
3330
|
+
if (_this.__loaded__[id]) {
|
|
3331
|
+
return resolve();
|
|
3465
3332
|
}
|
|
3466
|
-
|
|
3467
|
-
|
|
3333
|
+
var script = document.createElement("script");
|
|
3334
|
+
script.type = "text/javascript";
|
|
3335
|
+
script.async = true;
|
|
3336
|
+
script.src = url;
|
|
3337
|
+
script.id = id;
|
|
3338
|
+
script.onload = function() {
|
|
3339
|
+
_this.__loaded__[id] = true;
|
|
3340
|
+
resolve();
|
|
3341
|
+
};
|
|
3342
|
+
script.onerror = function(e) {
|
|
3343
|
+
reject(e);
|
|
3344
|
+
};
|
|
3345
|
+
document.body.appendChild(script);
|
|
3346
|
+
});
|
|
3347
|
+
};
|
|
3348
|
+
ToolsClass2.prototype.loadCss = function(url) {
|
|
3349
|
+
var _this = this;
|
|
3350
|
+
if (!(window && window.document)) {
|
|
3351
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3352
|
+
}
|
|
3353
|
+
var name = this.getUrlName(url);
|
|
3354
|
+
var id = "css_" + name;
|
|
3355
|
+
return new Promise(function(resolve, reject) {
|
|
3356
|
+
if (_this.__loaded__[id]) {
|
|
3357
|
+
return resolve();
|
|
3468
3358
|
}
|
|
3469
|
-
|
|
3470
|
-
|
|
3359
|
+
var link = document.createElement("link");
|
|
3360
|
+
link.type = "text/css";
|
|
3361
|
+
link.rel = "stylesheet";
|
|
3362
|
+
link.href = url;
|
|
3363
|
+
link.id = id;
|
|
3364
|
+
link.onload = function() {
|
|
3365
|
+
_this.__loaded__[id] = true;
|
|
3366
|
+
resolve();
|
|
3367
|
+
};
|
|
3368
|
+
link.onerror = function(e) {
|
|
3369
|
+
reject(e);
|
|
3370
|
+
};
|
|
3371
|
+
document.head.appendChild(link);
|
|
3372
|
+
});
|
|
3373
|
+
};
|
|
3374
|
+
ToolsClass2.prototype.clipboard = function(str) {
|
|
3375
|
+
if (!(window && window.document)) {
|
|
3376
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3377
|
+
}
|
|
3378
|
+
var copy = require_clipboardCopy_4_0_1_clipboardCopy();
|
|
3379
|
+
return copy(str);
|
|
3380
|
+
};
|
|
3381
|
+
ToolsClass2.prototype.firstUpperCase = function(str) {
|
|
3382
|
+
return str.charAt(0).toUpperCase() + str.toString().slice(1);
|
|
3383
|
+
};
|
|
3384
|
+
ToolsClass2.prototype.slice = function(target, length) {
|
|
3385
|
+
if (target === void 0) {
|
|
3386
|
+
target = "";
|
|
3387
|
+
}
|
|
3388
|
+
if (length === void 0) {
|
|
3389
|
+
length = 0;
|
|
3390
|
+
}
|
|
3391
|
+
return target.slice(0, length);
|
|
3392
|
+
};
|
|
3393
|
+
ToolsClass2.prototype.guid = function() {
|
|
3394
|
+
function S4() {
|
|
3395
|
+
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
3396
|
+
}
|
|
3397
|
+
return S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4();
|
|
3398
|
+
};
|
|
3399
|
+
ToolsClass2.prototype.getBytesOfText = function(str) {
|
|
3400
|
+
if (str === void 0) {
|
|
3401
|
+
str = "";
|
|
3402
|
+
}
|
|
3403
|
+
return str.replace(/[^\u0000-\u00ff]/g, "aa").length;
|
|
3404
|
+
};
|
|
3405
|
+
ToolsClass2.prototype.uniqueArr = function(arr) {
|
|
3406
|
+
return Array.from(new Set(arr));
|
|
3407
|
+
};
|
|
3408
|
+
ToolsClass2.prototype.swapArray = function(array, index1, index2) {
|
|
3409
|
+
var _a;
|
|
3410
|
+
_a = [array[index2], array[index1]], array[index1] = _a[0], array[index2] = _a[1];
|
|
3411
|
+
return array;
|
|
3412
|
+
};
|
|
3413
|
+
ToolsClass2.prototype.filterEmoji = function(str) {
|
|
3414
|
+
return str.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/mg, "");
|
|
3415
|
+
};
|
|
3416
|
+
ToolsClass2.prototype.containsEmoji = function(str) {
|
|
3417
|
+
var reg = /\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/mg;
|
|
3418
|
+
return reg.test(str);
|
|
3419
|
+
};
|
|
3420
|
+
ToolsClass2.prototype.containsHanZi = function(str) {
|
|
3421
|
+
var reg = /[\u4e00-\u9fa5]/mg;
|
|
3422
|
+
return reg.test(str);
|
|
3423
|
+
};
|
|
3424
|
+
ToolsClass2.prototype.isEmpty = function(val) {
|
|
3425
|
+
if (val == null)
|
|
3426
|
+
return true;
|
|
3427
|
+
if (typeof val === "boolean")
|
|
3428
|
+
return false;
|
|
3429
|
+
if (typeof val === "number")
|
|
3430
|
+
return !val;
|
|
3431
|
+
if (val instanceof Error)
|
|
3432
|
+
return val.message === "";
|
|
3433
|
+
switch (Object.prototype.toString.call(val)) {
|
|
3434
|
+
case "[object String]":
|
|
3435
|
+
case "[object Array]":
|
|
3436
|
+
return !val.length;
|
|
3437
|
+
case "[object File]":
|
|
3438
|
+
case "[object Map]":
|
|
3439
|
+
case "[object Set]": {
|
|
3440
|
+
return !val.size;
|
|
3471
3441
|
}
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
if (sensitiveLen < 0) {
|
|
3475
|
-
sensitiveLen = 0;
|
|
3442
|
+
case "[object Object]": {
|
|
3443
|
+
return !Object.keys(val).length;
|
|
3476
3444
|
}
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
)
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3445
|
+
}
|
|
3446
|
+
return false;
|
|
3447
|
+
};
|
|
3448
|
+
ToolsClass2.prototype.sensitiveField = function(field, before, after) {
|
|
3449
|
+
if (before === void 0) {
|
|
3450
|
+
before = 3;
|
|
3451
|
+
}
|
|
3452
|
+
if (after === void 0) {
|
|
3453
|
+
after = 4;
|
|
3454
|
+
}
|
|
3455
|
+
if (!field) {
|
|
3456
|
+
return "";
|
|
3457
|
+
}
|
|
3458
|
+
field = String(field);
|
|
3459
|
+
var sensitiveLen = field.length - before - after;
|
|
3460
|
+
if (sensitiveLen < 0) {
|
|
3461
|
+
sensitiveLen = 0;
|
|
3462
|
+
}
|
|
3463
|
+
var regItem = "[\u4E00-\u9FA5a-zA-Z0-9]";
|
|
3464
|
+
var regExp = "(".concat(regItem, "{").concat(before, "})").concat(regItem, "*(").concat(regItem, "{").concat(after, "})");
|
|
3465
|
+
var reg = new RegExp(regExp);
|
|
3466
|
+
return field.replace(reg, "$1".concat("*".repeat(sensitiveLen), "$2"));
|
|
3467
|
+
};
|
|
3468
|
+
return ToolsClass2;
|
|
3469
|
+
}();
|
|
3470
|
+
tools$1.exports = new ToolsClass();
|
|
3471
|
+
const tools = /* @__PURE__ */ getDefaultExportFromCjs(tools$1.exports);
|
|
3472
|
+
const index_vue_vue_type_style_index_0_lang$3 = "";
|
|
3488
3473
|
const _hoisted_1$5 = { style: { "margin-left": "20px", "color": "#FF5A25" } };
|
|
3489
|
-
const _hoisted_2$
|
|
3490
|
-
const _hoisted_3$
|
|
3474
|
+
const _hoisted_2$5 = { class: "insert-article" };
|
|
3475
|
+
const _hoisted_3$5 = { class: "insert-article_input" };
|
|
3491
3476
|
const _hoisted_4$2 = {
|
|
3492
3477
|
key: 0,
|
|
3493
3478
|
class: "nodata"
|
|
@@ -3506,7 +3491,7 @@ const _hoisted_12$1 = {
|
|
|
3506
3491
|
key: 1,
|
|
3507
3492
|
style: { "display": "inline-flex", "flex-direction": "column" }
|
|
3508
3493
|
};
|
|
3509
|
-
const _sfc_main$5 =
|
|
3494
|
+
const _sfc_main$5 = defineComponent({
|
|
3510
3495
|
__name: "index",
|
|
3511
3496
|
props: {
|
|
3512
3497
|
visible: { type: Boolean, default: false },
|
|
@@ -3514,7 +3499,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3514
3499
|
},
|
|
3515
3500
|
emits: ["change", "submit", "update:visible"],
|
|
3516
3501
|
setup(__props, { emit: __emit }) {
|
|
3517
|
-
const { debounce } = tools
|
|
3502
|
+
const { debounce } = tools;
|
|
3518
3503
|
const vInfiniteScroll = ElInfiniteScroll;
|
|
3519
3504
|
const Radio_Type = {
|
|
3520
3505
|
MY_ARITICLE: "1",
|
|
@@ -3565,7 +3550,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3565
3550
|
};
|
|
3566
3551
|
const confirm = () => {
|
|
3567
3552
|
if (!data.article) {
|
|
3568
|
-
ElMessage.error(
|
|
3553
|
+
ElMessage.error(`\u8BF7\u9009\u62E9${isVideo ? "\u89C6\u9891" : "\u6587\u7AE0"}`);
|
|
3569
3554
|
return;
|
|
3570
3555
|
}
|
|
3571
3556
|
data.article.isVideo = isVideo;
|
|
@@ -3587,7 +3572,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3587
3572
|
autherid: data.params.radio !== Radio_Type.ALL_ARITICLE ? userId : "",
|
|
3588
3573
|
limit: 20,
|
|
3589
3574
|
allType: data.params.radio,
|
|
3590
|
-
// 只有4 是查视频 其他是文章
|
|
3591
3575
|
title: data.params.title,
|
|
3592
3576
|
page: ++data.page
|
|
3593
3577
|
});
|
|
@@ -3607,21 +3591,21 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3607
3591
|
}, {
|
|
3608
3592
|
title: withCtx(() => [
|
|
3609
3593
|
createElementVNode("span", null, [
|
|
3610
|
-
|
|
3611
|
-
createElementVNode("strong", _hoisted_1$5, "
|
|
3594
|
+
createTextVNode("\u63D2\u5165\u6587\u7AE0/\u89C6\u9891"),
|
|
3595
|
+
createElementVNode("strong", _hoisted_1$5, "\u5E73\u53F0\u4EC5\u652F\u6301\u63D2\u5165" + toDisplayString(`${isVideo.value ? "2\u5E74" : "18\u4E2A\u6708"}`) + "\u5185\u7684\u63A8\u8350\u5185\u5BB9", 1)
|
|
3612
3596
|
])
|
|
3613
3597
|
]),
|
|
3614
3598
|
default: withCtx(() => [
|
|
3615
|
-
createElementVNode("div", _hoisted_2$
|
|
3599
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
3616
3600
|
createElementVNode("div", null, [
|
|
3617
3601
|
createVNode(unref(ElRadio), {
|
|
3618
3602
|
modelValue: data.params.radio,
|
|
3619
3603
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.params.radio = $event),
|
|
3620
3604
|
label: Radio_Type.MY_ARITICLE
|
|
3621
3605
|
}, {
|
|
3622
|
-
default: withCtx(() =>
|
|
3623
|
-
createTextVNode("
|
|
3624
|
-
])
|
|
3606
|
+
default: withCtx(() => [
|
|
3607
|
+
createTextVNode("\u4ECE\u6211\u7684\u6587\u7AE0\u4E2D\u9009\u62E9")
|
|
3608
|
+
]),
|
|
3625
3609
|
_: 1
|
|
3626
3610
|
}, 8, ["modelValue", "label"]),
|
|
3627
3611
|
createVNode(unref(ElRadio), {
|
|
@@ -3629,9 +3613,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3629
3613
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data.params.radio = $event),
|
|
3630
3614
|
label: Radio_Type.MY_VIDEO
|
|
3631
3615
|
}, {
|
|
3632
|
-
default: withCtx(() =>
|
|
3633
|
-
createTextVNode("
|
|
3634
|
-
])
|
|
3616
|
+
default: withCtx(() => [
|
|
3617
|
+
createTextVNode("\u4ECE\u6211\u7684\u89C6\u9891\u4E2D\u9009\u62E9")
|
|
3618
|
+
]),
|
|
3635
3619
|
_: 1
|
|
3636
3620
|
}, 8, ["modelValue", "label"]),
|
|
3637
3621
|
createVNode(unref(ElRadio), {
|
|
@@ -3639,17 +3623,17 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3639
3623
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => data.params.radio = $event),
|
|
3640
3624
|
label: Radio_Type.ALL_ARITICLE
|
|
3641
3625
|
}, {
|
|
3642
|
-
default: withCtx(() =>
|
|
3643
|
-
createTextVNode("
|
|
3644
|
-
])
|
|
3626
|
+
default: withCtx(() => [
|
|
3627
|
+
createTextVNode("\u4ECE\u6240\u6709\u6587\u7AE0\u4E2D\u9009\u62E9")
|
|
3628
|
+
]),
|
|
3645
3629
|
_: 1
|
|
3646
3630
|
}, 8, ["modelValue", "label"])
|
|
3647
3631
|
]),
|
|
3648
|
-
createElementVNode("div", _hoisted_3$
|
|
3632
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
3649
3633
|
createVNode(unref(ElInput), {
|
|
3650
3634
|
modelValue: data.params.title,
|
|
3651
3635
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => data.params.title = $event),
|
|
3652
|
-
placeholder: isVideo.value ? "
|
|
3636
|
+
placeholder: isVideo.value ? "\u8F93\u5165\u89C6\u9891\u63CF\u8FF0\u67E5\u627E\u5E73\u53F0\u53D1\u5E03\u8FC7\u7684\u89C6\u9891" : "\u8F93\u5165\u6807\u9898\u540D\u67E5\u627E\u5E73\u53F0\u53D1\u8FC7\u7684\u6587\u7AE0",
|
|
3653
3637
|
onKeyup: _cache[5] || (_cache[5] = withKeys(($event) => unref(getArticleList)(true), ["enter", "native"])),
|
|
3654
3638
|
onInput: _cache[6] || (_cache[6] = ($event) => unref(getArticleList)(true))
|
|
3655
3639
|
}, {
|
|
@@ -3663,7 +3647,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3663
3647
|
_: 1
|
|
3664
3648
|
}, 8, ["modelValue", "placeholder"])
|
|
3665
3649
|
]),
|
|
3666
|
-
data.data.length === 0 && !data.busy ? (openBlock(), createElementBlock("div", _hoisted_4$2, toDisplayString(
|
|
3650
|
+
data.data.length === 0 && !data.busy ? (openBlock(), createElementBlock("div", _hoisted_4$2, toDisplayString(`\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684${isVideo.value ? "\u89C6\u9891" : "\u6587\u7AE0"}\u54E6\uFF0C\u4F60\u53EF\u4EE5\u8BD5\u8BD5\u641C\u7D22\u5176\u4ED6${isVideo.value ? "\u89C6\u9891" : "\u6587\u7AE0"}\uFF5E`), 1)) : withDirectives((openBlock(), createElementBlock("div", {
|
|
3667
3651
|
key: 1,
|
|
3668
3652
|
"infinite-scroll-immediate": false,
|
|
3669
3653
|
class: "insert-article_list",
|
|
@@ -3695,12 +3679,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3695
3679
|
}, null, 8, _hoisted_9$1)
|
|
3696
3680
|
]),
|
|
3697
3681
|
createElementVNode("div", _hoisted_10$1, [
|
|
3698
|
-
createElementVNode("span", _hoisted_11$1, toDisplayString(item.content || "[
|
|
3699
|
-
createElementVNode("span", null, toDisplayString(unref(date
|
|
3682
|
+
createElementVNode("span", _hoisted_11$1, toDisplayString(item.content || "[\u65E0\u6807\u9898]"), 1),
|
|
3683
|
+
createElementVNode("span", null, toDisplayString(unref(date).format(item.createTime * 1e3, "YYYY-MM-DD hh-mm")), 1)
|
|
3700
3684
|
])
|
|
3701
3685
|
])) : (openBlock(), createElementBlock("div", _hoisted_12$1, [
|
|
3702
|
-
createElementVNode("span", null, toDisplayString(item.title || "[
|
|
3703
|
-
createElementVNode("span", null, toDisplayString(unref(date
|
|
3686
|
+
createElementVNode("span", null, toDisplayString(item.title || "[\u65E0\u6807\u9898]"), 1),
|
|
3687
|
+
createElementVNode("span", null, toDisplayString(unref(date).format(item.createTime * 1e3, "YYYY-MM-DD")), 1)
|
|
3704
3688
|
]))
|
|
3705
3689
|
];
|
|
3706
3690
|
}),
|
|
@@ -3718,7 +3702,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3718
3702
|
};
|
|
3719
3703
|
}
|
|
3720
3704
|
});
|
|
3721
|
-
const index_vue_vue_type_style_index_0_lang$3 = "";
|
|
3722
3705
|
let getRandomValues;
|
|
3723
3706
|
const rnds8 = new Uint8Array(16);
|
|
3724
3707
|
function rng() {
|
|
@@ -3758,9 +3741,10 @@ function v4(options, buf, offset) {
|
|
|
3758
3741
|
}
|
|
3759
3742
|
return unsafeStringify(rnds);
|
|
3760
3743
|
}
|
|
3744
|
+
const index_vue_vue_type_style_index_0_lang$2 = "";
|
|
3761
3745
|
const _hoisted_1$4 = { class: "img-upload-content" };
|
|
3762
|
-
const _hoisted_2$
|
|
3763
|
-
const _hoisted_3$
|
|
3746
|
+
const _hoisted_2$4 = { class: "title-box" };
|
|
3747
|
+
const _hoisted_3$4 = ["onClick"];
|
|
3764
3748
|
const _hoisted_4$1 = {
|
|
3765
3749
|
key: 0,
|
|
3766
3750
|
class: "line"
|
|
@@ -3789,38 +3773,41 @@ const _hoisted_13 = {
|
|
|
3789
3773
|
key: 0,
|
|
3790
3774
|
class: "upload-wrap"
|
|
3791
3775
|
};
|
|
3792
|
-
const _hoisted_14 =
|
|
3776
|
+
const _hoisted_14 = /* @__PURE__ */ createElementVNode("span", null, "\u672C\u5730\u4E0A\u4F20", -1);
|
|
3777
|
+
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);
|
|
3778
|
+
const _hoisted_16 = {
|
|
3793
3779
|
key: 1,
|
|
3794
3780
|
class: "img-list"
|
|
3795
3781
|
};
|
|
3796
|
-
const
|
|
3797
|
-
const
|
|
3798
|
-
const
|
|
3782
|
+
const _hoisted_17 = ["src"];
|
|
3783
|
+
const _hoisted_18 = { class: "upload-btn" };
|
|
3784
|
+
const _hoisted_19 = {
|
|
3799
3785
|
key: 2,
|
|
3800
3786
|
class: "map-depot"
|
|
3801
3787
|
};
|
|
3802
|
-
const
|
|
3803
|
-
const
|
|
3804
|
-
const
|
|
3805
|
-
const
|
|
3806
|
-
const
|
|
3788
|
+
const _hoisted_20 = { class: "screen" };
|
|
3789
|
+
const _hoisted_21 = { key: 0 };
|
|
3790
|
+
const _hoisted_22 = { class: "tab-box" };
|
|
3791
|
+
const _hoisted_23 = ["onClick"];
|
|
3792
|
+
const _hoisted_24 = {
|
|
3807
3793
|
key: 0,
|
|
3808
3794
|
class: "line"
|
|
3809
3795
|
};
|
|
3810
|
-
const
|
|
3811
|
-
const
|
|
3812
|
-
const
|
|
3813
|
-
const
|
|
3796
|
+
const _hoisted_25 = { class: "image-list depot-image" };
|
|
3797
|
+
const _hoisted_26 = ["onClick"];
|
|
3798
|
+
const _hoisted_27 = ["src"];
|
|
3799
|
+
const _hoisted_28 = {
|
|
3814
3800
|
key: 0,
|
|
3815
3801
|
class: "shade"
|
|
3816
3802
|
};
|
|
3817
|
-
const
|
|
3818
|
-
const
|
|
3803
|
+
const _hoisted_29 = { class: "num" };
|
|
3804
|
+
const _hoisted_30 = {
|
|
3819
3805
|
key: 1,
|
|
3820
3806
|
class: "protocol-box"
|
|
3821
3807
|
};
|
|
3822
|
-
const
|
|
3823
|
-
const
|
|
3808
|
+
const _hoisted_31 = /* @__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);
|
|
3809
|
+
const _hoisted_32 = ["href"];
|
|
3810
|
+
const _sfc_main$4 = defineComponent({
|
|
3824
3811
|
__name: "index",
|
|
3825
3812
|
props: {
|
|
3826
3813
|
visible: { type: Boolean, default: false },
|
|
@@ -3855,7 +3842,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3855
3842
|
const tempImgs = [...props.imgList];
|
|
3856
3843
|
Array.from(imgFile).forEach((file) => {
|
|
3857
3844
|
if (file.size > 20 * 1024 * 1024) {
|
|
3858
|
-
ElMessage.error("
|
|
3845
|
+
ElMessage.error("\u5355\u5F20\u56FE\u7247\u6700\u5927\u652F\u630120M");
|
|
3859
3846
|
return;
|
|
3860
3847
|
}
|
|
3861
3848
|
const id = v4();
|
|
@@ -3885,14 +3872,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3885
3872
|
const list = [
|
|
3886
3873
|
{
|
|
3887
3874
|
id: 2,
|
|
3888
|
-
value: "
|
|
3875
|
+
value: "\u4E0A\u4F20\u56FE\u7247"
|
|
3889
3876
|
}
|
|
3890
3877
|
];
|
|
3891
3878
|
activeTitle.value = 2;
|
|
3892
3879
|
if (props.imgNum < 20) {
|
|
3893
3880
|
list.unshift({
|
|
3894
3881
|
id: 1,
|
|
3895
|
-
value: "
|
|
3882
|
+
value: "\u6B63\u6587\u56FE\u7247"
|
|
3896
3883
|
});
|
|
3897
3884
|
activeTitle.value = 1;
|
|
3898
3885
|
getContentImgList();
|
|
@@ -3900,7 +3887,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3900
3887
|
if (props.chartGallery) {
|
|
3901
3888
|
list.push({
|
|
3902
3889
|
id: 3,
|
|
3903
|
-
value: isEmotofine ? "
|
|
3890
|
+
value: isEmotofine ? "\u7535\u6469\u8303\u56FE\u5E93" : "\u6469\u6258\u8303\u56FE\u5E93"
|
|
3904
3891
|
});
|
|
3905
3892
|
}
|
|
3906
3893
|
titleList.value = list;
|
|
@@ -4045,13 +4032,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4045
4032
|
const tabList = ref([]);
|
|
4046
4033
|
const search = () => {
|
|
4047
4034
|
if (!selectData.brandId) {
|
|
4048
|
-
return ElMessage.error("
|
|
4035
|
+
return ElMessage.error("\u8BF7\u9009\u62E9\u54C1\u724C");
|
|
4049
4036
|
}
|
|
4050
4037
|
if (!selectData.goodId) {
|
|
4051
|
-
return ElMessage.error("
|
|
4038
|
+
return ElMessage.error("\u8BF7\u9009\u62E9\u8F66\u578B");
|
|
4052
4039
|
}
|
|
4053
4040
|
if (!selectData.carId) {
|
|
4054
|
-
return ElMessage.error("
|
|
4041
|
+
return ElMessage.error("\u8BF7\u9009\u62E9\u6B3E\u578B");
|
|
4055
4042
|
}
|
|
4056
4043
|
tabList.value = [];
|
|
4057
4044
|
emits("update:imgList", []);
|
|
@@ -4108,7 +4095,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4108
4095
|
}, {
|
|
4109
4096
|
default: withCtx(() => [
|
|
4110
4097
|
createElementVNode("div", _hoisted_1$4, [
|
|
4111
|
-
createElementVNode("div", _hoisted_2$
|
|
4098
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
4112
4099
|
(openBlock(true), createElementBlock(Fragment, null, renderList(titleList.value, (item, index) => {
|
|
4113
4100
|
return openBlock(), createElementBlock("div", {
|
|
4114
4101
|
key: index,
|
|
@@ -4117,10 +4104,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4117
4104
|
}, [
|
|
4118
4105
|
createTextVNode(toDisplayString(item.value) + " ", 1),
|
|
4119
4106
|
item.id === activeTitle.value ? (openBlock(), createElementBlock("div", _hoisted_4$1)) : createCommentVNode("", true)
|
|
4120
|
-
], 10, _hoisted_3$
|
|
4107
|
+
], 10, _hoisted_3$4);
|
|
4121
4108
|
}), 128)),
|
|
4122
|
-
[1, 3].includes(activeTitle.value) && props.imgList.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, "
|
|
4123
|
-
activeTitle.value === 2 && props.imgList.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(props.imgList.length) + "
|
|
4109
|
+
[1, 3].includes(activeTitle.value) && props.imgList.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, " \u6700\u591A\u53EF\u9009" + toDisplayString(props.imgNum) + "\u5F20\u56FE\u7247\uFF0C\u5DF2\u9009" + toDisplayString(props.imgList.length) + "\u5F20 ", 1)) : createCommentVNode("", true),
|
|
4110
|
+
activeTitle.value === 2 && props.imgList.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(props.imgList.length) + "\u5F20\u4E0A\u4F20\u6210\u529F \u62D6\u52A8\u53EF\u8C03\u6574\u987A\u5E8F ", 1)) : createCommentVNode("", true)
|
|
4124
4111
|
]),
|
|
4125
4112
|
activeTitle.value === 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
4126
4113
|
createElementVNode("div", _hoisted_8, [
|
|
@@ -4157,10 +4144,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4157
4144
|
]),
|
|
4158
4145
|
_: 1
|
|
4159
4146
|
}),
|
|
4160
|
-
|
|
4147
|
+
_hoisted_14
|
|
4161
4148
|
]),
|
|
4162
|
-
|
|
4163
|
-
])) : (openBlock(), createElementBlock("div",
|
|
4149
|
+
_hoisted_15
|
|
4150
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
4164
4151
|
createVNode(unref(draggable), {
|
|
4165
4152
|
modelValue: imgListTemp.value,
|
|
4166
4153
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => imgListTemp.value = $event),
|
|
@@ -4181,7 +4168,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4181
4168
|
style: { "object-fit": "contain" },
|
|
4182
4169
|
width: "120",
|
|
4183
4170
|
height: "120"
|
|
4184
|
-
}, null, 8,
|
|
4171
|
+
}, null, 8, _hoisted_17),
|
|
4185
4172
|
createVNode(unref(CircleCloseFilled), {
|
|
4186
4173
|
class: "icon pointer",
|
|
4187
4174
|
onClick: ($event) => deleteImg(element)
|
|
@@ -4204,7 +4191,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4204
4191
|
_: 1
|
|
4205
4192
|
}, 8, ["modelValue"])
|
|
4206
4193
|
])),
|
|
4207
|
-
createElementVNode("div",
|
|
4194
|
+
createElementVNode("div", _hoisted_18, [
|
|
4208
4195
|
createElementVNode("input", {
|
|
4209
4196
|
type: "file",
|
|
4210
4197
|
name: "file",
|
|
@@ -4215,13 +4202,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4215
4202
|
}, null, 32)
|
|
4216
4203
|
])
|
|
4217
4204
|
], 2)) : createCommentVNode("", true),
|
|
4218
|
-
activeTitle.value === 3 ? (openBlock(), createElementBlock("div",
|
|
4219
|
-
createElementVNode("div",
|
|
4205
|
+
activeTitle.value === 3 ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
4206
|
+
createElementVNode("div", _hoisted_20, [
|
|
4220
4207
|
createElementVNode("div", null, [
|
|
4221
4208
|
createVNode(unref(ElSelect), {
|
|
4222
4209
|
modelValue: selectData.brandId,
|
|
4223
4210
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => selectData.brandId = $event),
|
|
4224
|
-
placeholder: "
|
|
4211
|
+
placeholder: "\u8BF7\u9009\u62E9\u54C1\u724C",
|
|
4225
4212
|
size: "large",
|
|
4226
4213
|
class: "select_1",
|
|
4227
4214
|
filterable: "",
|
|
@@ -4242,7 +4229,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4242
4229
|
createVNode(unref(ElSelect), {
|
|
4243
4230
|
modelValue: selectData.goodId,
|
|
4244
4231
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => selectData.goodId = $event),
|
|
4245
|
-
placeholder: "
|
|
4232
|
+
placeholder: "\u8BF7\u9009\u62E9\u8F66\u578B",
|
|
4246
4233
|
size: "large",
|
|
4247
4234
|
class: "select_1",
|
|
4248
4235
|
filterable: "",
|
|
@@ -4263,7 +4250,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4263
4250
|
createVNode(unref(ElSelect), {
|
|
4264
4251
|
modelValue: selectData.carId,
|
|
4265
4252
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => selectData.carId = $event),
|
|
4266
|
-
placeholder: "
|
|
4253
|
+
placeholder: "\u8BF7\u9009\u62E9\u6B3E\u578B",
|
|
4267
4254
|
size: "large",
|
|
4268
4255
|
class: "select_2",
|
|
4269
4256
|
filterable: "",
|
|
@@ -4287,14 +4274,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4287
4274
|
style: { "width": "80px" },
|
|
4288
4275
|
onClick: search
|
|
4289
4276
|
}, {
|
|
4290
|
-
default: withCtx(() =>
|
|
4291
|
-
createTextVNode("
|
|
4292
|
-
])
|
|
4277
|
+
default: withCtx(() => [
|
|
4278
|
+
createTextVNode("\u641C\u7D22")
|
|
4279
|
+
]),
|
|
4293
4280
|
_: 1
|
|
4294
4281
|
})
|
|
4295
4282
|
]),
|
|
4296
|
-
tabList.value && tabList.value.length ? (openBlock(), createElementBlock("div",
|
|
4297
|
-
createElementVNode("div",
|
|
4283
|
+
tabList.value && tabList.value.length ? (openBlock(), createElementBlock("div", _hoisted_21, [
|
|
4284
|
+
createElementVNode("div", _hoisted_22, [
|
|
4298
4285
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tabList.value, (item, index) => {
|
|
4299
4286
|
return openBlock(), createElementBlock("div", {
|
|
4300
4287
|
key: index,
|
|
@@ -4302,11 +4289,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4302
4289
|
onClick: ($event) => activeTab.value = item.type
|
|
4303
4290
|
}, [
|
|
4304
4291
|
createTextVNode(toDisplayString(item.name) + " ", 1),
|
|
4305
|
-
item.type === activeTab.value ? (openBlock(), createElementBlock("div",
|
|
4306
|
-
], 10,
|
|
4292
|
+
item.type === activeTab.value ? (openBlock(), createElementBlock("div", _hoisted_24)) : createCommentVNode("", true)
|
|
4293
|
+
], 10, _hoisted_23);
|
|
4307
4294
|
}), 128))
|
|
4308
4295
|
]),
|
|
4309
|
-
createElementVNode("div",
|
|
4296
|
+
createElementVNode("div", _hoisted_25, [
|
|
4310
4297
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageList.value, (item, index) => {
|
|
4311
4298
|
return openBlock(), createElementBlock("div", {
|
|
4312
4299
|
key: index,
|
|
@@ -4317,25 +4304,25 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4317
4304
|
src: item.imgOrgUrl,
|
|
4318
4305
|
alt: "",
|
|
4319
4306
|
class: "image"
|
|
4320
|
-
}, null, 8,
|
|
4321
|
-
item.num ? (openBlock(), createElementBlock("div",
|
|
4322
|
-
createElementVNode("div",
|
|
4307
|
+
}, null, 8, _hoisted_27),
|
|
4308
|
+
item.num ? (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
4309
|
+
createElementVNode("div", _hoisted_29, toDisplayString(item.num), 1)
|
|
4323
4310
|
])) : createCommentVNode("", true)
|
|
4324
|
-
], 8,
|
|
4311
|
+
], 8, _hoisted_26);
|
|
4325
4312
|
}), 128))
|
|
4326
4313
|
])
|
|
4327
|
-
])) : (openBlock(), createElementBlock("div",
|
|
4314
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_30, [
|
|
4328
4315
|
createElementVNode("div", null, [
|
|
4329
|
-
|
|
4316
|
+
_hoisted_31,
|
|
4330
4317
|
createElementVNode("div", null, [
|
|
4331
|
-
|
|
4318
|
+
createTextVNode(" \u8BF7\u9605\u8BFB"),
|
|
4332
4319
|
createElementVNode("a", {
|
|
4333
4320
|
href: `https://${unref(hostName)}/about?type=imageLicenseAgreement`,
|
|
4334
4321
|
target: "_blank",
|
|
4335
4322
|
rel: "noopener noreferrer",
|
|
4336
4323
|
class: "link"
|
|
4337
|
-
}, "
|
|
4338
|
-
|
|
4324
|
+
}, "\u300A\u6469\u6258\u8303\u56FE\u7247\u8BB8\u53EF\u4F7F\u7528\u534F\u8BAE\u300B", 8, _hoisted_32),
|
|
4325
|
+
createTextVNode(",\u60A8\u7684\u884C\u4E3A\u89C6\u4E3A\u60A8\u5DF2\u540C\u610F\u8BE5\u534F\u8BAE\u3002 ")
|
|
4339
4326
|
])
|
|
4340
4327
|
])
|
|
4341
4328
|
]))
|
|
@@ -4347,9 +4334,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4347
4334
|
};
|
|
4348
4335
|
}
|
|
4349
4336
|
});
|
|
4350
|
-
const index_vue_vue_type_style_index_0_lang$
|
|
4351
|
-
const _hoisted_1$3 =
|
|
4352
|
-
const
|
|
4337
|
+
const index_vue_vue_type_style_index_0_lang$1 = "";
|
|
4338
|
+
const _hoisted_1$3 = /* @__PURE__ */ createElementVNode("span", null, "\u63D2\u5165\u89C6\u9891", -1);
|
|
4339
|
+
const _hoisted_2$3 = { class: "insert-video" };
|
|
4340
|
+
const _hoisted_3$3 = /* @__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);
|
|
4341
|
+
const _sfc_main$3 = defineComponent({
|
|
4353
4342
|
__name: "index",
|
|
4354
4343
|
props: {
|
|
4355
4344
|
visible: { type: Boolean, default: false },
|
|
@@ -4377,23 +4366,23 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4377
4366
|
width: "600px",
|
|
4378
4367
|
height: "100px"
|
|
4379
4368
|
}, {
|
|
4380
|
-
title: withCtx(() =>
|
|
4381
|
-
|
|
4382
|
-
])
|
|
4369
|
+
title: withCtx(() => [
|
|
4370
|
+
_hoisted_1$3
|
|
4371
|
+
]),
|
|
4383
4372
|
default: withCtx(() => [
|
|
4384
|
-
createElementVNode("div",
|
|
4373
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
4385
4374
|
createVNode(unref(ElButton), {
|
|
4386
4375
|
style: { "width": "120px" },
|
|
4387
4376
|
round: "",
|
|
4388
4377
|
type: "primary",
|
|
4389
4378
|
onClick: emitEvent
|
|
4390
4379
|
}, {
|
|
4391
|
-
default: withCtx(() =>
|
|
4392
|
-
createTextVNode("
|
|
4393
|
-
])
|
|
4380
|
+
default: withCtx(() => [
|
|
4381
|
+
createTextVNode("\u9009\u62E9\u89C6\u9891")
|
|
4382
|
+
]),
|
|
4394
4383
|
_: 1
|
|
4395
4384
|
}),
|
|
4396
|
-
|
|
4385
|
+
_hoisted_3$3,
|
|
4397
4386
|
createElementVNode("input", {
|
|
4398
4387
|
type: "file",
|
|
4399
4388
|
accept: "video/*",
|
|
@@ -4408,7 +4397,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4408
4397
|
};
|
|
4409
4398
|
}
|
|
4410
4399
|
});
|
|
4411
|
-
const index_vue_vue_type_style_index_0_lang$1 = "";
|
|
4412
4400
|
const index_vue_vue_type_style_index_0_lang = "";
|
|
4413
4401
|
const _sfc_main$2 = {
|
|
4414
4402
|
provide() {
|
|
@@ -4460,12 +4448,14 @@ const _sfc_main$2 = {
|
|
|
4460
4448
|
setStatus(val) {
|
|
4461
4449
|
this.$emit("update:visible", val);
|
|
4462
4450
|
}
|
|
4463
|
-
// submit() {
|
|
4464
|
-
// this.$emit('submit')
|
|
4465
|
-
// }
|
|
4466
4451
|
}
|
|
4467
4452
|
};
|
|
4468
|
-
const _hoisted_1$2 =
|
|
4453
|
+
const _hoisted_1$2 = /* @__PURE__ */ createElementVNode("div", null, [
|
|
4454
|
+
/* @__PURE__ */ createElementVNode("span", null, "\u91C7\u96C6\u6587\u7AE0"),
|
|
4455
|
+
/* @__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")
|
|
4456
|
+
], -1);
|
|
4457
|
+
const _hoisted_2$2 = { class: "collect-article_content" };
|
|
4458
|
+
const _hoisted_3$2 = /* @__PURE__ */ createElementVNode("div", { class: "tip" }, "\u8BF7\u628A\u9700\u8981\u91C7\u96C6\u7684\u6587\u7AE0\u94FE\u63A5\u7C98\u8D34\u5728\u4E0B\u65B9\u7684\u8F93\u5165\u6846\uFF1A", -1);
|
|
4469
4459
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4470
4460
|
const _component_el_input = resolveComponent("el-input");
|
|
4471
4461
|
const _component_BasicDialog = resolveComponent("BasicDialog");
|
|
@@ -4474,19 +4464,16 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4474
4464
|
width: "600px",
|
|
4475
4465
|
height: "50px"
|
|
4476
4466
|
}, {
|
|
4477
|
-
title: withCtx(() =>
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
createElementVNode("span", { class: "collect-article_lable" }, "如需获得正式使用权,请自行联系版权所有者")
|
|
4481
|
-
], -1)
|
|
4482
|
-
])),
|
|
4467
|
+
title: withCtx(() => [
|
|
4468
|
+
_hoisted_1$2
|
|
4469
|
+
]),
|
|
4483
4470
|
default: withCtx(() => [
|
|
4484
|
-
createElementVNode("div",
|
|
4485
|
-
|
|
4471
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
4472
|
+
_hoisted_3$2,
|
|
4486
4473
|
createVNode(_component_el_input, {
|
|
4487
4474
|
modelValue: $options.input,
|
|
4488
4475
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.input = $event),
|
|
4489
|
-
placeholder: "
|
|
4476
|
+
placeholder: "\u4EC5\u652F\u6301\u5FAE\u4FE1\u94FE\u63A5"
|
|
4490
4477
|
}, null, 8, ["modelValue"])
|
|
4491
4478
|
])
|
|
4492
4479
|
]),
|
|
@@ -4494,7 +4481,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4494
4481
|
}, 8, ["visible"]);
|
|
4495
4482
|
}
|
|
4496
4483
|
const CollectArticle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
4497
|
-
const
|
|
4484
|
+
const index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
4498
4485
|
const _sfc_main$1 = {
|
|
4499
4486
|
components: {
|
|
4500
4487
|
ElIconError: CircleCloseFilled
|
|
@@ -4539,8 +4526,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4539
4526
|
createElementVNode("div", _hoisted_4, toDisplayString($props.article.title), 1),
|
|
4540
4527
|
createElementVNode("div", _hoisted_5, [
|
|
4541
4528
|
createElementVNode("span", null, toDisplayString($props.article.author), 1),
|
|
4542
|
-
createElementVNode("span", null, toDisplayString($props.article.viewNum) + "
|
|
4543
|
-
createElementVNode("span", null, toDisplayString($props.article.replycnt) + "
|
|
4529
|
+
createElementVNode("span", null, toDisplayString($props.article.viewNum) + "\u6D4F\u89C8", 1),
|
|
4530
|
+
createElementVNode("span", null, toDisplayString($props.article.replycnt) + "\u8BC4\u8BBA", 1)
|
|
4544
4531
|
])
|
|
4545
4532
|
]),
|
|
4546
4533
|
createVNode(_component_el_icon_error, {
|
|
@@ -4552,10 +4539,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4552
4539
|
class: normalizeClass([{
|
|
4553
4540
|
"article-bg-height": $props.article.img || $props.article.mediaInfo && $props.article.mediaInfo.length
|
|
4554
4541
|
}, "article-bg"])
|
|
4555
|
-
}, "
|
|
4542
|
+
}, " \u5E73\u53F0\u4EC5\u652F\u6301\u5C55\u793A18\u4E2A\u6708\u7684\u63A8\u8350\u5185\u5BB9 ", 2)) : createCommentVNode("", true)
|
|
4556
4543
|
]);
|
|
4557
4544
|
}
|
|
4558
|
-
const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
4545
|
+
const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-1c406a11"]]);
|
|
4559
4546
|
const mountArticleDom = (props, del) => {
|
|
4560
4547
|
const className = "article-wrap";
|
|
4561
4548
|
const article = props.article;
|
|
@@ -4613,7 +4600,6 @@ const _sfc_main = {
|
|
|
4613
4600
|
hasArticleCard: false,
|
|
4614
4601
|
cursorStyle: "auto",
|
|
4615
4602
|
titleCount: 0,
|
|
4616
|
-
// 标题数量
|
|
4617
4603
|
viewLinkDialog: false,
|
|
4618
4604
|
linkForm: {
|
|
4619
4605
|
linkAddress: "",
|
|
@@ -4621,54 +4607,39 @@ const _sfc_main = {
|
|
|
4621
4607
|
},
|
|
4622
4608
|
setAlignFlag: true,
|
|
4623
4609
|
article: {},
|
|
4624
|
-
// 插入的文章
|
|
4625
4610
|
imgList: [],
|
|
4626
4611
|
imgNum: 20,
|
|
4627
4612
|
videoList: [],
|
|
4628
4613
|
visibleVideo: false,
|
|
4629
4614
|
visibleCollectArticle: false,
|
|
4630
4615
|
visibleArticle: false,
|
|
4631
|
-
// 插入文章
|
|
4632
4616
|
visibleImg: false,
|
|
4633
|
-
// 插入图片
|
|
4634
4617
|
imgType: "normal",
|
|
4635
|
-
//
|
|
4636
4618
|
typeEnum: {
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
视频文字: "7",
|
|
4619
|
+
\u6587\u5B57: "1",
|
|
4620
|
+
\u56FE\u7247: "2",
|
|
4621
|
+
\u56FE\u6587: "3",
|
|
4622
|
+
\u6BB5\u843D\u6807\u9898: "4",
|
|
4623
|
+
\u5173\u8054: "5",
|
|
4624
|
+
\u5355\u89C6\u9891: "6",
|
|
4625
|
+
\u89C6\u9891\u6587\u5B57: "7",
|
|
4645
4626
|
URL: "8",
|
|
4646
|
-
|
|
4627
|
+
\u6587\u7AE0\u5361\u7247: "11"
|
|
4647
4628
|
},
|
|
4648
4629
|
fontInfo: {
|
|
4649
4630
|
size: ""
|
|
4650
4631
|
},
|
|
4651
4632
|
user: {},
|
|
4652
|
-
// 用户
|
|
4653
4633
|
editor: {},
|
|
4654
|
-
// 编辑器实例对象
|
|
4655
4634
|
editorDom: {},
|
|
4656
|
-
// 编辑器Dom
|
|
4657
4635
|
uploadStore: {},
|
|
4658
|
-
// 待上传的图片池
|
|
4659
4636
|
linkContent: "",
|
|
4660
|
-
// 插入链接的地址
|
|
4661
4637
|
loadingText: "",
|
|
4662
|
-
// loaing的提示文字
|
|
4663
4638
|
progressPercent: "",
|
|
4664
|
-
// 上传进度
|
|
4665
4639
|
currentIndex: 0,
|
|
4666
4640
|
loading: false,
|
|
4667
|
-
// 是否提交中
|
|
4668
4641
|
viewStatus: false,
|
|
4669
|
-
// todo: 改名
|
|
4670
4642
|
linkStatus: false,
|
|
4671
|
-
// todo: 改名
|
|
4672
4643
|
styleStatus: {
|
|
4673
4644
|
bold: false,
|
|
4674
4645
|
italic: false,
|
|
@@ -4692,7 +4663,6 @@ const _sfc_main = {
|
|
|
4692
4663
|
targetMove: "",
|
|
4693
4664
|
moverClasses: ["halo-img-content", "halo-video-content"],
|
|
4694
4665
|
selectDom: null
|
|
4695
|
-
//选中的dom
|
|
4696
4666
|
};
|
|
4697
4667
|
},
|
|
4698
4668
|
computed: {
|
|
@@ -4709,12 +4679,12 @@ const _sfc_main = {
|
|
|
4709
4679
|
watch: {
|
|
4710
4680
|
progressPercent(val) {
|
|
4711
4681
|
const inner = document.querySelector(".video-progress .inner");
|
|
4712
|
-
console.log(val, "
|
|
4682
|
+
console.log(val, "\u89C6\u9891\u4E0A\u4F20\u8FDB\u5EA6");
|
|
4713
4683
|
if (inner) {
|
|
4714
4684
|
inner.style.width = val + "%";
|
|
4715
4685
|
if (val === 100) {
|
|
4716
4686
|
document.querySelector(".video-progress").innerHTML = `
|
|
4717
|
-
<div class="no-calc" style="text-align:center;color:#999999;font-size:18px;"
|
|
4687
|
+
<div class="no-calc" style="text-align:center;color:#999999;font-size:18px;">\u6B63\u5728\u83B7\u53D6\u89C6\u9891\u5C01\u9762</div>
|
|
4718
4688
|
`;
|
|
4719
4689
|
}
|
|
4720
4690
|
}
|
|
@@ -4743,7 +4713,7 @@ const _sfc_main = {
|
|
|
4743
4713
|
me2.editorDom = document.getElementById("editor-content");
|
|
4744
4714
|
me2.editorDom.addEventListener("blur", this.canSetAlign);
|
|
4745
4715
|
if (!window.Squire) {
|
|
4746
|
-
import("./squire-raw
|
|
4716
|
+
import("./squire-raw.9f05be24.js").then(function() {
|
|
4747
4717
|
me2.initSquire();
|
|
4748
4718
|
});
|
|
4749
4719
|
} else {
|
|
@@ -4804,10 +4774,10 @@ const _sfc_main = {
|
|
|
4804
4774
|
this.visibleVideo = false;
|
|
4805
4775
|
const fileName = (files[0] && files[0].name || "").toLowerCase();
|
|
4806
4776
|
if (files[0].size > 1 * 1024 * 1024 * 1024) {
|
|
4807
|
-
return me2.setToast("
|
|
4777
|
+
return me2.setToast("\u89C6\u9891\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC71GB");
|
|
4808
4778
|
}
|
|
4809
4779
|
if (fileName.indexOf(".mp4") === -1 && fileName.indexOf(".mov") === -1) {
|
|
4810
|
-
return me2.setToast("
|
|
4780
|
+
return me2.setToast("\u89C6\u9891\u683C\u5F0F\u4E0D\u662Fmp4\u6216mov");
|
|
4811
4781
|
}
|
|
4812
4782
|
const me2 = this;
|
|
4813
4783
|
if (me2.loading)
|
|
@@ -4827,9 +4797,7 @@ const _sfc_main = {
|
|
|
4827
4797
|
id: result.videoId,
|
|
4828
4798
|
desc: "",
|
|
4829
4799
|
vodSize: result.vodSize || "",
|
|
4830
|
-
// 视频大小
|
|
4831
4800
|
vodType: result.vodType || ""
|
|
4832
|
-
// 图片尺寸
|
|
4833
4801
|
};
|
|
4834
4802
|
me2.$emit("updateAddVideo", true);
|
|
4835
4803
|
me2.editor["insertVideo"](result.videoUrl, video);
|
|
@@ -4883,11 +4851,11 @@ const _sfc_main = {
|
|
|
4883
4851
|
},
|
|
4884
4852
|
insertLink() {
|
|
4885
4853
|
if (!this.linkForm.linkAddress)
|
|
4886
|
-
return ElMessage.error("
|
|
4854
|
+
return ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740");
|
|
4887
4855
|
if (!this.linkForm.linkWriting)
|
|
4888
|
-
return ElMessage.error("
|
|
4856
|
+
return ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u6587\u6848");
|
|
4889
4857
|
if (!this.validUrl(this.linkForm.linkAddress)) {
|
|
4890
|
-
return this.setToast("URL
|
|
4858
|
+
return this.setToast("URL\u65E0\u6548");
|
|
4891
4859
|
}
|
|
4892
4860
|
this.editor.insertLink(
|
|
4893
4861
|
this.linkForm.linkAddress,
|
|
@@ -4896,7 +4864,6 @@ const _sfc_main = {
|
|
|
4896
4864
|
this.updateData(true);
|
|
4897
4865
|
this.viewLinkDialog = false;
|
|
4898
4866
|
},
|
|
4899
|
-
// mark MDD-TOPIC
|
|
4900
4867
|
updateTopicPosition() {
|
|
4901
4868
|
const paragraphList = document.querySelectorAll("#editor-content .halo-paragraph") || [];
|
|
4902
4869
|
Array.from(paragraphList).forEach((paragraph) => {
|
|
@@ -5367,7 +5334,7 @@ const _sfc_main = {
|
|
|
5367
5334
|
}
|
|
5368
5335
|
this.updateData(true);
|
|
5369
5336
|
} else {
|
|
5370
|
-
this.setToast(rst.origin.name + "
|
|
5337
|
+
this.setToast(rst.origin.name + "\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
|
|
5371
5338
|
}
|
|
5372
5339
|
},
|
|
5373
5340
|
insertVideoBtns(editor, node) {
|
|
@@ -5382,7 +5349,7 @@ const _sfc_main = {
|
|
|
5382
5349
|
me2.currentVideo = node;
|
|
5383
5350
|
e.stopPropagation();
|
|
5384
5351
|
};
|
|
5385
|
-
replaceBtn.innerText = "
|
|
5352
|
+
replaceBtn.innerText = "\u66F4\u6362\u5C01\u9762";
|
|
5386
5353
|
return replaceBtn;
|
|
5387
5354
|
},
|
|
5388
5355
|
insertImgOperateBtns(editor, data) {
|
|
@@ -5409,7 +5376,7 @@ const _sfc_main = {
|
|
|
5409
5376
|
maxlength: "50",
|
|
5410
5377
|
rows: "2",
|
|
5411
5378
|
cols: "50",
|
|
5412
|
-
placeholder: "
|
|
5379
|
+
placeholder: "\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0(\u6700\u591A50\u5B57)",
|
|
5413
5380
|
contenteditable: "false"
|
|
5414
5381
|
});
|
|
5415
5382
|
descInput.disabled = me2.disabled;
|
|
@@ -5418,7 +5385,7 @@ const _sfc_main = {
|
|
|
5418
5385
|
const img = parent.querySelector(".halo-picture-area");
|
|
5419
5386
|
img.dataset.desc = e.target.value;
|
|
5420
5387
|
if (e.target.value.length > 49) {
|
|
5421
|
-
return me2.setToast("
|
|
5388
|
+
return me2.setToast("\u9650\u523650\u4E2A\u5B57\u7B26");
|
|
5422
5389
|
}
|
|
5423
5390
|
};
|
|
5424
5391
|
descInput.value = data.content || "";
|
|
@@ -5468,7 +5435,7 @@ const _sfc_main = {
|
|
|
5468
5435
|
me2.removeParentByClass(e.target, "halo-img-content");
|
|
5469
5436
|
me2.updateData(true);
|
|
5470
5437
|
};
|
|
5471
|
-
replaceBtn.innerHTML = "
|
|
5438
|
+
replaceBtn.innerHTML = "\u66FF\u6362";
|
|
5472
5439
|
return [replaceBtn, delBtn, descInputWrap];
|
|
5473
5440
|
},
|
|
5474
5441
|
removeSeamlessLaster(e) {
|
|
@@ -5492,7 +5459,6 @@ const _sfc_main = {
|
|
|
5492
5459
|
}
|
|
5493
5460
|
}
|
|
5494
5461
|
},
|
|
5495
|
-
// 初始化编辑器数据 displayData
|
|
5496
5462
|
initData(data = "", essayPicRelVOList) {
|
|
5497
5463
|
this.parseHtml(data, essayPicRelVOList).then((res) => {
|
|
5498
5464
|
this.editorDom.innerHTML = "";
|
|
@@ -5500,7 +5466,6 @@ const _sfc_main = {
|
|
|
5500
5466
|
this.updateData();
|
|
5501
5467
|
});
|
|
5502
5468
|
},
|
|
5503
|
-
// 设置富文本组件
|
|
5504
5469
|
initSquire() {
|
|
5505
5470
|
const me2 = this;
|
|
5506
5471
|
const editorDom = me2.editorDom;
|
|
@@ -5748,7 +5713,6 @@ const _sfc_main = {
|
|
|
5748
5713
|
window.Squire.empty(block)
|
|
5749
5714
|
]);
|
|
5750
5715
|
output.appendChild(
|
|
5751
|
-
// 段落才能添加标题
|
|
5752
5716
|
Array.from(block.classList).indexOf("halo-img-content") > -1 ? block : container
|
|
5753
5717
|
);
|
|
5754
5718
|
}
|
|
@@ -5772,18 +5736,18 @@ const _sfc_main = {
|
|
|
5772
5736
|
});
|
|
5773
5737
|
loading.innerHTML = `
|
|
5774
5738
|
<img class="img-loading-icon" src="/img/upload-image-loading.png"/>
|
|
5775
|
-
<span class="img-loading-tip"
|
|
5739
|
+
<span class="img-loading-tip">\u4E0A\u4F20\u4E2D...</span>
|
|
5776
5740
|
`;
|
|
5777
5741
|
var fail = this.createElement("div", {
|
|
5778
5742
|
class: "img-fail hide",
|
|
5779
5743
|
contenteditable: "false"
|
|
5780
5744
|
});
|
|
5781
|
-
fail.innerHTML = "
|
|
5745
|
+
fail.innerHTML = "\u4E0A\u4F20\u5931\u8D25<br>\u8BF7\u4E0B\u8F7D\u56FE\u7247\u81F3\u672C\u5730\u540E\u91CD\u65B0\u4E0A\u4F20";
|
|
5782
5746
|
var again = this.createElement("button", {
|
|
5783
5747
|
class: "img-again hide",
|
|
5784
5748
|
contenteditable: "false"
|
|
5785
5749
|
});
|
|
5786
|
-
again.innerHTML = "
|
|
5750
|
+
again.innerHTML = "\u91CD\u65B0\u4E0A\u4F20";
|
|
5787
5751
|
const isGif = src && src.indexOf(".gif") > -1;
|
|
5788
5752
|
if (isGif) {
|
|
5789
5753
|
src = src.replace(".gif", ".gif!nowater");
|
|
@@ -5838,7 +5802,7 @@ const _sfc_main = {
|
|
|
5838
5802
|
});
|
|
5839
5803
|
div.innerHTML = `
|
|
5840
5804
|
<div class="video-progress">
|
|
5841
|
-
<div class="label"
|
|
5805
|
+
<div class="label">\u4E0A\u4F20\u4E2D...</div>
|
|
5842
5806
|
<div class="box">
|
|
5843
5807
|
<div class="inner" style="width:20%"></div>
|
|
5844
5808
|
</div>
|
|
@@ -5861,7 +5825,6 @@ const _sfc_main = {
|
|
|
5861
5825
|
data: JSON.stringify(data),
|
|
5862
5826
|
"data-content": data.content || "",
|
|
5863
5827
|
poster: data.img || ""
|
|
5864
|
-
// 'contenteditable': 'true',
|
|
5865
5828
|
});
|
|
5866
5829
|
var delBtn = me2.genIconDom({
|
|
5867
5830
|
class: "pointer video-delete icon",
|
|
@@ -5920,7 +5883,6 @@ const _sfc_main = {
|
|
|
5920
5883
|
}
|
|
5921
5884
|
};
|
|
5922
5885
|
},
|
|
5923
|
-
// 撤销重做 会把 所有的监听全都移除,所以需要重新绑定
|
|
5924
5886
|
setListener(dom) {
|
|
5925
5887
|
const me2 = this;
|
|
5926
5888
|
const doms = dom ? [dom] : Array.from(this.editorDom.children);
|
|
@@ -5931,7 +5893,7 @@ const _sfc_main = {
|
|
|
5931
5893
|
p.onclick = function(e) {
|
|
5932
5894
|
var _a;
|
|
5933
5895
|
if (area.nodeName === "VIDEO" && ((_a = me2.selectDom) == null ? void 0 : _a.className) === "halo-video-content") {
|
|
5934
|
-
me2.setToast("
|
|
5896
|
+
me2.setToast("\u4E0D\u652F\u6301\u64AD\u653E");
|
|
5935
5897
|
}
|
|
5936
5898
|
if (e.target.className.includes("desc-input")) {
|
|
5937
5899
|
return;
|
|
@@ -5995,7 +5957,6 @@ const _sfc_main = {
|
|
|
5995
5957
|
};
|
|
5996
5958
|
return del;
|
|
5997
5959
|
},
|
|
5998
|
-
// 转换数据,返回给业务
|
|
5999
5960
|
getEditorData() {
|
|
6000
5961
|
const me2 = this;
|
|
6001
5962
|
const children = Array.from(me2.editorDom.children);
|
|
@@ -6053,11 +6014,9 @@ const _sfc_main = {
|
|
|
6053
6014
|
videoIds
|
|
6054
6015
|
};
|
|
6055
6016
|
},
|
|
6056
|
-
// 是否是摩托范的图片
|
|
6057
6017
|
isHaloImage(url = "") {
|
|
6058
|
-
return url.indexOf("jddmoto") > -1 || url.indexOf("58moto") > -1 || url.indexOf("emotofine") > -1;
|
|
6018
|
+
return url.indexOf("jddmoto") > -1 || url.indexOf("58moto") > -1 || url.indexOf("emotofine") > -1 || url.indexOf("dronefine") > -1;
|
|
6059
6019
|
},
|
|
6060
|
-
// 获取待上传图片列表
|
|
6061
6020
|
updateUploads() {
|
|
6062
6021
|
const me2 = this;
|
|
6063
6022
|
setTimeout(() => {
|
|
@@ -6104,8 +6063,8 @@ const _sfc_main = {
|
|
|
6104
6063
|
const currentImg = me2.uploadStore[key];
|
|
6105
6064
|
const imageUrl = key.split("|")[1] || "";
|
|
6106
6065
|
if (!currentImg) {
|
|
6107
|
-
console.log("
|
|
6108
|
-
return Promise.reject("
|
|
6066
|
+
console.log("\u56FE\u7247\u4E0D\u5B58\u5728", key);
|
|
6067
|
+
return Promise.reject("\u56FE\u7247\u4E0D\u5B58\u5728");
|
|
6109
6068
|
}
|
|
6110
6069
|
const parent = currentImg.parentNode || "";
|
|
6111
6070
|
const uploadFailHandler = (currentImg2) => {
|
|
@@ -6149,7 +6108,6 @@ const _sfc_main = {
|
|
|
6149
6108
|
parent && uploadFailHandler(currentImg);
|
|
6150
6109
|
});
|
|
6151
6110
|
},
|
|
6152
|
-
// 更新上传的图片
|
|
6153
6111
|
updateImage(img, currentImg = {}) {
|
|
6154
6112
|
const data = JSON.parse(currentImg.getAttribute("data") || "{}");
|
|
6155
6113
|
data.img = img;
|
|
@@ -6172,7 +6130,6 @@ const _sfc_main = {
|
|
|
6172
6130
|
parent.appendChild(arr[2]);
|
|
6173
6131
|
}
|
|
6174
6132
|
},
|
|
6175
|
-
// 获取ctrl + v 后内容
|
|
6176
6133
|
getSticker(type, handler) {
|
|
6177
6134
|
this.setSticker(type.fragment.children);
|
|
6178
6135
|
},
|
|
@@ -6190,7 +6147,6 @@ const _sfc_main = {
|
|
|
6190
6147
|
});
|
|
6191
6148
|
this.updateData(true);
|
|
6192
6149
|
},
|
|
6193
|
-
// 粘贴
|
|
6194
6150
|
setSticker(data) {
|
|
6195
6151
|
const me2 = this;
|
|
6196
6152
|
data = Array.from(data);
|
|
@@ -6229,7 +6185,6 @@ const _sfc_main = {
|
|
|
6229
6185
|
const me2 = this;
|
|
6230
6186
|
me2.updateData();
|
|
6231
6187
|
},
|
|
6232
|
-
// 监测 添加、撤回、恢复、删除
|
|
6233
6188
|
setBack(e, type) {
|
|
6234
6189
|
const me2 = this;
|
|
6235
6190
|
me2.refreshImg();
|
|
@@ -6262,7 +6217,6 @@ const _sfc_main = {
|
|
|
6262
6217
|
}
|
|
6263
6218
|
});
|
|
6264
6219
|
},
|
|
6265
|
-
// 设置scoll
|
|
6266
6220
|
sticky() {
|
|
6267
6221
|
const me2 = this;
|
|
6268
6222
|
me2.$nextTick(function() {
|
|
@@ -6282,8 +6236,6 @@ const _sfc_main = {
|
|
|
6282
6236
|
document.addEventListener("scroll", onScroll);
|
|
6283
6237
|
});
|
|
6284
6238
|
},
|
|
6285
|
-
// ==========toolbox==========
|
|
6286
|
-
// 撤回、恢复、段落标题
|
|
6287
6239
|
setContent(e, obj) {
|
|
6288
6240
|
const me2 = this;
|
|
6289
6241
|
const id = e.target.id || e.target.dataset.editorId;
|
|
@@ -6325,11 +6277,10 @@ const _sfc_main = {
|
|
|
6325
6277
|
this.fontInfo = this.editor.getFontInfo();
|
|
6326
6278
|
this.updateData(true);
|
|
6327
6279
|
},
|
|
6328
|
-
// 增加link
|
|
6329
6280
|
addLink(type) {
|
|
6330
6281
|
const me2 = this;
|
|
6331
|
-
me2.linkTitleName = type === "link" ? "
|
|
6332
|
-
me2.linkPlaceholder = type === "link" ? "
|
|
6282
|
+
me2.linkTitleName = type === "link" ? "\u6DFB\u52A0\u94FE\u63A5" : "\u6DFB\u52A0\u5BFC\u5165\u94FE\u63A5\u5730\u5740";
|
|
6283
|
+
me2.linkPlaceholder = type === "link" ? "\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740" : "\u4EC5\u652F\u6301\u8F93\u5165\u5FAE\u4FE1\u94FE\u63A5";
|
|
6333
6284
|
me2.viewStatus = true;
|
|
6334
6285
|
me2.linkStatus = true;
|
|
6335
6286
|
},
|
|
@@ -6337,31 +6288,29 @@ const _sfc_main = {
|
|
|
6337
6288
|
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.,;?'&%$#=~_-]+))*$/;
|
|
6338
6289
|
return objExp.test(url);
|
|
6339
6290
|
},
|
|
6340
|
-
// 确认增加link
|
|
6341
6291
|
confirmLink() {
|
|
6342
6292
|
const me2 = this;
|
|
6343
6293
|
if (!me2.linkContent) {
|
|
6344
|
-
return ElMessage.error("
|
|
6294
|
+
return ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740\uFF01");
|
|
6345
6295
|
}
|
|
6346
|
-
if (me2.linkTitleName === "
|
|
6296
|
+
if (me2.linkTitleName === "\u6DFB\u52A0\u5BFC\u5165\u94FE\u63A5\u5730\u5740" || this.visibleCollectArticle) {
|
|
6347
6297
|
this.visibleCollectArticle = false;
|
|
6348
6298
|
return me2.importLinkData();
|
|
6349
6299
|
}
|
|
6350
6300
|
if (!this.validUrl(me2.linkContent)) {
|
|
6351
|
-
return me2.setToast("URL
|
|
6301
|
+
return me2.setToast("URL\u65E0\u6548");
|
|
6352
6302
|
}
|
|
6353
6303
|
if (!me2.isHaloImage(me2.linkContent)) {
|
|
6354
|
-
return me2.setToast("
|
|
6304
|
+
return me2.setToast("\u8BF7\u8F93\u5165\u6469\u6258\u8303\u5185\u90E8\u7F51\u5740");
|
|
6355
6305
|
}
|
|
6356
6306
|
me2.editor["insertLink"](me2.linkContent);
|
|
6357
6307
|
me2.linkContent = "";
|
|
6358
6308
|
me2.closeDialog();
|
|
6359
6309
|
},
|
|
6360
|
-
// 增加link导入数据
|
|
6361
6310
|
importLinkData() {
|
|
6362
6311
|
const me2 = this;
|
|
6363
6312
|
if (me2.loading) {
|
|
6364
|
-
return ElMessage("
|
|
6313
|
+
return ElMessage("\u6B63\u5728\u83B7\u53D6\u4FE1\u606F\uFF0C\u8BF7\u7A0D\u540E...");
|
|
6365
6314
|
}
|
|
6366
6315
|
me2.loading = true;
|
|
6367
6316
|
const params = {
|
|
@@ -6383,38 +6332,34 @@ const _sfc_main = {
|
|
|
6383
6332
|
me2.linkContent = "";
|
|
6384
6333
|
return;
|
|
6385
6334
|
} else {
|
|
6386
|
-
me2.setToast("
|
|
6335
|
+
me2.setToast("\u5BFC\u5165\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
|
|
6387
6336
|
}
|
|
6388
6337
|
}).catch((err) => {
|
|
6389
6338
|
console.log(err.message);
|
|
6390
|
-
me2.setToast("
|
|
6339
|
+
me2.setToast("\u5BFC\u5165\u5F02\u5E38\uFF0C\u8BF7\u91CD\u8BD5");
|
|
6391
6340
|
}).finally((_) => {
|
|
6392
6341
|
me2.loading = false;
|
|
6393
6342
|
});
|
|
6394
6343
|
},
|
|
6395
|
-
// 打开 图片、视频、一键导入 弹框
|
|
6396
6344
|
openDialog(name) {
|
|
6397
6345
|
const me2 = this;
|
|
6398
|
-
me2.viewName = name === "img" ? "
|
|
6399
|
-
me2.viewButton = name === "img" ? "
|
|
6400
|
-
me2.viewTip = name === "img" ? "" : "
|
|
6346
|
+
me2.viewName = name === "img" ? "\u6DFB\u52A0\u56FE\u7247" : "\u6DFB\u52A0\u89C6\u9891";
|
|
6347
|
+
me2.viewButton = name === "img" ? "\u9009\u62E9\u56FE\u7247" : "\u9009\u62E9\u89C6\u9891";
|
|
6348
|
+
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)";
|
|
6401
6349
|
me2.viewStatus = true;
|
|
6402
6350
|
},
|
|
6403
|
-
// 关闭弹框
|
|
6404
6351
|
closeDialog() {
|
|
6405
6352
|
this.viewStatus = false;
|
|
6406
6353
|
this.linkStatus = false;
|
|
6407
6354
|
this.linkContent = "";
|
|
6408
6355
|
},
|
|
6409
|
-
// ==========toolbox end==========
|
|
6410
|
-
// 弹框提示
|
|
6411
6356
|
setToast(content) {
|
|
6412
6357
|
ElMessage.error(content);
|
|
6413
6358
|
},
|
|
6414
6359
|
setMessageBoxNoCancel(content) {
|
|
6415
6360
|
ElMessageBox.confirm(content, "", {
|
|
6416
|
-
confirmButtonText: "
|
|
6417
|
-
cancelButtonText: "
|
|
6361
|
+
confirmButtonText: "\u786E\u5B9A",
|
|
6362
|
+
cancelButtonText: "\u53D6\u6D88",
|
|
6418
6363
|
type: "warning"
|
|
6419
6364
|
}).then(() => {
|
|
6420
6365
|
}).catch(() => {
|
|
@@ -6445,7 +6390,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6445
6390
|
withDirectives(createElementVNode("div", {
|
|
6446
6391
|
style: normalizeStyle({ textAlign: $options.align }),
|
|
6447
6392
|
class: "placeholder"
|
|
6448
|
-
}, "
|
|
6393
|
+
}, " \u8BF7\u8F93\u5165\u6B63\u6587 ", 4), [
|
|
6449
6394
|
[vShow, !$options.isInputing && !$data.titleCount && !$data.hasArticleCard]
|
|
6450
6395
|
]),
|
|
6451
6396
|
$data.overLine ? (openBlock(), createElementBlock("div", {
|
|
@@ -6470,26 +6415,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6470
6415
|
createVNode(_component_el_form, { model: $data.linkForm }, {
|
|
6471
6416
|
default: withCtx(() => [
|
|
6472
6417
|
createVNode(_component_el_form_item, {
|
|
6473
|
-
label: "
|
|
6418
|
+
label: "\u6DFB\u52A0\u94FE\u63A5",
|
|
6474
6419
|
class: "link-title"
|
|
6475
6420
|
}, {
|
|
6476
6421
|
default: withCtx(() => [
|
|
6477
6422
|
createVNode(_component_el_input, {
|
|
6478
6423
|
modelValue: $data.linkForm.linkAddress,
|
|
6479
6424
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.linkForm.linkAddress = $event),
|
|
6480
|
-
placeholder: "
|
|
6425
|
+
placeholder: "\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"
|
|
6481
6426
|
}, null, 8, ["modelValue"])
|
|
6482
6427
|
]),
|
|
6483
6428
|
_: 1
|
|
6484
6429
|
}),
|
|
6485
|
-
createVNode(_component_el_form_item, { label: "
|
|
6430
|
+
createVNode(_component_el_form_item, { label: "\u94FE\u63A5\u6587\u6848" }, {
|
|
6486
6431
|
default: withCtx(() => [
|
|
6487
6432
|
createVNode(_component_el_input, {
|
|
6488
6433
|
modelValue: $data.linkForm.linkWriting,
|
|
6489
6434
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.linkForm.linkWriting = $event),
|
|
6490
6435
|
type: "textarea",
|
|
6491
6436
|
autosize: "",
|
|
6492
|
-
placeholder: "
|
|
6437
|
+
placeholder: "\u8BF7\u8F93\u5165\u94FE\u63A5\u6587\u6848"
|
|
6493
6438
|
}, null, 8, ["modelValue"])
|
|
6494
6439
|
]),
|
|
6495
6440
|
_: 1
|
|
@@ -6502,18 +6447,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6502
6447
|
createVNode(_component_el_button, {
|
|
6503
6448
|
onClick: _cache[3] || (_cache[3] = ($event) => $data.viewLinkDialog = false)
|
|
6504
6449
|
}, {
|
|
6505
|
-
default: withCtx(() =>
|
|
6506
|
-
createTextVNode("
|
|
6507
|
-
])
|
|
6450
|
+
default: withCtx(() => [
|
|
6451
|
+
createTextVNode("\u53D6 \u6D88")
|
|
6452
|
+
]),
|
|
6508
6453
|
_: 1
|
|
6509
6454
|
}),
|
|
6510
6455
|
createVNode(_component_el_button, {
|
|
6511
6456
|
type: "primary",
|
|
6512
6457
|
onClick: $options.insertLink
|
|
6513
6458
|
}, {
|
|
6514
|
-
default: withCtx(() =>
|
|
6515
|
-
createTextVNode("
|
|
6516
|
-
])
|
|
6459
|
+
default: withCtx(() => [
|
|
6460
|
+
createTextVNode("\u786E \u5B9A")
|
|
6461
|
+
]),
|
|
6517
6462
|
_: 1
|
|
6518
6463
|
}, 8, ["onClick"])
|
|
6519
6464
|
])
|