@haluo/biz 2.0.48 → 2.0.50
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 +39 -39
- package/dist/haluo-biz.js +621 -731
- package/dist/haluo-biz.umd.cjs +633 -754
- package/dist/{squire-raw-1aaeff0b.js → squire-raw.85a430e7.js} +4 -18
- package/dist/style.css +28 -28
- package/package.json +48 -48
package/dist/haluo-biz.umd.cjs
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("element-plus"), require("vue"), require("@element-plus/icons-vue"), require("@haluo/util"), require("vuedraggable")) : typeof define === "function" && define.amd ? define(["exports", "element-plus", "vue", "@element-plus/icons-vue", "@haluo/util", "vuedraggable"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["haluo-biz"] = {}, global2["element-plus"], global2.Vue, global2["@element-plus/icons-vue"], global2.hUtil, global2.vuedraggable));
|
|
3
3
|
})(this, function(exports2, elementPlus, vue, iconsVue, util, draggable) {
|
|
4
4
|
"use strict";
|
|
5
|
+
const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
6
|
+
const util__default = /* @__PURE__ */ _interopDefaultLegacy(util);
|
|
7
|
+
const draggable__default = /* @__PURE__ */ _interopDefaultLegacy(draggable);
|
|
5
8
|
const __vite_glob_0_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLBAMAAADKYGfZAAAAG1BMVEUAAAAAAABHcExSUlLz8/P////IyMifn5/k5OQx49C2AAAACXRSTlMzZgB/7//CpN1ci7LLAAABHUlEQVR4AY3TgUbAUBjF8e0NmiiAY28QIYCkXqB9GUBIT7AHCHvvss3l73Y4g3vx87ft3m8Yp+C5GZSxecyYMuZzZMqYz5EpYz5Hpoz5HJkS1uceP67N7TeYyF7r59xs9XmxlgNbj/W+6hmMua86c9vfCsbcXdV6xpYHsj53xF4msj7XYmB97oqB9bmlxcC6XIuBdbkWI2Nur3qfyFouqc0K3g05/6XI+f+GnD8F5NyZMmdvCHP2vjFX7vYyt7tZYO7p7f/JYs7NKXMZk2fMZUyeMZcxecZcxuQZcxmTZ8xlTJ4xlzF5xlzG5BlzGZNnzGVMnjGXMXnGXMbkGXMZk2fMZUyeMZcxecZcxuQZcxmTZ8xlTJ4xlzFlbB5+AVncQI3j46OFAAAAAElFTkSuQmCC";
|
|
6
9
|
const __vite_glob_0_2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkU2MThGQUEzOUM3QTExRThBMkI0RDI5RUQ4MzE1NUMwIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkU2MThGQUE0OUM3QTExRThBMkI0RDI5RUQ4MzE1NUMwIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RTYxOEZBQTE5QzdBMTFFOEEyQjREMjlFRDgzMTU1QzAiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RTYxOEZBQTI5QzdBMTFFOEEyQjREMjlFRDgzMTU1QzAiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6cZvOcAAABiklEQVR42uyXu0rEQBRAs3GxtlHEIqDFioWIkA+wUBCsFKwUGxdRrHSx8Ed8gIWlIKyICKIigu0uYmFjIbIfIFqJyhrPwC3CEIvNZEKEGThMHpAcJvcxKUVR5BV5+F7BhxN0gk7QCTpBSyMMw37oLqQgYgNMt1A3lfQtyd3AMMyYSvoW5dTcMpX0LcrNw5SpZCntdouXxU974U6Te5V7FbiCAM5hrtFofOW9gj3wJnILsAhdcu8JLuR4GiY6eXDZUKxPVu8RNuAZdmFWVnMd9mEF2lBl9S7zElQxdy2fchOacCRy6tpBgtxhLkkSS4gR+IQXTW4SVk3lUgkmZKuKuT1N7htGZU4t13EW/yG3o8n9wAOMq8xF7tQkyMuGde4dPrTPOgbLcC94uQgytkVOFd61WJ1bgkHYisXckGR2rruZmhTaQApvRa63NbkqnGXVoTqNQdWq6tK6WtLKallka2atLkEysCWXuhdrktbkTDcLSvIYTmzJGQm6nyYn6ASdoBN0gv9D8FeAAQD7bZlccR+RLgAAAABJRU5ErkJggg==";
|
|
7
10
|
const __vite_glob_0_3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA8CAYAAAAOhRhuAAAAAXNSR0IArs4c6QAAALZJREFUaEPtlLENwCAMBGEilmAOhmNMmkTp0h1BLqzoIlGdYqzzm7rWukqir9oQTENDFFcNaYgMEDdDGiIDxM2QhsgAcTMUYmjOSXWOeGutPOf9bY2s9350If00xijP+dwQFY7kW4YiL6RaNqQhMkB8K0Pp1j7dw0iaI/nWyCIvpFo29E9D6bYs3TtEc4/kbhnZ1NA/DaVb+3QPI809krtlZFNDGiIDxM2QhsgAcTOkITJAPF2GbhF2A9gQfAOGAAAAAElFTkSuQmCC";
|
|
@@ -110,6 +113,7 @@
|
|
|
110
113
|
}
|
|
111
114
|
const D = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, R = "__vueuse_ssr_handlers__";
|
|
112
115
|
D[R] = D[R] || {};
|
|
116
|
+
D[R];
|
|
113
117
|
var q;
|
|
114
118
|
(function(e) {
|
|
115
119
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
@@ -151,7 +155,7 @@
|
|
|
151
155
|
ke({
|
|
152
156
|
linear: me
|
|
153
157
|
}, he);
|
|
154
|
-
const J = (e) => (vue.pushScopeId("data-v-b46fc003"), e = e(), vue.popScopeId(), e), we = { class: "hd" }, Oe = { class: "bd" }, Ie = /* @__PURE__ */ J(() => /* @__PURE__ */ vue.createElementVNode("h3", null, "
|
|
158
|
+
const J = (e) => (vue.pushScopeId("data-v-b46fc003"), e = e(), vue.popScopeId(), e), we = { class: "hd" }, Oe = { class: "bd" }, Ie = /* @__PURE__ */ J(() => /* @__PURE__ */ vue.createElementVNode("h3", null, "\u4E3B\u9898\u989C\u8272", -1)), Ee = { class: "tColor" }, Pe = ["onMouseover", "onClick"], Me = { class: "bColor" }, Ae = ["onMouseover", "onClick"], $e = /* @__PURE__ */ J(() => /* @__PURE__ */ vue.createElementVNode("h3", null, "\u6807\u51C6\u989C\u8272", -1)), Te = { class: "tColor" }, Be = ["onMouseover", "onClick"], Ve = {
|
|
155
159
|
name: "colorPicker"
|
|
156
160
|
}, Ne = /* @__PURE__ */ vue.defineComponent({
|
|
157
161
|
...Ve,
|
|
@@ -216,13 +220,13 @@
|
|
|
216
220
|
l.stopPropagation();
|
|
217
221
|
})
|
|
218
222
|
}, [
|
|
219
|
-
vue.createCommentVNode("
|
|
223
|
+
vue.createCommentVNode(" \u989C\u8272\u663E\u793A\u5C0F\u65B9\u5757 "),
|
|
220
224
|
vue.createElementVNode("div", {
|
|
221
225
|
class: vue.normalizeClass(["colorBtn", { disabled: e.disabled }]),
|
|
222
226
|
style: vue.normalizeStyle(`background-color: ${vue.unref(a)}`),
|
|
223
227
|
onClick: p
|
|
224
228
|
}, null, 6),
|
|
225
|
-
vue.createCommentVNode("
|
|
229
|
+
vue.createCommentVNode(" \u989C\u8272\u8272\u76D8 "),
|
|
226
230
|
vue.createElementVNode("div", {
|
|
227
231
|
class: vue.normalizeClass(["box", { open: s.value }])
|
|
228
232
|
}, [
|
|
@@ -236,7 +240,7 @@
|
|
|
236
240
|
onClick: Y,
|
|
237
241
|
onMouseover: r[0] || (r[0] = (l) => d(e.defaultColor)),
|
|
238
242
|
onMouseout: r[1] || (r[1] = (l) => d(""))
|
|
239
|
-
}, "
|
|
243
|
+
}, "\u9ED8\u8BA4\u989C\u8272", 32)
|
|
240
244
|
]),
|
|
241
245
|
vue.createElementVNode("div", Oe, [
|
|
242
246
|
Ie,
|
|
@@ -272,8 +276,8 @@
|
|
|
272
276
|
onClick: (f) => E(l)
|
|
273
277
|
}, null, 44, Be)), 64))
|
|
274
278
|
]),
|
|
275
|
-
vue.createElementVNode("h3", { onClick: X }, "
|
|
276
|
-
vue.createCommentVNode("
|
|
279
|
+
vue.createElementVNode("h3", { onClick: X }, "\u66F4\u591A\u989C\u8272..."),
|
|
280
|
+
vue.createCommentVNode(" \u7528\u4EE5\u6FC0\u6D3BHTML5\u989C\u8272\u9762\u677F "),
|
|
277
281
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
278
282
|
type: "color",
|
|
279
283
|
ref_key: "html5ColorEl",
|
|
@@ -307,7 +311,7 @@
|
|
|
307
311
|
colorPicker: O
|
|
308
312
|
};
|
|
309
313
|
const style = "";
|
|
310
|
-
const
|
|
314
|
+
const ToolBar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
311
315
|
const ToolBar_vue_vue_type_style_index_1_lang = "";
|
|
312
316
|
const _export_sfc = (sfc, props) => {
|
|
313
317
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -337,15 +341,15 @@
|
|
|
337
341
|
activeImgType: false,
|
|
338
342
|
activeAlign: "",
|
|
339
343
|
alignMethods: [
|
|
340
|
-
{ value: "left", name: "
|
|
341
|
-
{ value: "right", name: "
|
|
342
|
-
{ value: "center", name: "
|
|
343
|
-
{ value: "justify", name: "
|
|
344
|
+
{ value: "left", name: "\u5DE6\u5BF9\u9F50" },
|
|
345
|
+
{ value: "right", name: "\u53F3\u5BF9\u9F50" },
|
|
346
|
+
{ value: "center", name: "\u5C45\u4E2D\u5BF9\u9F50" },
|
|
347
|
+
{ value: "justify", name: "\u4E24\u7AEF\u5BF9\u9F50" }
|
|
344
348
|
],
|
|
345
349
|
activeFontsize: "17",
|
|
346
350
|
fontsizes: [
|
|
347
|
-
{ value: "17px", name: "17", desc: "
|
|
348
|
-
{ value: "18px", name: "18", desc: "
|
|
351
|
+
{ value: "17px", name: "17", desc: "\u9ED8\u8BA4\u6B63\u6587\u5B57\u53F7" },
|
|
352
|
+
{ value: "18px", name: "18", desc: "\u9ED8\u8BA4\u6807\u9898\u5B57\u53F7" },
|
|
349
353
|
{ value: "19px", name: "19" },
|
|
350
354
|
{ value: "20px", name: "20" },
|
|
351
355
|
{ value: "24px", name: "24" },
|
|
@@ -426,7 +430,7 @@
|
|
|
426
430
|
this.editor.clearFormat();
|
|
427
431
|
},
|
|
428
432
|
setColor(val) {
|
|
429
|
-
console.log("
|
|
433
|
+
console.log("\u6587\u5B57\u989C\u8272");
|
|
430
434
|
this.updatePosition(() => {
|
|
431
435
|
this.editor.setColor(val);
|
|
432
436
|
});
|
|
@@ -485,7 +489,6 @@
|
|
|
485
489
|
this.popoverVisibleList = false;
|
|
486
490
|
this.popoverVisibleImg = false;
|
|
487
491
|
},
|
|
488
|
-
// todo 富文本设置样式位置会回到顶部
|
|
489
492
|
updatePosition(fn) {
|
|
490
493
|
const scrollTop = document.documentElement.scrollTop;
|
|
491
494
|
fn && fn();
|
|
@@ -522,9 +525,9 @@
|
|
|
522
525
|
key: 0,
|
|
523
526
|
class: "tools"
|
|
524
527
|
};
|
|
525
|
-
const _hoisted_2$
|
|
526
|
-
const _hoisted_3$
|
|
527
|
-
const _hoisted_4$
|
|
528
|
+
const _hoisted_2$7 = { class: "tools-content" };
|
|
529
|
+
const _hoisted_3$7 = ["src"];
|
|
530
|
+
const _hoisted_4$4 = ["src"];
|
|
528
531
|
const _hoisted_5$3 = ["src"];
|
|
529
532
|
const _hoisted_6$2 = { class: "box" };
|
|
530
533
|
const _hoisted_7$2 = ["src"];
|
|
@@ -565,9 +568,9 @@
|
|
|
565
568
|
key: 0,
|
|
566
569
|
class: "box-mask"
|
|
567
570
|
};
|
|
568
|
-
const _hoisted_30 = { class: "box" };
|
|
569
|
-
const _hoisted_31 = ["src"];
|
|
570
|
-
const _hoisted_32 = ["src"];
|
|
571
|
+
const _hoisted_30$1 = { class: "box" };
|
|
572
|
+
const _hoisted_31$1 = ["src"];
|
|
573
|
+
const _hoisted_32$1 = ["src"];
|
|
571
574
|
const _hoisted_33 = ["src"];
|
|
572
575
|
const _hoisted_34 = ["src"];
|
|
573
576
|
const _hoisted_35 = { class: "tools-title" };
|
|
@@ -591,11 +594,11 @@
|
|
|
591
594
|
const _component_colorPicker = vue.resolveComponent("colorPicker");
|
|
592
595
|
const _directive_click_outside = vue.resolveDirective("click-outside");
|
|
593
596
|
return $props.editor.fontInfo ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
|
|
594
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
597
|
+
vue.createElementVNode("div", _hoisted_2$7, [
|
|
595
598
|
vue.createVNode(_component_el_tooltip, {
|
|
596
599
|
class: "item",
|
|
597
600
|
effect: "dark",
|
|
598
|
-
content: "
|
|
601
|
+
content: "\u64A4\u56DE",
|
|
599
602
|
placement: "top"
|
|
600
603
|
}, {
|
|
601
604
|
default: vue.withCtx(() => [
|
|
@@ -607,14 +610,14 @@
|
|
|
607
610
|
height: "40",
|
|
608
611
|
alt: "",
|
|
609
612
|
onClick: _cache[0] || (_cache[0] = ($event) => $options.back($event))
|
|
610
|
-
}, null, 12, _hoisted_3$
|
|
613
|
+
}, null, 12, _hoisted_3$7)
|
|
611
614
|
]),
|
|
612
615
|
_: 1
|
|
613
616
|
}),
|
|
614
617
|
vue.createVNode(_component_el_tooltip, {
|
|
615
618
|
class: "item",
|
|
616
619
|
effect: "dark",
|
|
617
|
-
content: "
|
|
620
|
+
content: "\u53CD\u64A4\u56DE",
|
|
618
621
|
placement: "top"
|
|
619
622
|
}, {
|
|
620
623
|
default: vue.withCtx(() => [
|
|
@@ -626,7 +629,7 @@
|
|
|
626
629
|
height: "40",
|
|
627
630
|
alt: "",
|
|
628
631
|
onClick: _cache[1] || (_cache[1] = ($event) => $options.forward($event))
|
|
629
|
-
}, null, 12, _hoisted_4$
|
|
632
|
+
}, null, 12, _hoisted_4$4)
|
|
630
633
|
]),
|
|
631
634
|
_: 1
|
|
632
635
|
}),
|
|
@@ -637,7 +640,7 @@
|
|
|
637
640
|
vue.createVNode(_component_el_tooltip, {
|
|
638
641
|
class: "item",
|
|
639
642
|
effect: "dark",
|
|
640
|
-
content: "
|
|
643
|
+
content: "\u6E05\u9664\u683C\u5F0F",
|
|
641
644
|
placement: "top"
|
|
642
645
|
}, {
|
|
643
646
|
default: vue.withCtx(() => [
|
|
@@ -654,7 +657,7 @@
|
|
|
654
657
|
vue.createVNode(_component_el_tooltip, {
|
|
655
658
|
class: "item",
|
|
656
659
|
effect: "dark",
|
|
657
|
-
content: "
|
|
660
|
+
content: "\u683C\u5F0F\u5237",
|
|
658
661
|
placement: "top"
|
|
659
662
|
}, {
|
|
660
663
|
default: vue.withCtx(() => [
|
|
@@ -685,7 +688,7 @@
|
|
|
685
688
|
vue.createVNode(_component_el_tooltip, {
|
|
686
689
|
class: "item",
|
|
687
690
|
effect: "dark",
|
|
688
|
-
content: "
|
|
691
|
+
content: "\u5B57\u53F7",
|
|
689
692
|
placement: "top"
|
|
690
693
|
}, {
|
|
691
694
|
default: vue.withCtx(() => [
|
|
@@ -735,7 +738,7 @@
|
|
|
735
738
|
vue.createVNode(_component_el_tooltip, {
|
|
736
739
|
class: "item",
|
|
737
740
|
effect: "dark",
|
|
738
|
-
content: "
|
|
741
|
+
content: "\u6807\u9898",
|
|
739
742
|
placement: "top"
|
|
740
743
|
}, {
|
|
741
744
|
default: vue.withCtx(() => [
|
|
@@ -756,7 +759,7 @@
|
|
|
756
759
|
vue.createVNode(_component_el_tooltip, {
|
|
757
760
|
class: "item",
|
|
758
761
|
effect: "dark",
|
|
759
|
-
content: "
|
|
762
|
+
content: "\u52A0\u7C97",
|
|
760
763
|
placement: "top"
|
|
761
764
|
}, {
|
|
762
765
|
default: vue.withCtx(() => [
|
|
@@ -784,7 +787,7 @@
|
|
|
784
787
|
vue.createVNode(_component_el_tooltip, {
|
|
785
788
|
class: "item",
|
|
786
789
|
effect: "dark",
|
|
787
|
-
content: "
|
|
790
|
+
content: "\u5217\u8868",
|
|
788
791
|
placement: "top"
|
|
789
792
|
}, {
|
|
790
793
|
default: vue.withCtx(() => [
|
|
@@ -818,13 +821,13 @@
|
|
|
818
821
|
onClick: _cache[8] || (_cache[8] = ($event) => $options.updatePosition(() => {
|
|
819
822
|
$options.setStyle("makeUnorderedList");
|
|
820
823
|
}))
|
|
821
|
-
}, "
|
|
824
|
+
}, "\u65E0\u5E8F\u5217\u8868"),
|
|
822
825
|
vue.createElementVNode("li", {
|
|
823
826
|
"data-editor-id": "makeHeader",
|
|
824
827
|
onClick: _cache[9] || (_cache[9] = ($event) => $options.updatePosition(() => {
|
|
825
828
|
$options.setStyle("makeOrderedList");
|
|
826
829
|
}))
|
|
827
|
-
}, "
|
|
830
|
+
}, "\u6709\u5E8F\u5217\u8868")
|
|
828
831
|
])), [
|
|
829
832
|
[_directive_click_outside, $options.handlePopover]
|
|
830
833
|
])
|
|
@@ -835,7 +838,7 @@
|
|
|
835
838
|
vue.createVNode(_component_el_tooltip, {
|
|
836
839
|
class: "item",
|
|
837
840
|
effect: "dark",
|
|
838
|
-
content: "
|
|
841
|
+
content: "\u503E\u659C",
|
|
839
842
|
placement: "top"
|
|
840
843
|
}, {
|
|
841
844
|
default: vue.withCtx(() => [
|
|
@@ -855,7 +858,7 @@
|
|
|
855
858
|
vue.createVNode(_component_el_tooltip, {
|
|
856
859
|
class: "item",
|
|
857
860
|
effect: "dark",
|
|
858
|
-
content: "
|
|
861
|
+
content: "\u4E0B\u5212\u7EBF",
|
|
859
862
|
placement: "top"
|
|
860
863
|
}, {
|
|
861
864
|
default: vue.withCtx(() => [
|
|
@@ -876,18 +879,18 @@
|
|
|
876
879
|
key: 0,
|
|
877
880
|
class: "item",
|
|
878
881
|
effect: "dark",
|
|
879
|
-
content: "
|
|
882
|
+
content: "\u94FE\u63A5",
|
|
880
883
|
placement: "top"
|
|
881
884
|
}, {
|
|
882
885
|
default: vue.withCtx(() => [
|
|
883
|
-
vue.createElementVNode("div", _hoisted_30, [
|
|
886
|
+
vue.createElementVNode("div", _hoisted_30$1, [
|
|
884
887
|
vue.createElementVNode("img", {
|
|
885
888
|
src: $options.getImageUrl("icon_web_link@2x.png"),
|
|
886
889
|
width: "40",
|
|
887
890
|
height: "40",
|
|
888
891
|
alt: "",
|
|
889
892
|
onClick: _cache[12] || (_cache[12] = (...args) => $options.insertLink && $options.insertLink(...args))
|
|
890
|
-
}, null, 8, _hoisted_31)
|
|
893
|
+
}, null, 8, _hoisted_31$1)
|
|
891
894
|
])
|
|
892
895
|
]),
|
|
893
896
|
_: 1
|
|
@@ -895,7 +898,7 @@
|
|
|
895
898
|
vue.createVNode(_component_el_tooltip, {
|
|
896
899
|
class: "item",
|
|
897
900
|
effect: "dark",
|
|
898
|
-
content: "
|
|
901
|
+
content: "\u9996\u884C\u7F29\u8FDB",
|
|
899
902
|
placement: "top"
|
|
900
903
|
}, {
|
|
901
904
|
default: vue.withCtx(() => [
|
|
@@ -905,14 +908,14 @@
|
|
|
905
908
|
height: "40",
|
|
906
909
|
alt: "",
|
|
907
910
|
onClick: _cache[13] || (_cache[13] = ($event) => $options.setStyle("setIndent"))
|
|
908
|
-
}, null, 8, _hoisted_32)
|
|
911
|
+
}, null, 8, _hoisted_32$1)
|
|
909
912
|
]),
|
|
910
913
|
_: 1
|
|
911
914
|
}),
|
|
912
915
|
vue.createVNode(_component_el_tooltip, {
|
|
913
916
|
class: "item",
|
|
914
917
|
effect: "dark",
|
|
915
|
-
content: "
|
|
918
|
+
content: "\u6587\u5B57\u989C\u8272",
|
|
916
919
|
placement: "top"
|
|
917
920
|
}, {
|
|
918
921
|
default: vue.withCtx(() => [
|
|
@@ -956,7 +959,7 @@
|
|
|
956
959
|
vue.createVNode(_component_el_tooltip, {
|
|
957
960
|
class: "item",
|
|
958
961
|
effect: "dark",
|
|
959
|
-
content: "
|
|
962
|
+
content: "\u5BF9\u9F50\u65B9\u5F0F",
|
|
960
963
|
placement: "top"
|
|
961
964
|
}, {
|
|
962
965
|
default: vue.withCtx(() => [
|
|
@@ -1014,7 +1017,7 @@
|
|
|
1014
1017
|
vue.createVNode(_component_el_tooltip, {
|
|
1015
1018
|
class: "item",
|
|
1016
1019
|
effect: "dark",
|
|
1017
|
-
content: "
|
|
1020
|
+
content: "\u63D2\u5165\u56FE\u7247",
|
|
1018
1021
|
placement: "top"
|
|
1019
1022
|
}, {
|
|
1020
1023
|
default: vue.withCtx(() => [
|
|
@@ -1036,11 +1039,11 @@
|
|
|
1036
1039
|
vue.createElementVNode("li", {
|
|
1037
1040
|
class: vue.normalizeClass([$data.activeImgType === "normal" ? "active" : ""]),
|
|
1038
1041
|
onClick: _cache[18] || (_cache[18] = ($event) => $options.insertImg("normal"))
|
|
1039
|
-
}, vue.toDisplayString("
|
|
1042
|
+
}, vue.toDisplayString("\u4E0A\u4F20\u56FE\u7247"), 2),
|
|
1040
1043
|
vue.createElementVNode("li", {
|
|
1041
1044
|
class: vue.normalizeClass([$data.activeImgType === "seamless" ? "active" : ""]),
|
|
1042
1045
|
onClick: _cache[19] || (_cache[19] = ($event) => $options.insertImg("seamless"))
|
|
1043
|
-
}, vue.toDisplayString("
|
|
1046
|
+
}, vue.toDisplayString("\u4E0A\u4F20\u65E0\u7F1D\u62FC\u63A5\u56FE\u7247"), 2)
|
|
1044
1047
|
])), [
|
|
1045
1048
|
[_directive_click_outside, $options.handlePopover]
|
|
1046
1049
|
])
|
|
@@ -1051,7 +1054,7 @@
|
|
|
1051
1054
|
key: 2,
|
|
1052
1055
|
class: "item",
|
|
1053
1056
|
effect: "dark",
|
|
1054
|
-
content: "
|
|
1057
|
+
content: "\u63D2\u5165\u89C6\u9891",
|
|
1055
1058
|
placement: "top"
|
|
1056
1059
|
}, {
|
|
1057
1060
|
default: vue.withCtx(() => [
|
|
@@ -1069,7 +1072,7 @@
|
|
|
1069
1072
|
key: 3,
|
|
1070
1073
|
class: "item",
|
|
1071
1074
|
effect: "dark",
|
|
1072
|
-
content: "
|
|
1075
|
+
content: "\u63D2\u5165\u6587\u7AE0/\u89C6\u9891",
|
|
1073
1076
|
placement: "top"
|
|
1074
1077
|
}, {
|
|
1075
1078
|
default: vue.withCtx(() => [
|
|
@@ -1087,7 +1090,7 @@
|
|
|
1087
1090
|
key: 4,
|
|
1088
1091
|
class: "item",
|
|
1089
1092
|
effect: "dark",
|
|
1090
|
-
content: "
|
|
1093
|
+
content: "\u91C7\u96C6\u6587\u7AE0",
|
|
1091
1094
|
placement: "top"
|
|
1092
1095
|
}, {
|
|
1093
1096
|
default: vue.withCtx(() => [
|
|
@@ -1104,15 +1107,17 @@
|
|
|
1104
1107
|
])
|
|
1105
1108
|
])) : vue.createCommentVNode("", true);
|
|
1106
1109
|
}
|
|
1107
|
-
const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$4], ["__scopeId", "data-v-
|
|
1110
|
+
const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$4], ["__scopeId", "data-v-52e48332"]]);
|
|
1108
1111
|
const __vite_glob_0_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAmCAYAAAClI5npAAAA0UlEQVR42uWYwQnDMAxFfckAXkFDmGzgS1foDpnFS3gTb+IFtIDyA4UeBKUtNR8qwTvlkAdyfmSletySmRUwgIIJOijXs9VcLxegwNVDRFYLdHtdCg6wrRKY9l4NUFYIqH1WDeTfCXxXE9w5Ar4tQhBwh7SBjSDg2lJJAj47SAI+OwgC7pDuJAGfHQQBnx0kAZ8dBAF3SOtTgCchybjV2QLKFpihW6BAQn6GA0i4KG4g037H4QaSDiTWUMocyweQcFezBjLrer5TFxR/uaKhL6lOdeUQ8G6X1pQAAAAASUVORK5CYII=";
|
|
1112
|
+
const index_vue_vue_type_style_index_0_lang$5 = "";
|
|
1109
1113
|
const _hoisted_1$7 = { key: 0 };
|
|
1110
|
-
const _hoisted_2$
|
|
1111
|
-
const _hoisted_3$
|
|
1114
|
+
const _hoisted_2$6 = { class: "basic-dialog_title" };
|
|
1115
|
+
const _hoisted_3$6 = /* @__PURE__ */ vue.createElementVNode("span", { class: "basic-dialog_divider" }, null, -1);
|
|
1116
|
+
const _hoisted_4$3 = {
|
|
1112
1117
|
key: 0,
|
|
1113
1118
|
class: "dialog-footer"
|
|
1114
1119
|
};
|
|
1115
|
-
const _sfc_main$7 =
|
|
1120
|
+
const _sfc_main$7 = vue.defineComponent({
|
|
1116
1121
|
__name: "index",
|
|
1117
1122
|
props: {
|
|
1118
1123
|
visible: { type: Boolean, default: false },
|
|
@@ -1154,23 +1159,23 @@
|
|
|
1154
1159
|
}, {
|
|
1155
1160
|
header: vue.withCtx(() => [
|
|
1156
1161
|
_ctx.showTitle ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
|
|
1157
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
1158
|
-
|
|
1162
|
+
vue.createElementVNode("div", _hoisted_2$6, [
|
|
1163
|
+
_hoisted_3$6,
|
|
1159
1164
|
vue.renderSlot(_ctx.$slots, "title")
|
|
1160
1165
|
])
|
|
1161
1166
|
])) : vue.createCommentVNode("", true)
|
|
1162
1167
|
]),
|
|
1163
1168
|
footer: vue.withCtx(() => [
|
|
1164
|
-
_ctx.showBtn ? (vue.openBlock(), vue.createElementBlock("span",
|
|
1169
|
+
_ctx.showBtn ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$3, [
|
|
1165
1170
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
1166
1171
|
style: { "width": "120px", "border-color": "#cccccc", "color": "#333333" },
|
|
1167
1172
|
plain: "",
|
|
1168
1173
|
round: "",
|
|
1169
1174
|
onClick: handleClose
|
|
1170
1175
|
}, {
|
|
1171
|
-
default: vue.withCtx(() =>
|
|
1172
|
-
vue.createTextVNode("
|
|
1173
|
-
])
|
|
1176
|
+
default: vue.withCtx(() => [
|
|
1177
|
+
vue.createTextVNode("\u53D6\u6D88")
|
|
1178
|
+
]),
|
|
1174
1179
|
_: 1
|
|
1175
1180
|
}),
|
|
1176
1181
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
@@ -1179,9 +1184,9 @@
|
|
|
1179
1184
|
type: "primary",
|
|
1180
1185
|
onClick: confirm
|
|
1181
1186
|
}, {
|
|
1182
|
-
default: vue.withCtx(() =>
|
|
1183
|
-
vue.createTextVNode("
|
|
1184
|
-
])
|
|
1187
|
+
default: vue.withCtx(() => [
|
|
1188
|
+
vue.createTextVNode("\u786E\u8BA4")
|
|
1189
|
+
]),
|
|
1185
1190
|
_: 1
|
|
1186
1191
|
})
|
|
1187
1192
|
])) : vue.createCommentVNode("", true)
|
|
@@ -1194,14 +1199,12 @@
|
|
|
1194
1199
|
};
|
|
1195
1200
|
}
|
|
1196
1201
|
});
|
|
1197
|
-
const index_vue_vue_type_style_index_0_lang$5 = "";
|
|
1198
1202
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
1199
1203
|
function getDefaultExportFromCjs(x) {
|
|
1200
1204
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1201
1205
|
}
|
|
1202
|
-
var date$
|
|
1203
|
-
|
|
1204
|
-
Object.defineProperty(date, "__esModule", { value: true });
|
|
1206
|
+
var date$1 = { exports: {} };
|
|
1207
|
+
Object.defineProperty(date$1.exports, "__esModule", { value: true });
|
|
1205
1208
|
function replacementDate(data, fmt) {
|
|
1206
1209
|
for (var k in data) {
|
|
1207
1210
|
if (new RegExp("(" + k + ")").test(fmt)) {
|
|
@@ -1216,130 +1219,126 @@
|
|
|
1216
1219
|
}
|
|
1217
1220
|
return fmt;
|
|
1218
1221
|
}
|
|
1219
|
-
var DateClass = (
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
"q+": Math.floor((timeData.getMonth() + 3) / 3),
|
|
1240
|
-
"S": timeData.getMilliseconds()
|
|
1241
|
-
};
|
|
1242
|
-
var week = {
|
|
1243
|
-
"0": "日",
|
|
1244
|
-
"1": "一",
|
|
1245
|
-
"2": "二",
|
|
1246
|
-
"3": "三",
|
|
1247
|
-
"4": "四",
|
|
1248
|
-
"5": "五",
|
|
1249
|
-
"6": "六"
|
|
1250
|
-
};
|
|
1251
|
-
fmt = replacementYear(timeData, fmt);
|
|
1252
|
-
if (/(E+)/.test(fmt)) {
|
|
1253
|
-
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "星期" : "周" : "") + week["".concat(timeData.getDay(), " ")]);
|
|
1254
|
-
}
|
|
1255
|
-
return replacementDate(o, fmt);
|
|
1256
|
-
};
|
|
1257
|
-
DateClass2.prototype.addDaysToDate = function(date2, days) {
|
|
1258
|
-
var d = typeof date2 === "object" ? date2 : new Date(date2);
|
|
1259
|
-
d.setDate(d.getDate() + days);
|
|
1260
|
-
return d.toISOString().split("T")[0];
|
|
1261
|
-
};
|
|
1262
|
-
DateClass2.prototype.remainTime = function(endTime, startTime) {
|
|
1263
|
-
if (startTime === void 0) {
|
|
1264
|
-
startTime = /* @__PURE__ */ new Date();
|
|
1265
|
-
}
|
|
1266
|
-
var ts = Number(endTime) - Number(startTime);
|
|
1267
|
-
var dd = Math.floor(ts / 1e3 / 60 / 60 / 24);
|
|
1268
|
-
var hh = Math.floor(ts / 1e3 / 60 / 60 % 24);
|
|
1269
|
-
var mm = Math.floor(ts / 1e3 / 60 % 60);
|
|
1270
|
-
var ss = Math.floor(ts / 1e3 % 60);
|
|
1271
|
-
if (ts <= 0)
|
|
1272
|
-
return false;
|
|
1273
|
-
return {
|
|
1274
|
-
dd: dd < 10 ? "0".concat(dd) : dd,
|
|
1275
|
-
hh: hh < 10 ? "0".concat(hh) : hh,
|
|
1276
|
-
mm: mm < 10 ? "0".concat(mm) : mm,
|
|
1277
|
-
ss: ss < 10 ? "0".concat(ss) : ss
|
|
1278
|
-
};
|
|
1222
|
+
var DateClass = function() {
|
|
1223
|
+
function DateClass2() {
|
|
1224
|
+
}
|
|
1225
|
+
DateClass2.prototype.format = function(date2, fmt) {
|
|
1226
|
+
if (fmt === void 0) {
|
|
1227
|
+
fmt = "YYYY-MM-DD HH:mm:ss";
|
|
1228
|
+
}
|
|
1229
|
+
if (!date2)
|
|
1230
|
+
return "";
|
|
1231
|
+
var timeData = typeof date2 === "string" ? new Date(date2.replace(/-/g, "/")) : date2;
|
|
1232
|
+
timeData = typeof date2 === "number" ? new Date(date2) : timeData;
|
|
1233
|
+
var o = {
|
|
1234
|
+
"M+": timeData.getMonth() + 1,
|
|
1235
|
+
"D+": timeData.getDate(),
|
|
1236
|
+
"h+": timeData.getHours() % 12 === 0 ? 12 : timeData.getHours() % 12,
|
|
1237
|
+
"H+": timeData.getHours(),
|
|
1238
|
+
"m+": timeData.getMinutes(),
|
|
1239
|
+
"s+": timeData.getSeconds(),
|
|
1240
|
+
"q+": Math.floor((timeData.getMonth() + 3) / 3),
|
|
1241
|
+
"S": timeData.getMilliseconds()
|
|
1279
1242
|
};
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
return "".concat(month, "个月前");
|
|
1289
|
-
var day = Math.floor(time / (1e3 * 60 * 60 * 24));
|
|
1290
|
-
if (day)
|
|
1291
|
-
return "".concat(day, "天前");
|
|
1292
|
-
var hour = Math.floor(time / (1e3 * 60 * 60));
|
|
1293
|
-
if (hour)
|
|
1294
|
-
return "".concat(hour, "小时前");
|
|
1295
|
-
var min = Math.floor(time / (1e3 * 60));
|
|
1296
|
-
if (min)
|
|
1297
|
-
return "".concat(min, "分钟前");
|
|
1298
|
-
else
|
|
1299
|
-
return "刚刚";
|
|
1243
|
+
var week = {
|
|
1244
|
+
"0": "\u65E5",
|
|
1245
|
+
"1": "\u4E00",
|
|
1246
|
+
"2": "\u4E8C",
|
|
1247
|
+
"3": "\u4E09",
|
|
1248
|
+
"4": "\u56DB",
|
|
1249
|
+
"5": "\u4E94",
|
|
1250
|
+
"6": "\u516D"
|
|
1300
1251
|
};
|
|
1301
|
-
|
|
1302
|
-
|
|
1252
|
+
fmt = replacementYear(timeData, fmt);
|
|
1253
|
+
if (/(E+)/.test(fmt)) {
|
|
1254
|
+
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "\u661F\u671F" : "\u5468" : "") + 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 = 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
|
|
1303
1279
|
};
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1280
|
+
};
|
|
1281
|
+
DateClass2.prototype.formatPassTime = function(startTime) {
|
|
1282
|
+
var currentTime = new Date();
|
|
1283
|
+
var time = currentTime - startTime;
|
|
1284
|
+
var year = Math.floor(time / (1e3 * 60 * 60 * 24) / 30 / 12);
|
|
1285
|
+
if (year)
|
|
1286
|
+
return "".concat(year, "\u5E74\u524D");
|
|
1287
|
+
var month = Math.floor(time / (1e3 * 60 * 60 * 24) / 30);
|
|
1288
|
+
if (month)
|
|
1289
|
+
return "".concat(month, "\u4E2A\u6708\u524D");
|
|
1290
|
+
var day = Math.floor(time / (1e3 * 60 * 60 * 24));
|
|
1291
|
+
if (day)
|
|
1292
|
+
return "".concat(day, "\u5929\u524D");
|
|
1293
|
+
var hour = Math.floor(time / (1e3 * 60 * 60));
|
|
1294
|
+
if (hour)
|
|
1295
|
+
return "".concat(hour, "\u5C0F\u65F6\u524D");
|
|
1296
|
+
var min = Math.floor(time / (1e3 * 60));
|
|
1297
|
+
if (min)
|
|
1298
|
+
return "".concat(min, "\u5206\u949F\u524D");
|
|
1299
|
+
else
|
|
1300
|
+
return "\u521A\u521A";
|
|
1301
|
+
};
|
|
1302
|
+
DateClass2.prototype.formatPassTimeForList = function(time) {
|
|
1303
|
+
return DateClass2.prototype.formatPassTimeForDetail(time, "YYYY\u5E74MM\u6708DD\u65E5", true);
|
|
1304
|
+
};
|
|
1305
|
+
DateClass2.prototype.formatPassTimeForDetail = function(time, fmt, noYear) {
|
|
1306
|
+
if (fmt === void 0) {
|
|
1307
|
+
fmt = "YYYY-MM-DD";
|
|
1308
|
+
}
|
|
1309
|
+
var date2 = typeof time === "number" ? new Date(time) : new Date((time || "").replace(/-/g, "/"));
|
|
1310
|
+
var diff = (new Date().getTime() - date2.getTime()) / 1e3;
|
|
1311
|
+
var dayDiff = Math.floor(diff / 86400);
|
|
1312
|
+
var isValidDate = Object.prototype.toString.call(date2) === "[object Date]" && !isNaN(date2.getTime());
|
|
1313
|
+
if (!isValidDate)
|
|
1314
|
+
return "";
|
|
1315
|
+
var formatDate = function() {
|
|
1316
|
+
var today = new Date(date2);
|
|
1317
|
+
var o = {
|
|
1318
|
+
"Y+": today.getFullYear(),
|
|
1319
|
+
"M+": ("0" + (today.getMonth() + 1)).slice(-2),
|
|
1320
|
+
"D+": ("0" + today.getDate()).slice(-2)
|
|
1328
1321
|
};
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1322
|
+
fmt = replacementYear(date2, fmt);
|
|
1323
|
+
var year = today.getFullYear();
|
|
1324
|
+
if (!(new Date().getFullYear() > year) && noYear) {
|
|
1325
|
+
var backData = replacementDate(o, fmt);
|
|
1326
|
+
return backData.split("\u5E74")[1];
|
|
1333
1327
|
}
|
|
1334
|
-
return
|
|
1328
|
+
return replacementDate(o, fmt);
|
|
1335
1329
|
};
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1330
|
+
if (dayDiff === -1) {
|
|
1331
|
+
return "\u521A\u521A";
|
|
1332
|
+
} else if (isNaN(dayDiff) || dayDiff < 0 || dayDiff >= 15) {
|
|
1333
|
+
return formatDate();
|
|
1334
|
+
}
|
|
1335
|
+
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";
|
|
1336
|
+
};
|
|
1337
|
+
return DateClass2;
|
|
1338
|
+
}();
|
|
1339
|
+
date$1.exports = new DateClass();
|
|
1340
|
+
const date = /* @__PURE__ */ getDefaultExportFromCjs(date$1.exports);
|
|
1341
|
+
var tools$1 = { exports: {} };
|
|
1343
1342
|
var _listCacheClear;
|
|
1344
1343
|
var hasRequired_listCacheClear;
|
|
1345
1344
|
function require_listCacheClear() {
|
|
@@ -2246,7 +2245,6 @@
|
|
|
2246
2245
|
stubFalse_1 = stubFalse;
|
|
2247
2246
|
return stubFalse_1;
|
|
2248
2247
|
}
|
|
2249
|
-
isBuffer.exports;
|
|
2250
2248
|
var hasRequiredIsBuffer;
|
|
2251
2249
|
function requireIsBuffer() {
|
|
2252
2250
|
if (hasRequiredIsBuffer)
|
|
@@ -2326,7 +2324,6 @@
|
|
|
2326
2324
|
return _baseUnary;
|
|
2327
2325
|
}
|
|
2328
2326
|
var _nodeUtil = { exports: {} };
|
|
2329
|
-
_nodeUtil.exports;
|
|
2330
2327
|
var hasRequired_nodeUtil;
|
|
2331
2328
|
function require_nodeUtil() {
|
|
2332
2329
|
if (hasRequired_nodeUtil)
|
|
@@ -2376,11 +2373,7 @@
|
|
|
2376
2373
|
function arrayLikeKeys(value, inherited) {
|
|
2377
2374
|
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer2(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
2378
2375
|
for (var key in value) {
|
|
2379
|
-
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes &&
|
|
2380
|
-
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
2381
|
-
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
2382
|
-
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
2383
|
-
isIndex(key, length)))) {
|
|
2376
|
+
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
|
|
2384
2377
|
result.push(key);
|
|
2385
2378
|
}
|
|
2386
2379
|
}
|
|
@@ -2560,7 +2553,6 @@
|
|
|
2560
2553
|
return _baseAssignIn;
|
|
2561
2554
|
}
|
|
2562
2555
|
var _cloneBuffer = { exports: {} };
|
|
2563
|
-
_cloneBuffer.exports;
|
|
2564
2556
|
var hasRequired_cloneBuffer;
|
|
2565
2557
|
function require_cloneBuffer() {
|
|
2566
2558
|
if (hasRequired_cloneBuffer)
|
|
@@ -3174,13 +3166,13 @@
|
|
|
3174
3166
|
return cloneDeep_1;
|
|
3175
3167
|
}
|
|
3176
3168
|
/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3177
|
-
var
|
|
3178
|
-
var
|
|
3179
|
-
function
|
|
3180
|
-
if (
|
|
3181
|
-
return
|
|
3182
|
-
|
|
3183
|
-
|
|
3169
|
+
var _clipboardCopy_4_0_1_clipboardCopy;
|
|
3170
|
+
var hasRequired_clipboardCopy_4_0_1_clipboardCopy;
|
|
3171
|
+
function require_clipboardCopy_4_0_1_clipboardCopy() {
|
|
3172
|
+
if (hasRequired_clipboardCopy_4_0_1_clipboardCopy)
|
|
3173
|
+
return _clipboardCopy_4_0_1_clipboardCopy;
|
|
3174
|
+
hasRequired_clipboardCopy_4_0_1_clipboardCopy = 1;
|
|
3175
|
+
_clipboardCopy_4_0_1_clipboardCopy = clipboardCopy;
|
|
3184
3176
|
function makeError() {
|
|
3185
3177
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
3186
3178
|
}
|
|
@@ -3223,270 +3215,266 @@
|
|
|
3223
3215
|
}
|
|
3224
3216
|
}
|
|
3225
3217
|
}
|
|
3226
|
-
return
|
|
3218
|
+
return _clipboardCopy_4_0_1_clipboardCopy;
|
|
3227
3219
|
}
|
|
3228
|
-
|
|
3229
|
-
Object.defineProperty(tools, "__esModule", { value: true });
|
|
3220
|
+
Object.defineProperty(tools$1.exports, "__esModule", { value: true });
|
|
3230
3221
|
var previous = 0;
|
|
3231
3222
|
var timeout = null;
|
|
3232
|
-
var ToolsClass = (
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
function
|
|
3236
|
-
var _this = this;
|
|
3237
|
-
this.stopScroll = function(className) {
|
|
3238
|
-
if (!(window && window.document)) {
|
|
3239
|
-
return new Error("仅支持浏览器");
|
|
3240
|
-
}
|
|
3241
|
-
var html = document.documentElement;
|
|
3242
|
-
html.style.overflow = "hidden";
|
|
3243
|
-
html.style.height = "100%";
|
|
3244
|
-
var body = document.body;
|
|
3245
|
-
body.style.overflow = "hidden";
|
|
3246
|
-
body.style.height = "100%";
|
|
3247
|
-
if (className) {
|
|
3248
|
-
var dom = document.querySelector(".".concat(className));
|
|
3249
|
-
dom && dom.addEventListener("touchmove", _this.__setDefault__);
|
|
3250
|
-
}
|
|
3251
|
-
};
|
|
3252
|
-
this.startScroll = function(className) {
|
|
3253
|
-
if (!(window && window.document)) {
|
|
3254
|
-
return new Error("仅支持浏览器");
|
|
3255
|
-
}
|
|
3256
|
-
var html = document.documentElement;
|
|
3257
|
-
html.style.overflow = "visible";
|
|
3258
|
-
html.style.height = "auto";
|
|
3259
|
-
var body = document.body;
|
|
3260
|
-
body.style.overflow = "visible";
|
|
3261
|
-
body.style.height = "auto";
|
|
3262
|
-
if (className) {
|
|
3263
|
-
var dom = document.querySelector(".".concat(className));
|
|
3264
|
-
dom && dom.removeEventListener("touchmove", _this.__setDefault__);
|
|
3265
|
-
}
|
|
3266
|
-
};
|
|
3267
|
-
this.objectToArray = function(obj) {
|
|
3268
|
-
var arr = [];
|
|
3269
|
-
if (typeof obj === "object") {
|
|
3270
|
-
for (var key in obj) {
|
|
3271
|
-
if (obj.hasOwnProperty(key)) {
|
|
3272
|
-
arr.push([key, obj[key]].join("="));
|
|
3273
|
-
}
|
|
3274
|
-
}
|
|
3275
|
-
}
|
|
3276
|
-
return arr;
|
|
3277
|
-
};
|
|
3278
|
-
this.convertKeyValueEnum = function(obj) {
|
|
3279
|
-
var result = {};
|
|
3280
|
-
if (typeof obj === "object") {
|
|
3281
|
-
for (var key in obj) {
|
|
3282
|
-
if (obj.hasOwnProperty(key)) {
|
|
3283
|
-
result[obj[key]] = key;
|
|
3284
|
-
}
|
|
3285
|
-
}
|
|
3286
|
-
}
|
|
3287
|
-
return result;
|
|
3288
|
-
};
|
|
3289
|
-
this.isDefined = function(val) {
|
|
3290
|
-
return val !== void 0 && val !== null;
|
|
3291
|
-
};
|
|
3292
|
-
this.__loaded__ = {};
|
|
3293
|
-
this.__setDefault__ = function(e) {
|
|
3294
|
-
e && e.preventDefault();
|
|
3295
|
-
};
|
|
3296
|
-
}
|
|
3297
|
-
ToolsClass2.prototype.deepCopy = function(data) {
|
|
3298
|
-
return JSON.parse(JSON.stringify(data));
|
|
3299
|
-
};
|
|
3300
|
-
ToolsClass2.prototype.deepCopy2 = function(obj) {
|
|
3301
|
-
var _obj = Array.isArray(obj) ? [] : {};
|
|
3302
|
-
for (var i in obj) {
|
|
3303
|
-
_obj[i] = typeof obj[i] === "object" ? this.deepCopy2(obj[i]) : obj[i];
|
|
3304
|
-
}
|
|
3305
|
-
return _obj;
|
|
3306
|
-
};
|
|
3307
|
-
ToolsClass2.prototype.deepCopy3 = function(obj) {
|
|
3308
|
-
var deepcopy = requireCloneDeep();
|
|
3309
|
-
return deepcopy(obj);
|
|
3310
|
-
};
|
|
3311
|
-
ToolsClass2.prototype.debounce = function(func, wait) {
|
|
3312
|
-
var delay = function() {
|
|
3313
|
-
var args = arguments;
|
|
3314
|
-
if (timeout)
|
|
3315
|
-
clearTimeout(timeout);
|
|
3316
|
-
timeout = setTimeout(function() {
|
|
3317
|
-
func.apply(delay, args);
|
|
3318
|
-
}, wait);
|
|
3319
|
-
};
|
|
3320
|
-
return delay;
|
|
3321
|
-
};
|
|
3322
|
-
ToolsClass2.prototype.throttle = function(func, wait) {
|
|
3323
|
-
var delay = function() {
|
|
3324
|
-
var now = Date.now();
|
|
3325
|
-
if (now - previous > wait) {
|
|
3326
|
-
func.apply(delay, arguments);
|
|
3327
|
-
previous = now;
|
|
3328
|
-
}
|
|
3329
|
-
};
|
|
3330
|
-
return delay;
|
|
3331
|
-
};
|
|
3332
|
-
ToolsClass2.prototype.getUrlName = function(url) {
|
|
3333
|
-
return url && url.split("?")[0].split("/").reverse()[0];
|
|
3334
|
-
};
|
|
3335
|
-
ToolsClass2.prototype.loadJs = function(url) {
|
|
3336
|
-
var _this = this;
|
|
3337
|
-
if (!(window && window.document)) {
|
|
3338
|
-
return new Error("仅支持浏览器");
|
|
3339
|
-
}
|
|
3340
|
-
var name = this.getUrlName(url);
|
|
3341
|
-
var id = "js_" + name;
|
|
3342
|
-
return new Promise(function(resolve, reject) {
|
|
3343
|
-
if (_this.__loaded__[id]) {
|
|
3344
|
-
return resolve();
|
|
3345
|
-
}
|
|
3346
|
-
var script = document.createElement("script");
|
|
3347
|
-
script.type = "text/javascript";
|
|
3348
|
-
script.async = true;
|
|
3349
|
-
script.src = url;
|
|
3350
|
-
script.id = id;
|
|
3351
|
-
script.onload = function() {
|
|
3352
|
-
_this.__loaded__[id] = true;
|
|
3353
|
-
resolve();
|
|
3354
|
-
};
|
|
3355
|
-
script.onerror = function(e) {
|
|
3356
|
-
reject(e);
|
|
3357
|
-
};
|
|
3358
|
-
document.body.appendChild(script);
|
|
3359
|
-
});
|
|
3360
|
-
};
|
|
3361
|
-
ToolsClass2.prototype.loadCss = function(url) {
|
|
3362
|
-
var _this = this;
|
|
3223
|
+
var ToolsClass = function() {
|
|
3224
|
+
function ToolsClass2() {
|
|
3225
|
+
var _this = this;
|
|
3226
|
+
this.stopScroll = function(className) {
|
|
3363
3227
|
if (!(window && window.document)) {
|
|
3364
|
-
return new Error("
|
|
3365
|
-
}
|
|
3366
|
-
var
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
link.href = url;
|
|
3376
|
-
link.id = id;
|
|
3377
|
-
link.onload = function() {
|
|
3378
|
-
_this.__loaded__[id] = true;
|
|
3379
|
-
resolve();
|
|
3380
|
-
};
|
|
3381
|
-
link.onerror = function(e) {
|
|
3382
|
-
reject(e);
|
|
3383
|
-
};
|
|
3384
|
-
document.head.appendChild(link);
|
|
3385
|
-
});
|
|
3386
|
-
};
|
|
3387
|
-
ToolsClass2.prototype.clipboard = function(str) {
|
|
3388
|
-
if (!(window && window.document)) {
|
|
3389
|
-
return new Error("仅支持浏览器");
|
|
3228
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3229
|
+
}
|
|
3230
|
+
var html = document.documentElement;
|
|
3231
|
+
html.style.overflow = "hidden";
|
|
3232
|
+
html.style.height = "100%";
|
|
3233
|
+
var body = document.body;
|
|
3234
|
+
body.style.overflow = "hidden";
|
|
3235
|
+
body.style.height = "100%";
|
|
3236
|
+
if (className) {
|
|
3237
|
+
var dom = document.querySelector(".".concat(className));
|
|
3238
|
+
dom && dom.addEventListener("touchmove", _this.__setDefault__);
|
|
3390
3239
|
}
|
|
3391
|
-
var copy = requireClipboardCopy();
|
|
3392
|
-
return copy(str);
|
|
3393
3240
|
};
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3241
|
+
this.startScroll = function(className) {
|
|
3242
|
+
if (!(window && window.document)) {
|
|
3243
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3244
|
+
}
|
|
3245
|
+
var html = document.documentElement;
|
|
3246
|
+
html.style.overflow = "visible";
|
|
3247
|
+
html.style.height = "auto";
|
|
3248
|
+
var body = document.body;
|
|
3249
|
+
body.style.overflow = "visible";
|
|
3250
|
+
body.style.height = "auto";
|
|
3251
|
+
if (className) {
|
|
3252
|
+
var dom = document.querySelector(".".concat(className));
|
|
3253
|
+
dom && dom.removeEventListener("touchmove", _this.__setDefault__);
|
|
3403
3254
|
}
|
|
3404
|
-
return target.slice(0, length);
|
|
3405
3255
|
};
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3256
|
+
this.objectToArray = function(obj) {
|
|
3257
|
+
var arr = [];
|
|
3258
|
+
if (typeof obj === "object") {
|
|
3259
|
+
for (var key in obj) {
|
|
3260
|
+
if (obj.hasOwnProperty(key)) {
|
|
3261
|
+
arr.push([key, obj[key]].join("="));
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
3409
3264
|
}
|
|
3410
|
-
return
|
|
3265
|
+
return arr;
|
|
3411
3266
|
};
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3267
|
+
this.convertKeyValueEnum = function(obj) {
|
|
3268
|
+
var result = {};
|
|
3269
|
+
if (typeof obj === "object") {
|
|
3270
|
+
for (var key in obj) {
|
|
3271
|
+
if (obj.hasOwnProperty(key)) {
|
|
3272
|
+
result[obj[key]] = key;
|
|
3273
|
+
}
|
|
3274
|
+
}
|
|
3415
3275
|
}
|
|
3416
|
-
return
|
|
3417
|
-
};
|
|
3418
|
-
ToolsClass2.prototype.uniqueArr = function(arr) {
|
|
3419
|
-
return Array.from(new Set(arr));
|
|
3420
|
-
};
|
|
3421
|
-
ToolsClass2.prototype.swapArray = function(array, index1, index2) {
|
|
3422
|
-
var _a;
|
|
3423
|
-
_a = [array[index2], array[index1]], array[index1] = _a[0], array[index2] = _a[1];
|
|
3424
|
-
return array;
|
|
3276
|
+
return result;
|
|
3425
3277
|
};
|
|
3426
|
-
|
|
3427
|
-
return
|
|
3278
|
+
this.isDefined = function(val) {
|
|
3279
|
+
return val !== void 0 && val !== null;
|
|
3428
3280
|
};
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3281
|
+
this.__loaded__ = {};
|
|
3282
|
+
this.__setDefault__ = function(e) {
|
|
3283
|
+
e && e.preventDefault();
|
|
3432
3284
|
};
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3285
|
+
}
|
|
3286
|
+
ToolsClass2.prototype.deepCopy = function(data) {
|
|
3287
|
+
return JSON.parse(JSON.stringify(data));
|
|
3288
|
+
};
|
|
3289
|
+
ToolsClass2.prototype.deepCopy2 = function(obj) {
|
|
3290
|
+
var _obj = Array.isArray(obj) ? [] : {};
|
|
3291
|
+
for (var i in obj) {
|
|
3292
|
+
_obj[i] = typeof obj[i] === "object" ? this.deepCopy2(obj[i]) : obj[i];
|
|
3293
|
+
}
|
|
3294
|
+
return _obj;
|
|
3295
|
+
};
|
|
3296
|
+
ToolsClass2.prototype.deepCopy3 = function(obj) {
|
|
3297
|
+
var deepcopy = requireCloneDeep();
|
|
3298
|
+
return deepcopy(obj);
|
|
3299
|
+
};
|
|
3300
|
+
ToolsClass2.prototype.debounce = function(func, wait) {
|
|
3301
|
+
var delay = function() {
|
|
3302
|
+
var args = arguments;
|
|
3303
|
+
if (timeout)
|
|
3304
|
+
clearTimeout(timeout);
|
|
3305
|
+
timeout = setTimeout(function() {
|
|
3306
|
+
func.apply(delay, args);
|
|
3307
|
+
}, wait);
|
|
3436
3308
|
};
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
if (
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
return val.message === "";
|
|
3446
|
-
switch (Object.prototype.toString.call(val)) {
|
|
3447
|
-
case "[object String]":
|
|
3448
|
-
case "[object Array]":
|
|
3449
|
-
return !val.length;
|
|
3450
|
-
case "[object File]":
|
|
3451
|
-
case "[object Map]":
|
|
3452
|
-
case "[object Set]": {
|
|
3453
|
-
return !val.size;
|
|
3454
|
-
}
|
|
3455
|
-
case "[object Object]": {
|
|
3456
|
-
return !Object.keys(val).length;
|
|
3457
|
-
}
|
|
3309
|
+
return delay;
|
|
3310
|
+
};
|
|
3311
|
+
ToolsClass2.prototype.throttle = function(func, wait) {
|
|
3312
|
+
var delay = function() {
|
|
3313
|
+
var now = Date.now();
|
|
3314
|
+
if (now - previous > wait) {
|
|
3315
|
+
func.apply(delay, arguments);
|
|
3316
|
+
previous = now;
|
|
3458
3317
|
}
|
|
3459
|
-
return false;
|
|
3460
3318
|
};
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3319
|
+
return delay;
|
|
3320
|
+
};
|
|
3321
|
+
ToolsClass2.prototype.getUrlName = function(url) {
|
|
3322
|
+
return url && url.split("?")[0].split("/").reverse()[0];
|
|
3323
|
+
};
|
|
3324
|
+
ToolsClass2.prototype.loadJs = function(url) {
|
|
3325
|
+
var _this = this;
|
|
3326
|
+
if (!(window && window.document)) {
|
|
3327
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3328
|
+
}
|
|
3329
|
+
var name = this.getUrlName(url);
|
|
3330
|
+
var id = "js_" + name;
|
|
3331
|
+
return new Promise(function(resolve, reject) {
|
|
3332
|
+
if (_this.__loaded__[id]) {
|
|
3333
|
+
return resolve();
|
|
3334
|
+
}
|
|
3335
|
+
var script = document.createElement("script");
|
|
3336
|
+
script.type = "text/javascript";
|
|
3337
|
+
script.async = true;
|
|
3338
|
+
script.src = url;
|
|
3339
|
+
script.id = id;
|
|
3340
|
+
script.onload = function() {
|
|
3341
|
+
_this.__loaded__[id] = true;
|
|
3342
|
+
resolve();
|
|
3343
|
+
};
|
|
3344
|
+
script.onerror = function(e) {
|
|
3345
|
+
reject(e);
|
|
3346
|
+
};
|
|
3347
|
+
document.body.appendChild(script);
|
|
3348
|
+
});
|
|
3349
|
+
};
|
|
3350
|
+
ToolsClass2.prototype.loadCss = function(url) {
|
|
3351
|
+
var _this = this;
|
|
3352
|
+
if (!(window && window.document)) {
|
|
3353
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3354
|
+
}
|
|
3355
|
+
var name = this.getUrlName(url);
|
|
3356
|
+
var id = "css_" + name;
|
|
3357
|
+
return new Promise(function(resolve, reject) {
|
|
3358
|
+
if (_this.__loaded__[id]) {
|
|
3359
|
+
return resolve();
|
|
3360
|
+
}
|
|
3361
|
+
var link = document.createElement("link");
|
|
3362
|
+
link.type = "text/css";
|
|
3363
|
+
link.rel = "stylesheet";
|
|
3364
|
+
link.href = url;
|
|
3365
|
+
link.id = id;
|
|
3366
|
+
link.onload = function() {
|
|
3367
|
+
_this.__loaded__[id] = true;
|
|
3368
|
+
resolve();
|
|
3369
|
+
};
|
|
3370
|
+
link.onerror = function(e) {
|
|
3371
|
+
reject(e);
|
|
3372
|
+
};
|
|
3373
|
+
document.head.appendChild(link);
|
|
3374
|
+
});
|
|
3375
|
+
};
|
|
3376
|
+
ToolsClass2.prototype.clipboard = function(str) {
|
|
3377
|
+
if (!(window && window.document)) {
|
|
3378
|
+
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3379
|
+
}
|
|
3380
|
+
var copy = require_clipboardCopy_4_0_1_clipboardCopy();
|
|
3381
|
+
return copy(str);
|
|
3382
|
+
};
|
|
3383
|
+
ToolsClass2.prototype.firstUpperCase = function(str) {
|
|
3384
|
+
return str.charAt(0).toUpperCase() + str.toString().slice(1);
|
|
3385
|
+
};
|
|
3386
|
+
ToolsClass2.prototype.slice = function(target, length) {
|
|
3387
|
+
if (target === void 0) {
|
|
3388
|
+
target = "";
|
|
3389
|
+
}
|
|
3390
|
+
if (length === void 0) {
|
|
3391
|
+
length = 0;
|
|
3392
|
+
}
|
|
3393
|
+
return target.slice(0, length);
|
|
3394
|
+
};
|
|
3395
|
+
ToolsClass2.prototype.guid = function() {
|
|
3396
|
+
function S4() {
|
|
3397
|
+
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
3398
|
+
}
|
|
3399
|
+
return S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4();
|
|
3400
|
+
};
|
|
3401
|
+
ToolsClass2.prototype.getBytesOfText = function(str) {
|
|
3402
|
+
if (str === void 0) {
|
|
3403
|
+
str = "";
|
|
3404
|
+
}
|
|
3405
|
+
return str.replace(/[^\u0000-\u00ff]/g, "aa").length;
|
|
3406
|
+
};
|
|
3407
|
+
ToolsClass2.prototype.uniqueArr = function(arr) {
|
|
3408
|
+
return Array.from(new Set(arr));
|
|
3409
|
+
};
|
|
3410
|
+
ToolsClass2.prototype.swapArray = function(array, index1, index2) {
|
|
3411
|
+
var _a;
|
|
3412
|
+
_a = [array[index2], array[index1]], array[index1] = _a[0], array[index2] = _a[1];
|
|
3413
|
+
return array;
|
|
3414
|
+
};
|
|
3415
|
+
ToolsClass2.prototype.filterEmoji = function(str) {
|
|
3416
|
+
return str.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/mg, "");
|
|
3417
|
+
};
|
|
3418
|
+
ToolsClass2.prototype.containsEmoji = function(str) {
|
|
3419
|
+
var reg = /\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/mg;
|
|
3420
|
+
return reg.test(str);
|
|
3421
|
+
};
|
|
3422
|
+
ToolsClass2.prototype.containsHanZi = function(str) {
|
|
3423
|
+
var reg = /[\u4e00-\u9fa5]/mg;
|
|
3424
|
+
return reg.test(str);
|
|
3425
|
+
};
|
|
3426
|
+
ToolsClass2.prototype.isEmpty = function(val) {
|
|
3427
|
+
if (val == null)
|
|
3428
|
+
return true;
|
|
3429
|
+
if (typeof val === "boolean")
|
|
3430
|
+
return false;
|
|
3431
|
+
if (typeof val === "number")
|
|
3432
|
+
return !val;
|
|
3433
|
+
if (val instanceof Error)
|
|
3434
|
+
return val.message === "";
|
|
3435
|
+
switch (Object.prototype.toString.call(val)) {
|
|
3436
|
+
case "[object String]":
|
|
3437
|
+
case "[object Array]":
|
|
3438
|
+
return !val.length;
|
|
3439
|
+
case "[object File]":
|
|
3440
|
+
case "[object Map]":
|
|
3441
|
+
case "[object Set]": {
|
|
3442
|
+
return !val.size;
|
|
3443
|
+
}
|
|
3444
|
+
case "[object Object]": {
|
|
3445
|
+
return !Object.keys(val).length;
|
|
3475
3446
|
}
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3447
|
+
}
|
|
3448
|
+
return false;
|
|
3449
|
+
};
|
|
3450
|
+
ToolsClass2.prototype.sensitiveField = function(field, before, after) {
|
|
3451
|
+
if (before === void 0) {
|
|
3452
|
+
before = 3;
|
|
3453
|
+
}
|
|
3454
|
+
if (after === void 0) {
|
|
3455
|
+
after = 4;
|
|
3456
|
+
}
|
|
3457
|
+
if (!field) {
|
|
3458
|
+
return "";
|
|
3459
|
+
}
|
|
3460
|
+
field = String(field);
|
|
3461
|
+
var sensitiveLen = field.length - before - after;
|
|
3462
|
+
if (sensitiveLen < 0) {
|
|
3463
|
+
sensitiveLen = 0;
|
|
3464
|
+
}
|
|
3465
|
+
var regItem = "[\u4E00-\u9FA5a-zA-Z0-9]";
|
|
3466
|
+
var regExp = "(".concat(regItem, "{").concat(before, "})").concat(regItem, "*(").concat(regItem, "{").concat(after, "})");
|
|
3467
|
+
var reg = new RegExp(regExp);
|
|
3468
|
+
return field.replace(reg, "$1".concat("*".repeat(sensitiveLen), "$2"));
|
|
3469
|
+
};
|
|
3470
|
+
return ToolsClass2;
|
|
3471
|
+
}();
|
|
3472
|
+
tools$1.exports = new ToolsClass();
|
|
3473
|
+
const tools = /* @__PURE__ */ getDefaultExportFromCjs(tools$1.exports);
|
|
3474
|
+
const index_vue_vue_type_style_index_0_lang$4 = "";
|
|
3487
3475
|
const _hoisted_1$6 = { style: { "margin-left": "20px", "color": "#FF5A25" } };
|
|
3488
|
-
const _hoisted_2$
|
|
3489
|
-
const _hoisted_3$
|
|
3476
|
+
const _hoisted_2$5 = { class: "insert-article" };
|
|
3477
|
+
const _hoisted_3$5 = { class: "insert-article_input" };
|
|
3490
3478
|
const _hoisted_4$2 = {
|
|
3491
3479
|
key: 0,
|
|
3492
3480
|
class: "nodata"
|
|
@@ -3505,7 +3493,7 @@
|
|
|
3505
3493
|
key: 1,
|
|
3506
3494
|
style: { "display": "inline-flex", "flex-direction": "column" }
|
|
3507
3495
|
};
|
|
3508
|
-
const _sfc_main$6 =
|
|
3496
|
+
const _sfc_main$6 = vue.defineComponent({
|
|
3509
3497
|
__name: "index",
|
|
3510
3498
|
props: {
|
|
3511
3499
|
visible: { type: Boolean, default: false },
|
|
@@ -3513,7 +3501,7 @@
|
|
|
3513
3501
|
},
|
|
3514
3502
|
emits: ["change", "submit", "update:visible"],
|
|
3515
3503
|
setup(__props, { emit: __emit }) {
|
|
3516
|
-
const { debounce } = tools
|
|
3504
|
+
const { debounce } = tools;
|
|
3517
3505
|
const vInfiniteScroll = elementPlus.ElInfiniteScroll;
|
|
3518
3506
|
const Radio_Type = {
|
|
3519
3507
|
MY_ARITICLE: "1",
|
|
@@ -3564,7 +3552,7 @@
|
|
|
3564
3552
|
};
|
|
3565
3553
|
const confirm = () => {
|
|
3566
3554
|
if (!data.article) {
|
|
3567
|
-
elementPlus.ElMessage.error(
|
|
3555
|
+
elementPlus.ElMessage.error(`\u8BF7\u9009\u62E9${isVideo ? "\u89C6\u9891" : "\u6587\u7AE0"}`);
|
|
3568
3556
|
return;
|
|
3569
3557
|
}
|
|
3570
3558
|
data.article.isVideo = isVideo;
|
|
@@ -3588,7 +3576,6 @@
|
|
|
3588
3576
|
autherid: data.params.radio !== Radio_Type.ALL_ARITICLE ? userId : "",
|
|
3589
3577
|
limit: 20,
|
|
3590
3578
|
allType: data.params.radio,
|
|
3591
|
-
// 只有4 是查视频 其他是文章
|
|
3592
3579
|
title: data.params.title,
|
|
3593
3580
|
page: ++data.page
|
|
3594
3581
|
});
|
|
@@ -3608,21 +3595,21 @@
|
|
|
3608
3595
|
}, {
|
|
3609
3596
|
title: vue.withCtx(() => [
|
|
3610
3597
|
vue.createElementVNode("span", null, [
|
|
3611
|
-
|
|
3612
|
-
vue.createElementVNode("strong", _hoisted_1$6, "
|
|
3598
|
+
vue.createTextVNode("\u63D2\u5165\u6587\u7AE0/\u89C6\u9891"),
|
|
3599
|
+
vue.createElementVNode("strong", _hoisted_1$6, "\u5E73\u53F0\u4EC5\u652F\u6301\u63D2\u5165" + vue.toDisplayString(`${isVideo.value ? "2\u5E74" : "18\u4E2A\u6708"}`) + "\u5185\u7684\u63A8\u8350\u5185\u5BB9", 1)
|
|
3613
3600
|
])
|
|
3614
3601
|
]),
|
|
3615
3602
|
default: vue.withCtx(() => [
|
|
3616
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
3603
|
+
vue.createElementVNode("div", _hoisted_2$5, [
|
|
3617
3604
|
vue.createElementVNode("div", null, [
|
|
3618
3605
|
vue.createVNode(vue.unref(elementPlus.ElRadio), {
|
|
3619
3606
|
modelValue: data.params.radio,
|
|
3620
3607
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.params.radio = $event),
|
|
3621
3608
|
label: Radio_Type.MY_ARITICLE
|
|
3622
3609
|
}, {
|
|
3623
|
-
default: vue.withCtx(() =>
|
|
3624
|
-
vue.createTextVNode("
|
|
3625
|
-
])
|
|
3610
|
+
default: vue.withCtx(() => [
|
|
3611
|
+
vue.createTextVNode("\u4ECE\u6211\u7684\u6587\u7AE0\u4E2D\u9009\u62E9")
|
|
3612
|
+
]),
|
|
3626
3613
|
_: 1
|
|
3627
3614
|
}, 8, ["modelValue", "label"]),
|
|
3628
3615
|
vue.createVNode(vue.unref(elementPlus.ElRadio), {
|
|
@@ -3630,9 +3617,9 @@
|
|
|
3630
3617
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data.params.radio = $event),
|
|
3631
3618
|
label: Radio_Type.MY_VIDEO
|
|
3632
3619
|
}, {
|
|
3633
|
-
default: vue.withCtx(() =>
|
|
3634
|
-
vue.createTextVNode("
|
|
3635
|
-
])
|
|
3620
|
+
default: vue.withCtx(() => [
|
|
3621
|
+
vue.createTextVNode("\u4ECE\u6211\u7684\u89C6\u9891\u4E2D\u9009\u62E9")
|
|
3622
|
+
]),
|
|
3636
3623
|
_: 1
|
|
3637
3624
|
}, 8, ["modelValue", "label"]),
|
|
3638
3625
|
vue.createVNode(vue.unref(elementPlus.ElRadio), {
|
|
@@ -3640,17 +3627,17 @@
|
|
|
3640
3627
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => data.params.radio = $event),
|
|
3641
3628
|
label: Radio_Type.ALL_ARITICLE
|
|
3642
3629
|
}, {
|
|
3643
|
-
default: vue.withCtx(() =>
|
|
3644
|
-
vue.createTextVNode("
|
|
3645
|
-
])
|
|
3630
|
+
default: vue.withCtx(() => [
|
|
3631
|
+
vue.createTextVNode("\u4ECE\u6240\u6709\u6587\u7AE0\u4E2D\u9009\u62E9")
|
|
3632
|
+
]),
|
|
3646
3633
|
_: 1
|
|
3647
3634
|
}, 8, ["modelValue", "label"])
|
|
3648
3635
|
]),
|
|
3649
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
3636
|
+
vue.createElementVNode("div", _hoisted_3$5, [
|
|
3650
3637
|
vue.createVNode(vue.unref(elementPlus.ElInput), {
|
|
3651
3638
|
modelValue: data.params.title,
|
|
3652
3639
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => data.params.title = $event),
|
|
3653
|
-
placeholder: isVideo.value ? "
|
|
3640
|
+
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",
|
|
3654
3641
|
onKeyup: _cache[5] || (_cache[5] = vue.withKeys(($event) => vue.unref(getArticleList)(true), ["enter", "native"])),
|
|
3655
3642
|
onInput: _cache[6] || (_cache[6] = ($event) => vue.unref(getArticleList)(true))
|
|
3656
3643
|
}, {
|
|
@@ -3664,7 +3651,7 @@
|
|
|
3664
3651
|
_: 1
|
|
3665
3652
|
}, 8, ["modelValue", "placeholder"])
|
|
3666
3653
|
]),
|
|
3667
|
-
data.data.length === 0 && !data.busy ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, vue.toDisplayString(
|
|
3654
|
+
data.data.length === 0 && !data.busy ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, vue.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)) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
3668
3655
|
key: 1,
|
|
3669
3656
|
"infinite-scroll-immediate": false,
|
|
3670
3657
|
class: "insert-article_list",
|
|
@@ -3696,12 +3683,12 @@
|
|
|
3696
3683
|
}, null, 8, _hoisted_9$1)
|
|
3697
3684
|
]),
|
|
3698
3685
|
vue.createElementVNode("div", _hoisted_10$1, [
|
|
3699
|
-
vue.createElementVNode("span", _hoisted_11$1, vue.toDisplayString(item.content || "[
|
|
3700
|
-
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(date
|
|
3686
|
+
vue.createElementVNode("span", _hoisted_11$1, vue.toDisplayString(item.content || "[\u65E0\u6807\u9898]"), 1),
|
|
3687
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(date).format(item.createTime * 1e3, "YYYY-MM-DD hh-mm")), 1)
|
|
3701
3688
|
])
|
|
3702
3689
|
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$1, [
|
|
3703
|
-
vue.createElementVNode("span", null, vue.toDisplayString(item.title || "[
|
|
3704
|
-
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(date
|
|
3690
|
+
vue.createElementVNode("span", null, vue.toDisplayString(item.title || "[\u65E0\u6807\u9898]"), 1),
|
|
3691
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(date).format(item.createTime * 1e3, "YYYY-MM-DD")), 1)
|
|
3705
3692
|
]))
|
|
3706
3693
|
];
|
|
3707
3694
|
}),
|
|
@@ -3719,7 +3706,6 @@
|
|
|
3719
3706
|
};
|
|
3720
3707
|
}
|
|
3721
3708
|
});
|
|
3722
|
-
const index_vue_vue_type_style_index_0_lang$4 = "";
|
|
3723
3709
|
let getRandomValues;
|
|
3724
3710
|
const rnds8 = new Uint8Array(16);
|
|
3725
3711
|
function rng() {
|
|
@@ -3759,9 +3745,10 @@
|
|
|
3759
3745
|
}
|
|
3760
3746
|
return unsafeStringify(rnds);
|
|
3761
3747
|
}
|
|
3748
|
+
const index_vue_vue_type_style_index_0_lang$3 = "";
|
|
3762
3749
|
const _hoisted_1$5 = { class: "img-upload-content" };
|
|
3763
|
-
const _hoisted_2$
|
|
3764
|
-
const _hoisted_3$
|
|
3750
|
+
const _hoisted_2$4 = { class: "title-box" };
|
|
3751
|
+
const _hoisted_3$4 = ["onClick"];
|
|
3765
3752
|
const _hoisted_4$1 = {
|
|
3766
3753
|
key: 0,
|
|
3767
3754
|
class: "line"
|
|
@@ -3790,38 +3777,41 @@
|
|
|
3790
3777
|
key: 0,
|
|
3791
3778
|
class: "upload-wrap"
|
|
3792
3779
|
};
|
|
3793
|
-
const _hoisted_14 =
|
|
3780
|
+
const _hoisted_14 = /* @__PURE__ */ vue.createElementVNode("span", null, "\u672C\u5730\u4E0A\u4F20", -1);
|
|
3781
|
+
const _hoisted_15 = /* @__PURE__ */ vue.createElementVNode("span", { class: "remark" }, "\u652F\u6301jpg\u3001jpeg\u3001png\u7B49\u591A\u79CD\u683C\u5F0F\uFF0C\u5355\u5F20\u56FE\u7247\u6700\u5927\u652F\u630120MB", -1);
|
|
3782
|
+
const _hoisted_16 = {
|
|
3794
3783
|
key: 1,
|
|
3795
3784
|
class: "img-list"
|
|
3796
3785
|
};
|
|
3797
|
-
const
|
|
3798
|
-
const
|
|
3799
|
-
const
|
|
3786
|
+
const _hoisted_17 = ["src"];
|
|
3787
|
+
const _hoisted_18 = { class: "upload-btn" };
|
|
3788
|
+
const _hoisted_19 = {
|
|
3800
3789
|
key: 2,
|
|
3801
3790
|
class: "map-depot"
|
|
3802
3791
|
};
|
|
3803
|
-
const
|
|
3804
|
-
const
|
|
3805
|
-
const
|
|
3806
|
-
const
|
|
3807
|
-
const
|
|
3792
|
+
const _hoisted_20 = { class: "screen" };
|
|
3793
|
+
const _hoisted_21 = { key: 0 };
|
|
3794
|
+
const _hoisted_22 = { class: "tab-box" };
|
|
3795
|
+
const _hoisted_23 = ["onClick"];
|
|
3796
|
+
const _hoisted_24 = {
|
|
3808
3797
|
key: 0,
|
|
3809
3798
|
class: "line"
|
|
3810
3799
|
};
|
|
3811
|
-
const
|
|
3812
|
-
const
|
|
3813
|
-
const
|
|
3814
|
-
const
|
|
3800
|
+
const _hoisted_25 = { class: "image-list depot-image" };
|
|
3801
|
+
const _hoisted_26 = ["onClick"];
|
|
3802
|
+
const _hoisted_27 = ["src"];
|
|
3803
|
+
const _hoisted_28 = {
|
|
3815
3804
|
key: 0,
|
|
3816
3805
|
class: "shade"
|
|
3817
3806
|
};
|
|
3818
|
-
const
|
|
3819
|
-
const
|
|
3807
|
+
const _hoisted_29 = { class: "num" };
|
|
3808
|
+
const _hoisted_30 = {
|
|
3820
3809
|
key: 1,
|
|
3821
3810
|
class: "protocol-box"
|
|
3822
3811
|
};
|
|
3823
|
-
const
|
|
3824
|
-
const
|
|
3812
|
+
const _hoisted_31 = /* @__PURE__ */ vue.createElementVNode("div", null, " \u56FE\u5E93\u4E2D\u7684\u56FE\u7247\u4EC5\u9650\u4E0B\u8F7D\u6469\u6258\u8303\u4EE5\u7F16\u8F91\u53D1\u5E03\u6587\u7AE0\u4F7F\u7528,\u4E0D\u5F97\u7528\u4E8E\u5176\u4ED6\u4EFB\u4F55\u5E73\u53F0\u53CA\u7528\u9014 ", -1);
|
|
3813
|
+
const _hoisted_32 = ["href"];
|
|
3814
|
+
const _sfc_main$5 = vue.defineComponent({
|
|
3825
3815
|
__name: "index",
|
|
3826
3816
|
props: {
|
|
3827
3817
|
visible: { type: Boolean, default: false },
|
|
@@ -3856,7 +3846,7 @@
|
|
|
3856
3846
|
const tempImgs = [...props.imgList];
|
|
3857
3847
|
Array.from(imgFile).forEach((file) => {
|
|
3858
3848
|
if (file.size > 20 * 1024 * 1024) {
|
|
3859
|
-
elementPlus.ElMessage.error("
|
|
3849
|
+
elementPlus.ElMessage.error("\u5355\u5F20\u56FE\u7247\u6700\u5927\u652F\u630120M");
|
|
3860
3850
|
return;
|
|
3861
3851
|
}
|
|
3862
3852
|
const id = v4();
|
|
@@ -3886,14 +3876,14 @@
|
|
|
3886
3876
|
const list = [
|
|
3887
3877
|
{
|
|
3888
3878
|
id: 2,
|
|
3889
|
-
value: "
|
|
3879
|
+
value: "\u4E0A\u4F20\u56FE\u7247"
|
|
3890
3880
|
}
|
|
3891
3881
|
];
|
|
3892
3882
|
activeTitle.value = 2;
|
|
3893
3883
|
if (props.imgNum < 20) {
|
|
3894
3884
|
list.unshift({
|
|
3895
3885
|
id: 1,
|
|
3896
|
-
value: "
|
|
3886
|
+
value: "\u6B63\u6587\u56FE\u7247"
|
|
3897
3887
|
});
|
|
3898
3888
|
activeTitle.value = 1;
|
|
3899
3889
|
getContentImgList();
|
|
@@ -3901,7 +3891,7 @@
|
|
|
3901
3891
|
if (props.chartGallery) {
|
|
3902
3892
|
list.push({
|
|
3903
3893
|
id: 3,
|
|
3904
|
-
value: isEmotofine ? "
|
|
3894
|
+
value: isEmotofine ? "\u7535\u6469\u8303\u56FE\u5E93" : "\u6469\u6258\u8303\u56FE\u5E93"
|
|
3905
3895
|
});
|
|
3906
3896
|
}
|
|
3907
3897
|
titleList.value = list;
|
|
@@ -4046,13 +4036,13 @@
|
|
|
4046
4036
|
const tabList = vue.ref([]);
|
|
4047
4037
|
const search = () => {
|
|
4048
4038
|
if (!selectData.brandId) {
|
|
4049
|
-
return elementPlus.ElMessage.error("
|
|
4039
|
+
return elementPlus.ElMessage.error("\u8BF7\u9009\u62E9\u54C1\u724C");
|
|
4050
4040
|
}
|
|
4051
4041
|
if (!selectData.goodId) {
|
|
4052
|
-
return elementPlus.ElMessage.error("
|
|
4042
|
+
return elementPlus.ElMessage.error("\u8BF7\u9009\u62E9\u8F66\u578B");
|
|
4053
4043
|
}
|
|
4054
4044
|
if (!selectData.carId) {
|
|
4055
|
-
return elementPlus.ElMessage.error("
|
|
4045
|
+
return elementPlus.ElMessage.error("\u8BF7\u9009\u62E9\u6B3E\u578B");
|
|
4056
4046
|
}
|
|
4057
4047
|
tabList.value = [];
|
|
4058
4048
|
emits("update:imgList", []);
|
|
@@ -4109,7 +4099,7 @@
|
|
|
4109
4099
|
}, {
|
|
4110
4100
|
default: vue.withCtx(() => [
|
|
4111
4101
|
vue.createElementVNode("div", _hoisted_1$5, [
|
|
4112
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
4102
|
+
vue.createElementVNode("div", _hoisted_2$4, [
|
|
4113
4103
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(titleList.value, (item, index) => {
|
|
4114
4104
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4115
4105
|
key: index,
|
|
@@ -4118,10 +4108,10 @@
|
|
|
4118
4108
|
}, [
|
|
4119
4109
|
vue.createTextVNode(vue.toDisplayString(item.value) + " ", 1),
|
|
4120
4110
|
item.id === activeTitle.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1)) : vue.createCommentVNode("", true)
|
|
4121
|
-
], 10, _hoisted_3$
|
|
4111
|
+
], 10, _hoisted_3$4);
|
|
4122
4112
|
}), 128)),
|
|
4123
|
-
[1, 3].includes(activeTitle.value) && props.imgList.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, "
|
|
4124
|
-
activeTitle.value === 2 && props.imgList.length > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, vue.toDisplayString(props.imgList.length) + "
|
|
4113
|
+
[1, 3].includes(activeTitle.value) && props.imgList.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, " \u6700\u591A\u53EF\u9009" + vue.toDisplayString(props.imgNum) + "\u5F20\u56FE\u7247\uFF0C\u5DF2\u9009" + vue.toDisplayString(props.imgList.length) + "\u5F20 ", 1)) : vue.createCommentVNode("", true),
|
|
4114
|
+
activeTitle.value === 2 && props.imgList.length > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, vue.toDisplayString(props.imgList.length) + "\u5F20\u4E0A\u4F20\u6210\u529F \u62D6\u52A8\u53EF\u8C03\u6574\u987A\u5E8F ", 1)) : vue.createCommentVNode("", true)
|
|
4125
4115
|
]),
|
|
4126
4116
|
activeTitle.value === 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
4127
4117
|
vue.createElementVNode("div", _hoisted_8, [
|
|
@@ -4158,11 +4148,11 @@
|
|
|
4158
4148
|
]),
|
|
4159
4149
|
_: 1
|
|
4160
4150
|
}),
|
|
4161
|
-
|
|
4151
|
+
_hoisted_14
|
|
4162
4152
|
]),
|
|
4163
|
-
|
|
4164
|
-
])) : (vue.openBlock(), vue.createElementBlock("div",
|
|
4165
|
-
vue.createVNode(vue.unref(
|
|
4153
|
+
_hoisted_15
|
|
4154
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
|
|
4155
|
+
vue.createVNode(vue.unref(draggable__default.default), {
|
|
4166
4156
|
modelValue: imgListTemp.value,
|
|
4167
4157
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => imgListTemp.value = $event),
|
|
4168
4158
|
handle: ".img-item",
|
|
@@ -4182,7 +4172,7 @@
|
|
|
4182
4172
|
style: { "object-fit": "contain" },
|
|
4183
4173
|
width: "120",
|
|
4184
4174
|
height: "120"
|
|
4185
|
-
}, null, 8,
|
|
4175
|
+
}, null, 8, _hoisted_17),
|
|
4186
4176
|
vue.createVNode(vue.unref(iconsVue.CircleCloseFilled), {
|
|
4187
4177
|
class: "icon pointer",
|
|
4188
4178
|
onClick: ($event) => deleteImg(element)
|
|
@@ -4205,7 +4195,7 @@
|
|
|
4205
4195
|
_: 1
|
|
4206
4196
|
}, 8, ["modelValue"])
|
|
4207
4197
|
])),
|
|
4208
|
-
vue.createElementVNode("div",
|
|
4198
|
+
vue.createElementVNode("div", _hoisted_18, [
|
|
4209
4199
|
vue.createElementVNode("input", {
|
|
4210
4200
|
type: "file",
|
|
4211
4201
|
name: "file",
|
|
@@ -4216,13 +4206,13 @@
|
|
|
4216
4206
|
}, null, 32)
|
|
4217
4207
|
])
|
|
4218
4208
|
], 2)) : vue.createCommentVNode("", true),
|
|
4219
|
-
activeTitle.value === 3 ? (vue.openBlock(), vue.createElementBlock("div",
|
|
4220
|
-
vue.createElementVNode("div",
|
|
4209
|
+
activeTitle.value === 3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
|
|
4210
|
+
vue.createElementVNode("div", _hoisted_20, [
|
|
4221
4211
|
vue.createElementVNode("div", null, [
|
|
4222
4212
|
vue.createVNode(vue.unref(elementPlus.ElSelect), {
|
|
4223
4213
|
modelValue: selectData.brandId,
|
|
4224
4214
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => selectData.brandId = $event),
|
|
4225
|
-
placeholder: "
|
|
4215
|
+
placeholder: "\u8BF7\u9009\u62E9\u54C1\u724C",
|
|
4226
4216
|
size: "large",
|
|
4227
4217
|
class: "select_1",
|
|
4228
4218
|
filterable: "",
|
|
@@ -4243,7 +4233,7 @@
|
|
|
4243
4233
|
vue.createVNode(vue.unref(elementPlus.ElSelect), {
|
|
4244
4234
|
modelValue: selectData.goodId,
|
|
4245
4235
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => selectData.goodId = $event),
|
|
4246
|
-
placeholder: "
|
|
4236
|
+
placeholder: "\u8BF7\u9009\u62E9\u8F66\u578B",
|
|
4247
4237
|
size: "large",
|
|
4248
4238
|
class: "select_1",
|
|
4249
4239
|
filterable: "",
|
|
@@ -4264,7 +4254,7 @@
|
|
|
4264
4254
|
vue.createVNode(vue.unref(elementPlus.ElSelect), {
|
|
4265
4255
|
modelValue: selectData.carId,
|
|
4266
4256
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => selectData.carId = $event),
|
|
4267
|
-
placeholder: "
|
|
4257
|
+
placeholder: "\u8BF7\u9009\u62E9\u6B3E\u578B",
|
|
4268
4258
|
size: "large",
|
|
4269
4259
|
class: "select_2",
|
|
4270
4260
|
filterable: "",
|
|
@@ -4288,14 +4278,14 @@
|
|
|
4288
4278
|
style: { "width": "80px" },
|
|
4289
4279
|
onClick: search
|
|
4290
4280
|
}, {
|
|
4291
|
-
default: vue.withCtx(() =>
|
|
4292
|
-
vue.createTextVNode("
|
|
4293
|
-
])
|
|
4281
|
+
default: vue.withCtx(() => [
|
|
4282
|
+
vue.createTextVNode("\u641C\u7D22")
|
|
4283
|
+
]),
|
|
4294
4284
|
_: 1
|
|
4295
4285
|
})
|
|
4296
4286
|
]),
|
|
4297
|
-
tabList.value && tabList.value.length ? (vue.openBlock(), vue.createElementBlock("div",
|
|
4298
|
-
vue.createElementVNode("div",
|
|
4287
|
+
tabList.value && tabList.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_21, [
|
|
4288
|
+
vue.createElementVNode("div", _hoisted_22, [
|
|
4299
4289
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(tabList.value, (item, index) => {
|
|
4300
4290
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4301
4291
|
key: index,
|
|
@@ -4303,11 +4293,11 @@
|
|
|
4303
4293
|
onClick: ($event) => activeTab.value = item.type
|
|
4304
4294
|
}, [
|
|
4305
4295
|
vue.createTextVNode(vue.toDisplayString(item.name) + " ", 1),
|
|
4306
|
-
item.type === activeTab.value ? (vue.openBlock(), vue.createElementBlock("div",
|
|
4307
|
-
], 10,
|
|
4296
|
+
item.type === activeTab.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_24)) : vue.createCommentVNode("", true)
|
|
4297
|
+
], 10, _hoisted_23);
|
|
4308
4298
|
}), 128))
|
|
4309
4299
|
]),
|
|
4310
|
-
vue.createElementVNode("div",
|
|
4300
|
+
vue.createElementVNode("div", _hoisted_25, [
|
|
4311
4301
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageList.value, (item, index) => {
|
|
4312
4302
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4313
4303
|
key: index,
|
|
@@ -4318,25 +4308,25 @@
|
|
|
4318
4308
|
src: item.imgOrgUrl,
|
|
4319
4309
|
alt: "",
|
|
4320
4310
|
class: "image"
|
|
4321
|
-
}, null, 8,
|
|
4322
|
-
item.num ? (vue.openBlock(), vue.createElementBlock("div",
|
|
4323
|
-
vue.createElementVNode("div",
|
|
4311
|
+
}, null, 8, _hoisted_27),
|
|
4312
|
+
item.num ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_28, [
|
|
4313
|
+
vue.createElementVNode("div", _hoisted_29, vue.toDisplayString(item.num), 1)
|
|
4324
4314
|
])) : vue.createCommentVNode("", true)
|
|
4325
|
-
], 8,
|
|
4315
|
+
], 8, _hoisted_26);
|
|
4326
4316
|
}), 128))
|
|
4327
4317
|
])
|
|
4328
|
-
])) : (vue.openBlock(), vue.createElementBlock("div",
|
|
4318
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_30, [
|
|
4329
4319
|
vue.createElementVNode("div", null, [
|
|
4330
|
-
|
|
4320
|
+
_hoisted_31,
|
|
4331
4321
|
vue.createElementVNode("div", null, [
|
|
4332
|
-
|
|
4322
|
+
vue.createTextVNode(" \u8BF7\u9605\u8BFB"),
|
|
4333
4323
|
vue.createElementVNode("a", {
|
|
4334
4324
|
href: `https://${vue.unref(hostName)}/about?type=imageLicenseAgreement`,
|
|
4335
4325
|
target: "_blank",
|
|
4336
4326
|
rel: "noopener noreferrer",
|
|
4337
4327
|
class: "link"
|
|
4338
|
-
}, "
|
|
4339
|
-
|
|
4328
|
+
}, "\u300A\u6469\u6258\u8303\u56FE\u7247\u8BB8\u53EF\u4F7F\u7528\u534F\u8BAE\u300B", 8, _hoisted_32),
|
|
4329
|
+
vue.createTextVNode(",\u60A8\u7684\u884C\u4E3A\u89C6\u4E3A\u60A8\u5DF2\u540C\u610F\u8BE5\u534F\u8BAE\u3002 ")
|
|
4340
4330
|
])
|
|
4341
4331
|
])
|
|
4342
4332
|
]))
|
|
@@ -4348,9 +4338,11 @@
|
|
|
4348
4338
|
};
|
|
4349
4339
|
}
|
|
4350
4340
|
});
|
|
4351
|
-
const index_vue_vue_type_style_index_0_lang$
|
|
4352
|
-
const _hoisted_1$4 =
|
|
4353
|
-
const
|
|
4341
|
+
const index_vue_vue_type_style_index_0_lang$2 = "";
|
|
4342
|
+
const _hoisted_1$4 = /* @__PURE__ */ vue.createElementVNode("span", null, "\u63D2\u5165\u89C6\u9891", -1);
|
|
4343
|
+
const _hoisted_2$3 = { class: "insert-video" };
|
|
4344
|
+
const _hoisted_3$3 = /* @__PURE__ */ vue.createElementVNode("span", { class: "remark" }, "\u4E3A\u4E86\u83B7\u5F97\u66F4\u9AD8\u7684\u63A8\u8350\u91CF\u548C\u70B9\u51FB\u91CF\uFF0C\u5EFA\u8BAE\u4E0A\u4F20720p\uFF081280*720\uFF09\u6216\u66F4\u9AD8\u5206\u8FA8\u7387\u7684\u89C6\u9891\uFF0C\u89C6\u9891\u683C\u5F0F\u4E3A.mp4\u6216.mov\uFF0C\u5927\u5C0F\u4E0D\u8D85\u8FC71G", -1);
|
|
4345
|
+
const _sfc_main$4 = vue.defineComponent({
|
|
4354
4346
|
__name: "index",
|
|
4355
4347
|
props: {
|
|
4356
4348
|
visible: { type: Boolean, default: false },
|
|
@@ -4378,23 +4370,23 @@
|
|
|
4378
4370
|
width: "600px",
|
|
4379
4371
|
height: "100px"
|
|
4380
4372
|
}, {
|
|
4381
|
-
title: vue.withCtx(() =>
|
|
4382
|
-
|
|
4383
|
-
])
|
|
4373
|
+
title: vue.withCtx(() => [
|
|
4374
|
+
_hoisted_1$4
|
|
4375
|
+
]),
|
|
4384
4376
|
default: vue.withCtx(() => [
|
|
4385
|
-
vue.createElementVNode("div",
|
|
4377
|
+
vue.createElementVNode("div", _hoisted_2$3, [
|
|
4386
4378
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
4387
4379
|
style: { "width": "120px" },
|
|
4388
4380
|
round: "",
|
|
4389
4381
|
type: "primary",
|
|
4390
4382
|
onClick: emitEvent
|
|
4391
4383
|
}, {
|
|
4392
|
-
default: vue.withCtx(() =>
|
|
4393
|
-
vue.createTextVNode("
|
|
4394
|
-
])
|
|
4384
|
+
default: vue.withCtx(() => [
|
|
4385
|
+
vue.createTextVNode("\u9009\u62E9\u89C6\u9891")
|
|
4386
|
+
]),
|
|
4395
4387
|
_: 1
|
|
4396
4388
|
}),
|
|
4397
|
-
|
|
4389
|
+
_hoisted_3$3,
|
|
4398
4390
|
vue.createElementVNode("input", {
|
|
4399
4391
|
type: "file",
|
|
4400
4392
|
accept: "video/*",
|
|
@@ -4409,17 +4401,14 @@
|
|
|
4409
4401
|
};
|
|
4410
4402
|
}
|
|
4411
4403
|
});
|
|
4412
|
-
const index_vue_vue_type_style_index_0_lang$2 = "";
|
|
4413
4404
|
const index_vue_vue_type_style_index_0_lang$1 = "";
|
|
4414
4405
|
const _sfc_main$3 = {
|
|
4415
4406
|
name: "TopicManager",
|
|
4416
4407
|
props: {
|
|
4417
|
-
// 编辑器DOM引用
|
|
4418
4408
|
editorDom: {
|
|
4419
4409
|
type: Object,
|
|
4420
4410
|
default: null
|
|
4421
4411
|
},
|
|
4422
|
-
// 话题API请求方法
|
|
4423
4412
|
request: {
|
|
4424
4413
|
type: Object,
|
|
4425
4414
|
default: null
|
|
@@ -4427,13 +4416,10 @@
|
|
|
4427
4416
|
},
|
|
4428
4417
|
data() {
|
|
4429
4418
|
return {
|
|
4430
|
-
// 话题弹框相关数据
|
|
4431
4419
|
topicPopover: {
|
|
4432
4420
|
visible: false,
|
|
4433
4421
|
type: "hot",
|
|
4434
|
-
// 'hot' 热门话题, 'search' 搜索话题
|
|
4435
4422
|
activeTab: "hot",
|
|
4436
|
-
// 'hot' 热门话题, 'recent' 最近使用
|
|
4437
4423
|
position: { top: 0, left: 0 },
|
|
4438
4424
|
searchKeyword: "",
|
|
4439
4425
|
hotTopics: [],
|
|
@@ -4444,28 +4430,22 @@
|
|
|
4444
4430
|
hasMore: true,
|
|
4445
4431
|
searchPage: 1,
|
|
4446
4432
|
searchHasMore: true,
|
|
4447
|
-
// 用于增量更新的计数器
|
|
4448
4433
|
newHotTopicsCount: 0,
|
|
4449
4434
|
newSearchTopicsCount: 0,
|
|
4450
|
-
// 保存原始的selection和range信息
|
|
4451
4435
|
originalRange: null,
|
|
4452
4436
|
originalSelection: null,
|
|
4453
|
-
// 保存触发位置信息
|
|
4454
4437
|
triggerInfo: {
|
|
4455
4438
|
paragraph: null,
|
|
4456
4439
|
hashIndex: -1,
|
|
4457
4440
|
cursorPosition: 0
|
|
4458
4441
|
},
|
|
4459
|
-
// 全局弹框DOM引用
|
|
4460
4442
|
globalContainer: null,
|
|
4461
4443
|
globalMask: null
|
|
4462
4444
|
},
|
|
4463
|
-
// 中文输入法状态
|
|
4464
4445
|
isComposing: false
|
|
4465
4446
|
};
|
|
4466
4447
|
},
|
|
4467
4448
|
methods: {
|
|
4468
|
-
// 初始化话题管理器
|
|
4469
4449
|
init() {
|
|
4470
4450
|
if (!this.editorDom) {
|
|
4471
4451
|
console.warn("TopicManager: editorDom is required");
|
|
@@ -4473,7 +4453,6 @@
|
|
|
4473
4453
|
}
|
|
4474
4454
|
setTimeout(() => this.bindEditorEvents(), 0);
|
|
4475
4455
|
},
|
|
4476
|
-
// 绑定编辑器事件
|
|
4477
4456
|
bindEditorEvents() {
|
|
4478
4457
|
if (!this.editorDom)
|
|
4479
4458
|
return;
|
|
@@ -4482,7 +4461,6 @@
|
|
|
4482
4461
|
this.editorDom.addEventListener("compositionend", this.handleCompositionEnd.bind(this));
|
|
4483
4462
|
this.editorDom.addEventListener("input", this.handleInput.bind(this));
|
|
4484
4463
|
},
|
|
4485
|
-
// 解绑编辑器事件
|
|
4486
4464
|
unbindEditorEvents() {
|
|
4487
4465
|
if (!this.editorDom)
|
|
4488
4466
|
return;
|
|
@@ -4491,18 +4469,15 @@
|
|
|
4491
4469
|
this.editorDom.removeEventListener("compositionend", this.handleCompositionEnd.bind(this));
|
|
4492
4470
|
this.editorDom.removeEventListener("input", this.handleInput.bind(this));
|
|
4493
4471
|
},
|
|
4494
|
-
// 中文输入法开始事件
|
|
4495
4472
|
handleCompositionStart() {
|
|
4496
4473
|
this.isComposing = true;
|
|
4497
4474
|
},
|
|
4498
|
-
// 中文输入法结束事件(中文)
|
|
4499
4475
|
handleCompositionEnd() {
|
|
4500
4476
|
this.isComposing = false;
|
|
4501
4477
|
setTimeout(() => {
|
|
4502
4478
|
this.handleInputChange();
|
|
4503
4479
|
}, 10);
|
|
4504
4480
|
},
|
|
4505
|
-
// input事件处理(英文)
|
|
4506
4481
|
handleInput() {
|
|
4507
4482
|
if (!this.isComposing) {
|
|
4508
4483
|
setTimeout(() => {
|
|
@@ -4510,7 +4485,6 @@
|
|
|
4510
4485
|
}, 10);
|
|
4511
4486
|
}
|
|
4512
4487
|
},
|
|
4513
|
-
// 处理输入变化
|
|
4514
4488
|
handleInputChange() {
|
|
4515
4489
|
var _a;
|
|
4516
4490
|
const selection = window.getSelection();
|
|
@@ -4538,7 +4512,6 @@
|
|
|
4538
4512
|
return;
|
|
4539
4513
|
this.checkAndTriggerSearch(paragraph);
|
|
4540
4514
|
},
|
|
4541
|
-
// 话题输入处理
|
|
4542
4515
|
handleTopicInput(event) {
|
|
4543
4516
|
var _a;
|
|
4544
4517
|
const activeElement = document.activeElement;
|
|
@@ -4579,9 +4552,7 @@
|
|
|
4579
4552
|
const triggerInfo = {
|
|
4580
4553
|
paragraph,
|
|
4581
4554
|
hashIndex: cursorPosition,
|
|
4582
|
-
// #号的位置
|
|
4583
4555
|
cursorPosition: cursorPosition + 1
|
|
4584
|
-
// #号后的位置
|
|
4585
4556
|
};
|
|
4586
4557
|
this.showTopicPopover("hot", position, "", triggerInfo);
|
|
4587
4558
|
}, 10);
|
|
@@ -4677,7 +4648,6 @@
|
|
|
4677
4648
|
tempElement.remove();
|
|
4678
4649
|
const position = {
|
|
4679
4650
|
top: rect.bottom,
|
|
4680
|
-
// 弹框显示在光标下方
|
|
4681
4651
|
left: rect.left
|
|
4682
4652
|
};
|
|
4683
4653
|
const viewportWidth = window.innerWidth;
|
|
@@ -4695,7 +4665,7 @@
|
|
|
4695
4665
|
}
|
|
4696
4666
|
return position;
|
|
4697
4667
|
} catch (error) {
|
|
4698
|
-
console.warn("
|
|
4668
|
+
console.warn("\u83B7\u53D6\u5149\u6807\u4F4D\u7F6E\u5931\u8D25\uFF0C\u4F7F\u7528fallback\u65B9\u6CD5:", error);
|
|
4699
4669
|
const rect = range.getBoundingClientRect();
|
|
4700
4670
|
return {
|
|
4701
4671
|
top: rect.bottom,
|
|
@@ -4703,10 +4673,9 @@
|
|
|
4703
4673
|
};
|
|
4704
4674
|
}
|
|
4705
4675
|
},
|
|
4706
|
-
// 话题弹框相关方法
|
|
4707
4676
|
showTopicPopover(type, position, searchKeyword = "", triggerInfo = null) {
|
|
4708
4677
|
if (!this.request || !this.request.getTopic) {
|
|
4709
|
-
console.warn("
|
|
4678
|
+
console.warn("\u8BDD\u9898\u529F\u80FD\u9700\u8981\u63D0\u4F9B request.getTopic \u65B9\u6CD5");
|
|
4710
4679
|
return;
|
|
4711
4680
|
}
|
|
4712
4681
|
const selection = window.getSelection();
|
|
@@ -4779,11 +4748,11 @@
|
|
|
4779
4748
|
}
|
|
4780
4749
|
}
|
|
4781
4750
|
} else {
|
|
4782
|
-
console.warn("
|
|
4751
|
+
console.warn("\u52A0\u8F7D\u70ED\u95E8\u8BDD\u9898\u5931\u8D25:", response);
|
|
4783
4752
|
this.topicPopover.hasMore = false;
|
|
4784
4753
|
}
|
|
4785
4754
|
} catch (error) {
|
|
4786
|
-
console.error("
|
|
4755
|
+
console.error("\u52A0\u8F7D\u70ED\u95E8\u8BDD\u9898\u5931\u8D25:", error);
|
|
4787
4756
|
this.topicPopover.hasMore = false;
|
|
4788
4757
|
} finally {
|
|
4789
4758
|
this.topicPopover.loading = false;
|
|
@@ -4817,18 +4786,17 @@
|
|
|
4817
4786
|
this.topicPopover.searchHasMore = topics.length >= 50;
|
|
4818
4787
|
}
|
|
4819
4788
|
} else {
|
|
4820
|
-
console.warn("
|
|
4789
|
+
console.warn("\u641C\u7D22\u8BDD\u9898\u5931\u8D25:", response);
|
|
4821
4790
|
this.topicPopover.searchHasMore = false;
|
|
4822
4791
|
}
|
|
4823
4792
|
} catch (error) {
|
|
4824
|
-
console.error("
|
|
4793
|
+
console.error("\u641C\u7D22\u8BDD\u9898\u5931\u8D25:", error);
|
|
4825
4794
|
this.topicPopover.searchHasMore = false;
|
|
4826
4795
|
} finally {
|
|
4827
4796
|
this.topicPopover.loading = false;
|
|
4828
4797
|
this.updateGlobalTopicPopover();
|
|
4829
4798
|
}
|
|
4830
4799
|
},
|
|
4831
|
-
// 加载更多搜索话题
|
|
4832
4800
|
async loadSearchTopics() {
|
|
4833
4801
|
if (this.topicPopover.loading || !this.topicPopover.searchHasMore)
|
|
4834
4802
|
return;
|
|
@@ -4856,11 +4824,11 @@
|
|
|
4856
4824
|
}
|
|
4857
4825
|
}
|
|
4858
4826
|
} else {
|
|
4859
|
-
console.warn("
|
|
4827
|
+
console.warn("\u52A0\u8F7D\u66F4\u591A\u641C\u7D22\u8BDD\u9898\u5931\u8D25:", response);
|
|
4860
4828
|
this.topicPopover.searchHasMore = false;
|
|
4861
4829
|
}
|
|
4862
4830
|
} catch (error) {
|
|
4863
|
-
console.error("
|
|
4831
|
+
console.error("\u52A0\u8F7D\u66F4\u591A\u641C\u7D22\u8BDD\u9898\u5931\u8D25:", error);
|
|
4864
4832
|
this.topicPopover.searchHasMore = false;
|
|
4865
4833
|
} finally {
|
|
4866
4834
|
this.topicPopover.loading = false;
|
|
@@ -4872,7 +4840,7 @@
|
|
|
4872
4840
|
const localTopics = JSON.parse(localStorage.getItem("localTopic") || "[]");
|
|
4873
4841
|
this.topicPopover.recentTopics = localTopics;
|
|
4874
4842
|
} catch (error) {
|
|
4875
|
-
console.error("
|
|
4843
|
+
console.error("\u52A0\u8F7D\u6700\u8FD1\u4F7F\u7528\u8BDD\u9898\u5931\u8D25:", error);
|
|
4876
4844
|
this.topicPopover.recentTopics = [];
|
|
4877
4845
|
}
|
|
4878
4846
|
},
|
|
@@ -4892,10 +4860,9 @@
|
|
|
4892
4860
|
}
|
|
4893
4861
|
localStorage.setItem("localTopic", JSON.stringify(recentTopics));
|
|
4894
4862
|
} catch (error) {
|
|
4895
|
-
console.error("
|
|
4863
|
+
console.error("\u4FDD\u5B58\u6700\u8FD1\u4F7F\u7528\u8BDD\u9898\u5931\u8D25:", error);
|
|
4896
4864
|
}
|
|
4897
4865
|
},
|
|
4898
|
-
// 创建全局话题弹框
|
|
4899
4866
|
createGlobalTopicPopover() {
|
|
4900
4867
|
this.removeGlobalTopicPopover();
|
|
4901
4868
|
const mask = document.createElement("div");
|
|
@@ -4919,7 +4886,6 @@
|
|
|
4919
4886
|
this.topicPopover.globalContainer = container;
|
|
4920
4887
|
this.bindTopicPopoverEvents();
|
|
4921
4888
|
},
|
|
4922
|
-
// 移除全局话题弹框
|
|
4923
4889
|
removeGlobalTopicPopover() {
|
|
4924
4890
|
if (this.topicPopover.globalMask) {
|
|
4925
4891
|
document.body.removeChild(this.topicPopover.globalMask);
|
|
@@ -4930,14 +4896,12 @@
|
|
|
4930
4896
|
this.topicPopover.globalContainer = null;
|
|
4931
4897
|
}
|
|
4932
4898
|
},
|
|
4933
|
-
// 更新全局话题弹框内容
|
|
4934
4899
|
updateGlobalTopicPopover() {
|
|
4935
4900
|
if (!this.topicPopover.globalContainer)
|
|
4936
4901
|
return;
|
|
4937
4902
|
this.topicPopover.globalContainer.innerHTML = this.createTopicPopoverContent();
|
|
4938
4903
|
this.bindTopicPopoverEvents();
|
|
4939
4904
|
},
|
|
4940
|
-
// 增量添加热门话题到DOM,避免重绘
|
|
4941
4905
|
appendHotTopicsToDOM() {
|
|
4942
4906
|
if (!this.topicPopover.globalContainer || this.topicPopover.newHotTopicsCount === 0)
|
|
4943
4907
|
return;
|
|
@@ -4961,7 +4925,6 @@
|
|
|
4961
4925
|
this.updateLoadingState(topicList, this.topicPopover.loading, this.topicPopover.hasMore);
|
|
4962
4926
|
this.topicPopover.newHotTopicsCount = 0;
|
|
4963
4927
|
},
|
|
4964
|
-
// 增量添加搜索话题到DOM,避免重绘
|
|
4965
4928
|
appendSearchTopicsToDOM() {
|
|
4966
4929
|
if (!this.topicPopover.globalContainer || this.topicPopover.newSearchTopicsCount === 0)
|
|
4967
4930
|
return;
|
|
@@ -4985,7 +4948,6 @@
|
|
|
4985
4948
|
this.updateLoadingState(topicList, this.topicPopover.loading, this.topicPopover.searchHasMore);
|
|
4986
4949
|
this.topicPopover.newSearchTopicsCount = 0;
|
|
4987
4950
|
},
|
|
4988
|
-
// 更新加载状态显示
|
|
4989
4951
|
updateLoadingState(topicList, loading, hasMore) {
|
|
4990
4952
|
const existingLoading = topicList.querySelector(".topic-loading");
|
|
4991
4953
|
const existingEmpty = topicList.querySelector(".topic-empty");
|
|
@@ -4996,16 +4958,15 @@
|
|
|
4996
4958
|
if (loading) {
|
|
4997
4959
|
const loadingElement = document.createElement("div");
|
|
4998
4960
|
loadingElement.className = "topic-loading";
|
|
4999
|
-
loadingElement.textContent = "
|
|
4961
|
+
loadingElement.textContent = "\u52A0\u8F7D\u66F4\u591A...";
|
|
5000
4962
|
topicList.appendChild(loadingElement);
|
|
5001
4963
|
} else if (!hasMore) {
|
|
5002
4964
|
const emptyElement = document.createElement("div");
|
|
5003
4965
|
emptyElement.className = "topic-empty";
|
|
5004
|
-
emptyElement.textContent = "
|
|
4966
|
+
emptyElement.textContent = "\u6CA1\u6709\u66F4\u591A\u4E86";
|
|
5005
4967
|
topicList.appendChild(emptyElement);
|
|
5006
4968
|
}
|
|
5007
4969
|
},
|
|
5008
|
-
// 创建话题弹框内容
|
|
5009
4970
|
createTopicPopoverContent() {
|
|
5010
4971
|
if (this.topicPopover.type === "hot") {
|
|
5011
4972
|
return this.getHotTopicPopoverHTML();
|
|
@@ -5014,7 +4975,6 @@
|
|
|
5014
4975
|
}
|
|
5015
4976
|
return "";
|
|
5016
4977
|
},
|
|
5017
|
-
// 获取热门话题弹框HTML
|
|
5018
4978
|
getHotTopicPopoverHTML() {
|
|
5019
4979
|
const activeTab = this.topicPopover.activeTab;
|
|
5020
4980
|
const hotTopics = this.topicPopover.hotTopics;
|
|
@@ -5024,22 +4984,22 @@
|
|
|
5024
4984
|
let topicListHTML = "";
|
|
5025
4985
|
if (activeTab === "hot") {
|
|
5026
4986
|
if (loading && hotTopics.length === 0) {
|
|
5027
|
-
topicListHTML = '<div class="topic-loading"
|
|
4987
|
+
topicListHTML = '<div class="topic-loading">\u52A0\u8F7D\u4E2D...</div>';
|
|
5028
4988
|
} else if (hotTopics.length === 0) {
|
|
5029
|
-
topicListHTML = '<div class="topic-empty"
|
|
4989
|
+
topicListHTML = '<div class="topic-empty">\u6682\u65E0\u70ED\u95E8\u8BDD\u9898</div>';
|
|
5030
4990
|
} else {
|
|
5031
4991
|
topicListHTML = hotTopics.map(
|
|
5032
4992
|
(topic) => `<div class="topic-item" data-topic-id="${topic.id}" data-topic-type="${topic.type}">#${topic.exactlyMatchTitle}</div>`
|
|
5033
4993
|
).join("");
|
|
5034
4994
|
if (loading) {
|
|
5035
|
-
topicListHTML += '<div class="topic-loading"
|
|
4995
|
+
topicListHTML += '<div class="topic-loading">\u52A0\u8F7D\u66F4\u591A...</div>';
|
|
5036
4996
|
} else if (!hasMore) {
|
|
5037
|
-
topicListHTML += '<div class="topic-empty"
|
|
4997
|
+
topicListHTML += '<div class="topic-empty">\u6CA1\u6709\u66F4\u591A\u4E86</div>';
|
|
5038
4998
|
}
|
|
5039
4999
|
}
|
|
5040
5000
|
} else {
|
|
5041
5001
|
if (recentTopics.length === 0) {
|
|
5042
|
-
topicListHTML = '<div class="topic-empty"
|
|
5002
|
+
topicListHTML = '<div class="topic-empty">\u6682\u65E0\u6700\u8FD1\u4F7F\u7528\u8BB0\u5F55</div>';
|
|
5043
5003
|
} else {
|
|
5044
5004
|
topicListHTML = recentTopics.map(
|
|
5045
5005
|
(topic) => `<div class="topic-item" data-topic-id="${topic.id}" data-topic-type="${topic.type}">#${topic.exactlyMatchTitle}</div>`
|
|
@@ -5050,10 +5010,10 @@
|
|
|
5050
5010
|
<div class="topic-popover-content">
|
|
5051
5011
|
<div class="topic-tabs">
|
|
5052
5012
|
<div class="topic-tab ${activeTab === "hot" ? "active" : ""}" data-tab="hot">
|
|
5053
|
-
|
|
5013
|
+
\u70ED\u95E8\u8BDD\u9898
|
|
5054
5014
|
</div>
|
|
5055
5015
|
<div class="topic-tab ${activeTab === "recent" ? "active" : ""}" data-tab="recent">
|
|
5056
|
-
|
|
5016
|
+
\u6700\u8FD1\u4F7F\u7528
|
|
5057
5017
|
</div>
|
|
5058
5018
|
</div>
|
|
5059
5019
|
<div class="topic-list-container">
|
|
@@ -5064,7 +5024,6 @@
|
|
|
5064
5024
|
</div>
|
|
5065
5025
|
`;
|
|
5066
5026
|
},
|
|
5067
|
-
// 获取搜索话题弹框HTML
|
|
5068
5027
|
getSearchTopicPopoverHTML() {
|
|
5069
5028
|
const searchKeyword = this.topicPopover.searchKeyword;
|
|
5070
5029
|
const searchTopics = this.topicPopover.searchTopics;
|
|
@@ -5072,17 +5031,17 @@
|
|
|
5072
5031
|
const searchHasMore = this.topicPopover.searchHasMore;
|
|
5073
5032
|
let topicListHTML = "";
|
|
5074
5033
|
if (loading && searchTopics.length === 0) {
|
|
5075
|
-
topicListHTML = '<div class="topic-loading"
|
|
5034
|
+
topicListHTML = '<div class="topic-loading">\u641C\u7D22\u4E2D...</div>';
|
|
5076
5035
|
} else if (searchTopics.length === 0) {
|
|
5077
|
-
topicListHTML = '<div class="topic-empty"
|
|
5036
|
+
topicListHTML = '<div class="topic-empty">\u6CA1\u6709\u5339\u914D\u5230\u8BDD\u9898\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165</div>';
|
|
5078
5037
|
} else {
|
|
5079
5038
|
topicListHTML = searchTopics.map(
|
|
5080
5039
|
(topic) => `<div class="topic-item" data-topic-id="${topic.id}" data-topic-type="${topic.type}">#${topic.exactlyMatchTitle}</div>`
|
|
5081
5040
|
).join("");
|
|
5082
5041
|
if (loading) {
|
|
5083
|
-
topicListHTML += '<div class="topic-loading"
|
|
5042
|
+
topicListHTML += '<div class="topic-loading">\u52A0\u8F7D\u66F4\u591A...</div>';
|
|
5084
5043
|
} else if (!searchHasMore) {
|
|
5085
|
-
topicListHTML += '<div class="topic-empty"
|
|
5044
|
+
topicListHTML += '<div class="topic-empty">\u6CA1\u6709\u66F4\u591A\u4E86</div>';
|
|
5086
5045
|
}
|
|
5087
5046
|
}
|
|
5088
5047
|
return `
|
|
@@ -5098,7 +5057,6 @@
|
|
|
5098
5057
|
</div>
|
|
5099
5058
|
`;
|
|
5100
5059
|
},
|
|
5101
|
-
// 绑定话题弹框事件
|
|
5102
5060
|
bindTopicPopoverEvents() {
|
|
5103
5061
|
if (!this.topicPopover.globalContainer)
|
|
5104
5062
|
return;
|
|
@@ -5130,7 +5088,6 @@
|
|
|
5130
5088
|
});
|
|
5131
5089
|
}
|
|
5132
5090
|
},
|
|
5133
|
-
// 根据ID查找话题
|
|
5134
5091
|
findTopicById(topicId) {
|
|
5135
5092
|
let topic = this.topicPopover.hotTopics.find((t) => t.id === topicId);
|
|
5136
5093
|
if (topic)
|
|
@@ -5249,15 +5206,13 @@
|
|
|
5249
5206
|
topicId: topic.id,
|
|
5250
5207
|
topicType: topic.type || 0,
|
|
5251
5208
|
startIndex: 0,
|
|
5252
|
-
// 会在updateTopicPosition中更新
|
|
5253
5209
|
endIndex: 0
|
|
5254
|
-
// 会在updateTopicPosition中更新
|
|
5255
5210
|
}));
|
|
5256
5211
|
topicElement.textContent = topicText;
|
|
5257
5212
|
topicElement.setAttribute("contenteditable", "false");
|
|
5258
5213
|
range.deleteContents();
|
|
5259
5214
|
range.insertNode(topicElement);
|
|
5260
|
-
const spaceNode = document.createTextNode("
|
|
5215
|
+
const spaceNode = document.createTextNode("\xA0");
|
|
5261
5216
|
range.setStartAfter(topicElement);
|
|
5262
5217
|
range.insertNode(spaceNode);
|
|
5263
5218
|
const newRange = document.createRange();
|
|
@@ -5281,7 +5236,6 @@
|
|
|
5281
5236
|
}, 0);
|
|
5282
5237
|
this.$emit("update-topic-position");
|
|
5283
5238
|
},
|
|
5284
|
-
// 销毁话题管理器
|
|
5285
5239
|
destroy() {
|
|
5286
5240
|
this.unbindEditorEvents();
|
|
5287
5241
|
this.hideTopicPopover();
|
|
@@ -5309,7 +5263,7 @@
|
|
|
5309
5263
|
components: {
|
|
5310
5264
|
ElInput: elementPlus.ElInput,
|
|
5311
5265
|
BasicDialog: _sfc_main$7,
|
|
5312
|
-
draggable
|
|
5266
|
+
draggable: draggable__default.default
|
|
5313
5267
|
},
|
|
5314
5268
|
props: {
|
|
5315
5269
|
visible: {
|
|
@@ -5350,12 +5304,14 @@
|
|
|
5350
5304
|
setStatus(val) {
|
|
5351
5305
|
this.$emit("update:visible", val);
|
|
5352
5306
|
}
|
|
5353
|
-
// submit() {
|
|
5354
|
-
// this.$emit('submit')
|
|
5355
|
-
// }
|
|
5356
5307
|
}
|
|
5357
5308
|
};
|
|
5358
|
-
const _hoisted_1$2 =
|
|
5309
|
+
const _hoisted_1$2 = /* @__PURE__ */ vue.createElementVNode("div", null, [
|
|
5310
|
+
/* @__PURE__ */ vue.createElementVNode("span", null, "\u91C7\u96C6\u6587\u7AE0"),
|
|
5311
|
+
/* @__PURE__ */ vue.createElementVNode("span", { class: "collect-article_lable" }, "\u5982\u9700\u83B7\u5F97\u6B63\u5F0F\u4F7F\u7528\u6743\uFF0C\u8BF7\u81EA\u884C\u8054\u7CFB\u7248\u6743\u6240\u6709\u8005")
|
|
5312
|
+
], -1);
|
|
5313
|
+
const _hoisted_2$2 = { class: "collect-article_content" };
|
|
5314
|
+
const _hoisted_3$2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "tip" }, "\u8BF7\u628A\u9700\u8981\u91C7\u96C6\u7684\u6587\u7AE0\u94FE\u63A5\u7C98\u8D34\u5728\u4E0B\u65B9\u7684\u8F93\u5165\u6846\uFF1A", -1);
|
|
5359
5315
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5360
5316
|
const _component_el_input = vue.resolveComponent("el-input");
|
|
5361
5317
|
const _component_BasicDialog = vue.resolveComponent("BasicDialog");
|
|
@@ -5364,19 +5320,16 @@
|
|
|
5364
5320
|
width: "600px",
|
|
5365
5321
|
height: "50px"
|
|
5366
5322
|
}, {
|
|
5367
|
-
title: vue.withCtx(() =>
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
vue.createElementVNode("span", { class: "collect-article_lable" }, "如需获得正式使用权,请自行联系版权所有者")
|
|
5371
|
-
], -1)
|
|
5372
|
-
])),
|
|
5323
|
+
title: vue.withCtx(() => [
|
|
5324
|
+
_hoisted_1$2
|
|
5325
|
+
]),
|
|
5373
5326
|
default: vue.withCtx(() => [
|
|
5374
|
-
vue.createElementVNode("div",
|
|
5375
|
-
|
|
5327
|
+
vue.createElementVNode("div", _hoisted_2$2, [
|
|
5328
|
+
_hoisted_3$2,
|
|
5376
5329
|
vue.createVNode(_component_el_input, {
|
|
5377
5330
|
modelValue: $options.input,
|
|
5378
5331
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.input = $event),
|
|
5379
|
-
placeholder: "
|
|
5332
|
+
placeholder: "\u4EC5\u652F\u6301\u5FAE\u4FE1\u94FE\u63A5"
|
|
5380
5333
|
}, null, 8, ["modelValue"])
|
|
5381
5334
|
])
|
|
5382
5335
|
]),
|
|
@@ -5384,7 +5337,7 @@
|
|
|
5384
5337
|
}, 8, ["visible"]);
|
|
5385
5338
|
}
|
|
5386
5339
|
const CollectArticle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
5387
|
-
const
|
|
5340
|
+
const index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5388
5341
|
const _sfc_main$1 = {
|
|
5389
5342
|
components: {
|
|
5390
5343
|
ElIconError: iconsVue.CircleCloseFilled
|
|
@@ -5429,8 +5382,8 @@
|
|
|
5429
5382
|
vue.createElementVNode("div", _hoisted_4, vue.toDisplayString($props.article.title), 1),
|
|
5430
5383
|
vue.createElementVNode("div", _hoisted_5, [
|
|
5431
5384
|
vue.createElementVNode("span", null, vue.toDisplayString($props.article.author), 1),
|
|
5432
|
-
vue.createElementVNode("span", null, vue.toDisplayString($props.article.viewNum) + "
|
|
5433
|
-
vue.createElementVNode("span", null, vue.toDisplayString($props.article.replycnt) + "
|
|
5385
|
+
vue.createElementVNode("span", null, vue.toDisplayString($props.article.viewNum) + "\u6D4F\u89C8", 1),
|
|
5386
|
+
vue.createElementVNode("span", null, vue.toDisplayString($props.article.replycnt) + "\u8BC4\u8BBA", 1)
|
|
5434
5387
|
])
|
|
5435
5388
|
]),
|
|
5436
5389
|
vue.createVNode(_component_el_icon_error, {
|
|
@@ -5442,10 +5395,10 @@
|
|
|
5442
5395
|
class: vue.normalizeClass([{
|
|
5443
5396
|
"article-bg-height": $props.article.img || $props.article.mediaInfo && $props.article.mediaInfo.length
|
|
5444
5397
|
}, "article-bg"])
|
|
5445
|
-
}, "
|
|
5398
|
+
}, " \u5E73\u53F0\u4EC5\u652F\u6301\u5C55\u793A18\u4E2A\u6708\u7684\u63A8\u8350\u5185\u5BB9 ", 2)) : vue.createCommentVNode("", true)
|
|
5446
5399
|
]);
|
|
5447
5400
|
}
|
|
5448
|
-
const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
5401
|
+
const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-1c406a11"]]);
|
|
5449
5402
|
const mountArticleDom = (props, del) => {
|
|
5450
5403
|
const className = "article-wrap";
|
|
5451
5404
|
const article = props.article;
|
|
@@ -5505,7 +5458,6 @@
|
|
|
5505
5458
|
hasArticleCard: false,
|
|
5506
5459
|
cursorStyle: "auto",
|
|
5507
5460
|
titleCount: 0,
|
|
5508
|
-
// 标题数量
|
|
5509
5461
|
viewLinkDialog: false,
|
|
5510
5462
|
linkForm: {
|
|
5511
5463
|
linkAddress: "",
|
|
@@ -5513,54 +5465,39 @@
|
|
|
5513
5465
|
},
|
|
5514
5466
|
setAlignFlag: true,
|
|
5515
5467
|
article: {},
|
|
5516
|
-
// 插入的文章
|
|
5517
5468
|
imgList: [],
|
|
5518
5469
|
imgNum: 20,
|
|
5519
5470
|
videoList: [],
|
|
5520
5471
|
visibleVideo: false,
|
|
5521
5472
|
visibleCollectArticle: false,
|
|
5522
5473
|
visibleArticle: false,
|
|
5523
|
-
// 插入文章
|
|
5524
5474
|
visibleImg: false,
|
|
5525
|
-
// 插入图片
|
|
5526
5475
|
imgType: "normal",
|
|
5527
|
-
//
|
|
5528
5476
|
typeEnum: {
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
视频文字: "7",
|
|
5477
|
+
\u6587\u5B57: "1",
|
|
5478
|
+
\u56FE\u7247: "2",
|
|
5479
|
+
\u56FE\u6587: "3",
|
|
5480
|
+
\u6BB5\u843D\u6807\u9898: "4",
|
|
5481
|
+
\u5173\u8054: "5",
|
|
5482
|
+
\u5355\u89C6\u9891: "6",
|
|
5483
|
+
\u89C6\u9891\u6587\u5B57: "7",
|
|
5537
5484
|
URL: "8",
|
|
5538
|
-
|
|
5485
|
+
\u6587\u7AE0\u5361\u7247: "11"
|
|
5539
5486
|
},
|
|
5540
5487
|
fontInfo: {
|
|
5541
5488
|
size: ""
|
|
5542
5489
|
},
|
|
5543
5490
|
user: {},
|
|
5544
|
-
// 用户
|
|
5545
5491
|
editor: {},
|
|
5546
|
-
// 编辑器实例对象
|
|
5547
5492
|
editorDom: {},
|
|
5548
|
-
// 编辑器Dom
|
|
5549
5493
|
uploadStore: {},
|
|
5550
|
-
// 待上传的图片池
|
|
5551
5494
|
linkContent: "",
|
|
5552
|
-
// 插入链接的地址
|
|
5553
5495
|
loadingText: "",
|
|
5554
|
-
// loaing的提示文字
|
|
5555
5496
|
progressPercent: "",
|
|
5556
|
-
// 上传进度
|
|
5557
5497
|
currentIndex: 0,
|
|
5558
5498
|
loading: false,
|
|
5559
|
-
// 是否提交中
|
|
5560
5499
|
viewStatus: false,
|
|
5561
|
-
// todo: 改名
|
|
5562
5500
|
linkStatus: false,
|
|
5563
|
-
// todo: 改名
|
|
5564
5501
|
styleStatus: {
|
|
5565
5502
|
bold: false,
|
|
5566
5503
|
italic: false,
|
|
@@ -5584,7 +5521,6 @@
|
|
|
5584
5521
|
targetMove: "",
|
|
5585
5522
|
moverClasses: ["halo-img-content", "halo-video-content"],
|
|
5586
5523
|
selectDom: null
|
|
5587
|
-
//选中的dom
|
|
5588
5524
|
};
|
|
5589
5525
|
},
|
|
5590
5526
|
computed: {
|
|
@@ -5601,12 +5537,12 @@
|
|
|
5601
5537
|
watch: {
|
|
5602
5538
|
progressPercent(val) {
|
|
5603
5539
|
const inner = document.querySelector(".video-progress .inner");
|
|
5604
|
-
console.log(val, "
|
|
5540
|
+
console.log(val, "\u89C6\u9891\u4E0A\u4F20\u8FDB\u5EA6");
|
|
5605
5541
|
if (inner) {
|
|
5606
5542
|
inner.style.width = val + "%";
|
|
5607
5543
|
if (val === 100) {
|
|
5608
5544
|
document.querySelector(".video-progress").innerHTML = `
|
|
5609
|
-
<div class="no-calc" style="text-align:center;color:#999999;font-size:18px;"
|
|
5545
|
+
<div class="no-calc" style="text-align:center;color:#999999;font-size:18px;">\u6B63\u5728\u83B7\u53D6\u89C6\u9891\u5C01\u9762</div>
|
|
5610
5546
|
`;
|
|
5611
5547
|
}
|
|
5612
5548
|
}
|
|
@@ -5625,7 +5561,7 @@
|
|
|
5625
5561
|
me2.user = JSON.parse(
|
|
5626
5562
|
window.localStorage.getItem("user") || window.localStorage.getItem("userInfo") || "{}"
|
|
5627
5563
|
);
|
|
5628
|
-
me2.guid = me2.user.uid + "|" +
|
|
5564
|
+
me2.guid = me2.user.uid + "|" + util__default.default.tools.guid();
|
|
5629
5565
|
},
|
|
5630
5566
|
beforeDestroy() {
|
|
5631
5567
|
this.editorDom && this.editorDom.removeEventListener("blur", this.canSetAlign);
|
|
@@ -5695,10 +5631,10 @@
|
|
|
5695
5631
|
this.visibleVideo = false;
|
|
5696
5632
|
const fileName = (files[0] && files[0].name || "").toLowerCase();
|
|
5697
5633
|
if (files[0].size > 1 * 1024 * 1024 * 1024) {
|
|
5698
|
-
return me2.setToast("
|
|
5634
|
+
return me2.setToast("\u89C6\u9891\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC71GB");
|
|
5699
5635
|
}
|
|
5700
5636
|
if (fileName.indexOf(".mp4") === -1 && fileName.indexOf(".mov") === -1) {
|
|
5701
|
-
return me2.setToast("
|
|
5637
|
+
return me2.setToast("\u89C6\u9891\u683C\u5F0F\u4E0D\u662Fmp4\u6216mov");
|
|
5702
5638
|
}
|
|
5703
5639
|
const me2 = this;
|
|
5704
5640
|
if (me2.loading)
|
|
@@ -5718,9 +5654,7 @@
|
|
|
5718
5654
|
id: result.videoId,
|
|
5719
5655
|
desc: "",
|
|
5720
5656
|
vodSize: result.vodSize || "",
|
|
5721
|
-
// 视频大小
|
|
5722
5657
|
vodType: result.vodType || ""
|
|
5723
|
-
// 图片尺寸
|
|
5724
5658
|
};
|
|
5725
5659
|
me2.$emit("updateAddVideo", true);
|
|
5726
5660
|
me2.editor["insertVideo"](result.videoUrl, video);
|
|
@@ -5774,11 +5708,11 @@
|
|
|
5774
5708
|
},
|
|
5775
5709
|
insertLink() {
|
|
5776
5710
|
if (!this.linkForm.linkAddress)
|
|
5777
|
-
return elementPlus.ElMessage.error("
|
|
5711
|
+
return elementPlus.ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740");
|
|
5778
5712
|
if (!this.linkForm.linkWriting)
|
|
5779
|
-
return elementPlus.ElMessage.error("
|
|
5713
|
+
return elementPlus.ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u6587\u6848");
|
|
5780
5714
|
if (!this.validUrl(this.linkForm.linkAddress)) {
|
|
5781
|
-
return this.setToast("URL
|
|
5715
|
+
return this.setToast("URL\u65E0\u6548");
|
|
5782
5716
|
}
|
|
5783
5717
|
this.editor.insertLink(
|
|
5784
5718
|
this.linkForm.linkAddress,
|
|
@@ -5807,7 +5741,6 @@
|
|
|
5807
5741
|
});
|
|
5808
5742
|
});
|
|
5809
5743
|
},
|
|
5810
|
-
// TopicManager事件处理
|
|
5811
5744
|
onTopicInserted(topic) {
|
|
5812
5745
|
this.updateData(true);
|
|
5813
5746
|
},
|
|
@@ -6264,8 +6197,6 @@
|
|
|
6264
6197
|
}
|
|
6265
6198
|
}
|
|
6266
6199
|
this.updateData(true);
|
|
6267
|
-
} else {
|
|
6268
|
-
this.setToast(rst.origin.name + "上传失败,请重试");
|
|
6269
6200
|
}
|
|
6270
6201
|
},
|
|
6271
6202
|
insertVideoBtns(editor, node) {
|
|
@@ -6280,7 +6211,7 @@
|
|
|
6280
6211
|
me2.currentVideo = node;
|
|
6281
6212
|
e.stopPropagation();
|
|
6282
6213
|
};
|
|
6283
|
-
replaceBtn.innerText = "
|
|
6214
|
+
replaceBtn.innerText = "\u66F4\u6362\u5C01\u9762";
|
|
6284
6215
|
return replaceBtn;
|
|
6285
6216
|
},
|
|
6286
6217
|
insertImgOperateBtns(editor, data) {
|
|
@@ -6305,7 +6236,7 @@
|
|
|
6305
6236
|
class: "desc-input",
|
|
6306
6237
|
maxlength: "100",
|
|
6307
6238
|
cols: "50",
|
|
6308
|
-
placeholder: "
|
|
6239
|
+
placeholder: "\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0(\u6700\u591A100\u5B57)",
|
|
6309
6240
|
contenteditable: "false"
|
|
6310
6241
|
});
|
|
6311
6242
|
descInput.disabled = me2.disabled;
|
|
@@ -6317,7 +6248,7 @@
|
|
|
6317
6248
|
const img = parent.querySelector(".halo-picture-area");
|
|
6318
6249
|
img.dataset.desc = e.target.value;
|
|
6319
6250
|
if (e.target.value.length > 99) {
|
|
6320
|
-
return me2.setToast("
|
|
6251
|
+
return me2.setToast("\u9650\u5236100\u4E2A\u5B57\u7B26");
|
|
6321
6252
|
}
|
|
6322
6253
|
};
|
|
6323
6254
|
descInput.value = data.content || "";
|
|
@@ -6367,7 +6298,7 @@
|
|
|
6367
6298
|
me2.removeParentByClass(e.target, "halo-img-content");
|
|
6368
6299
|
me2.updateData(true);
|
|
6369
6300
|
};
|
|
6370
|
-
replaceBtn.innerHTML = "
|
|
6301
|
+
replaceBtn.innerHTML = "\u66FF\u6362";
|
|
6371
6302
|
return [replaceBtn, delBtn, descInputWrap];
|
|
6372
6303
|
},
|
|
6373
6304
|
removeSeamlessLaster(e) {
|
|
@@ -6391,7 +6322,6 @@
|
|
|
6391
6322
|
}
|
|
6392
6323
|
}
|
|
6393
6324
|
},
|
|
6394
|
-
// 初始化编辑器数据,数据是 html 格式(displayData)
|
|
6395
6325
|
initData(data = "", essayPicRelVOList) {
|
|
6396
6326
|
this.parseHtml(data, essayPicRelVOList).then((res) => {
|
|
6397
6327
|
this.editorDom.innerHTML = "";
|
|
@@ -6399,13 +6329,10 @@
|
|
|
6399
6329
|
this.updateData();
|
|
6400
6330
|
});
|
|
6401
6331
|
},
|
|
6402
|
-
// TODO jsonToHtml、htmlToJson 实现这 2 个方法里面的逻辑,数据结构参考方法里面的注释,出参入参都为字符串,注意:mdd-topic 里面的属性数据 和 json 中的topicPosition数据是一一对应的,startIndex、endIndex为mdd-topic的起止位置 从 content 里面进行分割处理
|
|
6403
|
-
// json、html 数据格式互转,暂时只支持文字、短话题
|
|
6404
6332
|
jsonToHtml(json) {
|
|
6405
6333
|
},
|
|
6406
6334
|
htmlToJson(html) {
|
|
6407
6335
|
},
|
|
6408
|
-
// 设置富文本组件
|
|
6409
6336
|
initSquire() {
|
|
6410
6337
|
const me2 = this;
|
|
6411
6338
|
const editorDom = me2.editorDom;
|
|
@@ -6855,7 +6782,6 @@
|
|
|
6855
6782
|
window.Squire.empty(block)
|
|
6856
6783
|
]);
|
|
6857
6784
|
output.appendChild(
|
|
6858
|
-
// 段落才能添加标题
|
|
6859
6785
|
Array.from(block.classList).indexOf("halo-img-content") > -1 ? block : container
|
|
6860
6786
|
);
|
|
6861
6787
|
}
|
|
@@ -6878,20 +6804,21 @@
|
|
|
6878
6804
|
});
|
|
6879
6805
|
loading.innerHTML = `
|
|
6880
6806
|
<img class="img-loading-icon" src="/img/upload-image-loading.png"/>
|
|
6881
|
-
<span class="img-loading-tip"
|
|
6807
|
+
<span class="img-loading-tip">\u4E0A\u4F20\u4E2D...</span>
|
|
6882
6808
|
`;
|
|
6883
6809
|
var fail = this.createElement("div", {
|
|
6884
6810
|
class: "img-fail hide",
|
|
6885
6811
|
contenteditable: "false"
|
|
6886
6812
|
});
|
|
6887
|
-
fail.innerHTML = "
|
|
6813
|
+
fail.innerHTML = "\u4E0A\u4F20\u5931\u8D25<br>\u8BF7\u4E0B\u8F7D\u56FE\u7247\u81F3\u672C\u5730\u540E\u91CD\u65B0\u4E0A\u4F20";
|
|
6888
6814
|
var again = this.createElement("button", {
|
|
6889
6815
|
class: "img-again hide",
|
|
6890
6816
|
contenteditable: "false"
|
|
6891
6817
|
});
|
|
6892
|
-
again.innerHTML = "
|
|
6818
|
+
again.innerHTML = "\u91CD\u65B0\u4E0A\u4F20";
|
|
6893
6819
|
const isGif = src && src.indexOf(".gif") > -1;
|
|
6894
|
-
|
|
6820
|
+
const isGifNowater = src && src.indexOf(".gif!nowater") > -1;
|
|
6821
|
+
if (isGif && !isGifNowater) {
|
|
6895
6822
|
src = src.replace(".gif", ".gif!nowater");
|
|
6896
6823
|
}
|
|
6897
6824
|
var img = this.createElement("img", {
|
|
@@ -6944,7 +6871,7 @@
|
|
|
6944
6871
|
});
|
|
6945
6872
|
div.innerHTML = `
|
|
6946
6873
|
<div class="video-progress">
|
|
6947
|
-
<div class="label"
|
|
6874
|
+
<div class="label">\u4E0A\u4F20\u4E2D...</div>
|
|
6948
6875
|
<div class="box">
|
|
6949
6876
|
<div class="inner" style="width:20%"></div>
|
|
6950
6877
|
</div>
|
|
@@ -6967,7 +6894,6 @@
|
|
|
6967
6894
|
data: JSON.stringify(data),
|
|
6968
6895
|
"data-content": data.content || "",
|
|
6969
6896
|
poster: data.img || ""
|
|
6970
|
-
// 'contenteditable': 'true',
|
|
6971
6897
|
});
|
|
6972
6898
|
var delBtn = me2.genIconDom({
|
|
6973
6899
|
class: "pointer video-delete icon",
|
|
@@ -7025,7 +6951,6 @@
|
|
|
7025
6951
|
}
|
|
7026
6952
|
};
|
|
7027
6953
|
},
|
|
7028
|
-
// 撤销重做 会把 所有的监听全都移除,所以需要重新绑定
|
|
7029
6954
|
setListener(dom) {
|
|
7030
6955
|
const me2 = this;
|
|
7031
6956
|
const doms = dom ? [dom] : Array.from(this.editorDom.children);
|
|
@@ -7036,7 +6961,7 @@
|
|
|
7036
6961
|
p.onclick = function(e) {
|
|
7037
6962
|
var _a;
|
|
7038
6963
|
if (area.nodeName === "VIDEO" && ((_a = me2.selectDom) == null ? void 0 : _a.className) === "halo-video-content") {
|
|
7039
|
-
me2.setToast("
|
|
6964
|
+
me2.setToast("\u4E0D\u652F\u6301\u64AD\u653E");
|
|
7040
6965
|
}
|
|
7041
6966
|
if (e.target.className.includes("desc-input")) {
|
|
7042
6967
|
return;
|
|
@@ -7100,7 +7025,6 @@
|
|
|
7100
7025
|
};
|
|
7101
7026
|
return del;
|
|
7102
7027
|
},
|
|
7103
|
-
// 转换数据,返回给业务
|
|
7104
7028
|
getEditorData() {
|
|
7105
7029
|
const me2 = this;
|
|
7106
7030
|
const children = Array.from(me2.editorDom.children);
|
|
@@ -7158,11 +7082,9 @@
|
|
|
7158
7082
|
videoIds
|
|
7159
7083
|
};
|
|
7160
7084
|
},
|
|
7161
|
-
// 是否是摩托范的图片
|
|
7162
7085
|
isHaloImage(url = "") {
|
|
7163
|
-
return url.indexOf("jddmoto") > -1 || url.indexOf("58moto") > -1 || url.indexOf("emotofine") > -1 || url.indexOf("dronefine") > -1;
|
|
7086
|
+
return url.indexOf("jddmoto") > -1 || url.indexOf("58moto") > -1 || url.indexOf("emotofine") > -1 || url.indexOf("dronefine") > -1 || url.indexOf("evtolfine") > -1 || url.indexOf("biaofine") > -1 || url.indexOf("robotbaodian") > -1;
|
|
7164
7087
|
},
|
|
7165
|
-
// 获取待上传图片列表
|
|
7166
7088
|
updateUploads() {
|
|
7167
7089
|
const me2 = this;
|
|
7168
7090
|
setTimeout(() => {
|
|
@@ -7209,8 +7131,8 @@
|
|
|
7209
7131
|
const currentImg = me2.uploadStore[key];
|
|
7210
7132
|
const imageUrl = key.split("|")[1] || "";
|
|
7211
7133
|
if (!currentImg) {
|
|
7212
|
-
console.log("
|
|
7213
|
-
return Promise.reject("
|
|
7134
|
+
console.log("\u56FE\u7247\u4E0D\u5B58\u5728", key);
|
|
7135
|
+
return Promise.reject("\u56FE\u7247\u4E0D\u5B58\u5728");
|
|
7214
7136
|
}
|
|
7215
7137
|
const parent = currentImg.parentNode || "";
|
|
7216
7138
|
const uploadFailHandler = (currentImg2) => {
|
|
@@ -7254,7 +7176,6 @@
|
|
|
7254
7176
|
parent && uploadFailHandler(currentImg);
|
|
7255
7177
|
});
|
|
7256
7178
|
},
|
|
7257
|
-
// 更新上传的图片
|
|
7258
7179
|
updateImage(img, currentImg = {}) {
|
|
7259
7180
|
const data = JSON.parse(currentImg.getAttribute("data") || "{}");
|
|
7260
7181
|
data.img = img;
|
|
@@ -7277,11 +7198,9 @@
|
|
|
7277
7198
|
parent.appendChild(arr[2]);
|
|
7278
7199
|
}
|
|
7279
7200
|
},
|
|
7280
|
-
// 获取ctrl + v 后内容
|
|
7281
7201
|
getSticker(type, handler) {
|
|
7282
7202
|
this.setSticker(type.fragment.children);
|
|
7283
7203
|
},
|
|
7284
|
-
// 粘贴表格内容,tr换行形成段落
|
|
7285
7204
|
setStickerTableContent(data) {
|
|
7286
7205
|
const me2 = this;
|
|
7287
7206
|
const rows = data.querySelectorAll("tr") || [];
|
|
@@ -7310,7 +7229,6 @@
|
|
|
7310
7229
|
});
|
|
7311
7230
|
this.updateData(true);
|
|
7312
7231
|
},
|
|
7313
|
-
// 粘贴
|
|
7314
7232
|
setSticker(data) {
|
|
7315
7233
|
const me2 = this;
|
|
7316
7234
|
data = Array.from(data);
|
|
@@ -7349,7 +7267,6 @@
|
|
|
7349
7267
|
const me2 = this;
|
|
7350
7268
|
me2.updateData();
|
|
7351
7269
|
},
|
|
7352
|
-
// 监测 添加、撤回、恢复、删除
|
|
7353
7270
|
setBack(e, type) {
|
|
7354
7271
|
const me2 = this;
|
|
7355
7272
|
me2.refreshImg();
|
|
@@ -7382,7 +7299,6 @@
|
|
|
7382
7299
|
}
|
|
7383
7300
|
});
|
|
7384
7301
|
},
|
|
7385
|
-
// 设置scoll
|
|
7386
7302
|
sticky() {
|
|
7387
7303
|
const me2 = this;
|
|
7388
7304
|
me2.$nextTick(function() {
|
|
@@ -7402,8 +7318,6 @@
|
|
|
7402
7318
|
document.addEventListener("scroll", onScroll);
|
|
7403
7319
|
});
|
|
7404
7320
|
},
|
|
7405
|
-
// ==========toolbox==========
|
|
7406
|
-
// 撤回、恢复、段落标题
|
|
7407
7321
|
setContent(e, obj) {
|
|
7408
7322
|
const me2 = this;
|
|
7409
7323
|
const id = e.target.id || e.target.dataset.editorId;
|
|
@@ -7445,11 +7359,10 @@
|
|
|
7445
7359
|
this.fontInfo = this.editor.getFontInfo();
|
|
7446
7360
|
this.updateData(true);
|
|
7447
7361
|
},
|
|
7448
|
-
// 增加link
|
|
7449
7362
|
addLink(type) {
|
|
7450
7363
|
const me2 = this;
|
|
7451
|
-
me2.linkTitleName = type === "link" ? "
|
|
7452
|
-
me2.linkPlaceholder = type === "link" ? "
|
|
7364
|
+
me2.linkTitleName = type === "link" ? "\u6DFB\u52A0\u94FE\u63A5" : "\u6DFB\u52A0\u5BFC\u5165\u94FE\u63A5\u5730\u5740";
|
|
7365
|
+
me2.linkPlaceholder = type === "link" ? "\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740" : "\u4EC5\u652F\u6301\u8F93\u5165\u5FAE\u4FE1\u94FE\u63A5";
|
|
7453
7366
|
me2.viewStatus = true;
|
|
7454
7367
|
me2.linkStatus = true;
|
|
7455
7368
|
},
|
|
@@ -7457,31 +7370,29 @@
|
|
|
7457
7370
|
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.,;?'&%$#=~_-]+))*$/;
|
|
7458
7371
|
return objExp.test(url);
|
|
7459
7372
|
},
|
|
7460
|
-
// 确认增加link
|
|
7461
7373
|
confirmLink() {
|
|
7462
7374
|
const me2 = this;
|
|
7463
7375
|
if (!me2.linkContent) {
|
|
7464
|
-
return elementPlus.ElMessage.error("
|
|
7376
|
+
return elementPlus.ElMessage.error("\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740\uFF01");
|
|
7465
7377
|
}
|
|
7466
|
-
if (me2.linkTitleName === "
|
|
7378
|
+
if (me2.linkTitleName === "\u6DFB\u52A0\u5BFC\u5165\u94FE\u63A5\u5730\u5740" || this.visibleCollectArticle) {
|
|
7467
7379
|
this.visibleCollectArticle = false;
|
|
7468
7380
|
return me2.importLinkData();
|
|
7469
7381
|
}
|
|
7470
7382
|
if (!this.validUrl(me2.linkContent)) {
|
|
7471
|
-
return me2.setToast("URL
|
|
7383
|
+
return me2.setToast("URL\u65E0\u6548");
|
|
7472
7384
|
}
|
|
7473
7385
|
if (!me2.isHaloImage(me2.linkContent)) {
|
|
7474
|
-
return me2.setToast("
|
|
7386
|
+
return me2.setToast("\u8BF7\u8F93\u5165\u6469\u6258\u8303\u5185\u90E8\u7F51\u5740");
|
|
7475
7387
|
}
|
|
7476
7388
|
me2.editor["insertLink"](me2.linkContent);
|
|
7477
7389
|
me2.linkContent = "";
|
|
7478
7390
|
me2.closeDialog();
|
|
7479
7391
|
},
|
|
7480
|
-
// 增加link导入数据
|
|
7481
7392
|
importLinkData() {
|
|
7482
7393
|
const me2 = this;
|
|
7483
7394
|
if (me2.loading) {
|
|
7484
|
-
return elementPlus.ElMessage("
|
|
7395
|
+
return elementPlus.ElMessage("\u6B63\u5728\u83B7\u53D6\u4FE1\u606F\uFF0C\u8BF7\u7A0D\u540E...");
|
|
7485
7396
|
}
|
|
7486
7397
|
me2.loading = true;
|
|
7487
7398
|
const params = {
|
|
@@ -7503,44 +7414,39 @@
|
|
|
7503
7414
|
me2.linkContent = "";
|
|
7504
7415
|
return;
|
|
7505
7416
|
} else {
|
|
7506
|
-
me2.setToast("
|
|
7417
|
+
me2.setToast("\u5BFC\u5165\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
|
|
7507
7418
|
}
|
|
7508
7419
|
}).catch((err) => {
|
|
7509
7420
|
console.log(err.message);
|
|
7510
|
-
me2.setToast("
|
|
7421
|
+
me2.setToast("\u5BFC\u5165\u5F02\u5E38\uFF0C\u8BF7\u91CD\u8BD5");
|
|
7511
7422
|
}).finally((_) => {
|
|
7512
7423
|
me2.loading = false;
|
|
7513
7424
|
});
|
|
7514
7425
|
},
|
|
7515
|
-
// 打开 图片、视频、一键导入 弹框
|
|
7516
7426
|
openDialog(name) {
|
|
7517
7427
|
const me2 = this;
|
|
7518
|
-
me2.viewName = name === "img" ? "
|
|
7519
|
-
me2.viewButton = name === "img" ? "
|
|
7520
|
-
me2.viewTip = name === "img" ? "" : "
|
|
7428
|
+
me2.viewName = name === "img" ? "\u6DFB\u52A0\u56FE\u7247" : "\u6DFB\u52A0\u89C6\u9891";
|
|
7429
|
+
me2.viewButton = name === "img" ? "\u9009\u62E9\u56FE\u7247" : "\u9009\u62E9\u89C6\u9891";
|
|
7430
|
+
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)";
|
|
7521
7431
|
me2.viewStatus = true;
|
|
7522
7432
|
},
|
|
7523
|
-
// 关闭弹框
|
|
7524
7433
|
closeDialog() {
|
|
7525
7434
|
this.viewStatus = false;
|
|
7526
7435
|
this.linkStatus = false;
|
|
7527
7436
|
this.linkContent = "";
|
|
7528
7437
|
},
|
|
7529
|
-
// ==========toolbox end==========
|
|
7530
|
-
// 弹框提示
|
|
7531
7438
|
setToast(content) {
|
|
7532
7439
|
elementPlus.ElMessage.error(content);
|
|
7533
7440
|
},
|
|
7534
7441
|
setMessageBoxNoCancel(content) {
|
|
7535
7442
|
elementPlus.ElMessageBox.confirm(content, "", {
|
|
7536
|
-
confirmButtonText: "
|
|
7537
|
-
cancelButtonText: "
|
|
7443
|
+
confirmButtonText: "\u786E\u5B9A",
|
|
7444
|
+
cancelButtonText: "\u53D6\u6D88",
|
|
7538
7445
|
type: "warning"
|
|
7539
7446
|
}).then(() => {
|
|
7540
7447
|
}).catch(() => {
|
|
7541
7448
|
});
|
|
7542
7449
|
},
|
|
7543
|
-
// 检查是否会创建嵌套的halo-paragraph
|
|
7544
7450
|
wouldCreateNestedParagraph(range) {
|
|
7545
7451
|
let container = range.startContainer;
|
|
7546
7452
|
while (container && container !== this.editorDom) {
|
|
@@ -7551,7 +7457,6 @@
|
|
|
7551
7457
|
}
|
|
7552
7458
|
return false;
|
|
7553
7459
|
},
|
|
7554
|
-
// 检查光标是否在两个连续的mdd-topic之间
|
|
7555
7460
|
isBetweenTwoTopics(range) {
|
|
7556
7461
|
const container = range.startContainer;
|
|
7557
7462
|
const offset = range.startOffset;
|
|
@@ -7567,7 +7472,6 @@
|
|
|
7567
7472
|
}
|
|
7568
7473
|
return false;
|
|
7569
7474
|
},
|
|
7570
|
-
// 处理两个话题之间的回车或话题前面的回车
|
|
7571
7475
|
handleEnterBetweenTopics(range) {
|
|
7572
7476
|
var _a;
|
|
7573
7477
|
const me2 = this;
|
|
@@ -7605,7 +7509,6 @@
|
|
|
7605
7509
|
selection.addRange(newRange);
|
|
7606
7510
|
me2.updateData(true);
|
|
7607
7511
|
},
|
|
7608
|
-
// 更精确地提取光标后的内容(专门用于话题分割)
|
|
7609
7512
|
extractContentAfterCursorPrecise(range, paragraph) {
|
|
7610
7513
|
const fragment = document.createDocumentFragment();
|
|
7611
7514
|
const container = range.startContainer;
|
|
@@ -7631,7 +7534,6 @@
|
|
|
7631
7534
|
}
|
|
7632
7535
|
return fragment;
|
|
7633
7536
|
},
|
|
7634
|
-
// 处理包含话题的段落中的回车键
|
|
7635
7537
|
handleEnterKeyInParagraphWithTopic(range) {
|
|
7636
7538
|
var _a;
|
|
7637
7539
|
const me2 = this;
|
|
@@ -7706,7 +7608,6 @@
|
|
|
7706
7608
|
selection.addRange(newRange);
|
|
7707
7609
|
me2.updateData(true);
|
|
7708
7610
|
},
|
|
7709
|
-
// 检查光标是否在第一个话题前面
|
|
7710
7611
|
isCursorBeforeFirstTopic(range, paragraph) {
|
|
7711
7612
|
const container = range.startContainer;
|
|
7712
7613
|
const offset = range.startOffset;
|
|
@@ -7768,7 +7669,6 @@
|
|
|
7768
7669
|
}
|
|
7769
7670
|
return false;
|
|
7770
7671
|
},
|
|
7771
|
-
// 获取不包含mdd-topic内部文本的段落文本
|
|
7772
7672
|
getParagraphTextExcludingTopics(paragraph, range) {
|
|
7773
7673
|
let textContent = "";
|
|
7774
7674
|
let cursorPosition = 0;
|
|
@@ -7799,12 +7699,10 @@
|
|
|
7799
7699
|
}
|
|
7800
7700
|
return { textContent, cursorPosition };
|
|
7801
7701
|
},
|
|
7802
|
-
// 检查光标是否在段落开头
|
|
7803
7702
|
isCursorAtStartOfParagraph(range, paragraph) {
|
|
7804
7703
|
const { cursorPosition } = this.getParagraphTextExcludingTopics(paragraph, range);
|
|
7805
7704
|
return cursorPosition === 0;
|
|
7806
7705
|
},
|
|
7807
|
-
// 检查光标是否在段落末尾
|
|
7808
7706
|
isCursorAtEndOfParagraph(range, paragraph) {
|
|
7809
7707
|
const walker = document.createTreeWalker(
|
|
7810
7708
|
paragraph,
|
|
@@ -7831,7 +7729,6 @@
|
|
|
7831
7729
|
const { cursorPosition } = this.getParagraphTextExcludingTopics(paragraph, range);
|
|
7832
7730
|
return cursorPosition >= totalLength;
|
|
7833
7731
|
},
|
|
7834
|
-
// 获取当前段落
|
|
7835
7732
|
getCurrentParagraph(range) {
|
|
7836
7733
|
let container = range.startContainer;
|
|
7837
7734
|
while (container && container !== this.editorDom) {
|
|
@@ -7842,13 +7739,12 @@
|
|
|
7842
7739
|
}
|
|
7843
7740
|
return null;
|
|
7844
7741
|
},
|
|
7845
|
-
// 提取光标后的内容
|
|
7846
7742
|
extractContentAfterCursor(range, paragraph) {
|
|
7847
7743
|
const fragment = document.createDocumentFragment();
|
|
7848
7744
|
const container = range.startContainer;
|
|
7849
7745
|
const offset = range.startOffset;
|
|
7850
7746
|
let topicSpaceNode = null;
|
|
7851
|
-
if (container.nodeType === Node.TEXT_NODE && container.textContent === "
|
|
7747
|
+
if (container.nodeType === Node.TEXT_NODE && container.textContent === "\xA0" && container.previousSibling && container.previousSibling.tagName === "MDD-TOPIC") {
|
|
7852
7748
|
topicSpaceNode = container;
|
|
7853
7749
|
}
|
|
7854
7750
|
const extractRange = document.createRange();
|
|
@@ -7903,8 +7799,7 @@
|
|
|
7903
7799
|
try {
|
|
7904
7800
|
extractRange.setStartBefore(startNode);
|
|
7905
7801
|
let lastNode = paragraph.lastChild;
|
|
7906
|
-
while (lastNode && lastNode.nodeType === Node.TEXT_NODE && lastNode.textContent === "" &&
|
|
7907
|
-
lastNode !== startNode) {
|
|
7802
|
+
while (lastNode && lastNode.nodeType === Node.TEXT_NODE && lastNode.textContent === "" && lastNode !== startNode) {
|
|
7908
7803
|
lastNode = lastNode.previousSibling;
|
|
7909
7804
|
}
|
|
7910
7805
|
if (lastNode) {
|
|
@@ -7924,7 +7819,6 @@
|
|
|
7924
7819
|
}
|
|
7925
7820
|
return fragment;
|
|
7926
7821
|
},
|
|
7927
|
-
// 统一的光标设置方法 - 设置光标到元素后面
|
|
7928
7822
|
setCursorAfterElement(element) {
|
|
7929
7823
|
const newRange = document.createRange();
|
|
7930
7824
|
newRange.setStartAfter(element);
|
|
@@ -7933,7 +7827,6 @@
|
|
|
7933
7827
|
selection.removeAllRanges();
|
|
7934
7828
|
selection.addRange(newRange);
|
|
7935
7829
|
},
|
|
7936
|
-
// 统一的光标设置方法 - 设置光标到元素前面
|
|
7937
7830
|
setCursorBeforeElement(element) {
|
|
7938
7831
|
const newRange = document.createRange();
|
|
7939
7832
|
newRange.setStartBefore(element);
|
|
@@ -7968,7 +7861,7 @@
|
|
|
7968
7861
|
vue.withDirectives(vue.createElementVNode("div", {
|
|
7969
7862
|
style: vue.normalizeStyle({ textAlign: $options.align }),
|
|
7970
7863
|
class: "placeholder"
|
|
7971
|
-
}, vue.toDisplayString($props.placeholder || "
|
|
7864
|
+
}, vue.toDisplayString($props.placeholder || "\u8BF7\u8F93\u5165\u6B63\u6587"), 5), [
|
|
7972
7865
|
[vue.vShow, !$options.isInputing && !$data.titleCount && !$data.hasArticleCard]
|
|
7973
7866
|
]),
|
|
7974
7867
|
$data.overLine ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -7993,26 +7886,26 @@
|
|
|
7993
7886
|
vue.createVNode(_component_el_form, { model: $data.linkForm }, {
|
|
7994
7887
|
default: vue.withCtx(() => [
|
|
7995
7888
|
vue.createVNode(_component_el_form_item, {
|
|
7996
|
-
label: "
|
|
7889
|
+
label: "\u6DFB\u52A0\u94FE\u63A5",
|
|
7997
7890
|
class: "link-title"
|
|
7998
7891
|
}, {
|
|
7999
7892
|
default: vue.withCtx(() => [
|
|
8000
7893
|
vue.createVNode(_component_el_input, {
|
|
8001
7894
|
modelValue: $data.linkForm.linkAddress,
|
|
8002
7895
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.linkForm.linkAddress = $event),
|
|
8003
|
-
placeholder: "
|
|
7896
|
+
placeholder: "\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"
|
|
8004
7897
|
}, null, 8, ["modelValue"])
|
|
8005
7898
|
]),
|
|
8006
7899
|
_: 1
|
|
8007
7900
|
}),
|
|
8008
|
-
vue.createVNode(_component_el_form_item, { label: "
|
|
7901
|
+
vue.createVNode(_component_el_form_item, { label: "\u94FE\u63A5\u6587\u6848" }, {
|
|
8009
7902
|
default: vue.withCtx(() => [
|
|
8010
7903
|
vue.createVNode(_component_el_input, {
|
|
8011
7904
|
modelValue: $data.linkForm.linkWriting,
|
|
8012
7905
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.linkForm.linkWriting = $event),
|
|
8013
7906
|
type: "textarea",
|
|
8014
7907
|
autosize: "",
|
|
8015
|
-
placeholder: "
|
|
7908
|
+
placeholder: "\u8BF7\u8F93\u5165\u94FE\u63A5\u6587\u6848"
|
|
8016
7909
|
}, null, 8, ["modelValue"])
|
|
8017
7910
|
]),
|
|
8018
7911
|
_: 1
|
|
@@ -8025,18 +7918,18 @@
|
|
|
8025
7918
|
vue.createVNode(_component_el_button, {
|
|
8026
7919
|
onClick: _cache[3] || (_cache[3] = ($event) => $data.viewLinkDialog = false)
|
|
8027
7920
|
}, {
|
|
8028
|
-
default: vue.withCtx(() =>
|
|
8029
|
-
vue.createTextVNode("
|
|
8030
|
-
])
|
|
7921
|
+
default: vue.withCtx(() => [
|
|
7922
|
+
vue.createTextVNode("\u53D6 \u6D88")
|
|
7923
|
+
]),
|
|
8031
7924
|
_: 1
|
|
8032
7925
|
}),
|
|
8033
7926
|
vue.createVNode(_component_el_button, {
|
|
8034
7927
|
type: "primary",
|
|
8035
7928
|
onClick: $options.insertLink
|
|
8036
7929
|
}, {
|
|
8037
|
-
default: vue.withCtx(() =>
|
|
8038
|
-
vue.createTextVNode("
|
|
8039
|
-
])
|
|
7930
|
+
default: vue.withCtx(() => [
|
|
7931
|
+
vue.createTextVNode("\u786E \u5B9A")
|
|
7932
|
+
]),
|
|
8040
7933
|
_: 1
|
|
8041
7934
|
}, 8, ["onClick"])
|
|
8042
7935
|
])
|
|
@@ -8121,7 +8014,7 @@
|
|
|
8121
8014
|
var COLOUR_CLASS = "colour";
|
|
8122
8015
|
var FONT_FAMILY_CLASS = "font";
|
|
8123
8016
|
var FONT_SIZE_CLASS = "size";
|
|
8124
|
-
var ZWS = "
|
|
8017
|
+
var ZWS = "\u200B";
|
|
8125
8018
|
var win = doc.defaultView;
|
|
8126
8019
|
var ua = navigator.userAgent;
|
|
8127
8020
|
var isAndroid = /Android/.test(ua);
|
|
@@ -8151,17 +8044,11 @@
|
|
|
8151
8044
|
};
|
|
8152
8045
|
}
|
|
8153
8046
|
var typeToBitArray = {
|
|
8154
|
-
// ELEMENT_NODE
|
|
8155
8047
|
1: 1,
|
|
8156
|
-
// ATTRIBUTE_NODE
|
|
8157
8048
|
2: 2,
|
|
8158
|
-
// TEXT_NODE
|
|
8159
8049
|
3: 4,
|
|
8160
|
-
// COMMENT_NODE
|
|
8161
8050
|
8: 128,
|
|
8162
|
-
// DOCUMENT_NODE
|
|
8163
8051
|
9: 256,
|
|
8164
|
-
// DOCUMENT_FRAGMENT_NODE
|
|
8165
8052
|
11: 1024
|
|
8166
8053
|
};
|
|
8167
8054
|
function TreeWalker(root, nodeType, filter) {
|
|
@@ -8495,7 +8382,7 @@
|
|
|
8495
8382
|
node.appendChild(fixer);
|
|
8496
8383
|
} catch (error) {
|
|
8497
8384
|
self2.didError({
|
|
8498
|
-
name: "Squire: fixCursor
|
|
8385
|
+
name: "Squire: fixCursor \u2013\xA0" + error,
|
|
8499
8386
|
message: "Parent: " + node.nodeName + "/" + node.innerHTML + " appendChild: " + fixer.nodeName
|
|
8500
8387
|
});
|
|
8501
8388
|
}
|
|
@@ -8830,8 +8717,7 @@
|
|
|
8830
8717
|
block = getStartBlockOfRange(range, root);
|
|
8831
8718
|
firstBlockInFrag = getNextBlock(frag, frag);
|
|
8832
8719
|
replaceBlock = !!block && isEmptyBlock(block);
|
|
8833
|
-
if (block && firstBlockInFrag && !replaceBlock &&
|
|
8834
|
-
!getNearest(firstBlockInFrag, frag, "PRE") && !getNearest(firstBlockInFrag, frag, "TABLE")) {
|
|
8720
|
+
if (block && firstBlockInFrag && !replaceBlock && !getNearest(firstBlockInFrag, frag, "PRE") && !getNearest(firstBlockInFrag, frag, "TABLE")) {
|
|
8835
8721
|
moveRangeBoundariesUpTree(range, block, block, root);
|
|
8836
8722
|
range.collapse(true);
|
|
8837
8723
|
container = range.endContainer;
|
|
@@ -8847,10 +8733,7 @@
|
|
|
8847
8733
|
container = nodeAfterSplit.parentNode;
|
|
8848
8734
|
offset = indexOf.call(container.childNodes, nodeAfterSplit);
|
|
8849
8735
|
}
|
|
8850
|
-
if (
|
|
8851
|
-
/* isBlock( container ) && */
|
|
8852
|
-
offset !== getLength(container)
|
|
8853
|
-
) {
|
|
8736
|
+
if (offset !== getLength(container)) {
|
|
8854
8737
|
blockContentsAfterSplit = root.ownerDocument.createDocumentFragment();
|
|
8855
8738
|
while (node = container.childNodes[offset]) {
|
|
8856
8739
|
blockContentsAfterSplit.appendChild(node);
|
|
@@ -9899,11 +9782,9 @@
|
|
|
9899
9782
|
if (hasImage) {
|
|
9900
9783
|
this.fireEvent("dragover", {
|
|
9901
9784
|
dataTransfer: clipboardData,
|
|
9902
|
-
/* jshint loopfunc: true */
|
|
9903
9785
|
preventDefault: function() {
|
|
9904
9786
|
fireDrop = true;
|
|
9905
9787
|
}
|
|
9906
|
-
/* jshint loopfunc: false */
|
|
9907
9788
|
});
|
|
9908
9789
|
if (fireDrop) {
|
|
9909
9790
|
this.fireEvent("drop", {
|
|
@@ -10110,9 +9991,7 @@
|
|
|
10110
9991
|
leafNodeNames,
|
|
10111
9992
|
undo: {
|
|
10112
9993
|
documentSizeThreshold: -1,
|
|
10113
|
-
// -1 means no threshold
|
|
10114
9994
|
undoLimit: -1
|
|
10115
|
-
// -1 means no limit
|
|
10116
9995
|
},
|
|
10117
9996
|
isInsertedHTMLSanitized: true,
|
|
10118
9997
|
isSetHTMLSanitized: true,
|
|
@@ -11754,5 +11633,5 @@
|
|
|
11754
11633
|
exports2.Editor = Editor;
|
|
11755
11634
|
exports2.ToolBar = ToolBar;
|
|
11756
11635
|
exports2.ToolsEnum = ToolsEnum;
|
|
11757
|
-
Object.
|
|
11636
|
+
Object.defineProperties(exports2, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
11758
11637
|
});
|