@haluo/biz 2.0.17 → 2.0.19-beat
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/haluo-biz.js +199 -156
- package/dist/haluo-biz.umd.cjs +199 -156
- package/dist/style.css +7 -9
- package/package.json +1 -1
package/dist/haluo-biz.umd.cjs
CHANGED
|
@@ -527,9 +527,9 @@
|
|
|
527
527
|
};
|
|
528
528
|
const _hoisted_2$7 = { class: "tools-content" };
|
|
529
529
|
const _hoisted_3$7 = ["src"];
|
|
530
|
-
const _hoisted_4$
|
|
531
|
-
const _hoisted_5$
|
|
532
|
-
const _hoisted_6$
|
|
530
|
+
const _hoisted_4$4 = ["src"];
|
|
531
|
+
const _hoisted_5$3 = ["src"];
|
|
532
|
+
const _hoisted_6$2 = { class: "box" };
|
|
533
533
|
const _hoisted_7$2 = ["src"];
|
|
534
534
|
const _hoisted_8$2 = {
|
|
535
535
|
key: 0,
|
|
@@ -539,10 +539,10 @@
|
|
|
539
539
|
const _hoisted_10$2 = ["src"];
|
|
540
540
|
const _hoisted_11$2 = { class: "tools-font" };
|
|
541
541
|
const _hoisted_12$2 = ["onClick"];
|
|
542
|
-
const _hoisted_13$
|
|
543
|
-
const _hoisted_14$
|
|
544
|
-
const _hoisted_15$
|
|
545
|
-
const _hoisted_16$
|
|
542
|
+
const _hoisted_13$1 = { style: { "font-size": "10px" } };
|
|
543
|
+
const _hoisted_14$1 = { class: "box" };
|
|
544
|
+
const _hoisted_15$1 = ["src"];
|
|
545
|
+
const _hoisted_16$1 = {
|
|
546
546
|
key: 0,
|
|
547
547
|
class: "box-mask"
|
|
548
548
|
};
|
|
@@ -571,7 +571,7 @@
|
|
|
571
571
|
const _hoisted_30$1 = { class: "box" };
|
|
572
572
|
const _hoisted_31$1 = ["src"];
|
|
573
573
|
const _hoisted_32$1 = ["src"];
|
|
574
|
-
const _hoisted_33
|
|
574
|
+
const _hoisted_33 = ["src"];
|
|
575
575
|
const _hoisted_34 = ["src"];
|
|
576
576
|
const _hoisted_35 = { class: "tools-title" };
|
|
577
577
|
const _hoisted_36 = ["src"];
|
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
height: "40",
|
|
630
630
|
alt: "",
|
|
631
631
|
onClick: _cache[1] || (_cache[1] = ($event) => $options.forward($event))
|
|
632
|
-
}, null, 12, _hoisted_4$
|
|
632
|
+
}, null, 12, _hoisted_4$4)
|
|
633
633
|
]),
|
|
634
634
|
_: 1
|
|
635
635
|
}),
|
|
@@ -650,7 +650,7 @@
|
|
|
650
650
|
height: "40",
|
|
651
651
|
alt: "",
|
|
652
652
|
onClick: _cache[2] || (_cache[2] = (...args) => $options.clearFormat && $options.clearFormat(...args))
|
|
653
|
-
}, null, 8, _hoisted_5$
|
|
653
|
+
}, null, 8, _hoisted_5$3)
|
|
654
654
|
]),
|
|
655
655
|
_: 1
|
|
656
656
|
}),
|
|
@@ -661,7 +661,7 @@
|
|
|
661
661
|
placement: "top"
|
|
662
662
|
}, {
|
|
663
663
|
default: vue.withCtx(() => [
|
|
664
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
664
|
+
vue.createElementVNode("div", _hoisted_6$2, [
|
|
665
665
|
vue.createElementVNode("img", {
|
|
666
666
|
src: $options.getImageUrl("tools_refresh@3x.png"),
|
|
667
667
|
width: "40",
|
|
@@ -722,7 +722,7 @@
|
|
|
722
722
|
vue.createElementVNode("span", {
|
|
723
723
|
style: vue.normalizeStyle({ fontSize: item.value })
|
|
724
724
|
}, vue.toDisplayString(item.name), 5),
|
|
725
|
-
vue.createElementVNode("span", _hoisted_13$
|
|
725
|
+
vue.createElementVNode("span", _hoisted_13$1, vue.toDisplayString(item.desc), 1)
|
|
726
726
|
], 10, _hoisted_12$2);
|
|
727
727
|
}), 128))
|
|
728
728
|
])), [
|
|
@@ -742,7 +742,7 @@
|
|
|
742
742
|
placement: "top"
|
|
743
743
|
}, {
|
|
744
744
|
default: vue.withCtx(() => [
|
|
745
|
-
vue.createElementVNode("div", _hoisted_14$
|
|
745
|
+
vue.createElementVNode("div", _hoisted_14$1, [
|
|
746
746
|
vue.createElementVNode("img", {
|
|
747
747
|
src: $options.getImageUrl("tools_title@3x.png"),
|
|
748
748
|
"data-editor-id": "makeHeader",
|
|
@@ -750,8 +750,8 @@
|
|
|
750
750
|
height: "40",
|
|
751
751
|
alt: "",
|
|
752
752
|
onClick: _cache[5] || (_cache[5] = ($event) => $options.setTitle($event, $data.statusInfo.title ? 0 : 1))
|
|
753
|
-
}, null, 8, _hoisted_15$
|
|
754
|
-
$data.statusInfo && $data.statusInfo.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$
|
|
753
|
+
}, null, 8, _hoisted_15$1),
|
|
754
|
+
$data.statusInfo && $data.statusInfo.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$1)) : vue.createCommentVNode("", true)
|
|
755
755
|
])
|
|
756
756
|
]),
|
|
757
757
|
_: 1
|
|
@@ -928,7 +928,7 @@
|
|
|
928
928
|
width: "24",
|
|
929
929
|
height: "40",
|
|
930
930
|
alt: ""
|
|
931
|
-
}, null, 8, _hoisted_33
|
|
931
|
+
}, null, 8, _hoisted_33),
|
|
932
932
|
vue.createElementVNode("img", {
|
|
933
933
|
src: $options.getImageUrl("tools_arrow@3x.png"),
|
|
934
934
|
width: "16",
|
|
@@ -1113,14 +1113,12 @@
|
|
|
1113
1113
|
const _hoisted_1$6 = { key: 0 };
|
|
1114
1114
|
const _hoisted_2$6 = { class: "basic-dialog_title" };
|
|
1115
1115
|
const _hoisted_3$6 = /* @__PURE__ */ vue.createElementVNode("span", { class: "basic-dialog_divider" }, null, -1);
|
|
1116
|
-
const _hoisted_4$
|
|
1116
|
+
const _hoisted_4$3 = {
|
|
1117
1117
|
key: 0,
|
|
1118
1118
|
class: "dialog-footer"
|
|
1119
1119
|
};
|
|
1120
|
-
const
|
|
1121
|
-
|
|
1122
|
-
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
1123
|
-
name: "index",
|
|
1120
|
+
const _sfc_main$6 = vue.defineComponent({
|
|
1121
|
+
__name: "index",
|
|
1124
1122
|
props: {
|
|
1125
1123
|
visible: { type: Boolean, default: false },
|
|
1126
1124
|
showBtn: { type: Boolean, default: true },
|
|
@@ -1128,9 +1126,10 @@
|
|
|
1128
1126
|
showTitle: { type: Boolean, default: true }
|
|
1129
1127
|
},
|
|
1130
1128
|
emits: ["submit", "cancel"],
|
|
1131
|
-
setup(__props, { emit:
|
|
1129
|
+
setup(__props, { emit: __emit }) {
|
|
1132
1130
|
const props = __props;
|
|
1133
1131
|
const parent = vue.inject("vm");
|
|
1132
|
+
const emits = __emit;
|
|
1134
1133
|
const handleClose = () => {
|
|
1135
1134
|
var _a;
|
|
1136
1135
|
(_a = parent.setStatus) == null ? void 0 : _a.call(parent, false);
|
|
@@ -1152,14 +1151,14 @@
|
|
|
1152
1151
|
});
|
|
1153
1152
|
return (_ctx, _cache) => {
|
|
1154
1153
|
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDialog), {
|
|
1155
|
-
modelValue:
|
|
1156
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
1154
|
+
modelValue: dialogVisible.value,
|
|
1155
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
|
|
1157
1156
|
"before-close": handleClose,
|
|
1158
|
-
width:
|
|
1159
|
-
class: vue.normalizeClass(["basic-dialog", { "hide-title": !
|
|
1157
|
+
width: _ctx.width,
|
|
1158
|
+
class: vue.normalizeClass(["basic-dialog", { "hide-title": !_ctx.showTitle }])
|
|
1160
1159
|
}, {
|
|
1161
1160
|
header: vue.withCtx(() => [
|
|
1162
|
-
|
|
1161
|
+
_ctx.showTitle ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
1163
1162
|
vue.createElementVNode("div", _hoisted_2$6, [
|
|
1164
1163
|
_hoisted_3$6,
|
|
1165
1164
|
vue.renderSlot(_ctx.$slots, "title")
|
|
@@ -1167,7 +1166,7 @@
|
|
|
1167
1166
|
])) : vue.createCommentVNode("", true)
|
|
1168
1167
|
]),
|
|
1169
1168
|
footer: vue.withCtx(() => [
|
|
1170
|
-
|
|
1169
|
+
_ctx.showBtn ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$3, [
|
|
1171
1170
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
1172
1171
|
style: { "width": "120px", "border-color": "#cccccc", "color": "#333333" },
|
|
1173
1172
|
plain: "",
|
|
@@ -1175,7 +1174,7 @@
|
|
|
1175
1174
|
onClick: handleClose
|
|
1176
1175
|
}, {
|
|
1177
1176
|
default: vue.withCtx(() => [
|
|
1178
|
-
|
|
1177
|
+
vue.createTextVNode("\u53D6\u6D88")
|
|
1179
1178
|
]),
|
|
1180
1179
|
_: 1
|
|
1181
1180
|
}),
|
|
@@ -1186,7 +1185,7 @@
|
|
|
1186
1185
|
onClick: confirm
|
|
1187
1186
|
}, {
|
|
1188
1187
|
default: vue.withCtx(() => [
|
|
1189
|
-
|
|
1188
|
+
vue.createTextVNode("\u786E\u8BA4")
|
|
1190
1189
|
]),
|
|
1191
1190
|
_: 1
|
|
1192
1191
|
})
|
|
@@ -1209,7 +1208,7 @@
|
|
|
1209
1208
|
function replacementDate(data, fmt) {
|
|
1210
1209
|
for (var k in data) {
|
|
1211
1210
|
if (new RegExp("(" + k + ")").test(fmt)) {
|
|
1212
|
-
fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? data[k] :
|
|
1211
|
+
fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? data[k] : "00".concat(data[k]).substr(("" + data[k]).length));
|
|
1213
1212
|
}
|
|
1214
1213
|
}
|
|
1215
1214
|
return fmt;
|
|
@@ -1252,7 +1251,7 @@
|
|
|
1252
1251
|
};
|
|
1253
1252
|
fmt = replacementYear(timeData, fmt);
|
|
1254
1253
|
if (/(E+)/.test(fmt)) {
|
|
1255
|
-
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "\u661F\u671F" : "\u5468" : "") + week[timeData.getDay()
|
|
1254
|
+
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "\u661F\u671F" : "\u5468" : "") + week["".concat(timeData.getDay(), " ")]);
|
|
1256
1255
|
}
|
|
1257
1256
|
return replacementDate(o, fmt);
|
|
1258
1257
|
};
|
|
@@ -1273,10 +1272,10 @@
|
|
|
1273
1272
|
if (ts <= 0)
|
|
1274
1273
|
return false;
|
|
1275
1274
|
return {
|
|
1276
|
-
dd: dd < 10 ? "0"
|
|
1277
|
-
hh: hh < 10 ? "0"
|
|
1278
|
-
mm: mm < 10 ? "0"
|
|
1279
|
-
ss: ss < 10 ? "0"
|
|
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
|
|
1280
1279
|
};
|
|
1281
1280
|
};
|
|
1282
1281
|
DateClass2.prototype.formatPassTime = function(startTime) {
|
|
@@ -1284,19 +1283,19 @@
|
|
|
1284
1283
|
var time = currentTime - startTime;
|
|
1285
1284
|
var year = Math.floor(time / (1e3 * 60 * 60 * 24) / 30 / 12);
|
|
1286
1285
|
if (year)
|
|
1287
|
-
return year
|
|
1286
|
+
return "".concat(year, "\u5E74\u524D");
|
|
1288
1287
|
var month = Math.floor(time / (1e3 * 60 * 60 * 24) / 30);
|
|
1289
1288
|
if (month)
|
|
1290
|
-
return month
|
|
1289
|
+
return "".concat(month, "\u4E2A\u6708\u524D");
|
|
1291
1290
|
var day = Math.floor(time / (1e3 * 60 * 60 * 24));
|
|
1292
1291
|
if (day)
|
|
1293
|
-
return day
|
|
1292
|
+
return "".concat(day, "\u5929\u524D");
|
|
1294
1293
|
var hour = Math.floor(time / (1e3 * 60 * 60));
|
|
1295
1294
|
if (hour)
|
|
1296
|
-
return hour
|
|
1295
|
+
return "".concat(hour, "\u5C0F\u65F6\u524D");
|
|
1297
1296
|
var min = Math.floor(time / (1e3 * 60));
|
|
1298
1297
|
if (min)
|
|
1299
|
-
return min
|
|
1298
|
+
return "".concat(min, "\u5206\u949F\u524D");
|
|
1300
1299
|
else
|
|
1301
1300
|
return "\u521A\u521A";
|
|
1302
1301
|
};
|
|
@@ -3167,13 +3166,13 @@
|
|
|
3167
3166
|
return cloneDeep_1;
|
|
3168
3167
|
}
|
|
3169
3168
|
/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3170
|
-
var
|
|
3171
|
-
var
|
|
3172
|
-
function
|
|
3173
|
-
if (
|
|
3174
|
-
return
|
|
3175
|
-
|
|
3176
|
-
|
|
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;
|
|
3177
3176
|
function makeError() {
|
|
3178
3177
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
3179
3178
|
}
|
|
@@ -3216,7 +3215,7 @@
|
|
|
3216
3215
|
}
|
|
3217
3216
|
}
|
|
3218
3217
|
}
|
|
3219
|
-
return
|
|
3218
|
+
return _clipboardCopy_4_0_1_clipboardCopy;
|
|
3220
3219
|
}
|
|
3221
3220
|
Object.defineProperty(tools$1.exports, "__esModule", { value: true });
|
|
3222
3221
|
var previous = 0;
|
|
@@ -3235,7 +3234,7 @@
|
|
|
3235
3234
|
body.style.overflow = "hidden";
|
|
3236
3235
|
body.style.height = "100%";
|
|
3237
3236
|
if (className) {
|
|
3238
|
-
var dom = document.querySelector("."
|
|
3237
|
+
var dom = document.querySelector(".".concat(className));
|
|
3239
3238
|
dom && dom.addEventListener("touchmove", _this.__setDefault__);
|
|
3240
3239
|
}
|
|
3241
3240
|
};
|
|
@@ -3250,7 +3249,7 @@
|
|
|
3250
3249
|
body.style.overflow = "visible";
|
|
3251
3250
|
body.style.height = "auto";
|
|
3252
3251
|
if (className) {
|
|
3253
|
-
var dom = document.querySelector("."
|
|
3252
|
+
var dom = document.querySelector(".".concat(className));
|
|
3254
3253
|
dom && dom.removeEventListener("touchmove", _this.__setDefault__);
|
|
3255
3254
|
}
|
|
3256
3255
|
};
|
|
@@ -3378,7 +3377,7 @@
|
|
|
3378
3377
|
if (!(window && window.document)) {
|
|
3379
3378
|
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3380
3379
|
}
|
|
3381
|
-
var copy =
|
|
3380
|
+
var copy = require_clipboardCopy_4_0_1_clipboardCopy();
|
|
3382
3381
|
return copy(str);
|
|
3383
3382
|
};
|
|
3384
3383
|
ToolsClass2.prototype.firstUpperCase = function(str) {
|
|
@@ -3464,49 +3463,44 @@
|
|
|
3464
3463
|
sensitiveLen = 0;
|
|
3465
3464
|
}
|
|
3466
3465
|
var regItem = "[\u4E00-\u9FA5a-zA-Z0-9]";
|
|
3467
|
-
var regExp = "("
|
|
3466
|
+
var regExp = "(".concat(regItem, "{").concat(before, "})").concat(regItem, "*(").concat(regItem, "{").concat(after, "})");
|
|
3468
3467
|
var reg = new RegExp(regExp);
|
|
3469
|
-
return field.replace(reg, "$1"
|
|
3468
|
+
return field.replace(reg, "$1".concat("*".repeat(sensitiveLen), "$2"));
|
|
3470
3469
|
};
|
|
3471
3470
|
return ToolsClass2;
|
|
3472
3471
|
}();
|
|
3473
3472
|
tools$1.exports = new ToolsClass();
|
|
3474
3473
|
const tools = /* @__PURE__ */ getDefaultExportFromCjs(tools$1.exports);
|
|
3475
3474
|
const index_vue_vue_type_style_index_0_lang$3 = "";
|
|
3476
|
-
const _hoisted_1$5 =
|
|
3477
|
-
const _hoisted_2$5 = {
|
|
3478
|
-
const _hoisted_3$5 = { class: "insert-
|
|
3479
|
-
const _hoisted_4$
|
|
3480
|
-
const _hoisted_5$3 = /* @__PURE__ */ vue.createTextVNode("\u4ECE\u6211\u7684\u89C6\u9891\u4E2D\u9009\u62E9");
|
|
3481
|
-
const _hoisted_6$1 = /* @__PURE__ */ vue.createTextVNode("\u4ECE\u6240\u6709\u6587\u7AE0\u4E2D\u9009\u62E9");
|
|
3482
|
-
const _hoisted_7$1 = { class: "insert-article_input" };
|
|
3483
|
-
const _hoisted_8$1 = {
|
|
3475
|
+
const _hoisted_1$5 = { style: { "margin-left": "20px", "color": "#FF5A25" } };
|
|
3476
|
+
const _hoisted_2$5 = { class: "insert-article" };
|
|
3477
|
+
const _hoisted_3$5 = { class: "insert-article_input" };
|
|
3478
|
+
const _hoisted_4$2 = {
|
|
3484
3479
|
key: 0,
|
|
3485
3480
|
class: "nodata"
|
|
3486
3481
|
};
|
|
3487
|
-
const
|
|
3488
|
-
const
|
|
3482
|
+
const _hoisted_5$2 = ["infinite-scroll-disabled"];
|
|
3483
|
+
const _hoisted_6$1 = {
|
|
3489
3484
|
key: 0,
|
|
3490
3485
|
class: "video-item"
|
|
3491
3486
|
};
|
|
3492
|
-
const
|
|
3493
|
-
const
|
|
3494
|
-
const
|
|
3495
|
-
const
|
|
3496
|
-
const
|
|
3497
|
-
const
|
|
3487
|
+
const _hoisted_7$1 = { class: "video-pic" };
|
|
3488
|
+
const _hoisted_8$1 = ["src"];
|
|
3489
|
+
const _hoisted_9$1 = ["src"];
|
|
3490
|
+
const _hoisted_10$1 = { class: "video-text" };
|
|
3491
|
+
const _hoisted_11$1 = { class: "dotdotdot2" };
|
|
3492
|
+
const _hoisted_12$1 = {
|
|
3498
3493
|
key: 1,
|
|
3499
3494
|
style: { "display": "inline-flex", "flex-direction": "column" }
|
|
3500
3495
|
};
|
|
3501
|
-
const _sfc_main$5 =
|
|
3502
|
-
|
|
3496
|
+
const _sfc_main$5 = vue.defineComponent({
|
|
3497
|
+
__name: "index",
|
|
3503
3498
|
props: {
|
|
3504
3499
|
visible: { type: Boolean, default: false },
|
|
3505
|
-
getList:
|
|
3500
|
+
getList: {}
|
|
3506
3501
|
},
|
|
3507
3502
|
emits: ["change", "submit", "update:visible"],
|
|
3508
|
-
setup(__props, { emit:
|
|
3509
|
-
const props = __props;
|
|
3503
|
+
setup(__props, { emit: __emit }) {
|
|
3510
3504
|
const { debounce } = tools;
|
|
3511
3505
|
const vInfiniteScroll = elementPlus.ElInfiniteScroll;
|
|
3512
3506
|
const Radio_Type = {
|
|
@@ -3525,7 +3519,9 @@
|
|
|
3525
3519
|
emits("update:visible", val);
|
|
3526
3520
|
}
|
|
3527
3521
|
});
|
|
3522
|
+
const props = __props;
|
|
3528
3523
|
const { visible, getList } = vue.toRefs(props);
|
|
3524
|
+
const emits = __emit;
|
|
3529
3525
|
const data = vue.reactive({
|
|
3530
3526
|
params: {
|
|
3531
3527
|
autherid: "",
|
|
@@ -3597,12 +3593,12 @@
|
|
|
3597
3593
|
}, {
|
|
3598
3594
|
title: vue.withCtx(() => [
|
|
3599
3595
|
vue.createElementVNode("span", null, [
|
|
3600
|
-
|
|
3601
|
-
vue.createElementVNode("strong",
|
|
3596
|
+
vue.createTextVNode("\u63D2\u5165\u6587\u7AE0/\u89C6\u9891"),
|
|
3597
|
+
vue.createElementVNode("strong", _hoisted_1$5, "\u5E73\u53F0\u4EC5\u652F\u6301\u63D2\u5165" + vue.toDisplayString(`${isVideo.value ? "2\u5E74" : "18\u4E2A\u6708"}`) + "\u5185\u7684\u63A8\u8350\u5185\u5BB9", 1)
|
|
3602
3598
|
])
|
|
3603
3599
|
]),
|
|
3604
3600
|
default: vue.withCtx(() => [
|
|
3605
|
-
vue.createElementVNode("div",
|
|
3601
|
+
vue.createElementVNode("div", _hoisted_2$5, [
|
|
3606
3602
|
vue.createElementVNode("div", null, [
|
|
3607
3603
|
vue.createVNode(vue.unref(elementPlus.ElRadio), {
|
|
3608
3604
|
modelValue: data.params.radio,
|
|
@@ -3610,7 +3606,7 @@
|
|
|
3610
3606
|
label: Radio_Type.MY_ARITICLE
|
|
3611
3607
|
}, {
|
|
3612
3608
|
default: vue.withCtx(() => [
|
|
3613
|
-
|
|
3609
|
+
vue.createTextVNode("\u4ECE\u6211\u7684\u6587\u7AE0\u4E2D\u9009\u62E9")
|
|
3614
3610
|
]),
|
|
3615
3611
|
_: 1
|
|
3616
3612
|
}, 8, ["modelValue", "label"]),
|
|
@@ -3620,7 +3616,7 @@
|
|
|
3620
3616
|
label: Radio_Type.MY_VIDEO
|
|
3621
3617
|
}, {
|
|
3622
3618
|
default: vue.withCtx(() => [
|
|
3623
|
-
|
|
3619
|
+
vue.createTextVNode("\u4ECE\u6211\u7684\u89C6\u9891\u4E2D\u9009\u62E9")
|
|
3624
3620
|
]),
|
|
3625
3621
|
_: 1
|
|
3626
3622
|
}, 8, ["modelValue", "label"]),
|
|
@@ -3630,16 +3626,16 @@
|
|
|
3630
3626
|
label: Radio_Type.ALL_ARITICLE
|
|
3631
3627
|
}, {
|
|
3632
3628
|
default: vue.withCtx(() => [
|
|
3633
|
-
|
|
3629
|
+
vue.createTextVNode("\u4ECE\u6240\u6709\u6587\u7AE0\u4E2D\u9009\u62E9")
|
|
3634
3630
|
]),
|
|
3635
3631
|
_: 1
|
|
3636
3632
|
}, 8, ["modelValue", "label"])
|
|
3637
3633
|
]),
|
|
3638
|
-
vue.createElementVNode("div",
|
|
3634
|
+
vue.createElementVNode("div", _hoisted_3$5, [
|
|
3639
3635
|
vue.createVNode(vue.unref(elementPlus.ElInput), {
|
|
3640
3636
|
modelValue: data.params.title,
|
|
3641
3637
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => data.params.title = $event),
|
|
3642
|
-
placeholder:
|
|
3638
|
+
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",
|
|
3643
3639
|
onKeyup: _cache[5] || (_cache[5] = vue.withKeys(($event) => vue.unref(getArticleList)(true), ["enter", "native"])),
|
|
3644
3640
|
onInput: _cache[6] || (_cache[6] = ($event) => vue.unref(getArticleList)(true))
|
|
3645
3641
|
}, {
|
|
@@ -3653,11 +3649,11 @@
|
|
|
3653
3649
|
_: 1
|
|
3654
3650
|
}, 8, ["modelValue", "placeholder"])
|
|
3655
3651
|
]),
|
|
3656
|
-
data.data.length === 0 && !data.busy ? (vue.openBlock(), vue.createElementBlock("div",
|
|
3652
|
+
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", {
|
|
3657
3653
|
key: 1,
|
|
3658
3654
|
"infinite-scroll-immediate": false,
|
|
3659
3655
|
class: "insert-article_list",
|
|
3660
|
-
"infinite-scroll-disabled":
|
|
3656
|
+
"infinite-scroll-disabled": disable.value
|
|
3661
3657
|
}, [
|
|
3662
3658
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(data.data, (item, index) => {
|
|
3663
3659
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -3673,22 +3669,22 @@
|
|
|
3673
3669
|
default: vue.withCtx(() => {
|
|
3674
3670
|
var _a;
|
|
3675
3671
|
return [
|
|
3676
|
-
|
|
3677
|
-
vue.createElementVNode("div",
|
|
3672
|
+
isVideo.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
|
|
3673
|
+
vue.createElementVNode("div", _hoisted_7$1, [
|
|
3678
3674
|
vue.createElementVNode("img", {
|
|
3679
3675
|
class: "video-pic",
|
|
3680
3676
|
src: (_a = item == null ? void 0 : item.mediaInfo[0]) == null ? void 0 : _a.img
|
|
3681
|
-
}, null, 8,
|
|
3677
|
+
}, null, 8, _hoisted_8$1),
|
|
3682
3678
|
vue.createElementVNode("img", {
|
|
3683
3679
|
class: "play",
|
|
3684
3680
|
src: getImageUrl("play.png")
|
|
3685
|
-
}, null, 8,
|
|
3681
|
+
}, null, 8, _hoisted_9$1)
|
|
3686
3682
|
]),
|
|
3687
|
-
vue.createElementVNode("div",
|
|
3688
|
-
vue.createElementVNode("span",
|
|
3683
|
+
vue.createElementVNode("div", _hoisted_10$1, [
|
|
3684
|
+
vue.createElementVNode("span", _hoisted_11$1, vue.toDisplayString(item.content || "[\u65E0\u6807\u9898]"), 1),
|
|
3689
3685
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(date).format(item.createTime * 1e3, "YYYY-MM-DD hh-mm")), 1)
|
|
3690
3686
|
])
|
|
3691
|
-
])) : (vue.openBlock(), vue.createElementBlock("div",
|
|
3687
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$1, [
|
|
3692
3688
|
vue.createElementVNode("span", null, vue.toDisplayString(item.title || "[\u65E0\u6807\u9898]"), 1),
|
|
3693
3689
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(date).format(item.createTime * 1e3, "YYYY-MM-DD")), 1)
|
|
3694
3690
|
]))
|
|
@@ -3698,7 +3694,7 @@
|
|
|
3698
3694
|
}, 1032, ["modelValue", "label", "onChange"])
|
|
3699
3695
|
]);
|
|
3700
3696
|
}), 128))
|
|
3701
|
-
], 8,
|
|
3697
|
+
], 8, _hoisted_5$2)), [
|
|
3702
3698
|
[vue.unref(vInfiniteScroll), vue.unref(getArticleList)]
|
|
3703
3699
|
])
|
|
3704
3700
|
])
|
|
@@ -3724,7 +3720,7 @@
|
|
|
3724
3720
|
byteToHex.push((i + 256).toString(16).slice(1));
|
|
3725
3721
|
}
|
|
3726
3722
|
function unsafeStringify(arr, offset = 0) {
|
|
3727
|
-
return
|
|
3723
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
3728
3724
|
}
|
|
3729
3725
|
const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
3730
3726
|
const native = {
|
|
@@ -3751,11 +3747,11 @@
|
|
|
3751
3747
|
const _hoisted_1$4 = { class: "img-upload-content" };
|
|
3752
3748
|
const _hoisted_2$4 = { class: "title-box" };
|
|
3753
3749
|
const _hoisted_3$4 = ["onClick"];
|
|
3754
|
-
const _hoisted_4$
|
|
3750
|
+
const _hoisted_4$1 = {
|
|
3755
3751
|
key: 0,
|
|
3756
3752
|
class: "line"
|
|
3757
3753
|
};
|
|
3758
|
-
const _hoisted_5$
|
|
3754
|
+
const _hoisted_5$1 = {
|
|
3759
3755
|
key: 0,
|
|
3760
3756
|
class: "prompt-restriction"
|
|
3761
3757
|
};
|
|
@@ -3792,27 +3788,26 @@
|
|
|
3792
3788
|
class: "map-depot"
|
|
3793
3789
|
};
|
|
3794
3790
|
const _hoisted_20 = { class: "screen" };
|
|
3795
|
-
const _hoisted_21 =
|
|
3796
|
-
const _hoisted_22 = {
|
|
3797
|
-
const _hoisted_23 =
|
|
3798
|
-
const _hoisted_24 =
|
|
3799
|
-
const _hoisted_25 = {
|
|
3791
|
+
const _hoisted_21 = { key: 0 };
|
|
3792
|
+
const _hoisted_22 = { class: "tab-box" };
|
|
3793
|
+
const _hoisted_23 = ["onClick"];
|
|
3794
|
+
const _hoisted_24 = {
|
|
3800
3795
|
key: 0,
|
|
3801
3796
|
class: "line"
|
|
3802
3797
|
};
|
|
3803
|
-
const
|
|
3804
|
-
const
|
|
3805
|
-
const
|
|
3806
|
-
const
|
|
3798
|
+
const _hoisted_25 = { class: "image-list depot-image" };
|
|
3799
|
+
const _hoisted_26 = ["onClick"];
|
|
3800
|
+
const _hoisted_27 = ["src"];
|
|
3801
|
+
const _hoisted_28 = {
|
|
3807
3802
|
key: 0,
|
|
3808
3803
|
class: "shade"
|
|
3809
3804
|
};
|
|
3810
|
-
const
|
|
3811
|
-
const
|
|
3805
|
+
const _hoisted_29 = { class: "num" };
|
|
3806
|
+
const _hoisted_30 = {
|
|
3812
3807
|
key: 1,
|
|
3813
3808
|
class: "protocol-box"
|
|
3814
3809
|
};
|
|
3815
|
-
const
|
|
3810
|
+
const _hoisted_31 = /* @__PURE__ */ vue.createElementVNode("div", null, [
|
|
3816
3811
|
/* @__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 "),
|
|
3817
3812
|
/* @__PURE__ */ vue.createElementVNode("div", null, [
|
|
3818
3813
|
/* @__PURE__ */ vue.createTextVNode(" \u8BF7\u9605\u8BFB"),
|
|
@@ -3825,11 +3820,11 @@
|
|
|
3825
3820
|
/* @__PURE__ */ vue.createTextVNode(",\u60A8\u7684\u884C\u4E3A\u89C6\u4E3A\u60A8\u5DF2\u540C\u610F\u8BE5\u534F\u8BAE\u3002 ")
|
|
3826
3821
|
])
|
|
3827
3822
|
], -1);
|
|
3828
|
-
const
|
|
3829
|
-
|
|
3823
|
+
const _hoisted_32 = [
|
|
3824
|
+
_hoisted_31
|
|
3830
3825
|
];
|
|
3831
|
-
const _sfc_main$4 =
|
|
3832
|
-
|
|
3826
|
+
const _sfc_main$4 = vue.defineComponent({
|
|
3827
|
+
__name: "index",
|
|
3833
3828
|
props: {
|
|
3834
3829
|
visible: { type: Boolean, default: false },
|
|
3835
3830
|
imgList: { default: [] },
|
|
@@ -3838,7 +3833,8 @@
|
|
|
3838
3833
|
imgNum: { default: 20 }
|
|
3839
3834
|
},
|
|
3840
3835
|
emits: ["update:imgList", "update:visible", "submit"],
|
|
3841
|
-
setup(__props, { emit:
|
|
3836
|
+
setup(__props, { emit: __emit }) {
|
|
3837
|
+
const emits = __emit;
|
|
3842
3838
|
const props = __props;
|
|
3843
3839
|
const drag = vue.ref(false);
|
|
3844
3840
|
const imgListTemp = vue.computed({
|
|
@@ -4121,15 +4117,15 @@
|
|
|
4121
4117
|
onClick: ($event) => changeTab(item)
|
|
4122
4118
|
}, [
|
|
4123
4119
|
vue.createTextVNode(vue.toDisplayString(item.value) + " ", 1),
|
|
4124
|
-
item.id === activeTitle.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
4120
|
+
item.id === activeTitle.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1)) : vue.createCommentVNode("", true)
|
|
4125
4121
|
], 10, _hoisted_3$4);
|
|
4126
4122
|
}), 128)),
|
|
4127
|
-
[1, 3].includes(activeTitle.value) && props.imgList.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
4123
|
+
[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),
|
|
4128
4124
|
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)
|
|
4129
4125
|
]),
|
|
4130
4126
|
activeTitle.value === 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
4131
4127
|
vue.createElementVNode("div", _hoisted_8, [
|
|
4132
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
4128
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(contentImgList.value, (item, index) => {
|
|
4133
4129
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4134
4130
|
key: index,
|
|
4135
4131
|
class: "image-item",
|
|
@@ -4167,8 +4163,8 @@
|
|
|
4167
4163
|
_hoisted_15
|
|
4168
4164
|
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
|
|
4169
4165
|
vue.createVNode(vue.unref(draggable__default.default), {
|
|
4170
|
-
modelValue:
|
|
4171
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
4166
|
+
modelValue: imgListTemp.value,
|
|
4167
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => imgListTemp.value = $event),
|
|
4172
4168
|
handle: ".img-item",
|
|
4173
4169
|
class: "img-wrap",
|
|
4174
4170
|
group: "people",
|
|
@@ -4293,13 +4289,13 @@
|
|
|
4293
4289
|
onClick: search
|
|
4294
4290
|
}, {
|
|
4295
4291
|
default: vue.withCtx(() => [
|
|
4296
|
-
|
|
4292
|
+
vue.createTextVNode("\u641C\u7D22")
|
|
4297
4293
|
]),
|
|
4298
4294
|
_: 1
|
|
4299
4295
|
})
|
|
4300
4296
|
]),
|
|
4301
|
-
tabList.value && tabList.value.length ? (vue.openBlock(), vue.createElementBlock("div",
|
|
4302
|
-
vue.createElementVNode("div",
|
|
4297
|
+
tabList.value && tabList.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_21, [
|
|
4298
|
+
vue.createElementVNode("div", _hoisted_22, [
|
|
4303
4299
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(tabList.value, (item, index) => {
|
|
4304
4300
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4305
4301
|
key: index,
|
|
@@ -4307,12 +4303,12 @@
|
|
|
4307
4303
|
onClick: ($event) => activeTab.value = item.type
|
|
4308
4304
|
}, [
|
|
4309
4305
|
vue.createTextVNode(vue.toDisplayString(item.name) + " ", 1),
|
|
4310
|
-
item.type === activeTab.value ? (vue.openBlock(), vue.createElementBlock("div",
|
|
4311
|
-
], 10,
|
|
4306
|
+
item.type === activeTab.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_24)) : vue.createCommentVNode("", true)
|
|
4307
|
+
], 10, _hoisted_23);
|
|
4312
4308
|
}), 128))
|
|
4313
4309
|
]),
|
|
4314
|
-
vue.createElementVNode("div",
|
|
4315
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
4310
|
+
vue.createElementVNode("div", _hoisted_25, [
|
|
4311
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageList.value, (item, index) => {
|
|
4316
4312
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4317
4313
|
key: index,
|
|
4318
4314
|
class: "image-item",
|
|
@@ -4322,14 +4318,14 @@
|
|
|
4322
4318
|
src: item.imgOrgUrl,
|
|
4323
4319
|
alt: "",
|
|
4324
4320
|
class: "image"
|
|
4325
|
-
}, null, 8,
|
|
4326
|
-
item.num ? (vue.openBlock(), vue.createElementBlock("div",
|
|
4327
|
-
vue.createElementVNode("div",
|
|
4321
|
+
}, null, 8, _hoisted_27),
|
|
4322
|
+
item.num ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_28, [
|
|
4323
|
+
vue.createElementVNode("div", _hoisted_29, vue.toDisplayString(item.num), 1)
|
|
4328
4324
|
])) : vue.createCommentVNode("", true)
|
|
4329
|
-
], 8,
|
|
4325
|
+
], 8, _hoisted_26);
|
|
4330
4326
|
}), 128))
|
|
4331
4327
|
])
|
|
4332
|
-
])) : (vue.openBlock(), vue.createElementBlock("div",
|
|
4328
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_30, _hoisted_32))
|
|
4333
4329
|
])) : vue.createCommentVNode("", true)
|
|
4334
4330
|
])
|
|
4335
4331
|
]),
|
|
@@ -4341,22 +4337,22 @@
|
|
|
4341
4337
|
const index_vue_vue_type_style_index_0_lang$1 = "";
|
|
4342
4338
|
const _hoisted_1$3 = /* @__PURE__ */ vue.createElementVNode("span", null, "\u63D2\u5165\u89C6\u9891", -1);
|
|
4343
4339
|
const _hoisted_2$3 = { class: "insert-video" };
|
|
4344
|
-
const _hoisted_3$3 = /* @__PURE__ */ vue.
|
|
4345
|
-
const
|
|
4346
|
-
|
|
4347
|
-
name: "index",
|
|
4340
|
+
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);
|
|
4341
|
+
const _sfc_main$3 = vue.defineComponent({
|
|
4342
|
+
__name: "index",
|
|
4348
4343
|
props: {
|
|
4349
4344
|
visible: { type: Boolean, default: false },
|
|
4350
|
-
fileSelected:
|
|
4345
|
+
fileSelected: {}
|
|
4351
4346
|
},
|
|
4352
4347
|
emits: ["update:visible"],
|
|
4353
|
-
setup(__props, { emit:
|
|
4354
|
-
const
|
|
4348
|
+
setup(__props, { emit: __emit }) {
|
|
4349
|
+
const emits = __emit;
|
|
4355
4350
|
vue.provide("vm", {
|
|
4356
4351
|
setStatus(val) {
|
|
4357
4352
|
emits("update:visible", val);
|
|
4358
4353
|
}
|
|
4359
4354
|
});
|
|
4355
|
+
const props = __props;
|
|
4360
4356
|
const { visible, fileSelected } = vue.toRefs(props);
|
|
4361
4357
|
const emitEvent = () => {
|
|
4362
4358
|
var event = new MouseEvent("click");
|
|
@@ -4382,11 +4378,11 @@
|
|
|
4382
4378
|
onClick: emitEvent
|
|
4383
4379
|
}, {
|
|
4384
4380
|
default: vue.withCtx(() => [
|
|
4385
|
-
|
|
4381
|
+
vue.createTextVNode("\u9009\u62E9\u89C6\u9891")
|
|
4386
4382
|
]),
|
|
4387
4383
|
_: 1
|
|
4388
4384
|
}),
|
|
4389
|
-
|
|
4385
|
+
_hoisted_3$3,
|
|
4390
4386
|
vue.createElementVNode("input", {
|
|
4391
4387
|
type: "file",
|
|
4392
4388
|
accept: "video/*",
|
|
@@ -4516,8 +4512,8 @@
|
|
|
4516
4512
|
};
|
|
4517
4513
|
const _hoisted_2$1 = ["src"];
|
|
4518
4514
|
const _hoisted_3$1 = { class: "article-item_right" };
|
|
4519
|
-
const _hoisted_4
|
|
4520
|
-
const _hoisted_5
|
|
4515
|
+
const _hoisted_4 = { class: "name" };
|
|
4516
|
+
const _hoisted_5 = { class: "score" };
|
|
4521
4517
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4522
4518
|
const _component_el_icon_error = vue.resolveComponent("el-icon-error");
|
|
4523
4519
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
@@ -4527,8 +4523,8 @@
|
|
|
4527
4523
|
alt: ""
|
|
4528
4524
|
}, null, 8, _hoisted_2$1)) : vue.createCommentVNode("", true),
|
|
4529
4525
|
vue.createElementVNode("div", _hoisted_3$1, [
|
|
4530
|
-
vue.createElementVNode("div", _hoisted_4
|
|
4531
|
-
vue.createElementVNode("div", _hoisted_5
|
|
4526
|
+
vue.createElementVNode("div", _hoisted_4, vue.toDisplayString($props.article.title), 1),
|
|
4527
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
4532
4528
|
vue.createElementVNode("span", null, vue.toDisplayString($props.article.author), 1),
|
|
4533
4529
|
vue.createElementVNode("span", null, vue.toDisplayString($props.article.viewNum) + "\u6D4F\u89C8", 1),
|
|
4534
4530
|
vue.createElementVNode("span", null, vue.toDisplayString($props.article.replycnt) + "\u8BC4\u8BBA", 1)
|
|
@@ -4665,7 +4661,8 @@
|
|
|
4665
4661
|
lasteDropDom: "",
|
|
4666
4662
|
currentVideo: null,
|
|
4667
4663
|
targetMove: "",
|
|
4668
|
-
moverClasses: ["halo-img-content", "halo-video-content"]
|
|
4664
|
+
moverClasses: ["halo-img-content", "halo-video-content"],
|
|
4665
|
+
selectDom: null
|
|
4669
4666
|
};
|
|
4670
4667
|
},
|
|
4671
4668
|
computed: {
|
|
@@ -4938,6 +4935,7 @@
|
|
|
4938
4935
|
},
|
|
4939
4936
|
async parseHtml(html, essayPicRelVOList) {
|
|
4940
4937
|
var _a;
|
|
4938
|
+
const me2 = this;
|
|
4941
4939
|
const div = document.createElement("div");
|
|
4942
4940
|
div.innerHTML = html;
|
|
4943
4941
|
const frag = document.createDocumentFragment();
|
|
@@ -4956,6 +4954,16 @@
|
|
|
4956
4954
|
node.setAttribute("draggable", true);
|
|
4957
4955
|
node.setAttribute("contenteditable", false);
|
|
4958
4956
|
img.setAttribute("draggable", false);
|
|
4957
|
+
node.onclick = function(e) {
|
|
4958
|
+
me2.selectDom = node;
|
|
4959
|
+
img.classList.add("halo-select");
|
|
4960
|
+
e.stopPropagation();
|
|
4961
|
+
};
|
|
4962
|
+
node.onblur = function(e) {
|
|
4963
|
+
img.classList.remove("halo-select");
|
|
4964
|
+
me2.selectDom = null;
|
|
4965
|
+
e.stopPropagation();
|
|
4966
|
+
};
|
|
4959
4967
|
this.setDragMove(node);
|
|
4960
4968
|
const desc = img.dataset.desc;
|
|
4961
4969
|
img.style.margin = "0";
|
|
@@ -5092,7 +5100,7 @@
|
|
|
5092
5100
|
selectArticle(item) {
|
|
5093
5101
|
if (item.isVideo) {
|
|
5094
5102
|
const data = (item == null ? void 0 : item.mediaInfo[0]) || {};
|
|
5095
|
-
this.editor.insertVideo(data.link, { link: data.link, img: data.img });
|
|
5103
|
+
this.editor.insertVideo(data.link, { link: data.link, img: data.img, id: data.id });
|
|
5096
5104
|
this.visibleArticle = false;
|
|
5097
5105
|
this.updateData(true);
|
|
5098
5106
|
return;
|
|
@@ -5334,7 +5342,7 @@
|
|
|
5334
5342
|
return;
|
|
5335
5343
|
const cur = me2.findParentByClass(e.target, "halo-img-content");
|
|
5336
5344
|
const currentImg = cur.getElementsByClassName("halo-picture-area")[0];
|
|
5337
|
-
const currentData = JSON.parse(currentImg.getAttribute("data"));
|
|
5345
|
+
const currentData = JSON.parse((currentImg == null ? void 0 : currentImg.getAttribute("data")) || "{}");
|
|
5338
5346
|
if (currentData.seamlessFlag === "0") {
|
|
5339
5347
|
if (!cur.previousElementSibling)
|
|
5340
5348
|
return;
|
|
@@ -5360,7 +5368,7 @@
|
|
|
5360
5368
|
const me2 = this;
|
|
5361
5369
|
const cur = me2.findParentByClass(e.target, "halo-img-content");
|
|
5362
5370
|
const currentImg = cur.getElementsByClassName("halo-picture-area")[0];
|
|
5363
|
-
const currentData = JSON.parse(currentImg.getAttribute("data"));
|
|
5371
|
+
const currentData = JSON.parse((currentImg == null ? void 0 : currentImg.getAttribute("data")) || "{}");
|
|
5364
5372
|
if (currentData.seamlessFlag === "0") {
|
|
5365
5373
|
if (!cur.previousElementSibling)
|
|
5366
5374
|
return;
|
|
@@ -5368,7 +5376,7 @@
|
|
|
5368
5376
|
const imgcont = cur.previousElementSibling.previousElementSibling;
|
|
5369
5377
|
const input = imgcont.getElementsByClassName("desc-input-wrap")[0];
|
|
5370
5378
|
const pic = imgcont.getElementsByClassName("halo-picture-area")[0];
|
|
5371
|
-
const data = JSON.parse(pic.getAttribute("data"));
|
|
5379
|
+
const data = JSON.parse((pic == null ? void 0 : pic.getAttribute("data")) || "{}");
|
|
5372
5380
|
data.seamlessFlag = "0";
|
|
5373
5381
|
pic.setAttribute("data", JSON.stringify(data));
|
|
5374
5382
|
input.style.display = "";
|
|
@@ -5453,13 +5461,38 @@
|
|
|
5453
5461
|
event.preventDefault();
|
|
5454
5462
|
}
|
|
5455
5463
|
});
|
|
5464
|
+
me2.editor.addEventListener("keydown", function(event) {
|
|
5465
|
+
if (event.keyCode === 8 || event.keyCode === 46) {
|
|
5466
|
+
try {
|
|
5467
|
+
if (me2.selectDom && me2.moverClasses.includes(me2.selectDom.className)) {
|
|
5468
|
+
me2.selectDom.remove();
|
|
5469
|
+
me2.selectDom = null;
|
|
5470
|
+
} else {
|
|
5471
|
+
const selection = getSelection();
|
|
5472
|
+
if (selection.isCollapsed) {
|
|
5473
|
+
const node = selection.focusNode;
|
|
5474
|
+
const previousSibling = node.previousElementSibling || node.parentNode.previousElementSibling || {};
|
|
5475
|
+
const isPre = me2.moverClasses.includes(previousSibling.className);
|
|
5476
|
+
event.preventDefault();
|
|
5477
|
+
if (isPre) {
|
|
5478
|
+
me2.selectDom = previousSibling;
|
|
5479
|
+
previousSibling.classList.add("halo-select");
|
|
5480
|
+
}
|
|
5481
|
+
}
|
|
5482
|
+
}
|
|
5483
|
+
} catch (error) {
|
|
5484
|
+
console.log(error);
|
|
5485
|
+
}
|
|
5486
|
+
}
|
|
5487
|
+
});
|
|
5456
5488
|
me2.editor.addEventListener("willPaste", function(type, handler) {
|
|
5457
5489
|
function validateDom() {
|
|
5458
5490
|
const fragment = type && type.fragment || {};
|
|
5459
5491
|
let tmpNode = document.createElement("div");
|
|
5460
5492
|
tmpNode.appendChild(fragment.cloneNode(true));
|
|
5461
5493
|
const str = tmpNode.innerHTML;
|
|
5462
|
-
|
|
5494
|
+
const text = tmpNode.innerText || "";
|
|
5495
|
+
type.defaultPrevented = str.indexOf("<img") > -1 || str.indexOf("<video") > -1 || text.length > 1;
|
|
5463
5496
|
tmpNode = null;
|
|
5464
5497
|
}
|
|
5465
5498
|
validateDom();
|
|
@@ -5574,10 +5607,22 @@
|
|
|
5574
5607
|
"tabindex": "-1"
|
|
5575
5608
|
}, [...childList]);
|
|
5576
5609
|
me2.setDragMove(p);
|
|
5610
|
+
p.onclick = function(e) {
|
|
5611
|
+
me2.selectDom = p;
|
|
5612
|
+
img.classList.add("halo-select");
|
|
5613
|
+
e.stopPropagation();
|
|
5614
|
+
};
|
|
5615
|
+
p.onblur = function(e) {
|
|
5616
|
+
img.classList.remove("halo-select");
|
|
5617
|
+
me2.selectDom = null;
|
|
5618
|
+
e.stopPropagation();
|
|
5619
|
+
};
|
|
5577
5620
|
this.insertElement(p, range);
|
|
5578
5621
|
if (isSeameless) {
|
|
5579
5622
|
me2.removeDefault(p, "nextElementSibling");
|
|
5580
5623
|
me2.removeDefault(p, "previousElementSibling");
|
|
5624
|
+
} else {
|
|
5625
|
+
me2.removeDefault(p, "previousElementSibling");
|
|
5581
5626
|
}
|
|
5582
5627
|
setTimeout(() => {
|
|
5583
5628
|
document.documentElement.scrollTop = scrollTop;
|
|
@@ -6011,7 +6056,7 @@
|
|
|
6011
6056
|
return me2.setToast("URL\u65E0\u6548");
|
|
6012
6057
|
}
|
|
6013
6058
|
if (me2.linkContent.indexOf("jddmoto.com") === -1 && me2.linkContent.indexOf("58moto.com") === -1) {
|
|
6014
|
-
return me2.setToast("\u8BF7\u8F93\u5165\
|
|
6059
|
+
return me2.setToast("\u8BF7\u8F93\u5165\u6469\u6258\u8303\u5185\u90E8\u7F51\u5740");
|
|
6015
6060
|
}
|
|
6016
6061
|
me2.editor["insertLink"](me2.linkContent);
|
|
6017
6062
|
me2.linkContent = "";
|
|
@@ -6086,8 +6131,6 @@
|
|
|
6086
6131
|
slot: "footer",
|
|
6087
6132
|
class: "dialog-footer"
|
|
6088
6133
|
};
|
|
6089
|
-
const _hoisted_4 = /* @__PURE__ */ vue.createTextVNode("\u53D6 \u6D88");
|
|
6090
|
-
const _hoisted_5 = /* @__PURE__ */ vue.createTextVNode("\u786E \u5B9A");
|
|
6091
6134
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6092
6135
|
const _component_el_input = vue.resolveComponent("el-input");
|
|
6093
6136
|
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
@@ -6160,7 +6203,7 @@
|
|
|
6160
6203
|
onClick: _cache[3] || (_cache[3] = ($event) => $data.viewLinkDialog = false)
|
|
6161
6204
|
}, {
|
|
6162
6205
|
default: vue.withCtx(() => [
|
|
6163
|
-
|
|
6206
|
+
vue.createTextVNode("\u53D6 \u6D88")
|
|
6164
6207
|
]),
|
|
6165
6208
|
_: 1
|
|
6166
6209
|
}),
|
|
@@ -6169,7 +6212,7 @@
|
|
|
6169
6212
|
onClick: $options.insertLink
|
|
6170
6213
|
}, {
|
|
6171
6214
|
default: vue.withCtx(() => [
|
|
6172
|
-
|
|
6215
|
+
vue.createTextVNode("\u786E \u5B9A")
|
|
6173
6216
|
]),
|
|
6174
6217
|
_: 1
|
|
6175
6218
|
}, 8, ["onClick"])
|
|
@@ -6187,7 +6230,7 @@
|
|
|
6187
6230
|
}, null, 8, ["article", "visible", "getList", "onDelete", "onChange"]),
|
|
6188
6231
|
vue.createVNode(_component_ImgUpload, {
|
|
6189
6232
|
"img-list": $data.imgList,
|
|
6190
|
-
"onUpdate:
|
|
6233
|
+
"onUpdate:imgList": _cache[6] || (_cache[6] = ($event) => $data.imgList = $event),
|
|
6191
6234
|
visible: $data.visibleImg,
|
|
6192
6235
|
"onUpdate:visible": _cache[7] || (_cache[7] = ($event) => $data.visibleImg = $event),
|
|
6193
6236
|
chartGallery: $props.chartGallery,
|
|
@@ -6202,7 +6245,7 @@
|
|
|
6202
6245
|
}, null, 8, ["visible", "file-selected"]),
|
|
6203
6246
|
vue.createVNode(_component_CollectArticle, {
|
|
6204
6247
|
"link-content": $data.linkContent,
|
|
6205
|
-
"onUpdate:
|
|
6248
|
+
"onUpdate:linkContent": _cache[9] || (_cache[9] = ($event) => $data.linkContent = $event),
|
|
6206
6249
|
visible: $data.visibleCollectArticle,
|
|
6207
6250
|
"onUpdate:visible": _cache[10] || (_cache[10] = ($event) => $data.visibleCollectArticle = $event),
|
|
6208
6251
|
onSubmit: $options.confirmLink
|