@haluo/biz 2.0.50 → 2.0.51
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 +195 -153
- package/dist/haluo-biz.umd.cjs +194 -152
- package/dist/style.css +52 -40
- package/package.json +48 -48
- /package/dist/{squire-raw.85a430e7.js → squire-raw.3e73a64b.js} +0 -0
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$6 = ["src"];
|
|
531
|
+
const _hoisted_5$5 = ["src"];
|
|
532
|
+
const _hoisted_6$3 = { 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$2 = { style: { "font-size": "10px" } };
|
|
543
|
+
const _hoisted_14$2 = { class: "box" };
|
|
544
|
+
const _hoisted_15$2 = ["src"];
|
|
545
|
+
const _hoisted_16$2 = {
|
|
546
546
|
key: 0,
|
|
547
547
|
class: "box-mask"
|
|
548
548
|
};
|
|
@@ -571,9 +571,9 @@
|
|
|
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 = ["src"];
|
|
575
|
-
const _hoisted_34 = ["src"];
|
|
576
|
-
const _hoisted_35 = { class: "tools-title" };
|
|
574
|
+
const _hoisted_33$1 = ["src"];
|
|
575
|
+
const _hoisted_34$1 = ["src"];
|
|
576
|
+
const _hoisted_35$1 = { class: "tools-title" };
|
|
577
577
|
const _hoisted_36 = ["src"];
|
|
578
578
|
const _hoisted_37 = ["src"];
|
|
579
579
|
const _hoisted_38 = { class: "tools-title_content" };
|
|
@@ -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$6)
|
|
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$5)
|
|
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$3, [
|
|
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$2, 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$2, [
|
|
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$2),
|
|
754
|
+
$data.statusInfo && $data.statusInfo.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$2)) : vue.createCommentVNode("", true)
|
|
755
755
|
])
|
|
756
756
|
]),
|
|
757
757
|
_: 1
|
|
@@ -928,13 +928,13 @@
|
|
|
928
928
|
width: "24",
|
|
929
929
|
height: "40",
|
|
930
930
|
alt: ""
|
|
931
|
-
}, null, 8, _hoisted_33),
|
|
931
|
+
}, null, 8, _hoisted_33$1),
|
|
932
932
|
vue.createElementVNode("img", {
|
|
933
933
|
src: $options.getImageUrl("tools_arrow@3x.png"),
|
|
934
934
|
width: "16",
|
|
935
935
|
height: "40",
|
|
936
936
|
alt: ""
|
|
937
|
-
}, null, 8, _hoisted_34),
|
|
937
|
+
}, null, 8, _hoisted_34$1),
|
|
938
938
|
vue.createVNode(_component_colorPicker, {
|
|
939
939
|
ref: "colorPicker",
|
|
940
940
|
modelValue: $data.color,
|
|
@@ -955,7 +955,7 @@
|
|
|
955
955
|
width: "152"
|
|
956
956
|
}, {
|
|
957
957
|
reference: vue.withCtx(() => [
|
|
958
|
-
vue.createElementVNode("div", _hoisted_35, [
|
|
958
|
+
vue.createElementVNode("div", _hoisted_35$1, [
|
|
959
959
|
vue.createVNode(_component_el_tooltip, {
|
|
960
960
|
class: "item",
|
|
961
961
|
effect: "dark",
|
|
@@ -1107,18 +1107,20 @@
|
|
|
1107
1107
|
])
|
|
1108
1108
|
])) : vue.createCommentVNode("", true);
|
|
1109
1109
|
}
|
|
1110
|
-
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-24d161f2"]]);
|
|
1111
1111
|
const __vite_glob_0_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAmCAYAAAClI5npAAAA0UlEQVR42uWYwQnDMAxFfckAXkFDmGzgS1foDpnFS3gTb+IFtIDyA4UeBKUtNR8qwTvlkAdyfmSletySmRUwgIIJOijXs9VcLxegwNVDRFYLdHtdCg6wrRKY9l4NUFYIqH1WDeTfCXxXE9w5Ar4tQhBwh7SBjSDg2lJJAj47SAI+OwgC7pDuJAGfHQQBnx0kAZ8dBAF3SOtTgCchybjV2QLKFpihW6BAQn6GA0i4KG4g037H4QaSDiTWUMocyweQcFezBjLrer5TFxR/uaKhL6lOdeUQ8G6X1pQAAAAASUVORK5CYII=";
|
|
1112
1112
|
const index_vue_vue_type_style_index_0_lang$5 = "";
|
|
1113
1113
|
const _hoisted_1$7 = { 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$5 = {
|
|
1117
1117
|
key: 0,
|
|
1118
1118
|
class: "dialog-footer"
|
|
1119
1119
|
};
|
|
1120
|
-
const
|
|
1121
|
-
|
|
1120
|
+
const _hoisted_5$4 = /* @__PURE__ */ vue.createTextVNode("\u53D6\u6D88");
|
|
1121
|
+
const _hoisted_6$2 = /* @__PURE__ */ vue.createTextVNode("\u786E\u8BA4");
|
|
1122
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
1123
|
+
name: "index",
|
|
1122
1124
|
props: {
|
|
1123
1125
|
visible: { type: Boolean, default: false },
|
|
1124
1126
|
showBtn: { type: Boolean, default: true },
|
|
@@ -1126,10 +1128,9 @@
|
|
|
1126
1128
|
showTitle: { type: Boolean, default: true }
|
|
1127
1129
|
},
|
|
1128
1130
|
emits: ["submit", "cancel"],
|
|
1129
|
-
setup(__props, { emit:
|
|
1131
|
+
setup(__props, { emit: emits }) {
|
|
1130
1132
|
const props = __props;
|
|
1131
1133
|
const parent = vue.inject("vm");
|
|
1132
|
-
const emits = __emit;
|
|
1133
1134
|
const handleClose = () => {
|
|
1134
1135
|
var _a;
|
|
1135
1136
|
(_a = parent.setStatus) == null ? void 0 : _a.call(parent, false);
|
|
@@ -1151,14 +1152,14 @@
|
|
|
1151
1152
|
});
|
|
1152
1153
|
return (_ctx, _cache) => {
|
|
1153
1154
|
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDialog), {
|
|
1154
|
-
modelValue: dialogVisible
|
|
1155
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
|
|
1155
|
+
modelValue: vue.unref(dialogVisible),
|
|
1156
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(dialogVisible) ? dialogVisible.value = $event : null),
|
|
1156
1157
|
"before-close": handleClose,
|
|
1157
|
-
width:
|
|
1158
|
-
class: vue.normalizeClass(["basic-dialog", { "hide-title": !
|
|
1158
|
+
width: __props.width,
|
|
1159
|
+
class: vue.normalizeClass(["basic-dialog", { "hide-title": !__props.showTitle }])
|
|
1159
1160
|
}, {
|
|
1160
1161
|
header: vue.withCtx(() => [
|
|
1161
|
-
|
|
1162
|
+
__props.showTitle ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
|
|
1162
1163
|
vue.createElementVNode("div", _hoisted_2$6, [
|
|
1163
1164
|
_hoisted_3$6,
|
|
1164
1165
|
vue.renderSlot(_ctx.$slots, "title")
|
|
@@ -1166,7 +1167,7 @@
|
|
|
1166
1167
|
])) : vue.createCommentVNode("", true)
|
|
1167
1168
|
]),
|
|
1168
1169
|
footer: vue.withCtx(() => [
|
|
1169
|
-
|
|
1170
|
+
__props.showBtn ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$5, [
|
|
1170
1171
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
1171
1172
|
style: { "width": "120px", "border-color": "#cccccc", "color": "#333333" },
|
|
1172
1173
|
plain: "",
|
|
@@ -1174,7 +1175,7 @@
|
|
|
1174
1175
|
onClick: handleClose
|
|
1175
1176
|
}, {
|
|
1176
1177
|
default: vue.withCtx(() => [
|
|
1177
|
-
|
|
1178
|
+
_hoisted_5$4
|
|
1178
1179
|
]),
|
|
1179
1180
|
_: 1
|
|
1180
1181
|
}),
|
|
@@ -1185,7 +1186,7 @@
|
|
|
1185
1186
|
onClick: confirm
|
|
1186
1187
|
}, {
|
|
1187
1188
|
default: vue.withCtx(() => [
|
|
1188
|
-
|
|
1189
|
+
_hoisted_6$2
|
|
1189
1190
|
]),
|
|
1190
1191
|
_: 1
|
|
1191
1192
|
})
|
|
@@ -1208,7 +1209,7 @@
|
|
|
1208
1209
|
function replacementDate(data, fmt) {
|
|
1209
1210
|
for (var k in data) {
|
|
1210
1211
|
if (new RegExp("(" + k + ")").test(fmt)) {
|
|
1211
|
-
fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? data[k] : "00"
|
|
1212
|
+
fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? data[k] : ("00" + data[k]).substr(("" + data[k]).length));
|
|
1212
1213
|
}
|
|
1213
1214
|
}
|
|
1214
1215
|
return fmt;
|
|
@@ -1251,7 +1252,7 @@
|
|
|
1251
1252
|
};
|
|
1252
1253
|
fmt = replacementYear(timeData, fmt);
|
|
1253
1254
|
if (/(E+)/.test(fmt)) {
|
|
1254
|
-
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "\u661F\u671F" : "\u5468" : "") + week[
|
|
1255
|
+
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "\u661F\u671F" : "\u5468" : "") + week[timeData.getDay() + " "]);
|
|
1255
1256
|
}
|
|
1256
1257
|
return replacementDate(o, fmt);
|
|
1257
1258
|
};
|
|
@@ -1272,10 +1273,10 @@
|
|
|
1272
1273
|
if (ts <= 0)
|
|
1273
1274
|
return false;
|
|
1274
1275
|
return {
|
|
1275
|
-
dd: dd < 10 ? "0"
|
|
1276
|
-
hh: hh < 10 ? "0"
|
|
1277
|
-
mm: mm < 10 ? "0"
|
|
1278
|
-
ss: ss < 10 ? "0"
|
|
1276
|
+
dd: dd < 10 ? "0" + dd : dd,
|
|
1277
|
+
hh: hh < 10 ? "0" + hh : hh,
|
|
1278
|
+
mm: mm < 10 ? "0" + mm : mm,
|
|
1279
|
+
ss: ss < 10 ? "0" + ss : ss
|
|
1279
1280
|
};
|
|
1280
1281
|
};
|
|
1281
1282
|
DateClass2.prototype.formatPassTime = function(startTime) {
|
|
@@ -1283,19 +1284,19 @@
|
|
|
1283
1284
|
var time = currentTime - startTime;
|
|
1284
1285
|
var year = Math.floor(time / (1e3 * 60 * 60 * 24) / 30 / 12);
|
|
1285
1286
|
if (year)
|
|
1286
|
-
return
|
|
1287
|
+
return year + "\u5E74\u524D";
|
|
1287
1288
|
var month = Math.floor(time / (1e3 * 60 * 60 * 24) / 30);
|
|
1288
1289
|
if (month)
|
|
1289
|
-
return
|
|
1290
|
+
return month + "\u4E2A\u6708\u524D";
|
|
1290
1291
|
var day = Math.floor(time / (1e3 * 60 * 60 * 24));
|
|
1291
1292
|
if (day)
|
|
1292
|
-
return
|
|
1293
|
+
return day + "\u5929\u524D";
|
|
1293
1294
|
var hour = Math.floor(time / (1e3 * 60 * 60));
|
|
1294
1295
|
if (hour)
|
|
1295
|
-
return
|
|
1296
|
+
return hour + "\u5C0F\u65F6\u524D";
|
|
1296
1297
|
var min = Math.floor(time / (1e3 * 60));
|
|
1297
1298
|
if (min)
|
|
1298
|
-
return
|
|
1299
|
+
return min + "\u5206\u949F\u524D";
|
|
1299
1300
|
else
|
|
1300
1301
|
return "\u521A\u521A";
|
|
1301
1302
|
};
|
|
@@ -3166,13 +3167,13 @@
|
|
|
3166
3167
|
return cloneDeep_1;
|
|
3167
3168
|
}
|
|
3168
3169
|
/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3169
|
-
var
|
|
3170
|
-
var
|
|
3171
|
-
function
|
|
3172
|
-
if (
|
|
3173
|
-
return
|
|
3174
|
-
|
|
3175
|
-
|
|
3170
|
+
var clipboardCopy_1;
|
|
3171
|
+
var hasRequiredClipboardCopy;
|
|
3172
|
+
function requireClipboardCopy() {
|
|
3173
|
+
if (hasRequiredClipboardCopy)
|
|
3174
|
+
return clipboardCopy_1;
|
|
3175
|
+
hasRequiredClipboardCopy = 1;
|
|
3176
|
+
clipboardCopy_1 = clipboardCopy;
|
|
3176
3177
|
function makeError() {
|
|
3177
3178
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
3178
3179
|
}
|
|
@@ -3215,7 +3216,7 @@
|
|
|
3215
3216
|
}
|
|
3216
3217
|
}
|
|
3217
3218
|
}
|
|
3218
|
-
return
|
|
3219
|
+
return clipboardCopy_1;
|
|
3219
3220
|
}
|
|
3220
3221
|
Object.defineProperty(tools$1.exports, "__esModule", { value: true });
|
|
3221
3222
|
var previous = 0;
|
|
@@ -3234,7 +3235,7 @@
|
|
|
3234
3235
|
body.style.overflow = "hidden";
|
|
3235
3236
|
body.style.height = "100%";
|
|
3236
3237
|
if (className) {
|
|
3237
|
-
var dom = document.querySelector("."
|
|
3238
|
+
var dom = document.querySelector("." + className);
|
|
3238
3239
|
dom && dom.addEventListener("touchmove", _this.__setDefault__);
|
|
3239
3240
|
}
|
|
3240
3241
|
};
|
|
@@ -3249,7 +3250,7 @@
|
|
|
3249
3250
|
body.style.overflow = "visible";
|
|
3250
3251
|
body.style.height = "auto";
|
|
3251
3252
|
if (className) {
|
|
3252
|
-
var dom = document.querySelector("."
|
|
3253
|
+
var dom = document.querySelector("." + className);
|
|
3253
3254
|
dom && dom.removeEventListener("touchmove", _this.__setDefault__);
|
|
3254
3255
|
}
|
|
3255
3256
|
};
|
|
@@ -3377,7 +3378,7 @@
|
|
|
3377
3378
|
if (!(window && window.document)) {
|
|
3378
3379
|
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3379
3380
|
}
|
|
3380
|
-
var copy =
|
|
3381
|
+
var copy = requireClipboardCopy();
|
|
3381
3382
|
return copy(str);
|
|
3382
3383
|
};
|
|
3383
3384
|
ToolsClass2.prototype.firstUpperCase = function(str) {
|
|
@@ -3463,44 +3464,49 @@
|
|
|
3463
3464
|
sensitiveLen = 0;
|
|
3464
3465
|
}
|
|
3465
3466
|
var regItem = "[\u4E00-\u9FA5a-zA-Z0-9]";
|
|
3466
|
-
var regExp = "("
|
|
3467
|
+
var regExp = "(" + regItem + "{" + before + "})" + regItem + "*(" + regItem + "{" + after + "})";
|
|
3467
3468
|
var reg = new RegExp(regExp);
|
|
3468
|
-
return field.replace(reg, "$1"
|
|
3469
|
+
return field.replace(reg, "$1" + "*".repeat(sensitiveLen) + "$2");
|
|
3469
3470
|
};
|
|
3470
3471
|
return ToolsClass2;
|
|
3471
3472
|
}();
|
|
3472
3473
|
tools$1.exports = new ToolsClass();
|
|
3473
3474
|
const tools = /* @__PURE__ */ getDefaultExportFromCjs(tools$1.exports);
|
|
3474
3475
|
const index_vue_vue_type_style_index_0_lang$4 = "";
|
|
3475
|
-
const _hoisted_1$6 =
|
|
3476
|
-
const _hoisted_2$5 = {
|
|
3477
|
-
const _hoisted_3$5 = { class: "insert-
|
|
3478
|
-
const _hoisted_4$
|
|
3476
|
+
const _hoisted_1$6 = /* @__PURE__ */ vue.createTextVNode("\u63D2\u5165\u6587\u7AE0/\u89C6\u9891");
|
|
3477
|
+
const _hoisted_2$5 = { style: { "margin-left": "20px", "color": "#FF5A25" } };
|
|
3478
|
+
const _hoisted_3$5 = { class: "insert-article" };
|
|
3479
|
+
const _hoisted_4$4 = /* @__PURE__ */ vue.createTextVNode("\u4ECE\u6211\u7684\u6587\u7AE0\u4E2D\u9009\u62E9");
|
|
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 = {
|
|
3479
3484
|
key: 0,
|
|
3480
3485
|
class: "nodata"
|
|
3481
3486
|
};
|
|
3482
|
-
const
|
|
3483
|
-
const
|
|
3487
|
+
const _hoisted_9$1 = ["infinite-scroll-disabled"];
|
|
3488
|
+
const _hoisted_10$1 = {
|
|
3484
3489
|
key: 0,
|
|
3485
3490
|
class: "video-item"
|
|
3486
3491
|
};
|
|
3487
|
-
const
|
|
3488
|
-
const
|
|
3489
|
-
const
|
|
3490
|
-
const
|
|
3491
|
-
const
|
|
3492
|
-
const
|
|
3492
|
+
const _hoisted_11$1 = { class: "video-pic" };
|
|
3493
|
+
const _hoisted_12$1 = ["src"];
|
|
3494
|
+
const _hoisted_13$1 = ["src"];
|
|
3495
|
+
const _hoisted_14$1 = { class: "video-text" };
|
|
3496
|
+
const _hoisted_15$1 = { class: "dotdotdot2" };
|
|
3497
|
+
const _hoisted_16$1 = {
|
|
3493
3498
|
key: 1,
|
|
3494
3499
|
style: { "display": "inline-flex", "flex-direction": "column" }
|
|
3495
3500
|
};
|
|
3496
|
-
const _sfc_main$6 = vue.defineComponent({
|
|
3497
|
-
|
|
3501
|
+
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
3502
|
+
name: "index",
|
|
3498
3503
|
props: {
|
|
3499
3504
|
visible: { type: Boolean, default: false },
|
|
3500
|
-
getList:
|
|
3505
|
+
getList: null
|
|
3501
3506
|
},
|
|
3502
3507
|
emits: ["change", "submit", "update:visible"],
|
|
3503
|
-
setup(__props, { emit:
|
|
3508
|
+
setup(__props, { emit: emits }) {
|
|
3509
|
+
const props = __props;
|
|
3504
3510
|
const { debounce } = tools;
|
|
3505
3511
|
const vInfiniteScroll = elementPlus.ElInfiniteScroll;
|
|
3506
3512
|
const Radio_Type = {
|
|
@@ -3519,9 +3525,7 @@
|
|
|
3519
3525
|
emits("update:visible", val);
|
|
3520
3526
|
}
|
|
3521
3527
|
});
|
|
3522
|
-
const props = __props;
|
|
3523
3528
|
const { visible, getList } = vue.toRefs(props);
|
|
3524
|
-
const emits = __emit;
|
|
3525
3529
|
const data = vue.reactive({
|
|
3526
3530
|
params: {
|
|
3527
3531
|
autherid: "",
|
|
@@ -3595,12 +3599,12 @@
|
|
|
3595
3599
|
}, {
|
|
3596
3600
|
title: vue.withCtx(() => [
|
|
3597
3601
|
vue.createElementVNode("span", null, [
|
|
3598
|
-
|
|
3599
|
-
vue.createElementVNode("strong",
|
|
3602
|
+
_hoisted_1$6,
|
|
3603
|
+
vue.createElementVNode("strong", _hoisted_2$5, "\u5E73\u53F0\u4EC5\u652F\u6301\u63D2\u5165" + vue.toDisplayString(`${vue.unref(isVideo) ? "2\u5E74" : "18\u4E2A\u6708"}`) + "\u5185\u7684\u63A8\u8350\u5185\u5BB9", 1)
|
|
3600
3604
|
])
|
|
3601
3605
|
]),
|
|
3602
3606
|
default: vue.withCtx(() => [
|
|
3603
|
-
vue.createElementVNode("div",
|
|
3607
|
+
vue.createElementVNode("div", _hoisted_3$5, [
|
|
3604
3608
|
vue.createElementVNode("div", null, [
|
|
3605
3609
|
vue.createVNode(vue.unref(elementPlus.ElRadio), {
|
|
3606
3610
|
modelValue: data.params.radio,
|
|
@@ -3608,7 +3612,7 @@
|
|
|
3608
3612
|
label: Radio_Type.MY_ARITICLE
|
|
3609
3613
|
}, {
|
|
3610
3614
|
default: vue.withCtx(() => [
|
|
3611
|
-
|
|
3615
|
+
_hoisted_4$4
|
|
3612
3616
|
]),
|
|
3613
3617
|
_: 1
|
|
3614
3618
|
}, 8, ["modelValue", "label"]),
|
|
@@ -3618,7 +3622,7 @@
|
|
|
3618
3622
|
label: Radio_Type.MY_VIDEO
|
|
3619
3623
|
}, {
|
|
3620
3624
|
default: vue.withCtx(() => [
|
|
3621
|
-
|
|
3625
|
+
_hoisted_5$3
|
|
3622
3626
|
]),
|
|
3623
3627
|
_: 1
|
|
3624
3628
|
}, 8, ["modelValue", "label"]),
|
|
@@ -3628,16 +3632,16 @@
|
|
|
3628
3632
|
label: Radio_Type.ALL_ARITICLE
|
|
3629
3633
|
}, {
|
|
3630
3634
|
default: vue.withCtx(() => [
|
|
3631
|
-
|
|
3635
|
+
_hoisted_6$1
|
|
3632
3636
|
]),
|
|
3633
3637
|
_: 1
|
|
3634
3638
|
}, 8, ["modelValue", "label"])
|
|
3635
3639
|
]),
|
|
3636
|
-
vue.createElementVNode("div",
|
|
3640
|
+
vue.createElementVNode("div", _hoisted_7$1, [
|
|
3637
3641
|
vue.createVNode(vue.unref(elementPlus.ElInput), {
|
|
3638
3642
|
modelValue: data.params.title,
|
|
3639
3643
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => data.params.title = $event),
|
|
3640
|
-
placeholder: isVideo
|
|
3644
|
+
placeholder: vue.unref(isVideo) ? "\u8F93\u5165\u89C6\u9891\u63CF\u8FF0\u67E5\u627E\u5E73\u53F0\u53D1\u5E03\u8FC7\u7684\u89C6\u9891" : "\u8F93\u5165\u6807\u9898\u540D\u67E5\u627E\u5E73\u53F0\u53D1\u8FC7\u7684\u6587\u7AE0",
|
|
3641
3645
|
onKeyup: _cache[5] || (_cache[5] = vue.withKeys(($event) => vue.unref(getArticleList)(true), ["enter", "native"])),
|
|
3642
3646
|
onInput: _cache[6] || (_cache[6] = ($event) => vue.unref(getArticleList)(true))
|
|
3643
3647
|
}, {
|
|
@@ -3651,11 +3655,11 @@
|
|
|
3651
3655
|
_: 1
|
|
3652
3656
|
}, 8, ["modelValue", "placeholder"])
|
|
3653
3657
|
]),
|
|
3654
|
-
data.data.length === 0 && !data.busy ? (vue.openBlock(), vue.createElementBlock("div",
|
|
3658
|
+
data.data.length === 0 && !data.busy ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$1, vue.toDisplayString(`\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684${vue.unref(isVideo) ? "\u89C6\u9891" : "\u6587\u7AE0"}\u54E6\uFF0C\u4F60\u53EF\u4EE5\u8BD5\u8BD5\u641C\u7D22\u5176\u4ED6${vue.unref(isVideo) ? "\u89C6\u9891" : "\u6587\u7AE0"}\uFF5E`), 1)) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
3655
3659
|
key: 1,
|
|
3656
3660
|
"infinite-scroll-immediate": false,
|
|
3657
3661
|
class: "insert-article_list",
|
|
3658
|
-
"infinite-scroll-disabled": disable
|
|
3662
|
+
"infinite-scroll-disabled": vue.unref(disable)
|
|
3659
3663
|
}, [
|
|
3660
3664
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(data.data, (item, index) => {
|
|
3661
3665
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -3671,22 +3675,22 @@
|
|
|
3671
3675
|
default: vue.withCtx(() => {
|
|
3672
3676
|
var _a;
|
|
3673
3677
|
return [
|
|
3674
|
-
isVideo
|
|
3675
|
-
vue.createElementVNode("div",
|
|
3678
|
+
vue.unref(isVideo) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$1, [
|
|
3679
|
+
vue.createElementVNode("div", _hoisted_11$1, [
|
|
3676
3680
|
vue.createElementVNode("img", {
|
|
3677
3681
|
class: "video-pic",
|
|
3678
3682
|
src: (_a = item == null ? void 0 : item.mediaInfo[0]) == null ? void 0 : _a.img
|
|
3679
|
-
}, null, 8,
|
|
3683
|
+
}, null, 8, _hoisted_12$1),
|
|
3680
3684
|
vue.createElementVNode("img", {
|
|
3681
3685
|
class: "play",
|
|
3682
3686
|
src: getImageUrl("play.png")
|
|
3683
|
-
}, null, 8,
|
|
3687
|
+
}, null, 8, _hoisted_13$1)
|
|
3684
3688
|
]),
|
|
3685
|
-
vue.createElementVNode("div",
|
|
3686
|
-
vue.createElementVNode("span",
|
|
3689
|
+
vue.createElementVNode("div", _hoisted_14$1, [
|
|
3690
|
+
vue.createElementVNode("span", _hoisted_15$1, vue.toDisplayString(item.content || "[\u65E0\u6807\u9898]"), 1),
|
|
3687
3691
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(date).format(item.createTime * 1e3, "YYYY-MM-DD hh-mm")), 1)
|
|
3688
3692
|
])
|
|
3689
|
-
])) : (vue.openBlock(), vue.createElementBlock("div",
|
|
3693
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$1, [
|
|
3690
3694
|
vue.createElementVNode("span", null, vue.toDisplayString(item.title || "[\u65E0\u6807\u9898]"), 1),
|
|
3691
3695
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(date).format(item.createTime * 1e3, "YYYY-MM-DD")), 1)
|
|
3692
3696
|
]))
|
|
@@ -3696,7 +3700,7 @@
|
|
|
3696
3700
|
}, 1032, ["modelValue", "label", "onChange"])
|
|
3697
3701
|
]);
|
|
3698
3702
|
}), 128))
|
|
3699
|
-
], 8,
|
|
3703
|
+
], 8, _hoisted_9$1)), [
|
|
3700
3704
|
[vue.unref(vInfiniteScroll), vue.unref(getArticleList)]
|
|
3701
3705
|
])
|
|
3702
3706
|
])
|
|
@@ -3722,7 +3726,7 @@
|
|
|
3722
3726
|
byteToHex.push((i + 256).toString(16).slice(1));
|
|
3723
3727
|
}
|
|
3724
3728
|
function unsafeStringify(arr, offset = 0) {
|
|
3725
|
-
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
3729
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
3726
3730
|
}
|
|
3727
3731
|
const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
3728
3732
|
const native = {
|
|
@@ -3749,11 +3753,11 @@
|
|
|
3749
3753
|
const _hoisted_1$5 = { class: "img-upload-content" };
|
|
3750
3754
|
const _hoisted_2$4 = { class: "title-box" };
|
|
3751
3755
|
const _hoisted_3$4 = ["onClick"];
|
|
3752
|
-
const _hoisted_4$
|
|
3756
|
+
const _hoisted_4$3 = {
|
|
3753
3757
|
key: 0,
|
|
3754
3758
|
class: "line"
|
|
3755
3759
|
};
|
|
3756
|
-
const _hoisted_5$
|
|
3760
|
+
const _hoisted_5$2 = {
|
|
3757
3761
|
key: 0,
|
|
3758
3762
|
class: "prompt-restriction"
|
|
3759
3763
|
};
|
|
@@ -3790,29 +3794,32 @@
|
|
|
3790
3794
|
class: "map-depot"
|
|
3791
3795
|
};
|
|
3792
3796
|
const _hoisted_20 = { class: "screen" };
|
|
3793
|
-
const _hoisted_21 =
|
|
3794
|
-
const _hoisted_22 = {
|
|
3795
|
-
const _hoisted_23 =
|
|
3796
|
-
const _hoisted_24 =
|
|
3797
|
+
const _hoisted_21 = /* @__PURE__ */ vue.createTextVNode("\u641C\u7D22");
|
|
3798
|
+
const _hoisted_22 = { key: 0 };
|
|
3799
|
+
const _hoisted_23 = { class: "tab-box" };
|
|
3800
|
+
const _hoisted_24 = ["onClick"];
|
|
3801
|
+
const _hoisted_25 = {
|
|
3797
3802
|
key: 0,
|
|
3798
3803
|
class: "line"
|
|
3799
3804
|
};
|
|
3800
|
-
const
|
|
3801
|
-
const
|
|
3802
|
-
const
|
|
3803
|
-
const
|
|
3805
|
+
const _hoisted_26 = { class: "image-list depot-image" };
|
|
3806
|
+
const _hoisted_27 = ["onClick"];
|
|
3807
|
+
const _hoisted_28 = ["src"];
|
|
3808
|
+
const _hoisted_29 = {
|
|
3804
3809
|
key: 0,
|
|
3805
3810
|
class: "shade"
|
|
3806
3811
|
};
|
|
3807
|
-
const
|
|
3808
|
-
const
|
|
3812
|
+
const _hoisted_30 = { class: "num" };
|
|
3813
|
+
const _hoisted_31 = {
|
|
3809
3814
|
key: 1,
|
|
3810
3815
|
class: "protocol-box"
|
|
3811
3816
|
};
|
|
3812
|
-
const
|
|
3813
|
-
const
|
|
3814
|
-
const
|
|
3815
|
-
|
|
3817
|
+
const _hoisted_32 = /* @__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);
|
|
3818
|
+
const _hoisted_33 = /* @__PURE__ */ vue.createTextVNode(" \u8BF7\u9605\u8BFB");
|
|
3819
|
+
const _hoisted_34 = ["href"];
|
|
3820
|
+
const _hoisted_35 = /* @__PURE__ */ vue.createTextVNode(",\u60A8\u7684\u884C\u4E3A\u89C6\u4E3A\u60A8\u5DF2\u540C\u610F\u8BE5\u534F\u8BAE\u3002 ");
|
|
3821
|
+
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
3822
|
+
name: "index",
|
|
3816
3823
|
props: {
|
|
3817
3824
|
visible: { type: Boolean, default: false },
|
|
3818
3825
|
imgList: { default: [] },
|
|
@@ -3821,8 +3828,7 @@
|
|
|
3821
3828
|
imgNum: { default: 20 }
|
|
3822
3829
|
},
|
|
3823
3830
|
emits: ["update:imgList", "update:visible", "submit"],
|
|
3824
|
-
setup(__props, { emit:
|
|
3825
|
-
const emits = __emit;
|
|
3831
|
+
setup(__props, { emit: emits }) {
|
|
3826
3832
|
const props = __props;
|
|
3827
3833
|
const drag = vue.ref(false);
|
|
3828
3834
|
const imgListTemp = vue.computed({
|
|
@@ -4107,15 +4113,15 @@
|
|
|
4107
4113
|
onClick: ($event) => changeTab(item)
|
|
4108
4114
|
}, [
|
|
4109
4115
|
vue.createTextVNode(vue.toDisplayString(item.value) + " ", 1),
|
|
4110
|
-
item.id === activeTitle.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
4116
|
+
item.id === activeTitle.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3)) : vue.createCommentVNode("", true)
|
|
4111
4117
|
], 10, _hoisted_3$4);
|
|
4112
4118
|
}), 128)),
|
|
4113
|
-
[1, 3].includes(activeTitle.value) && props.imgList.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
4119
|
+
[1, 3].includes(activeTitle.value) && props.imgList.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$2, " \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
4120
|
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)
|
|
4115
4121
|
]),
|
|
4116
4122
|
activeTitle.value === 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
4117
4123
|
vue.createElementVNode("div", _hoisted_8, [
|
|
4118
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(contentImgList
|
|
4124
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(contentImgList), (item, index) => {
|
|
4119
4125
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4120
4126
|
key: index,
|
|
4121
4127
|
class: "image-item",
|
|
@@ -4153,8 +4159,8 @@
|
|
|
4153
4159
|
_hoisted_15
|
|
4154
4160
|
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
|
|
4155
4161
|
vue.createVNode(vue.unref(draggable__default.default), {
|
|
4156
|
-
modelValue: imgListTemp
|
|
4157
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => imgListTemp.value = $event),
|
|
4162
|
+
modelValue: vue.unref(imgListTemp),
|
|
4163
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(imgListTemp) ? imgListTemp.value = $event : null),
|
|
4158
4164
|
handle: ".img-item",
|
|
4159
4165
|
class: "img-wrap",
|
|
4160
4166
|
group: "people",
|
|
@@ -4279,13 +4285,13 @@
|
|
|
4279
4285
|
onClick: search
|
|
4280
4286
|
}, {
|
|
4281
4287
|
default: vue.withCtx(() => [
|
|
4282
|
-
|
|
4288
|
+
_hoisted_21
|
|
4283
4289
|
]),
|
|
4284
4290
|
_: 1
|
|
4285
4291
|
})
|
|
4286
4292
|
]),
|
|
4287
|
-
tabList.value && tabList.value.length ? (vue.openBlock(), vue.createElementBlock("div",
|
|
4288
|
-
vue.createElementVNode("div",
|
|
4293
|
+
tabList.value && tabList.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22, [
|
|
4294
|
+
vue.createElementVNode("div", _hoisted_23, [
|
|
4289
4295
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(tabList.value, (item, index) => {
|
|
4290
4296
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4291
4297
|
key: index,
|
|
@@ -4293,12 +4299,12 @@
|
|
|
4293
4299
|
onClick: ($event) => activeTab.value = item.type
|
|
4294
4300
|
}, [
|
|
4295
4301
|
vue.createTextVNode(vue.toDisplayString(item.name) + " ", 1),
|
|
4296
|
-
item.type === activeTab.value ? (vue.openBlock(), vue.createElementBlock("div",
|
|
4297
|
-
], 10,
|
|
4302
|
+
item.type === activeTab.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_25)) : vue.createCommentVNode("", true)
|
|
4303
|
+
], 10, _hoisted_24);
|
|
4298
4304
|
}), 128))
|
|
4299
4305
|
]),
|
|
4300
|
-
vue.createElementVNode("div",
|
|
4301
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageList
|
|
4306
|
+
vue.createElementVNode("div", _hoisted_26, [
|
|
4307
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(imageList), (item, index) => {
|
|
4302
4308
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4303
4309
|
key: index,
|
|
4304
4310
|
class: "image-item",
|
|
@@ -4308,25 +4314,25 @@
|
|
|
4308
4314
|
src: item.imgOrgUrl,
|
|
4309
4315
|
alt: "",
|
|
4310
4316
|
class: "image"
|
|
4311
|
-
}, null, 8,
|
|
4312
|
-
item.num ? (vue.openBlock(), vue.createElementBlock("div",
|
|
4313
|
-
vue.createElementVNode("div",
|
|
4317
|
+
}, null, 8, _hoisted_28),
|
|
4318
|
+
item.num ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_29, [
|
|
4319
|
+
vue.createElementVNode("div", _hoisted_30, vue.toDisplayString(item.num), 1)
|
|
4314
4320
|
])) : vue.createCommentVNode("", true)
|
|
4315
|
-
], 8,
|
|
4321
|
+
], 8, _hoisted_27);
|
|
4316
4322
|
}), 128))
|
|
4317
4323
|
])
|
|
4318
|
-
])) : (vue.openBlock(), vue.createElementBlock("div",
|
|
4324
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_31, [
|
|
4319
4325
|
vue.createElementVNode("div", null, [
|
|
4320
|
-
|
|
4326
|
+
_hoisted_32,
|
|
4321
4327
|
vue.createElementVNode("div", null, [
|
|
4322
|
-
|
|
4328
|
+
_hoisted_33,
|
|
4323
4329
|
vue.createElementVNode("a", {
|
|
4324
4330
|
href: `https://${vue.unref(hostName)}/about?type=imageLicenseAgreement`,
|
|
4325
4331
|
target: "_blank",
|
|
4326
4332
|
rel: "noopener noreferrer",
|
|
4327
4333
|
class: "link"
|
|
4328
|
-
}, "\u300A\u6469\u6258\u8303\u56FE\u7247\u8BB8\u53EF\u4F7F\u7528\u534F\u8BAE\u300B", 8,
|
|
4329
|
-
|
|
4334
|
+
}, "\u300A\u6469\u6258\u8303\u56FE\u7247\u8BB8\u53EF\u4F7F\u7528\u534F\u8BAE\u300B", 8, _hoisted_34),
|
|
4335
|
+
_hoisted_35
|
|
4330
4336
|
])
|
|
4331
4337
|
])
|
|
4332
4338
|
]))
|
|
@@ -4341,22 +4347,22 @@
|
|
|
4341
4347
|
const index_vue_vue_type_style_index_0_lang$2 = "";
|
|
4342
4348
|
const _hoisted_1$4 = /* @__PURE__ */ vue.createElementVNode("span", null, "\u63D2\u5165\u89C6\u9891", -1);
|
|
4343
4349
|
const _hoisted_2$3 = { class: "insert-video" };
|
|
4344
|
-
const _hoisted_3$3 = /* @__PURE__ */ vue.
|
|
4345
|
-
const
|
|
4346
|
-
|
|
4350
|
+
const _hoisted_3$3 = /* @__PURE__ */ vue.createTextVNode("\u9009\u62E9\u89C6\u9891");
|
|
4351
|
+
const _hoisted_4$2 = /* @__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);
|
|
4352
|
+
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
4353
|
+
name: "index",
|
|
4347
4354
|
props: {
|
|
4348
4355
|
visible: { type: Boolean, default: false },
|
|
4349
|
-
fileSelected:
|
|
4356
|
+
fileSelected: null
|
|
4350
4357
|
},
|
|
4351
4358
|
emits: ["update:visible"],
|
|
4352
|
-
setup(__props, { emit:
|
|
4353
|
-
const
|
|
4359
|
+
setup(__props, { emit: emits }) {
|
|
4360
|
+
const props = __props;
|
|
4354
4361
|
vue.provide("vm", {
|
|
4355
4362
|
setStatus(val) {
|
|
4356
4363
|
emits("update:visible", val);
|
|
4357
4364
|
}
|
|
4358
4365
|
});
|
|
4359
|
-
const props = __props;
|
|
4360
4366
|
const { visible, fileSelected } = vue.toRefs(props);
|
|
4361
4367
|
const emitEvent = () => {
|
|
4362
4368
|
var event = new MouseEvent("click");
|
|
@@ -4382,11 +4388,11 @@
|
|
|
4382
4388
|
onClick: emitEvent
|
|
4383
4389
|
}, {
|
|
4384
4390
|
default: vue.withCtx(() => [
|
|
4385
|
-
|
|
4391
|
+
_hoisted_3$3
|
|
4386
4392
|
]),
|
|
4387
4393
|
_: 1
|
|
4388
4394
|
}),
|
|
4389
|
-
|
|
4395
|
+
_hoisted_4$2,
|
|
4390
4396
|
vue.createElementVNode("input", {
|
|
4391
4397
|
type: "file",
|
|
4392
4398
|
accept: "video/*",
|
|
@@ -5368,8 +5374,8 @@
|
|
|
5368
5374
|
};
|
|
5369
5375
|
const _hoisted_2$1 = ["src"];
|
|
5370
5376
|
const _hoisted_3$1 = { class: "article-item_right" };
|
|
5371
|
-
const _hoisted_4 = { class: "name" };
|
|
5372
|
-
const _hoisted_5 = { class: "score" };
|
|
5377
|
+
const _hoisted_4$1 = { class: "name" };
|
|
5378
|
+
const _hoisted_5$1 = { class: "score" };
|
|
5373
5379
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5374
5380
|
const _component_el_icon_error = vue.resolveComponent("el-icon-error");
|
|
5375
5381
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
@@ -5379,8 +5385,8 @@
|
|
|
5379
5385
|
alt: ""
|
|
5380
5386
|
}, null, 8, _hoisted_2$1)) : vue.createCommentVNode("", true),
|
|
5381
5387
|
vue.createElementVNode("div", _hoisted_3$1, [
|
|
5382
|
-
vue.createElementVNode("div", _hoisted_4, vue.toDisplayString($props.article.title), 1),
|
|
5383
|
-
vue.createElementVNode("div", _hoisted_5, [
|
|
5388
|
+
vue.createElementVNode("div", _hoisted_4$1, vue.toDisplayString($props.article.title), 1),
|
|
5389
|
+
vue.createElementVNode("div", _hoisted_5$1, [
|
|
5384
5390
|
vue.createElementVNode("span", null, vue.toDisplayString($props.article.author), 1),
|
|
5385
5391
|
vue.createElementVNode("span", null, vue.toDisplayString($props.article.viewNum) + "\u6D4F\u89C8", 1),
|
|
5386
5392
|
vue.createElementVNode("span", null, vue.toDisplayString($props.article.replycnt) + "\u8BC4\u8BBA", 1)
|
|
@@ -5398,7 +5404,7 @@
|
|
|
5398
5404
|
}, " \u5E73\u53F0\u4EC5\u652F\u6301\u5C55\u793A18\u4E2A\u6708\u7684\u63A8\u8350\u5185\u5BB9 ", 2)) : vue.createCommentVNode("", true)
|
|
5399
5405
|
]);
|
|
5400
5406
|
}
|
|
5401
|
-
const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
5407
|
+
const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-45d58d86"]]);
|
|
5402
5408
|
const mountArticleDom = (props, del) => {
|
|
5403
5409
|
const className = "article-wrap";
|
|
5404
5410
|
const article = props.article;
|
|
@@ -5491,6 +5497,7 @@
|
|
|
5491
5497
|
editor: {},
|
|
5492
5498
|
editorDom: {},
|
|
5493
5499
|
uploadStore: {},
|
|
5500
|
+
failedUploads: [],
|
|
5494
5501
|
linkContent: "",
|
|
5495
5502
|
loadingText: "",
|
|
5496
5503
|
progressPercent: "",
|
|
@@ -7091,6 +7098,7 @@
|
|
|
7091
7098
|
const uploads = document.querySelectorAll(".no-upload") || [];
|
|
7092
7099
|
me2.uploadStore = {};
|
|
7093
7100
|
me2.currentIndex = 0;
|
|
7101
|
+
me2.failedUploads = [];
|
|
7094
7102
|
Array.from(uploads).map((_, index) => {
|
|
7095
7103
|
const id = _.getAttribute("id");
|
|
7096
7104
|
const key = index + "|" + id;
|
|
@@ -7154,6 +7162,12 @@
|
|
|
7154
7162
|
upload && upload.click();
|
|
7155
7163
|
};
|
|
7156
7164
|
}
|
|
7165
|
+
const imgId = currentImg2.getAttribute("id") || "";
|
|
7166
|
+
const imgSrc = currentImg2.getAttribute("src") || "";
|
|
7167
|
+
const failedInfo = { id: imgId, src: imgSrc, element: currentImg2 };
|
|
7168
|
+
if (!me2.failedUploads.find((item) => item.id === imgId)) {
|
|
7169
|
+
me2.failedUploads.push(failedInfo);
|
|
7170
|
+
}
|
|
7157
7171
|
};
|
|
7158
7172
|
return this.uploadImageByOther({
|
|
7159
7173
|
itemId,
|
|
@@ -7197,6 +7211,32 @@
|
|
|
7197
7211
|
parent.appendChild(arr[0]);
|
|
7198
7212
|
parent.appendChild(arr[2]);
|
|
7199
7213
|
}
|
|
7214
|
+
const imgId = currentImg.getAttribute("id") || "";
|
|
7215
|
+
this.failedUploads = this.failedUploads.filter((item) => item.id !== imgId);
|
|
7216
|
+
},
|
|
7217
|
+
scrollToFirstFailedImage() {
|
|
7218
|
+
this.failedUploads = this.failedUploads.filter((item) => {
|
|
7219
|
+
return item.element && document.body.contains(item.element);
|
|
7220
|
+
});
|
|
7221
|
+
if (this.failedUploads.length === 0) {
|
|
7222
|
+
return false;
|
|
7223
|
+
}
|
|
7224
|
+
let firstFailed = null;
|
|
7225
|
+
let minPosition = Infinity;
|
|
7226
|
+
for (const item of this.failedUploads) {
|
|
7227
|
+
if (item.element) {
|
|
7228
|
+
const position = item.element.getBoundingClientRect().top;
|
|
7229
|
+
if (position < minPosition) {
|
|
7230
|
+
minPosition = position;
|
|
7231
|
+
firstFailed = item;
|
|
7232
|
+
}
|
|
7233
|
+
}
|
|
7234
|
+
}
|
|
7235
|
+
if (firstFailed && firstFailed.element) {
|
|
7236
|
+
firstFailed.element.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
7237
|
+
return true;
|
|
7238
|
+
}
|
|
7239
|
+
return false;
|
|
7200
7240
|
},
|
|
7201
7241
|
getSticker(type, handler) {
|
|
7202
7242
|
this.setSticker(type.fragment.children);
|
|
@@ -7846,6 +7886,8 @@
|
|
|
7846
7886
|
slot: "footer",
|
|
7847
7887
|
class: "dialog-footer"
|
|
7848
7888
|
};
|
|
7889
|
+
const _hoisted_4 = /* @__PURE__ */ vue.createTextVNode("\u53D6 \u6D88");
|
|
7890
|
+
const _hoisted_5 = /* @__PURE__ */ vue.createTextVNode("\u786E \u5B9A");
|
|
7849
7891
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7850
7892
|
const _component_el_input = vue.resolveComponent("el-input");
|
|
7851
7893
|
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
@@ -7919,7 +7961,7 @@
|
|
|
7919
7961
|
onClick: _cache[3] || (_cache[3] = ($event) => $data.viewLinkDialog = false)
|
|
7920
7962
|
}, {
|
|
7921
7963
|
default: vue.withCtx(() => [
|
|
7922
|
-
|
|
7964
|
+
_hoisted_4
|
|
7923
7965
|
]),
|
|
7924
7966
|
_: 1
|
|
7925
7967
|
}),
|
|
@@ -7928,7 +7970,7 @@
|
|
|
7928
7970
|
onClick: $options.insertLink
|
|
7929
7971
|
}, {
|
|
7930
7972
|
default: vue.withCtx(() => [
|
|
7931
|
-
|
|
7973
|
+
_hoisted_5
|
|
7932
7974
|
]),
|
|
7933
7975
|
_: 1
|
|
7934
7976
|
}, 8, ["onClick"])
|
|
@@ -7946,7 +7988,7 @@
|
|
|
7946
7988
|
}, null, 8, ["article", "visible", "getList", "onDelete", "onChange"]),
|
|
7947
7989
|
vue.createVNode(_component_ImgUpload, {
|
|
7948
7990
|
"img-list": $data.imgList,
|
|
7949
|
-
"onUpdate:
|
|
7991
|
+
"onUpdate:img-list": _cache[6] || (_cache[6] = ($event) => $data.imgList = $event),
|
|
7950
7992
|
visible: $data.visibleImg,
|
|
7951
7993
|
"onUpdate:visible": _cache[7] || (_cache[7] = ($event) => $data.visibleImg = $event),
|
|
7952
7994
|
chartGallery: $props.chartGallery,
|
|
@@ -7961,7 +8003,7 @@
|
|
|
7961
8003
|
}, null, 8, ["visible", "file-selected"]),
|
|
7962
8004
|
vue.createVNode(_component_CollectArticle, {
|
|
7963
8005
|
"link-content": $data.linkContent,
|
|
7964
|
-
"onUpdate:
|
|
8006
|
+
"onUpdate:link-content": _cache[9] || (_cache[9] = ($event) => $data.linkContent = $event),
|
|
7965
8007
|
visible: $data.visibleCollectArticle,
|
|
7966
8008
|
"onUpdate:visible": _cache[10] || (_cache[10] = ($event) => $data.visibleCollectArticle = $event),
|
|
7967
8009
|
onSubmit: $options.confirmLink
|