@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 CHANGED
@@ -525,9 +525,9 @@ const _hoisted_1$7 = {
525
525
  };
526
526
  const _hoisted_2$7 = { class: "tools-content" };
527
527
  const _hoisted_3$7 = ["src"];
528
- const _hoisted_4$6 = ["src"];
529
- const _hoisted_5$5 = ["src"];
530
- const _hoisted_6$3 = { class: "box" };
528
+ const _hoisted_4$4 = ["src"];
529
+ const _hoisted_5$3 = ["src"];
530
+ const _hoisted_6$2 = { 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$2 = { style: { "font-size": "10px" } };
541
- const _hoisted_14$2 = { class: "box" };
542
- const _hoisted_15$2 = ["src"];
543
- const _hoisted_16$2 = {
540
+ const _hoisted_13$1 = { style: { "font-size": "10px" } };
541
+ const _hoisted_14$1 = { class: "box" };
542
+ const _hoisted_15$1 = ["src"];
543
+ const _hoisted_16$1 = {
544
544
  key: 0,
545
545
  class: "box-mask"
546
546
  };
@@ -569,7 +569,7 @@ 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$1 = ["src"];
572
+ const _hoisted_33 = ["src"];
573
573
  const _hoisted_34 = ["src"];
574
574
  const _hoisted_35 = { class: "tools-title" };
575
575
  const _hoisted_36 = ["src"];
@@ -627,7 +627,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
627
627
  height: "40",
628
628
  alt: "",
629
629
  onClick: _cache[1] || (_cache[1] = ($event) => $options.forward($event))
630
- }, null, 12, _hoisted_4$6)
630
+ }, null, 12, _hoisted_4$4)
631
631
  ]),
632
632
  _: 1
633
633
  }),
@@ -648,7 +648,7 @@ function _sfc_render$3(_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$5)
651
+ }, null, 8, _hoisted_5$3)
652
652
  ]),
653
653
  _: 1
654
654
  }),
@@ -659,7 +659,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
659
659
  placement: "top"
