@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.js
CHANGED
|
@@ -525,9 +525,9 @@ const _hoisted_1$8 = {
|
|
|
525
525
|
};
|
|
526
526
|
const _hoisted_2$7 = { class: "tools-content" };
|
|
527
527
|
const _hoisted_3$7 = ["src"];
|
|
528
|
-
const _hoisted_4$
|
|
529
|
-
const _hoisted_5$
|
|
530
|
-
const _hoisted_6$
|
|
528
|
+
const _hoisted_4$6 = ["src"];
|
|
529
|
+
const _hoisted_5$5 = ["src"];
|
|
530
|
+
const _hoisted_6$3 = { class: "box" };
|
|
531
531
|
const _hoisted_7$2 = ["src"];
|
|
532
532
|
const _hoisted_8$2 = {
|
|
533
533
|
key: 0,
|
|
@@ -537,10 +537,10 @@ const _hoisted_9$2 = { class: "tools-title" };
|
|
|
537
537
|
const _hoisted_10$2 = ["src"];
|
|
538
538
|
const _hoisted_11$2 = { class: "tools-font" };
|
|
539
539
|
const _hoisted_12$2 = ["onClick"];
|
|
540
|
-
const _hoisted_13$
|
|
541
|
-
const _hoisted_14$
|
|
542
|
-
const _hoisted_15$
|
|
543
|
-
const _hoisted_16$
|
|
540
|
+
const _hoisted_13$2 = { style: { "font-size": "10px" } };
|
|
541
|
+
const _hoisted_14$2 = { class: "box" };
|
|
542
|
+
const _hoisted_15$2 = ["src"];
|
|
543
|
+
const _hoisted_16$2 = {
|
|
544
544
|
key: 0,
|
|
545
545
|
class: "box-mask"
|
|
546
546
|
};
|
|
@@ -569,9 +569,9 @@ const _hoisted_29$1 = {
|
|
|
569
569
|
const _hoisted_30$1 = { class: "box" };
|
|
570
570
|
const _hoisted_31$1 = ["src"];
|
|
571
571
|
const _hoisted_32$1 = ["src"];
|
|
572
|
-
const _hoisted_33 = ["src"];
|
|
573
|
-
const _hoisted_34 = ["src"];
|
|
574
|
-
const _hoisted_35 = { class: "tools-title" };
|
|
572
|
+
const _hoisted_33$1 = ["src"];
|
|
573
|
+
const _hoisted_34$1 = ["src"];
|
|
574
|
+
const _hoisted_35$1 = { class: "tools-title" };
|
|
575
575
|
const _hoisted_36 = ["src"];
|
|
576
576
|
const _hoisted_37 = ["src"];
|
|
577
577
|
const _hoisted_38 = { class: "tools-title_content" };
|
|
@@ -627,7 +627,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
627
627
|
height: "40",
|
|
628
628
|
alt: "",
|
|
629
629
|
onClick: _cache[1] || (_cache[1] = ($event) => $options.forward($event))
|
|
630
|
-
}, null, 12, _hoisted_4$
|
|
630
|
+
}, null, 12, _hoisted_4$6)
|
|
631
631
|
]),
|
|
632
632
|
_: 1
|
|
633
633
|
}),
|
|
@@ -648,7 +648,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
648
648
|
height: "40",
|
|
649
649
|
alt: "",
|
|
650
650
|
onClick: _cache[2] || (_cache[2] = (...args) => $options.clearFormat && $options.clearFormat(...args))
|
|
651
|
-
}, null, 8, _hoisted_5$
|
|
651
|
+
}, null, 8, _hoisted_5$5)
|
|
652
652
|
]),
|
|
653
653
|
_: 1
|
|
654
654
|
}),
|
|
@@ -659,7 +659,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
659
659
|
placement: "top"
|
|
660
660
|
}, {
|
|
661
661
|
default: withCtx(() => [
|
|
662
|
-
createElementVNode("div", _hoisted_6$
|
|
662
|
+
createElementVNode("div", _hoisted_6$3, [
|
|
663
663
|
createElementVNode("img", {
|
|
664
664
|
src: $options.getImageUrl("tools_refresh@3x.png"),
|
|
665
665
|
width: "40",
|
|
@@ -720,7 +720,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
720
720
|
createElementVNode("span", {
|
|
721
721
|
style: normalizeStyle({ fontSize: item.value })
|
|
722
722
|
}, toDisplayString(item.name), 5),
|
|
723
|
-
createElementVNode("span", _hoisted_13$
|
|
723
|
+
createElementVNode("span", _hoisted_13$2, toDisplayString(item.desc), 1)
|
|
724
724
|
], 10, _hoisted_12$2);
|
|
725
725
|
}), 128))
|
|
726
726
|
])), [
|
|
@@ -740,7 +740,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
740
740
|
placement: "top"
|
|
741
741
|
}, {
|
|
742
742
|
default: withCtx(() => [
|
|
743
|
-
createElementVNode("div", _hoisted_14$
|
|
743
|
+
createElementVNode("div", _hoisted_14$2, [
|
|
744
744
|
createElementVNode("img", {
|
|
745
745
|
src: $options.getImageUrl("tools_title@3x.png"),
|
|
746
746
|
"data-editor-id": "makeHeader",
|
|
@@ -748,8 +748,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
748
748
|
height: "40",
|
|
749
749
|
alt: "",
|
|
750
750
|
onClick: _cache[5] || (_cache[5] = ($event) => $options.setTitle($event, $data.statusInfo.title ? 0 : 1))
|
|
751
|
-
}, null, 8, _hoisted_15$
|
|
752
|
-
$data.statusInfo && $data.statusInfo.title ? (openBlock(), createElementBlock("div", _hoisted_16$
|
|
751
|
+
}, null, 8, _hoisted_15$2),
|
|
752
|
+
$data.statusInfo && $data.statusInfo.title ? (openBlock(), createElementBlock("div", _hoisted_16$2)) : createCommentVNode("", true)
|
|
753
753
|
])
|
|
754
754
|
]),
|
|
755
755
|
_: 1
|
|
@@ -926,13 +926,13 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
926
926
|
width: "24",
|
|
927
927
|
height: "40",
|
|
928
928
|
alt: ""
|
|
929
|
-
}, null, 8, _hoisted_33),
|
|
929
|
+
}, null, 8, _hoisted_33$1),
|
|
930
930
|
createElementVNode("img", {
|
|
931
931
|
src: $options.getImageUrl("tools_arrow@3x.png"),
|
|
932
932
|
width: "16",
|
|
933
933
|
height: "40",
|
|
934
934
|
alt: ""
|
|
935
|
-
}, null, 8, _hoisted_34),
|
|
935
|
+
}, null, 8, _hoisted_34$1),
|
|
936
936
|
createVNode(_component_colorPicker, {
|
|
937
937
|
ref: "colorPicker",
|
|
938
938
|
modelValue: $data.color,
|
|
@@ -953,7 +953,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
953
953
|
width: "152"
|
|
954
954
|
}, {
|
|
955
955
|
reference: withCtx(() => [
|
|
956
|
-
createElementVNode("div", _hoisted_35, [
|
|
956
|
+
createElementVNode("div", _hoisted_35$1, [
|
|
957
957
|
createVNode(_component_el_tooltip, {
|
|
958
958
|
class: "item",
|
|
959
959
|
effect: "dark",
|
|
@@ -1105,18 +1105,20 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1105
1105
|
])
|
|
1106
1106
|
])) : createCommentVNode("", true);
|
|
1107
1107
|
}
|
|
1108
|
-
const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$4], ["__scopeId", "data-v-
|
|
1108
|
+
const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$4], ["__scopeId", "data-v-24d161f2"]]);
|
|
1109
1109
|
const __vite_glob_0_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAmCAYAAAClI5npAAAA0UlEQVR42uWYwQnDMAxFfckAXkFDmGzgS1foDpnFS3gTb+IFtIDyA4UeBKUtNR8qwTvlkAdyfmSletySmRUwgIIJOijXs9VcLxegwNVDRFYLdHtdCg6wrRKY9l4NUFYIqH1WDeTfCXxXE9w5Ar4tQhBwh7SBjSDg2lJJAj47SAI+OwgC7pDuJAGfHQQBnx0kAZ8dBAF3SOtTgCchybjV2QLKFpihW6BAQn6GA0i4KG4g037H4QaSDiTWUMocyweQcFezBjLrer5TFxR/uaKhL6lOdeUQ8G6X1pQAAAAASUVORK5CYII=";
|
|
1110
1110
|
const index_vue_vue_type_style_index_0_lang$5 = "";
|
|
1111
1111
|
const _hoisted_1$7 = { key: 0 };
|
|
1112
1112
|
const _hoisted_2$6 = { class: "basic-dialog_title" };
|
|
1113
1113
|
const _hoisted_3$6 = /* @__PURE__ */ createElementVNode("span", { class: "basic-dialog_divider" }, null, -1);
|
|
1114
|
-
const _hoisted_4$
|
|
1114
|
+
const _hoisted_4$5 = {
|
|
1115
1115
|
key: 0,
|
|
1116
1116
|
class: "dialog-footer"
|
|
1117
1117
|
};
|
|
1118
|
-
const
|
|
1119
|
-
|
|
1118
|
+
const _hoisted_5$4 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
|
|
1119
|
+
const _hoisted_6$2 = /* @__PURE__ */ createTextVNode("\u786E\u8BA4");
|
|
1120
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1121
|
+
name: "index",
|
|
1120
1122
|
props: {
|
|
1121
1123
|
visible: { type: Boolean, default: false },
|
|
1122
1124
|
showBtn: { type: Boolean, default: true },
|
|
@@ -1124,10 +1126,9 @@ const _sfc_main$7 = defineComponent({
|
|
|
1124
1126
|
showTitle: { type: Boolean, default: true }
|
|
1125
1127
|
},
|
|
1126
1128
|
emits: ["submit", "cancel"],
|
|
1127
|
-
setup(__props, { emit:
|
|
1129
|
+
setup(__props, { emit: emits }) {
|
|
1128
1130
|
const props = __props;
|
|
1129
1131
|
const parent = inject("vm");
|
|
1130
|
-
const emits = __emit;
|
|
1131
1132
|
const handleClose = () => {
|
|
1132
1133
|
var _a;
|
|
1133
1134
|
(_a = parent.setStatus) == null ? void 0 : _a.call(parent, false);
|
|
@@ -1149,14 +1150,14 @@ const _sfc_main$7 = defineComponent({
|
|
|
1149
1150
|
});
|
|
1150
1151
|
return (_ctx, _cache) => {
|
|
1151
1152
|
return openBlock(), createBlock(unref(ElDialog), {
|
|
1152
|
-
modelValue: dialogVisible
|
|
1153
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
|
|
1153
|
+
modelValue: unref(dialogVisible),
|
|
1154
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(dialogVisible) ? dialogVisible.value = $event : null),
|
|
1154
1155
|
"before-close": handleClose,
|
|
1155
|
-
width:
|
|
1156
|
-
class: normalizeClass(["basic-dialog", { "hide-title": !
|
|
1156
|
+
width: __props.width,
|
|
1157
|
+
class: normalizeClass(["basic-dialog", { "hide-title": !__props.showTitle }])
|
|
1157
1158
|
}, {
|
|
1158
1159
|
header: withCtx(() => [
|
|
1159
|
-
|
|
1160
|
+
__props.showTitle ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
1160
1161
|
createElementVNode("div", _hoisted_2$6, [
|
|
1161
1162
|
_hoisted_3$6,
|
|
1162
1163
|
renderSlot(_ctx.$slots, "title")
|
|
@@ -1164,7 +1165,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
1164
1165
|
])) : createCommentVNode("", true)
|
|
1165
1166
|
]),
|
|
1166
1167
|
footer: withCtx(() => [
|
|
1167
|
-
|
|
1168
|
+
__props.showBtn ? (openBlock(), createElementBlock("span", _hoisted_4$5, [
|
|
1168
1169
|
createVNode(unref(ElButton), {
|
|
1169
1170
|
style: { "width": "120px", "border-color": "#cccccc", "color": "#333333" },
|
|
1170
1171
|
plain: "",
|
|
@@ -1172,7 +1173,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
1172
1173
|
onClick: handleClose
|
|
1173
1174
|
}, {
|
|
1174
1175
|
default: withCtx(() => [
|
|
1175
|
-
|
|
1176
|
+
_hoisted_5$4
|
|
1176
1177
|
]),
|
|
1177
1178
|
_: 1
|
|
1178
1179
|
}),
|
|
@@ -1183,7 +1184,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
1183
1184
|
onClick: confirm
|
|
1184
1185
|
}, {
|
|
1185
1186
|
default: withCtx(() => [
|
|
1186
|
-
|
|
1187
|
+
_hoisted_6$2
|
|
1187
1188
|
]),
|
|
1188
1189
|
_: 1
|
|
1189
1190
|
})
|
|
@@ -1206,7 +1207,7 @@ Object.defineProperty(date$1.exports, "__esModule", { value: true });
|
|
|
1206
1207
|
function replacementDate(data, fmt) {
|
|
1207
1208
|
for (var k in data) {
|
|
1208
1209
|
if (new RegExp("(" + k + ")").test(fmt)) {
|
|
1209
|
-
fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? data[k] : "00"
|
|
1210
|
+
fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? data[k] : ("00" + data[k]).substr(("" + data[k]).length));
|
|
1210
1211
|
}
|
|
1211
1212
|
}
|
|
1212
1213
|
return fmt;
|
|
@@ -1249,7 +1250,7 @@ var DateClass = function() {
|
|
|
1249
1250
|
};
|
|
1250
1251
|
fmt = replacementYear(timeData, fmt);
|
|
1251
1252
|
if (/(E+)/.test(fmt)) {
|
|
1252
|
-
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "\u661F\u671F" : "\u5468" : "") + week[
|
|
1253
|
+
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "\u661F\u671F" : "\u5468" : "") + week[timeData.getDay() + " "]);
|
|
1253
1254
|
}
|
|
1254
1255
|
return replacementDate(o, fmt);
|
|
1255
1256
|
};
|
|
@@ -1270,10 +1271,10 @@ var DateClass = function() {
|
|
|
1270
1271
|
if (ts <= 0)
|
|
1271
1272
|
return false;
|
|
1272
1273
|
return {
|
|
1273
|
-
dd: dd < 10 ? "0"
|
|
1274
|
-
hh: hh < 10 ? "0"
|
|
1275
|
-
mm: mm < 10 ? "0"
|
|
1276
|
-
ss: ss < 10 ? "0"
|
|
1274
|
+
dd: dd < 10 ? "0" + dd : dd,
|
|
1275
|
+
hh: hh < 10 ? "0" + hh : hh,
|
|
1276
|
+
mm: mm < 10 ? "0" + mm : mm,
|
|
1277
|
+
ss: ss < 10 ? "0" + ss : ss
|
|
1277
1278
|
};
|
|
1278
1279
|
};
|
|
1279
1280
|
DateClass2.prototype.formatPassTime = function(startTime) {
|
|
@@ -1281,19 +1282,19 @@ var DateClass = function() {
|
|
|
1281
1282
|
var time = currentTime - startTime;
|
|
1282
1283
|
var year = Math.floor(time / (1e3 * 60 * 60 * 24) / 30 / 12);
|
|
1283
1284
|
if (year)
|
|
1284
|
-
return
|
|
1285
|
+
return year + "\u5E74\u524D";
|
|
1285
1286
|
var month = Math.floor(time / (1e3 * 60 * 60 * 24) / 30);
|
|
1286
1287
|
if (month)
|
|
1287
|
-
return
|
|
1288
|
+
return month + "\u4E2A\u6708\u524D";
|
|
1288
1289
|
var day = Math.floor(time / (1e3 * 60 * 60 * 24));
|
|
1289
1290
|
if (day)
|
|
1290
|
-
return
|
|
1291
|
+
return day + "\u5929\u524D";
|
|
1291
1292
|
var hour = Math.floor(time / (1e3 * 60 * 60));
|
|
1292
1293
|
if (hour)
|
|
1293
|
-
return
|
|
1294
|
+
return hour + "\u5C0F\u65F6\u524D";
|
|
1294
1295
|
var min = Math.floor(time / (1e3 * 60));
|
|
1295
1296
|
if (min)
|
|
1296
|
-
return
|
|
1297
|
+
return min + "\u5206\u949F\u524D";
|
|
1297
1298
|
else
|
|
1298
1299
|
return "\u521A\u521A";
|
|
1299
1300
|
};
|
|
@@ -3164,13 +3165,13 @@ function requireCloneDeep() {
|
|
|
3164
3165
|
return cloneDeep_1;
|
|
3165
3166
|
}
|
|
3166
3167
|
/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3167
|
-
var
|
|
3168
|
-
var
|
|
3169
|
-
function
|
|
3170
|
-
if (
|
|
3171
|
-
return
|
|
3172
|
-
|
|
3173
|
-
|
|
3168
|
+
var clipboardCopy_1;
|
|
3169
|
+
var hasRequiredClipboardCopy;
|
|
3170
|
+
function requireClipboardCopy() {
|
|
3171
|
+
if (hasRequiredClipboardCopy)
|
|
3172
|
+
return clipboardCopy_1;
|
|
3173
|
+
hasRequiredClipboardCopy = 1;
|
|
3174
|
+
clipboardCopy_1 = clipboardCopy;
|
|
3174
3175
|
function makeError() {
|
|
3175
3176
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
3176
3177
|
}
|
|
@@ -3213,7 +3214,7 @@ function require_clipboardCopy_4_0_1_clipboardCopy() {
|
|
|
3213
3214
|
}
|
|
3214
3215
|
}
|
|
3215
3216
|
}
|
|
3216
|
-
return
|
|
3217
|
+
return clipboardCopy_1;
|
|
3217
3218
|
}
|
|
3218
3219
|
Object.defineProperty(tools$1.exports, "__esModule", { value: true });
|
|
3219
3220
|
var previous = 0;
|
|
@@ -3232,7 +3233,7 @@ var ToolsClass = function() {
|
|
|
3232
3233
|
body.style.overflow = "hidden";
|
|
3233
3234
|
body.style.height = "100%";
|
|
3234
3235
|
if (className) {
|
|
3235
|
-
var dom = document.querySelector("."
|
|
3236
|
+
var dom = document.querySelector("." + className);
|
|
3236
3237
|
dom && dom.addEventListener("touchmove", _this.__setDefault__);
|
|
3237
3238
|
}
|
|
3238
3239
|
};
|
|
@@ -3247,7 +3248,7 @@ var ToolsClass = function() {
|
|
|
3247
3248
|
body.style.overflow = "visible";
|
|
3248
3249
|
body.style.height = "auto";
|
|
3249
3250
|
if (className) {
|
|
3250
|
-
var dom = document.querySelector("."
|
|
3251
|
+
var dom = document.querySelector("." + className);
|
|
3251
3252
|
dom && dom.removeEventListener("touchmove", _this.__setDefault__);
|
|
3252
3253
|
}
|
|
3253
3254
|
};
|
|
@@ -3375,7 +3376,7 @@ var ToolsClass = function() {
|
|
|
3375
3376
|
if (!(window && window.document)) {
|
|
3376
3377
|
return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
|
|
3377
3378
|
}
|
|
3378
|
-
var copy =
|
|
3379
|
+
var copy = requireClipboardCopy();
|
|
3379
3380
|
return copy(str);
|
|
3380
3381
|
};
|
|
3381
3382
|
ToolsClass2.prototype.firstUpperCase = function(str) {
|
|
@@ -3461,44 +3462,49 @@ var ToolsClass = function() {
|
|
|
3461
3462
|
sensitiveLen = 0;
|
|
3462
3463
|
}
|
|
3463
3464
|
var regItem = "[\u4E00-\u9FA5a-zA-Z0-9]";
|
|
3464
|
-
var regExp = "("
|
|
3465
|
+
var regExp = "(" + regItem + "{" + before + "})" + regItem + "*(" + regItem + "{" + after + "})";
|
|
3465
3466
|
var reg = new RegExp(regExp);
|
|
3466
|
-
return field.replace(reg, "$1"
|
|
3467
|
+
return field.replace(reg, "$1" + "*".repeat(sensitiveLen) + "$2");
|
|
3467
3468
|
};
|
|
3468
3469
|
return ToolsClass2;
|
|
3469
3470
|
}();
|
|
3470
3471
|
tools$1.exports = new ToolsClass();
|
|
3471
3472
|
const tools = /* @__PURE__ */ getDefaultExportFromCjs(tools$1.exports);
|
|
3472
3473
|
const index_vue_vue_type_style_index_0_lang$4 = "";
|
|
3473
|
-
const _hoisted_1$6 =
|
|
3474
|
-
const _hoisted_2$5 = {
|
|
3475
|
-
const _hoisted_3$5 = { class: "insert-
|
|
3476
|
-
const _hoisted_4$
|
|
3474
|
+
const _hoisted_1$6 = /* @__PURE__ */ createTextVNode("\u63D2\u5165\u6587\u7AE0/\u89C6\u9891");
|
|
3475
|
+
const _hoisted_2$5 = { style: { "margin-left": "20px", "color": "#FF5A25" } };
|
|
3476
|
+
const _hoisted_3$5 = { class: "insert-article" };
|
|
3477
|
+
const _hoisted_4$4 = /* @__PURE__ */ createTextVNode("\u4ECE\u6211\u7684\u6587\u7AE0\u4E2D\u9009\u62E9");
|
|
3478
|
+
const _hoisted_5$3 = /* @__PURE__ */ createTextVNode("\u4ECE\u6211\u7684\u89C6\u9891\u4E2D\u9009\u62E9");
|
|
3479
|
+
const _hoisted_6$1 = /* @__PURE__ */ createTextVNode("\u4ECE\u6240\u6709\u6587\u7AE0\u4E2D\u9009\u62E9");
|
|
3480
|
+
const _hoisted_7$1 = { class: "insert-article_input" };
|
|
3481
|
+
const _hoisted_8$1 = {
|
|
3477
3482
|
key: 0,
|
|
3478
3483
|
class: "nodata"
|
|
3479
3484
|
};
|
|
3480
|
-
const
|
|
3481
|
-
const
|
|
3485
|
+
const _hoisted_9$1 = ["infinite-scroll-disabled"];
|
|
3486
|
+
const _hoisted_10$1 = {
|
|
3482
3487
|
key: 0,
|
|
3483
3488
|
class: "video-item"
|
|
3484
3489
|
};
|
|
3485
|
-
const
|
|
3486
|
-
const
|
|
3487
|
-
const
|
|
3488
|
-
const
|
|
3489
|
-
const
|
|
3490
|
-
const
|
|
3490
|
+
const _hoisted_11$1 = { class: "video-pic" };
|
|
3491
|
+
const _hoisted_12$1 = ["src"];
|
|
3492
|
+
const _hoisted_13$1 = ["src"];
|
|
3493
|
+
const _hoisted_14$1 = { class: "video-text" };
|
|
3494
|
+
const _hoisted_15$1 = { class: "dotdotdot2" };
|
|
3495
|
+
const _hoisted_16$1 = {
|
|
3491
3496
|
key: 1,
|
|
3492
3497
|
style: { "display": "inline-flex", "flex-direction": "column" }
|
|
3493
3498
|
};
|
|
3494
|
-
const _sfc_main$6 = defineComponent({
|
|
3495
|
-
|
|
3499
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
3500
|
+
name: "index",
|
|
3496
3501
|
props: {
|
|
3497
3502
|
visible: { type: Boolean, default: false },
|
|
3498
|
-
getList:
|
|
3503
|
+
getList: null
|
|
3499
3504
|
},
|
|
3500
3505
|
emits: ["change", "submit", "update:visible"],
|
|
3501
|
-
setup(__props, { emit:
|
|
3506
|
+
setup(__props, { emit: emits }) {
|
|
3507
|
+
const props = __props;
|
|
3502
3508
|
const { debounce } = tools;
|
|
3503
3509
|
const vInfiniteScroll = ElInfiniteScroll;
|
|
3504
3510
|
const Radio_Type = {
|
|
@@ -3517,9 +3523,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
3517
3523
|
emits("update:visible", val);
|
|
3518
3524
|
}
|
|
3519
3525
|
});
|
|
3520
|
-
const props = __props;
|
|
3521
3526
|
const { visible, getList } = toRefs(props);
|
|
3522
|
-
const emits = __emit;
|
|
3523
3527
|
const data = reactive({
|
|
3524
3528
|
params: {
|
|
3525
3529
|
autherid: "",
|
|
@@ -3593,12 +3597,12 @@ const _sfc_main$6 = defineComponent({
|
|
|
3593
3597
|
}, {
|
|
3594
3598
|
title: withCtx(() => [
|
|
3595
3599
|
createElementVNode("span", null, [
|
|
3596
|
-
|
|
3597
|
-
createElementVNode("strong",
|
|
3600
|
+
_hoisted_1$6,
|
|
3601
|
+
createElementVNode("strong", _hoisted_2$5, "\u5E73\u53F0\u4EC5\u652F\u6301\u63D2\u5165" + toDisplayString(`${unref(isVideo) ? "2\u5E74" : "18\u4E2A\u6708"}`) + "\u5185\u7684\u63A8\u8350\u5185\u5BB9", 1)
|
|
3598
3602
|
])
|
|
3599
3603
|
]),
|
|
3600
3604
|
default: withCtx(() => [
|
|
3601
|
-
createElementVNode("div",
|
|
3605
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
3602
3606
|
createElementVNode("div", null, [
|
|
3603
3607
|
createVNode(unref(ElRadio), {
|
|
3604
3608
|
modelValue: data.params.radio,
|
|
@@ -3606,7 +3610,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
3606
3610
|
label: Radio_Type.MY_ARITICLE
|
|
3607
3611
|
}, {
|
|
3608
3612
|
default: withCtx(() => [
|
|
3609
|
-
|
|
3613
|
+
_hoisted_4$4
|
|
3610
3614
|
]),
|
|
3611
3615
|
_: 1
|
|
3612
3616
|
}, 8, ["modelValue", "label"]),
|
|
@@ -3616,7 +3620,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
3616
3620
|
label: Radio_Type.MY_VIDEO
|
|
3617
3621
|
}, {
|
|
3618
3622
|
default: withCtx(() => [
|
|
3619
|
-
|
|
3623
|
+
_hoisted_5$3
|
|
3620
3624
|
]),
|
|
3621
3625
|
_: 1
|
|
3622
3626
|
}, 8, ["modelValue", "label"]),
|
|
@@ -3626,16 +3630,16 @@ const _sfc_main$6 = defineComponent({
|
|
|
3626
3630
|
label: Radio_Type.ALL_ARITICLE
|
|
3627
3631
|
}, {
|
|
3628
3632
|
default: withCtx(() => [
|
|
3629
|
-
|
|
3633
|
+
_hoisted_6$1
|
|
3630
3634
|
]),
|
|
3631
3635
|
_: 1
|
|
3632
3636
|
}, 8, ["modelValue", "label"])
|
|
3633
3637
|
]),
|
|
3634
|
-
createElementVNode("div",
|
|
3638
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
3635
3639
|
createVNode(unref(ElInput), {
|
|
3636
3640
|
modelValue: data.params.title,
|
|
3637
3641
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => data.params.title = $event),
|
|
3638
|
-
placeholder: isVideo
|
|
3642
|
+
placeholder: unref(isVideo) ? "\u8F93\u5165\u89C6\u9891\u63CF\u8FF0\u67E5\u627E\u5E73\u53F0\u53D1\u5E03\u8FC7\u7684\u89C6\u9891" : "\u8F93\u5165\u6807\u9898\u540D\u67E5\u627E\u5E73\u53F0\u53D1\u8FC7\u7684\u6587\u7AE0",
|
|
3639
3643
|
onKeyup: _cache[5] || (_cache[5] = withKeys(($event) => unref(getArticleList)(true), ["enter", "native"])),
|
|
3640
3644
|
onInput: _cache[6] || (_cache[6] = ($event) => unref(getArticleList)(true))
|
|
3641
3645
|
}, {
|
|
@@ -3649,11 +3653,11 @@ const _sfc_main$6 = defineComponent({
|
|
|
3649
3653
|
_: 1
|
|
3650
3654
|
}, 8, ["modelValue", "placeholder"])
|
|
3651
3655
|
]),
|
|
3652
|
-
data.data.length === 0 && !data.busy ? (openBlock(), createElementBlock("div",
|
|
3656
|
+
data.data.length === 0 && !data.busy ? (openBlock(), createElementBlock("div", _hoisted_8$1, toDisplayString(`\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684${unref(isVideo) ? "\u89C6\u9891" : "\u6587\u7AE0"}\u54E6\uFF0C\u4F60\u53EF\u4EE5\u8BD5\u8BD5\u641C\u7D22\u5176\u4ED6${unref(isVideo) ? "\u89C6\u9891" : "\u6587\u7AE0"}\uFF5E`), 1)) : withDirectives((openBlock(), createElementBlock("div", {
|
|
3653
3657
|
key: 1,
|
|
3654
3658
|
"infinite-scroll-immediate": false,
|
|
3655
3659
|
class: "insert-article_list",
|
|
3656
|
-
"infinite-scroll-disabled": disable
|
|
3660
|
+
"infinite-scroll-disabled": unref(disable)
|
|
3657
3661
|
}, [
|
|
3658
3662
|
(openBlock(true), createElementBlock(Fragment, null, renderList(data.data, (item, index) => {
|
|
3659
3663
|
return openBlock(), createElementBlock("div", {
|
|
@@ -3669,22 +3673,22 @@ const _sfc_main$6 = defineComponent({
|
|
|
3669
3673
|
default: withCtx(() => {
|
|
3670
3674
|
var _a;
|
|
3671
3675
|
return [
|
|
3672
|
-
isVideo
|
|
3673
|
-
createElementVNode("div",
|
|
3676
|
+
unref(isVideo) ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
3677
|
+
createElementVNode("div", _hoisted_11$1, [
|
|
3674
3678
|
createElementVNode("img", {
|
|
3675
3679
|
class: "video-pic",
|
|
3676
3680
|
src: (_a = item == null ? void 0 : item.mediaInfo[0]) == null ? void 0 : _a.img
|
|
3677
|
-
}, null, 8,
|
|
3681
|
+
}, null, 8, _hoisted_12$1),
|
|
3678
3682
|
createElementVNode("img", {
|
|
3679
3683
|
class: "play",
|
|
3680
3684
|
src: getImageUrl("play.png")
|
|
3681
|
-
}, null, 8,
|
|
3685
|
+
}, null, 8, _hoisted_13$1)
|
|
3682
3686
|
]),
|
|
3683
|
-
createElementVNode("div",
|
|
3684
|
-
createElementVNode("span",
|
|
3687
|
+
createElementVNode("div", _hoisted_14$1, [
|
|
3688
|
+
createElementVNode("span", _hoisted_15$1, toDisplayString(item.content || "[\u65E0\u6807\u9898]"), 1),
|
|
3685
3689
|
createElementVNode("span", null, toDisplayString(unref(date).format(item.createTime * 1e3, "YYYY-MM-DD hh-mm")), 1)
|
|
3686
3690
|
])
|
|
3687
|
-
])) : (openBlock(), createElementBlock("div",
|
|
3691
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_16$1, [
|
|
3688
3692
|
createElementVNode("span", null, toDisplayString(item.title || "[\u65E0\u6807\u9898]"), 1),
|
|
3689
3693
|
createElementVNode("span", null, toDisplayString(unref(date).format(item.createTime * 1e3, "YYYY-MM-DD")), 1)
|
|
3690
3694
|
]))
|
|
@@ -3694,7 +3698,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
3694
3698
|
}, 1032, ["modelValue", "label", "onChange"])
|
|
3695
3699
|
]);
|
|
3696
3700
|
}), 128))
|
|
3697
|
-
], 8,
|
|
3701
|
+
], 8, _hoisted_9$1)), [
|
|
3698
3702
|
[unref(vInfiniteScroll), unref(getArticleList)]
|
|
3699
3703
|
])
|
|
3700
3704
|
])
|
|
@@ -3720,7 +3724,7 @@ for (let i = 0; i < 256; ++i) {
|
|
|
3720
3724
|
byteToHex.push((i + 256).toString(16).slice(1));
|
|
3721
3725
|
}
|
|
3722
3726
|
function unsafeStringify(arr, offset = 0) {
|
|
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]];
|
|
3727
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
3724
3728
|
}
|
|
3725
3729
|
const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
3726
3730
|
const native = {
|
|
@@ -3747,11 +3751,11 @@ const index_vue_vue_type_style_index_0_lang$3 = "";
|
|
|
3747
3751
|
const _hoisted_1$5 = { class: "img-upload-content" };
|
|
3748
3752
|
const _hoisted_2$4 = { class: "title-box" };
|
|
3749
3753
|
const _hoisted_3$4 = ["onClick"];
|
|
3750
|
-
const _hoisted_4$
|
|
3754
|
+
const _hoisted_4$3 = {
|
|
3751
3755
|
key: 0,
|
|
3752
3756
|
class: "line"
|
|
3753
3757
|
};
|
|
3754
|
-
const _hoisted_5$
|
|
3758
|
+
const _hoisted_5$2 = {
|
|
3755
3759
|
key: 0,
|
|
3756
3760
|
class: "prompt-restriction"
|
|
3757
3761
|
};
|
|
@@ -3788,29 +3792,32 @@ const _hoisted_19 = {
|
|
|
3788
3792
|
class: "map-depot"
|
|
3789
3793
|
};
|
|
3790
3794
|
const _hoisted_20 = { class: "screen" };
|
|
3791
|
-
const _hoisted_21 =
|
|
3792
|
-
const _hoisted_22 = {
|
|
3793
|
-
const _hoisted_23 =
|
|
3794
|
-
const _hoisted_24 =
|
|
3795
|
+
const _hoisted_21 = /* @__PURE__ */ createTextVNode("\u641C\u7D22");
|
|
3796
|
+
const _hoisted_22 = { key: 0 };
|
|
3797
|
+
const _hoisted_23 = { class: "tab-box" };
|
|
3798
|
+
const _hoisted_24 = ["onClick"];
|
|
3799
|
+
const _hoisted_25 = {
|
|
3795
3800
|
key: 0,
|
|
3796
3801
|
class: "line"
|
|
3797
3802
|
};
|
|
3798
|
-
const
|
|
3799
|
-
const
|
|
3800
|
-
const
|
|
3801
|
-
const
|
|
3803
|
+
const _hoisted_26 = { class: "image-list depot-image" };
|
|
3804
|
+
const _hoisted_27 = ["onClick"];
|
|
3805
|
+
const _hoisted_28 = ["src"];
|
|
3806
|
+
const _hoisted_29 = {
|
|
3802
3807
|
key: 0,
|
|
3803
3808
|
class: "shade"
|
|
3804
3809
|
};
|
|
3805
|
-
const
|
|
3806
|
-
const
|
|
3810
|
+
const _hoisted_30 = { class: "num" };
|
|
3811
|
+
const _hoisted_31 = {
|
|
3807
3812
|
key: 1,
|
|
3808
3813
|
class: "protocol-box"
|
|
3809
3814
|
};
|
|
3810
|
-
const
|
|
3811
|
-
const
|
|
3812
|
-
const
|
|
3813
|
-
|
|
3815
|
+
const _hoisted_32 = /* @__PURE__ */ createElementVNode("div", null, " \u56FE\u5E93\u4E2D\u7684\u56FE\u7247\u4EC5\u9650\u4E0B\u8F7D\u6469\u6258\u8303\u4EE5\u7F16\u8F91\u53D1\u5E03\u6587\u7AE0\u4F7F\u7528,\u4E0D\u5F97\u7528\u4E8E\u5176\u4ED6\u4EFB\u4F55\u5E73\u53F0\u53CA\u7528\u9014 ", -1);
|
|
3816
|
+
const _hoisted_33 = /* @__PURE__ */ createTextVNode(" \u8BF7\u9605\u8BFB");
|
|
3817
|
+
const _hoisted_34 = ["href"];
|
|
3818
|
+
const _hoisted_35 = /* @__PURE__ */ createTextVNode(",\u60A8\u7684\u884C\u4E3A\u89C6\u4E3A\u60A8\u5DF2\u540C\u610F\u8BE5\u534F\u8BAE\u3002 ");
|
|
3819
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3820
|
+
name: "index",
|
|
3814
3821
|
props: {
|
|
3815
3822
|
visible: { type: Boolean, default: false },
|
|
3816
3823
|
imgList: { default: [] },
|
|
@@ -3819,8 +3826,7 @@ const _sfc_main$5 = defineComponent({
|
|
|
3819
3826
|
imgNum: { default: 20 }
|
|
3820
3827
|
},
|
|
3821
3828
|
emits: ["update:imgList", "update:visible", "submit"],
|
|
3822
|
-
setup(__props, { emit:
|
|
3823
|
-
const emits = __emit;
|
|
3829
|
+
setup(__props, { emit: emits }) {
|
|
3824
3830
|
const props = __props;
|
|
3825
3831
|
const drag = ref(false);
|
|
3826
3832
|
const imgListTemp = computed({
|
|
@@ -4105,15 +4111,15 @@ const _sfc_main$5 = defineComponent({
|
|
|
4105
4111
|
onClick: ($event) => changeTab(item)
|
|
4106
4112
|
}, [
|
|
4107
4113
|
createTextVNode(toDisplayString(item.value) + " ", 1),
|
|
4108
|
-
item.id === activeTitle.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
4114
|
+
item.id === activeTitle.value ? (openBlock(), createElementBlock("div", _hoisted_4$3)) : createCommentVNode("", true)
|
|
4109
4115
|
], 10, _hoisted_3$4);
|
|
4110
4116
|
}), 128)),
|
|
4111
|
-
[1, 3].includes(activeTitle.value) && props.imgList.length ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
4117
|
+
[1, 3].includes(activeTitle.value) && props.imgList.length ? (openBlock(), createElementBlock("div", _hoisted_5$2, " \u6700\u591A\u53EF\u9009" + toDisplayString(props.imgNum) + "\u5F20\u56FE\u7247\uFF0C\u5DF2\u9009" + toDisplayString(props.imgList.length) + "\u5F20 ", 1)) : createCommentVNode("", true),
|
|
4112
4118
|
activeTitle.value === 2 && props.imgList.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(props.imgList.length) + "\u5F20\u4E0A\u4F20\u6210\u529F \u62D6\u52A8\u53EF\u8C03\u6574\u987A\u5E8F ", 1)) : createCommentVNode("", true)
|
|
4113
4119
|
]),
|
|
4114
4120
|
activeTitle.value === 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
4115
4121
|
createElementVNode("div", _hoisted_8, [
|
|
4116
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(contentImgList
|
|
4122
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(contentImgList), (item, index) => {
|
|
4117
4123
|
return openBlock(), createElementBlock("div", {
|
|
4118
4124
|
key: index,
|
|
4119
4125
|
class: "image-item",
|
|
@@ -4151,8 +4157,8 @@ const _sfc_main$5 = defineComponent({
|
|
|
4151
4157
|
_hoisted_15
|
|
4152
4158
|
])) : (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
4153
4159
|
createVNode(unref(draggable), {
|
|
4154
|
-
modelValue: imgListTemp
|
|
4155
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => imgListTemp.value = $event),
|
|
4160
|
+
modelValue: unref(imgListTemp),
|
|
4161
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(imgListTemp) ? imgListTemp.value = $event : null),
|
|
4156
4162
|
handle: ".img-item",
|
|
4157
4163
|
class: "img-wrap",
|
|
4158
4164
|
group: "people",
|
|
@@ -4277,13 +4283,13 @@ const _sfc_main$5 = defineComponent({
|
|
|
4277
4283
|
onClick: search
|
|
4278
4284
|
}, {
|
|
4279
4285
|
default: withCtx(() => [
|
|
4280
|
-
|
|
4286
|
+
_hoisted_21
|
|
4281
4287
|
]),
|
|
4282
4288
|
_: 1
|
|
4283
4289
|
})
|
|
4284
4290
|
]),
|
|
4285
|
-
tabList.value && tabList.value.length ? (openBlock(), createElementBlock("div",
|
|
4286
|
-
createElementVNode("div",
|
|
4291
|
+
tabList.value && tabList.value.length ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
4292
|
+
createElementVNode("div", _hoisted_23, [
|
|
4287
4293
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tabList.value, (item, index) => {
|
|
4288
4294
|
return openBlock(), createElementBlock("div", {
|
|
4289
4295
|
key: index,
|
|
@@ -4291,12 +4297,12 @@ const _sfc_main$5 = defineComponent({
|
|
|
4291
4297
|
onClick: ($event) => activeTab.value = item.type
|
|
4292
4298
|
}, [
|
|
4293
4299
|
createTextVNode(toDisplayString(item.name) + " ", 1),
|
|
4294
|
-
item.type === activeTab.value ? (openBlock(), createElementBlock("div",
|
|
4295
|
-
], 10,
|
|
4300
|
+
item.type === activeTab.value ? (openBlock(), createElementBlock("div", _hoisted_25)) : createCommentVNode("", true)
|
|
4301
|
+
], 10, _hoisted_24);
|
|
4296
4302
|
}), 128))
|
|
4297
4303
|
]),
|
|
4298
|
-
createElementVNode("div",
|
|
4299
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(imageList
|
|
4304
|
+
createElementVNode("div", _hoisted_26, [
|
|
4305
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(imageList), (item, index) => {
|
|
4300
4306
|
return openBlock(), createElementBlock("div", {
|
|
4301
4307
|
key: index,
|
|
4302
4308
|
class: "image-item",
|
|
@@ -4306,25 +4312,25 @@ const _sfc_main$5 = defineComponent({
|
|
|
4306
4312
|
src: item.imgOrgUrl,
|
|
4307
4313
|
alt: "",
|
|
4308
4314
|
class: "image"
|
|
4309
|
-
}, null, 8,
|
|
4310
|
-
item.num ? (openBlock(), createElementBlock("div",
|
|
4311
|
-
createElementVNode("div",
|
|
4315
|
+
}, null, 8, _hoisted_28),
|
|
4316
|
+
item.num ? (openBlock(), createElementBlock("div", _hoisted_29, [
|
|
4317
|
+
createElementVNode("div", _hoisted_30, toDisplayString(item.num), 1)
|
|
4312
4318
|
])) : createCommentVNode("", true)
|
|
4313
|
-
], 8,
|
|
4319
|
+
], 8, _hoisted_27);
|
|
4314
4320
|
}), 128))
|
|
4315
4321
|
])
|
|
4316
|
-
])) : (openBlock(), createElementBlock("div",
|
|
4322
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_31, [
|
|
4317
4323
|
createElementVNode("div", null, [
|
|
4318
|
-
|
|
4324
|
+
_hoisted_32,
|
|
4319
4325
|
createElementVNode("div", null, [
|
|
4320
|
-
|
|
4326
|
+
_hoisted_33,
|
|
4321
4327
|
createElementVNode("a", {
|
|
4322
4328
|
href: `https://${unref(hostName)}/about?type=imageLicenseAgreement`,
|
|
4323
4329
|
target: "_blank",
|
|
4324
4330
|
rel: "noopener noreferrer",
|
|
4325
4331
|
class: "link"
|
|
4326
|
-
}, "\u300A\u6469\u6258\u8303\u56FE\u7247\u8BB8\u53EF\u4F7F\u7528\u534F\u8BAE\u300B", 8,
|
|
4327
|
-
|
|
4332
|
+
}, "\u300A\u6469\u6258\u8303\u56FE\u7247\u8BB8\u53EF\u4F7F\u7528\u534F\u8BAE\u300B", 8, _hoisted_34),
|
|
4333
|
+
_hoisted_35
|
|
4328
4334
|
])
|
|
4329
4335
|
])
|
|
4330
4336
|
]))
|
|
@@ -4339,22 +4345,22 @@ const _sfc_main$5 = defineComponent({
|
|
|
4339
4345
|
const index_vue_vue_type_style_index_0_lang$2 = "";
|
|
4340
4346
|
const _hoisted_1$4 = /* @__PURE__ */ createElementVNode("span", null, "\u63D2\u5165\u89C6\u9891", -1);
|
|
4341
4347
|
const _hoisted_2$3 = { class: "insert-video" };
|
|
4342
|
-
const _hoisted_3$3 = /* @__PURE__ */
|
|
4343
|
-
const
|
|
4344
|
-
|
|
4348
|
+
const _hoisted_3$3 = /* @__PURE__ */ createTextVNode("\u9009\u62E9\u89C6\u9891");
|
|
4349
|
+
const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("span", { class: "remark" }, "\u4E3A\u4E86\u83B7\u5F97\u66F4\u9AD8\u7684\u63A8\u8350\u91CF\u548C\u70B9\u51FB\u91CF\uFF0C\u5EFA\u8BAE\u4E0A\u4F20720p\uFF081280*720\uFF09\u6216\u66F4\u9AD8\u5206\u8FA8\u7387\u7684\u89C6\u9891\uFF0C\u89C6\u9891\u683C\u5F0F\u4E3A.mp4\u6216.mov\uFF0C\u5927\u5C0F\u4E0D\u8D85\u8FC71G", -1);
|
|
4350
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
4351
|
+
name: "index",
|
|
4345
4352
|
props: {
|
|
4346
4353
|
visible: { type: Boolean, default: false },
|
|
4347
|
-
fileSelected:
|
|
4354
|
+
fileSelected: null
|
|
4348
4355
|
},
|
|
4349
4356
|
emits: ["update:visible"],
|
|
4350
|
-
setup(__props, { emit:
|
|
4351
|
-
const
|
|
4357
|
+
setup(__props, { emit: emits }) {
|
|
4358
|
+
const props = __props;
|
|
4352
4359
|
provide("vm", {
|
|
4353
4360
|
setStatus(val) {
|
|
4354
4361
|
emits("update:visible", val);
|
|
4355
4362
|
}
|
|
4356
4363
|
});
|
|
4357
|
-
const props = __props;
|
|
4358
4364
|
const { visible, fileSelected } = toRefs(props);
|
|
4359
4365
|
const emitEvent = () => {
|
|
4360
4366
|
var event = new MouseEvent("click");
|
|
@@ -4380,11 +4386,11 @@ const _sfc_main$4 = defineComponent({
|
|
|
4380
4386
|
onClick: emitEvent
|
|
4381
4387
|
}, {
|
|
4382
4388
|
default: withCtx(() => [
|
|
4383
|
-
|
|
4389
|
+
_hoisted_3$3
|
|
4384
4390
|
]),
|
|
4385
4391
|
_: 1
|
|
4386
4392
|
}),
|
|
4387
|
-
|
|
4393
|
+
_hoisted_4$2,
|
|
4388
4394
|
createElementVNode("input", {
|
|
4389
4395
|
type: "file",
|
|
4390
4396
|
accept: "video/*",
|
|
@@ -5366,8 +5372,8 @@ const _hoisted_1$1 = {
|
|
|
5366
5372
|
};
|
|
5367
5373
|
const _hoisted_2$1 = ["src"];
|
|
5368
5374
|
const _hoisted_3$1 = { class: "article-item_right" };
|
|
5369
|
-
const _hoisted_4 = { class: "name" };
|
|
5370
|
-
const _hoisted_5 = { class: "score" };
|
|
5375
|
+
const _hoisted_4$1 = { class: "name" };
|
|
5376
|
+
const _hoisted_5$1 = { class: "score" };
|
|
5371
5377
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5372
5378
|
const _component_el_icon_error = resolveComponent("el-icon-error");
|
|
5373
5379
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
@@ -5377,8 +5383,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5377
5383
|
alt: ""
|
|
5378
5384
|
}, null, 8, _hoisted_2$1)) : createCommentVNode("", true),
|
|
5379
5385
|
createElementVNode("div", _hoisted_3$1, [
|
|
5380
|
-
createElementVNode("div", _hoisted_4, toDisplayString($props.article.title), 1),
|
|
5381
|
-
createElementVNode("div", _hoisted_5, [
|
|
5386
|
+
createElementVNode("div", _hoisted_4$1, toDisplayString($props.article.title), 1),
|
|
5387
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
5382
5388
|
createElementVNode("span", null, toDisplayString($props.article.author), 1),
|
|
5383
5389
|
createElementVNode("span", null, toDisplayString($props.article.viewNum) + "\u6D4F\u89C8", 1),
|
|
5384
5390
|
createElementVNode("span", null, toDisplayString($props.article.replycnt) + "\u8BC4\u8BBA", 1)
|
|
@@ -5396,7 +5402,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5396
5402
|
}, " \u5E73\u53F0\u4EC5\u652F\u6301\u5C55\u793A18\u4E2A\u6708\u7684\u63A8\u8350\u5185\u5BB9 ", 2)) : createCommentVNode("", true)
|
|
5397
5403
|
]);
|
|
5398
5404
|
}
|
|
5399
|
-
const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
5405
|
+
const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-45d58d86"]]);
|
|
5400
5406
|
const mountArticleDom = (props, del) => {
|
|
5401
5407
|
const className = "article-wrap";
|
|
5402
5408
|
const article = props.article;
|
|
@@ -5489,6 +5495,7 @@ const _sfc_main = {
|
|
|
5489
5495
|
editor: {},
|
|
5490
5496
|
editorDom: {},
|
|
5491
5497
|
uploadStore: {},
|
|
5498
|
+
failedUploads: [],
|
|
5492
5499
|
linkContent: "",
|
|
5493
5500
|
loadingText: "",
|
|
5494
5501
|
progressPercent: "",
|
|
@@ -5569,7 +5576,7 @@ const _sfc_main = {
|
|
|
5569
5576
|
me2.editorDom = document.getElementById("editor-content");
|
|
5570
5577
|
me2.editorDom.addEventListener("blur", this.canSetAlign);
|
|
5571
5578
|
if (!window.Squire) {
|
|
5572
|
-
import("./squire-raw.
|
|
5579
|
+
import("./squire-raw.3e73a64b.js").then(function() {
|
|
5573
5580
|
me2.initSquire();
|
|
5574
5581
|
});
|
|
5575
5582
|
} else {
|
|
@@ -7089,6 +7096,7 @@ const _sfc_main = {
|
|
|
7089
7096
|
const uploads = document.querySelectorAll(".no-upload") || [];
|
|
7090
7097
|
me2.uploadStore = {};
|
|
7091
7098
|
me2.currentIndex = 0;
|
|
7099
|
+
me2.failedUploads = [];
|
|
7092
7100
|
Array.from(uploads).map((_, index) => {
|
|
7093
7101
|
const id = _.getAttribute("id");
|
|
7094
7102
|
const key = index + "|" + id;
|
|
@@ -7152,6 +7160,12 @@ const _sfc_main = {
|
|
|
7152
7160
|
upload && upload.click();
|
|
7153
7161
|
};
|
|
7154
7162
|
}
|
|
7163
|
+
const imgId = currentImg2.getAttribute("id") || "";
|
|
7164
|
+
const imgSrc = currentImg2.getAttribute("src") || "";
|
|
7165
|
+
const failedInfo = { id: imgId, src: imgSrc, element: currentImg2 };
|
|
7166
|
+
if (!me2.failedUploads.find((item) => item.id === imgId)) {
|
|
7167
|
+
me2.failedUploads.push(failedInfo);
|
|
7168
|
+
}
|
|
7155
7169
|
};
|
|
7156
7170
|
return this.uploadImageByOther({
|
|
7157
7171
|
itemId,
|
|
@@ -7195,6 +7209,32 @@ const _sfc_main = {
|
|
|
7195
7209
|
parent.appendChild(arr[0]);
|
|
7196
7210
|
parent.appendChild(arr[2]);
|
|
7197
7211
|
}
|
|
7212
|
+
const imgId = currentImg.getAttribute("id") || "";
|
|
7213
|
+
this.failedUploads = this.failedUploads.filter((item) => item.id !== imgId);
|
|
7214
|
+
},
|
|
7215
|
+
scrollToFirstFailedImage() {
|
|
7216
|
+
this.failedUploads = this.failedUploads.filter((item) => {
|
|
7217
|
+
return item.element && document.body.contains(item.element);
|
|
7218
|
+
});
|
|
7219
|
+
if (this.failedUploads.length === 0) {
|
|
7220
|
+
return false;
|
|
7221
|
+
}
|
|
7222
|
+
let firstFailed = null;
|
|
7223
|
+
let minPosition = Infinity;
|
|
7224
|
+
for (const item of this.failedUploads) {
|
|
7225
|
+
if (item.element) {
|
|
7226
|
+
const position = item.element.getBoundingClientRect().top;
|
|
7227
|
+
if (position < minPosition) {
|
|
7228
|
+
minPosition = position;
|
|
7229
|
+
firstFailed = item;
|
|
7230
|
+
}
|
|
7231
|
+
}
|
|
7232
|
+
}
|
|
7233
|
+
if (firstFailed && firstFailed.element) {
|
|
7234
|
+
firstFailed.element.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
7235
|
+
return true;
|
|
7236
|
+
}
|
|
7237
|
+
return false;
|
|
7198
7238
|
},
|
|
7199
7239
|
getSticker(type, handler) {
|
|
7200
7240
|
this.setSticker(type.fragment.children);
|
|
@@ -7844,6 +7884,8 @@ const _hoisted_3 = {
|
|
|
7844
7884
|
slot: "footer",
|
|
7845
7885
|
class: "dialog-footer"
|
|
7846
7886
|
};
|
|
7887
|
+
const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u53D6 \u6D88");
|
|
7888
|
+
const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u786E \u5B9A");
|
|
7847
7889
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7848
7890
|
const _component_el_input = resolveComponent("el-input");
|
|
7849
7891
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
@@ -7917,7 +7959,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7917
7959
|
onClick: _cache[3] || (_cache[3] = ($event) => $data.viewLinkDialog = false)
|
|
7918
7960
|
}, {
|
|
7919
7961
|
default: withCtx(() => [
|
|
7920
|
-
|
|
7962
|
+
_hoisted_4
|
|
7921
7963
|
]),
|
|
7922
7964
|
_: 1
|
|
7923
7965
|
}),
|
|
@@ -7926,7 +7968,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7926
7968
|
onClick: $options.insertLink
|
|
7927
7969
|
}, {
|
|
7928
7970
|
default: withCtx(() => [
|
|
7929
|
-
|
|
7971
|
+
_hoisted_5
|
|
7930
7972
|
]),
|
|
7931
7973
|
_: 1
|
|
7932
7974
|
}, 8, ["onClick"])
|
|
@@ -7944,7 +7986,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7944
7986
|
}, null, 8, ["article", "visible", "getList", "onDelete", "onChange"]),
|
|
7945
7987
|
createVNode(_component_ImgUpload, {
|
|
7946
7988
|
"img-list": $data.imgList,
|
|
7947
|
-
"onUpdate:
|
|
7989
|
+
"onUpdate:img-list": _cache[6] || (_cache[6] = ($event) => $data.imgList = $event),
|
|
7948
7990
|
visible: $data.visibleImg,
|
|
7949
7991
|
"onUpdate:visible": _cache[7] || (_cache[7] = ($event) => $data.visibleImg = $event),
|
|
7950
7992
|
chartGallery: $props.chartGallery,
|
|
@@ -7959,7 +8001,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7959
8001
|
}, null, 8, ["visible", "file-selected"]),
|
|
7960
8002
|
createVNode(_component_CollectArticle, {
|
|
7961
8003
|
"link-content": $data.linkContent,
|
|
7962
|
-
"onUpdate:
|
|
8004
|
+
"onUpdate:link-content": _cache[9] || (_cache[9] = ($event) => $data.linkContent = $event),
|
|
7963
8005
|
visible: $data.visibleCollectArticle,
|
|
7964
8006
|
"onUpdate:visible": _cache[10] || (_cache[10] = ($event) => $data.visibleCollectArticle = $event),
|
|
7965
8007
|
onSubmit: $options.confirmLink
|