660
660
  }, {
661
661
  default: withCtx(() => [
662
- createElementVNode("div", _hoisted_6$3, [
662
+ createElementVNode("div", _hoisted_6$2, [
663
663
  createElementVNode("img", {
664
664
  src: $options.getImageUrl("tools_refresh@3x.png"),
665
665
  width: "40",
@@ -720,7 +720,7 @@ function _sfc_render$3(_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$2, toDisplayString(item.desc), 1)
723
+ createElementVNode("span", _hoisted_13$1, toDisplayString(item.desc), 1)
724
724
  ], 10, _hoisted_12$2);
725
725
  }), 128))
726
726
  ])), [
@@ -740,7 +740,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
740
740
  placement: "top"
741
741
  }, {
742
742
  default: withCtx(() => [
743
- createElementVNode("div", _hoisted_14$2, [
743
+ createElementVNode("div", _hoisted_14$1, [
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$3(_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$2),
752
- $data.statusInfo && $data.statusInfo.title ? (openBlock(), createElementBlock("div", _hoisted_16$2)) : createCommentVNode("", true)
751
+ }, null, 8, _hoisted_15$1),
752
+ $data.statusInfo && $data.statusInfo.title ? (openBlock(), createElementBlock("div", _hoisted_16$1)) : createCommentVNode("", true)
753
753
  ])
754
754
  ]),
755
755
  _: 1
@@ -926,7 +926,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
926
926
  width: "24",
927
927
  height: "40",
928
928
  alt: ""
929
- }, null, 8, _hoisted_33$1),
929
+ }, null, 8, _hoisted_33),
930
930
  createElementVNode("img", {
931
931
  src: $options.getImageUrl("tools_arrow@3x.png"),
932
932
  width: "16",
@@ -1111,14 +1111,12 @@ const index_vue_vue_type_style_index_0_lang$4 = "";
1111
1111
  const _hoisted_1$6 = { 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$5 = {
1114
+ const _hoisted_4$3 = {
1115
1115
  key: 0,
1116
1116
  class: "dialog-footer"
1117
1117
  };
1118
- const _hoisted_5$4 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
1119
- const _hoisted_6$2 = /* @__PURE__ */ createTextVNode("\u786E\u8BA4");
1120
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1121
- name: "index",
1118
+ const _sfc_main$6 = defineComponent({
1119
+ __name: "index",
1122
1120
  props: {
1123
1121
  visible: { type: Boolean, default: false },
1124
1122
  showBtn: { type: Boolean, default: true },
@@ -1126,9 +1124,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1126
1124
  showTitle: { type: Boolean, default: true }
1127
1125
  },
1128
1126
  emits: ["submit", "cancel"],
1129
- setup(__props, { emit: emits }) {
1127
+ setup(__props, { emit: __emit }) {
1130
1128
  const props = __props;
1131
1129
  const parent = inject("vm");
1130
+ const emits = __emit;
1132
1131
  const handleClose = () => {
1133
1132
  var _a;
1134
1133
  (_a = parent.setStatus) == null ? void 0 : _a.call(parent, false);
@@ -1150,14 +1149,14 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1150
1149
  });
1151
1150
  return (_ctx, _cache) => {
1152
1151
  return openBlock(), createBlock(unref(ElDialog), {
1153
- modelValue: unref(dialogVisible),
1154
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(dialogVisible) ? dialogVisible.value = $event : null),
1152
+ modelValue: dialogVisible.value,
1153
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
1155
1154
  "before-close": handleClose,
1156
- width: __props.width,
1157
- class: normalizeClass(["basic-dialog", { "hide-title": !__props.showTitle }])
1155
+ width: _ctx.width,
1156
+ class: normalizeClass(["basic-dialog", { "hide-title": !_ctx.showTitle }])
1158
1157
  }, {
1159
1158
  header: withCtx(() => [
1160
- __props.showTitle ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
1159
+ _ctx.showTitle ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
1161
1160
  createElementVNode("div", _hoisted_2$6, [
1162
1161
  _hoisted_3$6,
1163
1162
  renderSlot(_ctx.$slots, "title")
@@ -1165,7 +1164,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1165
1164
  ])) : createCommentVNode("", true)
1166
1165
  ]),
1167
1166
  footer: withCtx(() => [
1168
- __props.showBtn ? (openBlock(), createElementBlock("span", _hoisted_4$5, [
1167
+ _ctx.showBtn ? (openBlock(), createElementBlock("span", _hoisted_4$3, [
1169
1168
  createVNode(unref(ElButton), {
1170
1169
  style: { "width": "120px", "border-color": "#cccccc", "color": "#333333" },
1171
1170
  plain: "",
@@ -1173,7 +1172,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1173
1172
  onClick: handleClose
1174
1173
  }, {
1175
1174
  default: withCtx(() => [
1176
- _hoisted_5$4
1175
+ createTextVNode("\u53D6\u6D88")
1177
1176
  ]),
1178
1177
  _: 1
1179
1178
  }),
@@ -1184,7 +1183,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1184
1183
  onClick: confirm
1185
1184
  }, {
1186
1185
  default: withCtx(() => [
1187
- _hoisted_6$2
1186
+ createTextVNode("\u786E\u8BA4")
1188
1187
  ]),
1189
1188
  _: 1
1190
1189
  })
@@ -1207,7 +1206,7 @@ Object.defineProperty(date$1.exports, "__esModule", { value: true });
1207
1206
  function replacementDate(data, fmt) {
1208
1207
  for (var k in data) {
1209
1208
  if (new RegExp("(" + k + ")").test(fmt)) {
1210
- fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? data[k] : ("00" + data[k]).substr(("" + data[k]).length));
1209
+ fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? data[k] : "00".concat(data[k]).substr(("" + data[k]).length));
1211
1210
  }
1212
1211
  }
1213
1212
  return fmt;
@@ -1250,7 +1249,7 @@ var DateClass = function() {
1250
1249
  };
1251
1250
  fmt = replacementYear(timeData, fmt);
1252
1251
  if (/(E+)/.test(fmt)) {
1253
- fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "\u661F\u671F" : "\u5468" : "") + week[timeData.getDay() + " "]);
1252
+ fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "\u661F\u671F" : "\u5468" : "") + week["".concat(timeData.getDay(), " ")]);
1254
1253
  }
1255
1254
  return replacementDate(o, fmt);
1256
1255
  };
@@ -1271,10 +1270,10 @@ var DateClass = function() {
1271
1270
  if (ts <= 0)
1272
1271
  return false;
1273
1272
  return {
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
1273
+ dd: dd < 10 ? "0".concat(dd) : dd,
1274
+ hh: hh < 10 ? "0".concat(hh) : hh,
1275
+ mm: mm < 10 ? "0".concat(mm) : mm,
1276
+ ss: ss < 10 ? "0".concat(ss) : ss
1278
1277
  };
1279
1278
  };
1280
1279
  DateClass2.prototype.formatPassTime = function(startTime) {
@@ -1282,19 +1281,19 @@ var DateClass = function() {
1282
1281
  var time = currentTime - startTime;
1283
1282
  var year = Math.floor(time / (1e3 * 60 * 60 * 24) / 30 / 12);
1284
1283
  if (year)
1285
- return year + "\u5E74\u524D";
1284
+ return "".concat(year, "\u5E74\u524D");
1286
1285
  var month = Math.floor(time / (1e3 * 60 * 60 * 24) / 30);
1287
1286
  if (month)
1288
- return month + "\u4E2A\u6708\u524D";
1287
+ return "".concat(month, "\u4E2A\u6708\u524D");
1289
1288
  var day = Math.floor(time / (1e3 * 60 * 60 * 24));
1290
1289
  if (day)
1291
- return day + "\u5929\u524D";
1290
+ return "".concat(day, "\u5929\u524D");
1292
1291
  var hour = Math.floor(time / (1e3 * 60 * 60));
1293
1292
  if (hour)
1294
- return hour + "\u5C0F\u65F6\u524D";
1293
+ return "".concat(hour, "\u5C0F\u65F6\u524D");
1295
1294
  var min = Math.floor(time / (1e3 * 60));
1296
1295
  if (min)
1297
- return min + "\u5206\u949F\u524D";
1296
+ return "".concat(min, "\u5206\u949F\u524D");
1298
1297
  else
1299
1298
  return "\u521A\u521A";
1300
1299
  };
@@ -3165,13 +3164,13 @@ function requireCloneDeep() {
3165
3164
  return cloneDeep_1;
3166
3165
  }
3167
3166
  /*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
3168
- var clipboardCopy_1;
3169
- var hasRequiredClipboardCopy;
3170
- function requireClipboardCopy() {
3171
- if (hasRequiredClipboardCopy)
3172
- return clipboardCopy_1;
3173
- hasRequiredClipboardCopy = 1;
3174
- clipboardCopy_1 = clipboardCopy;
3167
+ var _clipboardCopy_4_0_1_clipboardCopy;
3168
+ var hasRequired_clipboardCopy_4_0_1_clipboardCopy;
3169
+ function require_clipboardCopy_4_0_1_clipboardCopy() {
3170
+ if (hasRequired_clipboardCopy_4_0_1_clipboardCopy)
3171
+ return _clipboardCopy_4_0_1_clipboardCopy;
3172
+ hasRequired_clipboardCopy_4_0_1_clipboardCopy = 1;
3173
+ _clipboardCopy_4_0_1_clipboardCopy = clipboardCopy;
3175
3174
  function makeError() {
3176
3175
  return new DOMException("The request is not allowed", "NotAllowedError");
3177
3176
  }
@@ -3214,7 +3213,7 @@ function requireClipboardCopy() {
3214
3213
  }
3215
3214
  }
3216
3215
  }
3217
- return clipboardCopy_1;
3216
+ return _clipboardCopy_4_0_1_clipboardCopy;
3218
3217
  }
3219
3218
  Object.defineProperty(tools$1.exports, "__esModule", { value: true });
3220
3219
  var previous = 0;
@@ -3233,7 +3232,7 @@ var ToolsClass = function() {
3233
3232
  body.style.overflow = "hidden";
3234
3233
  body.style.height = "100%";
3235
3234
  if (className) {
3236
- var dom = document.querySelector("." + className);
3235
+ var dom = document.querySelector(".".concat(className));
3237
3236
  dom && dom.addEventListener("touchmove", _this.__setDefault__);
3238
3237
  }
3239
3238
  };
@@ -3248,7 +3247,7 @@ var ToolsClass = function() {
3248
3247
  body.style.overflow = "visible";
3249
3248
  body.style.height = "auto";
3250
3249
  if (className) {
3251
- var dom = document.querySelector("." + className);
3250
+ var dom = document.querySelector(".".concat(className));
3252
3251
  dom && dom.removeEventListener("touchmove", _this.__setDefault__);
3253
3252
  }
3254
3253
  };
@@ -3376,7 +3375,7 @@ var ToolsClass = function() {
3376
3375
  if (!(window && window.document)) {
3377
3376
  return new Error("\u4EC5\u652F\u6301\u6D4F\u89C8\u5668");
3378
3377
  }
3379
- var copy = requireClipboardCopy();
3378
+ var copy = require_clipboardCopy_4_0_1_clipboardCopy();
3380
3379
  return copy(str);
3381
3380
  };
3382
3381
  ToolsClass2.prototype.firstUpperCase = function(str) {
@@ -3462,49 +3461,44 @@ var ToolsClass = function() {
3462
3461
  sensitiveLen = 0;
3463
3462
  }
3464
3463
  var regItem = "[\u4E00-\u9FA5a-zA-Z0-9]";
3465
- var regExp = "(" + regItem + "{" + before + "})" + regItem + "*(" + regItem + "{" + after + "})";
3464
+ var regExp = "(".concat(regItem, "{").concat(before, "})").concat(regItem, "*(").concat(regItem, "{").concat(after, "})");
3466
3465
  var reg = new RegExp(regExp);
3467
- return field.replace(reg, "$1" + "*".repeat(sensitiveLen) + "$2");
3466
+ return field.replace(reg, "$1".concat("*".repeat(sensitiveLen), "$2"));
3468
3467
  };
3469
3468
  return ToolsClass2;
3470
3469
  }();
3471
3470
  tools$1.exports = new ToolsClass();
3472
3471
  const tools = /* @__PURE__ */ getDefaultExportFromCjs(tools$1.exports);
3473
3472
  const index_vue_vue_type_style_index_0_lang$3 = "";
3474
- const _hoisted_1$5 = /* @__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 = {
3473
+ const _hoisted_1$5 = { style: { "margin-left": "20px", "color": "#FF5A25" } };
3474
+ const _hoisted_2$5 = { class: "insert-article" };
3475
+ const _hoisted_3$5 = { class: "insert-article_input" };
3476
+ const _hoisted_4$2 = {
3482
3477
  key: 0,
3483
3478
  class: "nodata"
3484
3479
  };
3485
- const _hoisted_9$1 = ["infinite-scroll-disabled"];
3486
- const _hoisted_10$1 = {
3480
+ const _hoisted_5$2 = ["infinite-scroll-disabled"];
3481
+ const _hoisted_6$1 = {
3487
3482
  key: 0,
3488
3483
  class: "video-item"
3489
3484
  };
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 = {
3485
+ const _hoisted_7$1 = { class: "video-pic" };
3486
+ const _hoisted_8$1 = ["src"];
3487
+ const _hoisted_9$1 = ["src"];
3488
+ const _hoisted_10$1 = { class: "video-text" };
3489
+ const _hoisted_11$1 = { class: "dotdotdot2" };
3490
+ const _hoisted_12$1 = {
3496
3491
  key: 1,
3497
3492
  style: { "display": "inline-flex", "flex-direction": "column" }
3498
3493
  };
3499
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3500
- name: "index",
3494
+ const _sfc_main$5 = defineComponent({
3495
+ __name: "index",
3501
3496
  props: {
3502
3497
  visible: { type: Boolean, default: false },
3503
- getList: null
3498
+ getList: {}
3504
3499
  },
3505
3500
  emits: ["change", "submit", "update:visible"],
3506
- setup(__props, { emit: emits }) {
3507
- const props = __props;
3501
+ setup(__props, { emit: __emit }) {
3508
3502
  const { debounce } = tools;
3509
3503
  const vInfiniteScroll = ElInfiniteScroll;
3510
3504
  const Radio_Type = {
@@ -3523,7 +3517,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3523
3517
  emits("update:visible", val);
3524
3518
  }
3525
3519
  });
3520
+ const props = __props;
3526
3521
  const { visible, getList } = toRefs(props);
3522
+ const emits = __emit;
3527
3523
  const data = reactive({
3528
3524
  params: {
3529
3525
  autherid: "",
@@ -3595,12 +3591,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3595
3591
  }, {
3596
3592
  title: withCtx(() => [
3597
3593
  createElementVNode("span", null, [
3598
- _hoisted_1$5,
3599
- 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)
3594
+ createTextVNode("\u63D2\u5165\u6587\u7AE0/\u89C6\u9891"),
3595
+ createElementVNode("strong", _hoisted_1$5, "\u5E73\u53F0\u4EC5\u652F\u6301\u63D2\u5165" + toDisplayString(`${isVideo.value ? "2\u5E74" : "18\u4E2A\u6708"}`) + "\u5185\u7684\u63A8\u8350\u5185\u5BB9", 1)
3600
3596
  ])
3601
3597
  ]),
3602
3598
  default: withCtx(() => [
3603
- createElementVNode("div", _hoisted_3$5, [
3599
+ createElementVNode("div", _hoisted_2$5, [
3604
3600
  createElementVNode("div", null, [
3605
3601
  createVNode(unref(ElRadio), {
3606
3602
  modelValue: data.params.radio,
@@ -3608,7 +3604,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3608
3604
  label: Radio_Type.MY_ARITICLE
3609
3605
  }, {
3610
3606
  default: withCtx(() => [
3611
- _hoisted_4$4
3607
+ createTextVNode("\u4ECE\u6211\u7684\u6587\u7AE0\u4E2D\u9009\u62E9")
3612
3608
  ]),
3613
3609
  _: 1
3614
3610
  }, 8, ["modelValue", "label"]),
@@ -3618,7 +3614,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3618
3614
  label: Radio_Type.MY_VIDEO
3619
3615
  }, {
3620
3616
  default: withCtx(() => [
3621
- _hoisted_5$3
3617
+ createTextVNode("\u4ECE\u6211\u7684\u89C6\u9891\u4E2D\u9009\u62E9")
3622
3618
  ]),
3623
3619
  _: 1
3624
3620
  }, 8, ["modelValue", "label"]),
@@ -3628,16 +3624,16 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3628
3624
  label: Radio_Type.ALL_ARITICLE
3629
3625
  }, {
3630
3626
  default: withCtx(() => [
3631
- _hoisted_6$1
3627
+ createTextVNode("\u4ECE\u6240\u6709\u6587\u7AE0\u4E2D\u9009\u62E9")
3632
3628
  ]),
3633
3629
  _: 1
3634
3630
  }, 8, ["modelValue", "label"])
3635
3631
  ]),
3636
- createElementVNode("div", _hoisted_7$1, [
3632
+ createElementVNode("div", _hoisted_3$5, [
3637
3633
  createVNode(unref(ElInput), {
3638
3634
  modelValue: data.params.title,
3639
3635
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => data.params.title = $event),
3640
- 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",
3636
+ placeholder: isVideo.value ? "\u8F93\u5165\u89C6\u9891\u63CF\u8FF0\u67E5\u627E\u5E73\u53F0\u53D1\u5E03\u8FC7\u7684\u89C6\u9891" : "\u8F93\u5165\u6807\u9898\u540D\u67E5\u627E\u5E73\u53F0\u53D1\u8FC7\u7684\u6587\u7AE0",
3641
3637
  onKeyup: _cache[5] || (_cache[5] = withKeys(($event) => unref(getArticleList)(true), ["enter", "native"])),
3642
3638
  onInput: _cache[6] || (_cache[6] = ($event) => unref(getArticleList)(true))
3643
3639
  }, {
@@ -3651,11 +3647,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3651
3647
  _: 1
3652
3648
  }, 8, ["modelValue", "placeholder"])
3653
3649
  ]),
3654
- 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", {
3650
+ data.data.length === 0 && !data.busy ? (openBlock(), createElementBlock("div", _hoisted_4$2, toDisplayString(`\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684${isVideo.value ? "\u89C6\u9891" : "\u6587\u7AE0"}\u54E6\uFF0C\u4F60\u53EF\u4EE5\u8BD5\u8BD5\u641C\u7D22\u5176\u4ED6${isVideo.value ? "\u89C6\u9891" : "\u6587\u7AE0"}\uFF5E`), 1)) : withDirectives((openBlock(), createElementBlock("div", {
3655
3651
  key: 1,
3656
3652
  "infinite-scroll-immediate": false,
3657
3653
  class: "insert-article_list",
3658
- "infinite-scroll-disabled": unref(disable)
3654
+ "infinite-scroll-disabled": disable.value
3659
3655
  }, [
3660
3656
  (openBlock(true), createElementBlock(Fragment, null, renderList(data.data, (item, index) => {
3661
3657
  return openBlock(), createElementBlock("div", {
@@ -3671,22 +3667,22 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3671
3667
  default: withCtx(() => {
3672
3668
  var _a;
3673
3669
  return [
3674
- unref(isVideo) ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
3675
- createElementVNode("div", _hoisted_11$1, [
3670
+ isVideo.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
3671
+ createElementVNode("div", _hoisted_7$1, [
3676
3672
  createElementVNode("img", {
3677
3673
  class: "video-pic",
3678
3674
  src: (_a = item == null ? void 0 : item.mediaInfo[0]) == null ? void 0 : _a.img
3679
- }, null, 8, _hoisted_12$1),
3675
+ }, null, 8, _hoisted_8$1),
3680
3676
  createElementVNode("img", {
3681
3677
  class: "play",
3682
3678
  src: getImageUrl("play.png")
3683
- }, null, 8, _hoisted_13$1)
3679
+ }, null, 8, _hoisted_9$1)
3684
3680
  ]),
3685
- createElementVNode("div", _hoisted_14$1, [
3686
- createElementVNode("span", _hoisted_15$1, toDisplayString(item.content || "[\u65E0\u6807\u9898]"), 1),
3681
+ createElementVNode("div", _hoisted_10$1, [
3682
+ createElementVNode("span", _hoisted_11$1, toDisplayString(item.content || "[\u65E0\u6807\u9898]"), 1),
3687
3683
  createElementVNode("span", null, toDisplayString(unref(date).format(item.createTime * 1e3, "YYYY-MM-DD hh-mm")), 1)
3688
3684
  ])
3689
- ])) : (openBlock(), createElementBlock("div", _hoisted_16$1, [
3685
+ ])) : (openBlock(), createElementBlock("div", _hoisted_12$1, [
3690
3686
  createElementVNode("span", null, toDisplayString(item.title || "[\u65E0\u6807\u9898]"), 1),
3691
3687
  createElementVNode("span", null, toDisplayString(unref(date).format(item.createTime * 1e3, "YYYY-MM-DD")), 1)
3692
3688
  ]))
@@ -3696,7 +3692,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3696
3692
  }, 1032, ["modelValue", "label", "onChange"])
3697
3693
  ]);
3698
3694
  }), 128))
3699
- ], 8, _hoisted_9$1)), [
3695
+ ], 8, _hoisted_5$2)), [
3700
3696
  [unref(vInfiniteScroll), unref(getArticleList)]
3701
3697
  ])
3702
3698
  ])
@@ -3722,7 +3718,7 @@ for (let i = 0; i < 256; ++i) {
3722
3718
  byteToHex.push((i + 256).toString(16).slice(1));
3723
3719
  }
3724
3720
  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]]).toLowerCase();
3721
+ 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]];
3726
3722
  }
3727
3723
  const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3728
3724
  const native = {
@@ -3749,11 +3745,11 @@ const index_vue_vue_type_style_index_0_lang$2 = "";
3749
3745
  const _hoisted_1$4 = { class: "img-upload-content" };
3750
3746
  const _hoisted_2$4 = { class: "title-box" };
3751
3747
  const _hoisted_3$4 = ["onClick"];
3752
- const _hoisted_4$3 = {
3748
+ const _hoisted_4$1 = {
3753
3749
  key: 0,
3754
3750
  class: "line"
3755
3751
  };
3756
- const _hoisted_5$2 = {
3752
+ const _hoisted_5$1 = {
3757
3753
  key: 0,
3758
3754
  class: "prompt-restriction"
3759
3755
  };
@@ -3790,27 +3786,26 @@ const _hoisted_19 = {
3790
3786
  class: "map-depot"
3791
3787
  };
3792
3788
  const _hoisted_20 = { class: "screen" };
3793
- const _hoisted_21 = /* @__PURE__ */ createTextVNode("\u641C\u7D22");
3794
- const _hoisted_22 = { key: 0 };
3795
- const _hoisted_23 = { class: "tab-box" };
3796
- const _hoisted_24 = ["onClick"];
3797
- const _hoisted_25 = {
3789
+ const _hoisted_21 = { key: 0 };
3790
+ const _hoisted_22 = { class: "tab-box" };
3791
+ const _hoisted_23 = ["onClick"];
3792
+ const _hoisted_24 = {
3798
3793
  key: 0,
3799
3794
  class: "line"
3800
3795
  };
3801
- const _hoisted_26 = { class: "image-list depot-image" };
3802
- const _hoisted_27 = ["onClick"];
3803
- const _hoisted_28 = ["src"];
3804
- const _hoisted_29 = {
3796
+ const _hoisted_25 = { class: "image-list depot-image" };
3797
+ const _hoisted_26 = ["onClick"];
3798
+ const _hoisted_27 = ["src"];
3799
+ const _hoisted_28 = {
3805
3800
  key: 0,
3806
3801
  class: "shade"
3807
3802
  };
3808
- const _hoisted_30 = { class: "num" };
3809
- const _hoisted_31 = {
3803
+ const _hoisted_29 = { class: "num" };
3804
+ const _hoisted_30 = {
3810
3805
  key: 1,
3811
3806
  class: "protocol-box"
3812
3807
  };
3813
- const _hoisted_32 = /* @__PURE__ */ createElementVNode("div", null, [
3808
+ const _hoisted_31 = /* @__PURE__ */ createElementVNode("div", null, [
3814
3809
  /* @__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 "),
3815
3810
  /* @__PURE__ */ createElementVNode("div", null, [
3816
3811
  /* @__PURE__ */ createTextVNode(" \u8BF7\u9605\u8BFB"),
@@ -3823,11 +3818,11 @@ const _hoisted_32 = /* @__PURE__ */ createElementVNode("div", null, [
3823
3818
  /* @__PURE__ */ createTextVNode(",\u60A8\u7684\u884C\u4E3A\u89C6\u4E3A\u60A8\u5DF2\u540C\u610F\u8BE5\u534F\u8BAE\u3002 ")
3824
3819
  ])
3825
3820
  ], -1);
3826
- const _hoisted_33 = [
3827
- _hoisted_32
3821
+ const _hoisted_32 = [
3822
+ _hoisted_31
3828
3823
  ];
3829
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3830
- name: "index",
3824
+ const _sfc_main$4 = defineComponent({
3825
+ __name: "index",
3831
3826
  props: {
3832
3827
  visible: { type: Boolean, default: false },
3833
3828
  imgList: { default: [] },
@@ -3836,7 +3831,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3836
3831
  imgNum: { default: 20 }
3837
3832
  },
3838
3833
  emits: ["update:imgList", "update:visible", "submit"],
3839
- setup(__props, { emit: emits }) {
3834
+ setup(__props, { emit: __emit }) {
3835
+ const emits = __emit;
3840
3836
  const props = __props;
3841
3837
  const drag = ref(false);
3842
3838
  const imgListTemp = computed({
@@ -4119,15 +4115,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4119
4115
  onClick: ($event) => changeTab(item)
4120
4116
  }, [
4121
4117
  createTextVNode(toDisplayString(item.value) + " ", 1),
4122
- item.id === activeTitle.value ? (openBlock(), createElementBlock("div", _hoisted_4$3)) : createCommentVNode("", true)
4118
+ item.id === activeTitle.value ? (openBlock(), createElementBlock("div", _hoisted_4$1)) : createCommentVNode("", true)
4123
4119
  ], 10, _hoisted_3$4);
4124
4120
  }), 128)),
4125
- [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),
4121
+ [1, 3].includes(activeTitle.value) && props.imgList.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, " \u6700\u591A\u53EF\u9009" + toDisplayString(props.imgNum) + "\u5F20\u56FE\u7247\uFF0C\u5DF2\u9009" + toDisplayString(props.imgList.length) + "\u5F20 ", 1)) : createCommentVNode("", true),
4126
4122
  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)
4127
4123
  ]),
4128
4124
  activeTitle.value === 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
4129
4125
  createElementVNode("div", _hoisted_8, [
4130
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(contentImgList), (item, index) => {
4126
+ (openBlock(true), createElementBlock(Fragment, null, renderList(contentImgList.value, (item, index) => {
4131
4127
  return openBlock(), createElementBlock("div", {
4132
4128
  key: index,
4133
4129
  class: "image-item",
@@ -4165,8 +4161,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4165
4161
  _hoisted_15
4166
4162
  ])) : (openBlock(), createElementBlock("div", _hoisted_16, [
4167
4163
  createVNode(unref(draggable), {
4168
- modelValue: unref(imgListTemp),
4169
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(imgListTemp) ? imgListTemp.value = $event : null),
4164
+ modelValue: imgListTemp.value,
4165
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => imgListTemp.value = $event),
4170
4166
  handle: ".img-item",
4171
4167
  class: "img-wrap",
4172
4168
  group: "people",
@@ -4291,13 +4287,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4291
4287
  onClick: search
4292
4288
  }, {
4293
4289
  default: withCtx(() => [
4294
- _hoisted_21
4290
+ createTextVNode("\u641C\u7D22")
4295
4291
  ]),
4296
4292
  _: 1
4297
4293
  })
4298
4294
  ]),
4299
- tabList.value && tabList.value.length ? (openBlock(), createElementBlock("div", _hoisted_22, [
4300
- createElementVNode("div", _hoisted_23, [
4295
+ tabList.value && tabList.value.length ? (openBlock(), createElementBlock("div", _hoisted_21, [
4296
+ createElementVNode("div", _hoisted_22, [
4301
4297
  (openBlock(true), createElementBlock(Fragment, null, renderList(tabList.value, (item, index) => {
4302
4298
  return openBlock(), createElementBlock("div", {
4303
4299
  key: index,
@@ -4305,12 +4301,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4305
4301
  onClick: ($event) => activeTab.value = item.type
4306
4302
  }, [
4307
4303
  createTextVNode(toDisplayString(item.name) + " ", 1),
4308
- item.type === activeTab.value ? (openBlock(), createElementBlock("div", _hoisted_25)) : createCommentVNode("", true)
4309
- ], 10, _hoisted_24);
4304
+ item.type === activeTab.value ? (openBlock(), createElementBlock("div", _hoisted_24)) : createCommentVNode("", true)
4305
+ ], 10, _hoisted_23);
4310
4306
  }), 128))
4311
4307
  ]),
4312
- createElementVNode("div", _hoisted_26, [
4313
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(imageList), (item, index) => {
4308
+ createElementVNode("div", _hoisted_25, [
4309
+ (openBlock(true), createElementBlock(Fragment, null, renderList(imageList.value, (item, index) => {
4314
4310
  return openBlock(), createElementBlock("div", {
4315
4311
  key: index,
4316
4312
  class: "image-item",
@@ -4320,14 +4316,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4320
4316
  src: item.imgOrgUrl,
4321
4317
  alt: "",
4322
4318
  class: "image"
4323
- }, null, 8, _hoisted_28),
4324
- item.num ? (openBlock(), createElementBlock("div", _hoisted_29, [
4325
- createElementVNode("div", _hoisted_30, toDisplayString(item.num), 1)
4319
+ }, null, 8, _hoisted_27),
4320
+ item.num ? (openBlock(), createElementBlock("div", _hoisted_28, [
4321
+ createElementVNode("div", _hoisted_29, toDisplayString(item.num), 1)
4326
4322
  ])) : createCommentVNode("", true)
4327
- ], 8, _hoisted_27);
4323
+ ], 8, _hoisted_26);
4328
4324
  }), 128))
4329
4325
  ])
4330
- ])) : (openBlock(), createElementBlock("div", _hoisted_31, _hoisted_33))
4326
+ ])) : (openBlock(), createElementBlock("div", _hoisted_30, _hoisted_32))
4331
4327
  ])) : createCommentVNode("", true)
4332
4328
  ])
4333
4329
  ]),
@@ -4339,22 +4335,22 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4339
4335
  const index_vue_vue_type_style_index_0_lang$1 = "";
4340
4336
  const _hoisted_1$3 = /* @__PURE__ */ createElementVNode("span", null, "\u63D2\u5165\u89C6\u9891", -1);
4341
4337
  const _hoisted_2$3 = { class: "insert-video" };
4342
- const _hoisted_3$3 = /* @__PURE__ */ createTextVNode("\u9009\u62E9\u89C6\u9891");
4343
- 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);
4344
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4345
- name: "index",
4338
+ const _hoisted_3$3 = /* @__PURE__ */ createElementVNode("span", { class: "remark" }, "\u4E3A\u4E86\u83B7\u5F97\u66F4\u9AD8\u7684\u63A8\u8350\u91CF\u548C\u70B9\u51FB\u91CF\uFF0C\u5EFA\u8BAE\u4E0A\u4F20720p\uFF081280*720\uFF09\u6216\u66F4\u9AD8\u5206\u8FA8\u7387\u7684\u89C6\u9891\uFF0C\u89C6\u9891\u683C\u5F0F\u4E3A.mp4\u6216.mov\uFF0C\u5927\u5C0F\u4E0D\u8D85\u8FC71G", -1);
4339
+ const _sfc_main$3 = defineComponent({
4340
+ __name: "index",
4346
4341
  props: {
4347
4342
  visible: { type: Boolean, default: false },
4348
- fileSelected: null
4343
+ fileSelected: {}
4349
4344
  },
4350
4345
  emits: ["update:visible"],
4351
- setup(__props, { emit: emits }) {
4352
- const props = __props;
4346
+ setup(__props, { emit: __emit }) {
4347
+ const emits = __emit;
4353
4348
  provide("vm", {
4354
4349
  setStatus(val) {
4355
4350
  emits("update:visible", val);
4356
4351
  }
4357
4352
  });
4353
+ const props = __props;
4358
4354
  const { visible, fileSelected } = toRefs(props);
4359
4355
  const emitEvent = () => {
4360
4356
  var event = new MouseEvent("click");
@@ -4380,11 +4376,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4380
4376
  onClick: emitEvent
4381
4377
  }, {
4382
4378
  default: withCtx(() => [
4383
- _hoisted_3$3
4379
+ createTextVNode("\u9009\u62E9\u89C6\u9891")
4384
4380
  ]),
4385
4381
  _: 1
4386
4382
  }),
4387
- _hoisted_4$2,
4383
+ _hoisted_3$3,
4388
4384
  createElementVNode("input", {
4389
4385
  type: "file",
4390
4386
  accept: "video/*",
@@ -4514,8 +4510,8 @@ const _hoisted_1$1 = {
4514
4510
  };
4515
4511
  const _hoisted_2$1 = ["src"];
4516
4512
  const _hoisted_3$1 = { class: "article-item_right" };
4517
- const _hoisted_4$1 = { class: "name" };
4518
- const _hoisted_5$1 = { class: "score" };
4513
+ const _hoisted_4 = { class: "name" };
4514
+ const _hoisted_5 = { class: "score" };
4519
4515
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
4520
4516
  const _component_el_icon_error = resolveComponent("el-icon-error");
4521
4517
  return openBlock(), createElementBlock("div", _hoisted_1$1, [
@@ -4525,8 +4521,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
4525
4521
  alt: ""
4526
4522
  }, null, 8, _hoisted_2$1)) : createCommentVNode("", true),
4527
4523
  createElementVNode("div", _hoisted_3$1, [
4528
- createElementVNode("div", _hoisted_4$1, toDisplayString($props.article.title), 1),
4529
- createElementVNode("div", _hoisted_5$1, [
4524
+ createElementVNode("div", _hoisted_4, toDisplayString($props.article.title), 1),
4525
+ createElementVNode("div", _hoisted_5, [
4530
4526
  createElementVNode("span", null, toDisplayString($props.article.author), 1),
4531
4527
  createElementVNode("span", null, toDisplayString($props.article.viewNum) + "\u6D4F\u89C8", 1),
4532
4528
  createElementVNode("span", null, toDisplayString($props.article.replycnt) + "\u8BC4\u8BBA", 1)
@@ -4663,7 +4659,8 @@ const _sfc_main = {
4663
4659
  lasteDropDom: "",
4664
4660
  currentVideo: null,
4665
4661
  targetMove: "",
4666
- moverClasses: ["halo-img-content", "halo-video-content"]
4662
+ moverClasses: ["halo-img-content", "halo-video-content"],
4663
+ selectDom: null
4667
4664
  };
4668
4665
  },
4669
4666
  computed: {
@@ -4936,6 +4933,7 @@ const _sfc_main = {
4936
4933
  },
4937
4934
  async parseHtml(html, essayPicRelVOList) {
4938
4935
  var _a;
4936
+ const me2 = this;
4939
4937
  const div = document.createElement("div");
4940
4938
  div.innerHTML = html;
4941
4939
  const frag = document.createDocumentFragment();
@@ -4954,6 +4952,16 @@ const _sfc_main = {
4954
4952
  node.setAttribute("draggable", true);
4955
4953
  node.setAttribute("contenteditable", false);
4956
4954
  img.setAttribute("draggable", false);
4955
+ node.onclick = function(e) {
4956
+ me2.selectDom = node;
4957
+ img.classList.add("halo-select");
4958
+ e.stopPropagation();
4959
+ };
4960
+ node.onblur = function(e) {
4961
+ img.classList.remove("halo-select");
4962
+ me2.selectDom = null;
4963
+ e.stopPropagation();
4964
+ };
4957
4965
  this.setDragMove(node);
4958
4966
  const desc = img.dataset.desc;
4959
4967
  img.style.margin = "0";
@@ -5090,7 +5098,7 @@ const _sfc_main = {
5090
5098
  selectArticle(item) {
5091
5099
  if (item.isVideo) {
5092
5100
  const data = (item == null ? void 0 : item.mediaInfo[0]) || {};
5093
- this.editor.insertVideo(data.link, { link: data.link, img: data.img });
5101
+ this.editor.insertVideo(data.link, { link: data.link, img: data.img, id: data.id });
5094
5102
  this.visibleArticle = false;
5095
5103
  this.updateData(true);
5096
5104
  return;
@@ -5332,7 +5340,7 @@ const _sfc_main = {
5332
5340
  return;
5333
5341
  const cur = me2.findParentByClass(e.target, "halo-img-content");
5334
5342
  const currentImg = cur.getElementsByClassName("halo-picture-area")[0];
5335
- const currentData = JSON.parse(currentImg.getAttribute("data"));
5343
+ const currentData = JSON.parse((currentImg == null ? void 0 : currentImg.getAttribute("data")) || "{}");
5336
5344
  if (currentData.seamlessFlag === "0") {
5337
5345
  if (!cur.previousElementSibling)
5338
5346
  return;
@@ -5358,7 +5366,7 @@ const _sfc_main = {
5358
5366
  const me2 = this;
5359
5367
  const cur = me2.findParentByClass(e.target, "halo-img-content");
5360
5368
  const currentImg = cur.getElementsByClassName("halo-picture-area")[0];
5361
- const currentData = JSON.parse(currentImg.getAttribute("data"));
5369
+ const currentData = JSON.parse((currentImg == null ? void 0 : currentImg.getAttribute("data")) || "{}");
5362
5370
  if (currentData.seamlessFlag === "0") {
5363
5371
  if (!cur.previousElementSibling)
5364
5372
  return;
@@ -5366,7 +5374,7 @@ const _sfc_main = {
5366
5374
  const imgcont = cur.previousElementSibling.previousElementSibling;
5367
5375
  const input = imgcont.getElementsByClassName("desc-input-wrap")[0];
5368
5376
  const pic = imgcont.getElementsByClassName("halo-picture-area")[0];
5369
- const data = JSON.parse(pic.getAttribute("data"));
5377
+ const data = JSON.parse((pic == null ? void 0 : pic.getAttribute("data")) || "{}");
5370
5378
  data.seamlessFlag = "0";
5371
5379
  pic.setAttribute("data", JSON.stringify(data));
5372
5380
  input.style.display = "";
@@ -5451,13 +5459,38 @@ const _sfc_main = {
5451
5459
  event.preventDefault();
5452
5460
  }
5453
5461
  });
5462
+ me2.editor.addEventListener("keydown", function(event) {
5463
+ if (event.keyCode === 8 || event.keyCode === 46) {
5464
+ try {
5465
+ if (me2.selectDom && me2.moverClasses.includes(me2.selectDom.className)) {
5466
+ me2.selectDom.remove();
5467
+ me2.selectDom = null;
5468
+ } else {
5469
+ const selection = getSelection();
5470
+ if (selection.isCollapsed) {
5471
+ const node = selection.focusNode;
5472
+ const previousSibling = node.previousElementSibling || node.parentNode.previousElementSibling || {};
5473
+ const isPre = me2.moverClasses.includes(previousSibling.className);
5474
+ event.preventDefault();
5475
+ if (isPre) {
5476
+ me2.selectDom = previousSibling;
5477
+ previousSibling.classList.add("halo-select");
5478
+ }
5479
+ }
5480
+ }
5481
+ } catch (error) {
5482
+ console.log(error);
5483
+ }
5484
+ }
5485
+ });
5454
5486
  me2.editor.addEventListener("willPaste", function(type, handler) {
5455
5487
  function validateDom() {
5456
5488
  const fragment = type && type.fragment || {};
5457
5489
  let tmpNode = document.createElement("div");
5458
5490
  tmpNode.appendChild(fragment.cloneNode(true));
5459
5491
  const str = tmpNode.innerHTML;
5460
- type.defaultPrevented = str.indexOf("<img") > -1 || str.indexOf("<video") > -1 || tmpNode.querySelectorAll("p").length > 1;
5492
+ const text = tmpNode.innerText || "";
5493
+ type.defaultPrevented = str.indexOf("<img") > -1 || str.indexOf("<video") > -1 || text.length > 1;
5461
5494
  tmpNode = null;
5462
5495
  }
5463
5496
  validateDom();
@@ -5572,10 +5605,22 @@ const _sfc_main = {
5572
5605
  "tabindex": "-1"
5573
5606
  }, [...childList]);
5574
5607
  me2.setDragMove(p);
5608
+ p.onclick = function(e) {
5609
+ me2.selectDom = p;
5610
+ img.classList.add("halo-select");
5611
+ e.stopPropagation();
5612
+ };
5613
+ p.onblur = function(e) {
5614
+ img.classList.remove("halo-select");
5615
+ me2.selectDom = null;
5616
+ e.stopPropagation();
5617
+ };
5575
5618
  this.insertElement(p, range);
5576
5619
  if (isSeameless) {
5577
5620
  me2.removeDefault(p, "nextElementSibling");
5578
5621
  me2.removeDefault(p, "previousElementSibling");
5622
+ } else {
5623
+ me2.removeDefault(p, "previousElementSibling");
5579
5624
  }
5580
5625
  setTimeout(() => {
5581
5626
  document.documentElement.scrollTop = scrollTop;
@@ -6009,7 +6054,7 @@ const _sfc_main = {
6009
6054
  return me2.setToast("URL\u65E0\u6548");
6010
6055
  }
6011
6056
  if (me2.linkContent.indexOf("jddmoto.com") === -1 && me2.linkContent.indexOf("58moto.com") === -1) {
6012
- return me2.setToast("\u8BF7\u8F93\u5165\u54C8\u7F57\u6469\u6258\u5185\u90E8\u7F51\u5740");
6057
+ return me2.setToast("\u8BF7\u8F93\u5165\u6469\u6258\u8303\u5185\u90E8\u7F51\u5740");
6013
6058
  }
6014
6059
  me2.editor["insertLink"](me2.linkContent);
6015
6060
  me2.linkContent = "";
@@ -6084,8 +6129,6 @@ const _hoisted_3 = {
6084
6129
  slot: "footer",
6085
6130
  class: "dialog-footer"
6086
6131
  };
6087
- const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u53D6 \u6D88");
6088
- const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u786E \u5B9A");
6089
6132
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6090
6133
  const _component_el_input = resolveComponent("el-input");
6091
6134
  const _component_el_form_item = resolveComponent("el-form-item");
@@ -6158,7 +6201,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6158
6201
  onClick: _cache[3] || (_cache[3] = ($event) => $data.viewLinkDialog = false)
6159
6202
  }, {
6160
6203
  default: withCtx(() => [
6161
- _hoisted_4
6204
+ createTextVNode("\u53D6 \u6D88")
6162
6205
  ]),
6163
6206
  _: 1
6164
6207
  }),
@@ -6167,7 +6210,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6167
6210
  onClick: $options.insertLink
6168
6211
  }, {
6169
6212
  default: withCtx(() => [
6170
- _hoisted_5
6213
+ createTextVNode("\u786E \u5B9A")
6171
6214
  ]),
6172
6215
  _: 1
6173
6216
  }, 8, ["onClick"])
@@ -6185,7 +6228,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6185
6228
  }, null, 8, ["article", "visible", "getList", "onDelete", "onChange"]),
6186
6229
  createVNode(_component_ImgUpload, {
6187
6230
  "img-list": $data.imgList,
6188
- "onUpdate:img-list": _cache[6] || (_cache[6] = ($event) => $data.imgList = $event),
6231
+ "onUpdate:imgList": _cache[6] || (_cache[6] = ($event) => $data.imgList = $event),
6189
6232
  visible: $data.visibleImg,
6190
6233
  "onUpdate:visible": _cache[7] || (_cache[7] = ($event) => $data.visibleImg = $event),
6191
6234
  chartGallery: $props.chartGallery,
@@ -6200,7 +6243,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6200
6243
  }, null, 8, ["visible", "file-selected"]),
6201
6244
  createVNode(_component_CollectArticle, {
6202
6245
  "link-content": $data.linkContent,
6203
- "onUpdate:link-content": _cache[9] || (_cache[9] = ($event) => $data.linkContent = $event),
6246
+ "onUpdate:linkContent": _cache[9] || (_cache[9] = ($event) => $data.linkContent = $event),
6204
6247
  visible: $data.visibleCollectArticle,
6205
6248
  "onUpdate:visible": _cache[10] || (_cache[10] = ($event) => $data.visibleCollectArticle = $event),
6206
6249
  onSubmit: $options.confirmLink