@10yun/cv-pc-ui 0.4.10 → 0.4.11

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/lib/cv-ui.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! cvPcUI v0.4.10 */
1
+ /*! cvPcUI v0.4.11 */
2
2
  import { ClickOutside as e, ElAutocomplete as t, ElAvatar as n, ElBadge as r, ElButton as i, ElButton as a, ElCascader as o, ElCheckbox as s, ElCheckboxButton as c, ElCheckboxGroup as l, ElDatePicker as u, ElDialog as d, ElDrawer as f, ElForm as p, ElFormItem as m, ElIcon as ee, ElImage as te, ElInput as ne, ElInput as h, ElInputNumber as re, ElMessage as ie, ElMessage as g, ElMessageBox as ae, ElMessageBox as oe, ElOption as se, ElPagination as ce, ElPopover as le, ElScrollbar as ue, ElSelect as de, ElSwitch as fe, ElTable as pe, ElTableColumn as _, ElTag as me, ElTimePicker as he } from "element-plus";
3
3
  import { Fragment as v, Transition as ge, TransitionGroup as _e, computed as ve, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as ye, createTextVNode as C, createVNode as w, defineComponent as be, getCurrentInstance as xe, getCurrentScope as Se, guardReactiveProps as T, h as Ce, inject as we, markRaw as Te, mergeProps as E, nextTick as Ee, normalizeClass as D, normalizeProps as O, normalizeStyle as k, onBeforeUnmount as De, onMounted as Oe, onScopeDispose as ke, onUnmounted as Ae, openBlock as A, provide as je, reactive as Me, ref as j, render as Ne, renderList as M, renderSlot as N, resolveComponent as P, resolveDirective as Pe, resolveDynamicComponent as Fe, shallowReadonly as Ie, shallowRef as Le, toDisplayString as F, toHandlers as Re, toRaw as ze, toRefs as Be, toValue as Ve, unref as I, useCssVars as He, useSlots as Ue, vModelText as We, vShow as L, watch as Ge, withCtx as R, withDirectives as z, withKeys as Ke, withModifiers as qe } from "vue";
4
4
  import { basicSetup as Je } from "codemirror";
@@ -4003,18 +4003,22 @@ function wa(e, t) {
4003
4003
  return pa(e || []).concat(pa(t || []));
4004
4004
  }
4005
4005
  function Ta(e, t) {
4006
- let n = e || {}, r = t || {}, i = n.cdn_full_path || n.url || n.full_path || "", a = ma(i);
4006
+ let n = e || {}, r = t || {}, i = n.cdn_full_path || n.url || n.full_path || "", a = ma(i), o = n.type || n.filelog_type || r.type || a.type;
4007
4007
  return {
4008
4008
  name: n.name || n.filelog_original_name || r.name || a.name,
4009
4009
  url: i,
4010
4010
  size: n.size ?? n.filelog_size ?? r.size ?? "",
4011
- type: n.type || n.filelog_type || r.type || a.type,
4011
+ type: o,
4012
+ extension: n.extension || n.filelog_extension || o || "",
4012
4013
  ...n.size_auto ? { size_auto: n.size_auto } : {},
4013
4014
  status: "success"
4014
4015
  };
4015
4016
  }
4017
+ function Ea(e) {
4018
+ return e == null || e === "" ? null : typeof e == "number" || typeof e == "string" && e.trim() !== "" && !isNaN(Number(e)) ? Number(e) + "px" : String(e);
4019
+ }
4016
4020
  // packages/upload/comp/UploadCrop.vue
4017
- var Ea = { class: "cv-upload-crop-box" }, Da = { class: "cv-upload-crop-left-box" }, Oa = { class: "cv-upload-crop-left-opt" }, ka = { class: "cv-upload-crop-right-box" }, Aa = { class: "cv-upload-crop-preview" }, ja = {
4021
+ var Da = { class: "cv-upload-crop-box" }, Oa = { class: "cv-upload-crop-left-box" }, ka = { class: "cv-upload-crop-left-opt" }, Aa = { class: "cv-upload-crop-right-box" }, ja = { class: "cv-upload-crop-preview" }, Ma = {
4018
4022
  title: "头像上传",
4019
4023
  name: "cvUploadAvatar",
4020
4024
  mixins: [fa],
@@ -4141,7 +4145,7 @@ var Ea = { class: "cv-upload-crop-box" }, Da = { class: "cv-upload-crop-left-box
4141
4145
  "loading",
4142
4146
  "disabled"
4143
4147
  ])]),
4144
- default: R(() => [z((A(), x("div", Ea, [S("div", Da, [t.cropVisible && t.CropperComp ? (A(), y(Fe(t.CropperComp), {
4148
+ default: R(() => [z((A(), x("div", Da, [S("div", Oa, [t.cropVisible && t.CropperComp ? (A(), y(Fe(t.CropperComp), {
4145
4149
  key: 0,
4146
4150
  ref: "cvAvatartCropper",
4147
4151
  class: "cv-advanced-cropper",
@@ -4159,7 +4163,7 @@ var Ea = { class: "cv-upload-crop-box" }, Da = { class: "cv-upload-crop-left-box
4159
4163
  "src",
4160
4164
  "stencil-size",
4161
4165
  "onChange"
4162
- ])) : b("", !0), S("div", Oa, [
4166
+ ])) : b("", !0), S("div", ka, [
4163
4167
  N(t.$slots, "default"),
4164
4168
  w(a, {
4165
4169
  effect: "dark",
@@ -4216,7 +4220,7 @@ var Ea = { class: "cv-upload-crop-box" }, Da = { class: "cv-upload-crop-left-box
4216
4220
  })]),
4217
4221
  _: 1
4218
4222
  })
4219
- ])]), S("div", ka, [S("div", Aa, [t.PreviewComp && t.cropPreviews.image ? (A(), y(Fe(t.PreviewComp), {
4223
+ ])]), S("div", Aa, [S("div", ja, [t.PreviewComp && t.cropPreviews.image ? (A(), y(Fe(t.PreviewComp), {
4220
4224
  key: 0,
4221
4225
  image: t.cropPreviews.image,
4222
4226
  coordinates: t.cropPreviews.coordinates,
@@ -4261,13 +4265,23 @@ var Ea = { class: "cv-upload-crop-box" }, Da = { class: "cv-upload-crop-left-box
4261
4265
  "png",
4262
4266
  "jpg",
4263
4267
  "jpeg",
4264
- "gif"
4268
+ "gif",
4269
+ "webp"
4265
4270
  ]
4266
4271
  },
4267
- showSize: {
4268
- type: Number,
4272
+ showWidth: {
4273
+ type: [Number, String],
4274
+ default: 120
4275
+ },
4276
+ showHeight: {
4277
+ type: [Number, String],
4269
4278
  default: 120
4270
4279
  },
4280
+ showBorderRadius: {
4281
+ type: [Number, String],
4282
+ default: "50%"
4283
+ },
4284
+ disabled: Boolean,
4271
4285
  crop: {
4272
4286
  type: [Boolean],
4273
4287
  default: !0
@@ -4296,7 +4310,7 @@ var Ea = { class: "cv-upload-crop-box" }, Da = { class: "cv-upload-crop-left-box
4296
4310
  limit: 1,
4297
4311
  multiple: !1,
4298
4312
  drag: !1,
4299
- disabled: this.upIngLoading,
4313
+ disabled: this.disabled || this.upIngLoading,
4300
4314
  showFileList: !1
4301
4315
  };
4302
4316
  },
@@ -4305,11 +4319,16 @@ var Ea = { class: "cv-upload-crop-box" }, Da = { class: "cv-upload-crop-left-box
4305
4319
  return e ? typeof e == "string" ? e : Array.isArray(e) ? e[0] && e[0].url || "" : e.url || "" : "";
4306
4320
  },
4307
4321
  showStyle() {
4308
- return {
4309
- width: this.showSize + "px",
4310
- height: this.showSize + "px",
4311
- lineHeight: this.showSize + "px"
4312
- };
4322
+ let e = Ea(this.showHeight), t = {
4323
+ width: Ea(this.showWidth),
4324
+ height: e,
4325
+ lineHeight: e
4326
+ }, n = Ea(this.showBorderRadius);
4327
+ return n && (t.borderRadius = n), t;
4328
+ },
4329
+ cropBoxSize() {
4330
+ let e = Number(this.showWidth) || 0, t = Number(this.showHeight) || 0;
4331
+ return e && t ? Math.min(e, t) : e || t || 120;
4313
4332
  }
4314
4333
  },
4315
4334
  watch: { initValue(e) {
@@ -4323,9 +4342,9 @@ var Ea = { class: "cv-upload-crop-box" }, Da = { class: "cv-upload-crop-left-box
4323
4342
  this.localValue = this.avatarSrc || "";
4324
4343
  },
4325
4344
  cropDialogOpen() {
4326
- this.cropShow = !0, this.$nextTick(() => {
4345
+ this.disabled || (this.cropShow = !0, this.$nextTick(() => {
4327
4346
  this._init_parse();
4328
- });
4347
+ }));
4329
4348
  },
4330
4349
  initBeforeUpload(e) {
4331
4350
  if (this.cropFileName = e && e.name || "", !this._commonBeforeUpload(e)) return this.upIngLoading = !1, !1;
@@ -4361,11 +4380,11 @@ var Ea = { class: "cv-upload-crop-box" }, Da = { class: "cv-upload-crop-left-box
4361
4380
  });
4362
4381
  }
4363
4382
  }
4364
- }, Ma = ["src"];
4365
- function Na(e, t, n, r, i, a) {
4383
+ }, Na = ["src"];
4384
+ function Pa(e, t, n, r, i, a) {
4366
4385
  let o = P("upload-tip"), s = P("cv-icons"), c = P("el-button"), l = P("el-tooltip"), u = P("el-upload"), d = P("upload-crop");
4367
4386
  return A(), x("div", {
4368
- class: "cv-upload-avatar-wrap",
4387
+ class: D(["cv-upload-avatar-wrap", { "cv-upload-avatar-disabled": n.disabled }]),
4369
4388
  onClick: t[2] ||= (...e) => a.cropDialogOpen && a.cropDialogOpen(...e)
4370
4389
  }, [
4371
4390
  a.avatarSrc ? b("", !0) : (A(), x("div", {
@@ -4380,7 +4399,7 @@ function Na(e, t, n, r, i, a) {
4380
4399
  }, [S("img", {
4381
4400
  class: "cv-upload-avatar__img",
4382
4401
  src: a.avatarSrc
4383
- }, null, 8, Ma)], 4)) : b("", !0),
4402
+ }, null, 8, Na)], 4)) : b("", !0),
4384
4403
  w(o, E(e.tipAttr, {
4385
4404
  multiple: !1,
4386
4405
  limit: 1
@@ -4390,7 +4409,7 @@ function Na(e, t, n, r, i, a) {
4390
4409
  modelValue: e.cropShow,
4391
4410
  "onUpdate:modelValue": t[0] ||= (t) => e.cropShow = t,
4392
4411
  title: "修改头像",
4393
- size: n.showSize,
4412
+ size: a.cropBoxSize,
4394
4413
  onOnSubmit: a.onHttpRequest,
4395
4414
  onOnClose: t[1] ||= (t) => e.upIngLoading = !1,
4396
4415
  loading: e.upIngLoading,
@@ -4408,7 +4427,7 @@ function Na(e, t, n, r, i, a) {
4408
4427
  }, {
4409
4428
  default: R(() => [w(c, {
4410
4429
  loading: e.upIngLoading,
4411
- disabled: e.upIngLoading
4430
+ disabled: n.disabled || e.upIngLoading
4412
4431
  }, {
4413
4432
  default: R(() => [w(s, {
4414
4433
  type: "actionPlus",
@@ -4432,14 +4451,14 @@ function Na(e, t, n, r, i, a) {
4432
4451
  "loading",
4433
4452
  "src"
4434
4453
  ])) : b("", !0)
4435
- ]);
4454
+ ], 2);
4436
4455
  }
4437
- var Pa = /*#__PURE__*/ H(ja, [["render", Na]]);
4456
+ var Fa = /*#__PURE__*/ H(Ma, [["render", Pa]]);
4438
4457
  // src/utils/value.js
4439
- function Fa(e) {
4458
+ function Ia(e) {
4440
4459
  return e ? typeof e == "string" || typeof e == "number" ? [e] : Object.prototype.toString.call(e) === "[object Object]" ? [] : [...e] : [];
4441
4460
  }
4442
- function Ia(e, t) {
4461
+ function La(e, t) {
4443
4462
  let n = [];
4444
4463
  Array.isArray(e) && e.length > 0 && n.push(...e), Array.isArray(t) && t.length > 0 && n.push(...t), (typeof t == "string" || typeof t == "number") && n.push(t);
4445
4464
  let r = [];
@@ -4450,7 +4469,7 @@ function Ia(e, t) {
4450
4469
  return r;
4451
4470
  }
4452
4471
  // packages/upload/src/upload-image.vue
4453
- var La = {
4472
+ var Ra = {
4454
4473
  title: "图片上传",
4455
4474
  name: "cvUploadImage",
4456
4475
  mixins: [fa],
@@ -4490,14 +4509,19 @@ var La = {
4490
4509
  "svg"
4491
4510
  ]
4492
4511
  },
4493
- showSize: {
4494
- type: Number,
4512
+ showWidth: {
4513
+ type: [Number, String],
4514
+ default: null
4515
+ },
4516
+ showHeight: {
4517
+ type: [Number, String],
4495
4518
  default: 150
4496
4519
  },
4497
- showBig: {
4498
- type: [Boolean],
4499
- default: !1
4520
+ showBorderRadius: {
4521
+ type: [Number, String],
4522
+ default: null
4500
4523
  },
4524
+ disabled: Boolean,
4501
4525
  crop: {
4502
4526
  type: [Boolean],
4503
4527
  default: !1
@@ -4540,20 +4564,27 @@ var La = {
4540
4564
  limit: parseInt(this.allowFileNum),
4541
4565
  multiple: this.multiple,
4542
4566
  drag: !!this.drag,
4543
- disabled: this.upIngLoading,
4567
+ disabled: this.disabled || this.upIngLoading,
4544
4568
  showFileList: !1
4545
4569
  };
4546
4570
  },
4547
4571
  showUpload() {
4548
4572
  return !(this.localList.length >= this.allowFileNum);
4549
4573
  },
4574
+ baseSize() {
4575
+ let e = [this.showWidth, this.showHeight].map((e) => Number(e)).filter((e) => e > 0);
4576
+ return e.length ? Math.min(...e) : 150;
4577
+ },
4578
+ progressSize() {
4579
+ return Math.round(this.baseSize * .9);
4580
+ },
4550
4581
  showStyle() {
4551
- let e = this.showSize + "px";
4552
- return (this.showBig || this.drag) && (e = this.showSize * 2 + "px"), {
4553
- width: e,
4554
- height: this.showSize + "px",
4555
- lineHeight: this.showSize + "px"
4556
- };
4582
+ let e = Ea(this.showHeight), t = {
4583
+ width: Ea(this.showWidth !== null && this.showWidth !== void 0 && this.showWidth !== "" ? this.showWidth : this.drag ? 300 : this.showHeight),
4584
+ height: e,
4585
+ lineHeight: e
4586
+ }, n = Ea(this.showBorderRadius);
4587
+ return n && (t.borderRadius = n), t;
4557
4588
  }
4558
4589
  },
4559
4590
  watch: {
@@ -4570,8 +4601,8 @@ var La = {
4570
4601
  if (this.modelValue) {
4571
4602
  if (typeof this.modelValue == "string" && this.modelValue.includes(",")) {
4572
4603
  let e = String(this.modelValue).split(",").map((e) => e.trim());
4573
- this.localValue = Fa(e);
4574
- } else this.localValue = Fa(this.modelValue);
4604
+ this.localValue = Ia(e);
4605
+ } else this.localValue = Ia(this.modelValue);
4575
4606
  } else this.localValue = [];
4576
4607
  },
4577
4608
  _init_parse_list() {
@@ -4599,7 +4630,7 @@ var La = {
4599
4630
  },
4600
4631
  updateValue(e, t) {
4601
4632
  if (this.isMultiValue) {
4602
- let n = Ia(this.localValue, e).join(",");
4633
+ let n = La(this.localValue, e).join(",");
4603
4634
  this.$emit("update:modelValue", n), this.$emit("update:initValue", wa(this.localList, t));
4604
4635
  } else this.$emit("update:modelValue", e), this.$emit("update:initValue", t);
4605
4636
  },
@@ -4644,11 +4675,11 @@ var La = {
4644
4675
  },
4645
4676
  handleItemCrop(e, t) {}
4646
4677
  }
4647
- }, Ra = { class: "cv-upload-image cv-upload-common" }, za = { class: "cv-upload-list-box el-upload-list el-upload-list--picture-card" }, Ba = ["tabindex"], Va = { class: "el-upload-list__item-status-label" }, Ha = { class: "el-upload-list__item-actions" }, Ua = ["onClick"], Wa = { class: "el-upload-list__item-delete" }, Ga = { class: "el-upload-list__item-delete" }, Ka = ["onClick"], qa = { style: { margin: "0 auto" } }, Ja = ["src"];
4648
- function Ya(e, t, n, r, i, a) {
4678
+ }, za = { class: "cv-upload-image cv-upload-common" }, Ba = { class: "cv-upload-list-box el-upload-list el-upload-list--picture-card" }, Va = ["tabindex"], Ha = { class: "el-upload-list__item-status-label" }, Ua = { class: "el-upload-list__item-actions" }, Wa = ["onClick"], Ga = { class: "el-upload-list__item-delete" }, Ka = { class: "el-upload-list__item-delete" }, qa = ["onClick"], Ja = { style: { margin: "0 auto" } }, Ya = ["src"];
4679
+ function Xa(e, t, n, r, i, a) {
4649
4680
  let o = P("el-image"), s = P("cv-icons"), c = P("el-progress"), l = P("el-upload"), u = P("upload-tip"), d = P("el-dialog"), f = Pe("loading");
4650
- return A(), x("div", Ra, [
4651
- S("div", za, [(A(!0), x(v, null, M(i.localList, (e, t) => (A(), x("section", {
4681
+ return A(), x("div", za, [
4682
+ S("div", Ba, [(A(!0), x(v, null, M(i.localList, (e, t) => (A(), x("section", {
4652
4683
  class: "el-upload-list__item is-success",
4653
4684
  key: t,
4654
4685
  tabindex: t,
@@ -4665,25 +4696,24 @@ function Ya(e, t, n, r, i, a) {
4665
4696
  "src",
4666
4697
  "style"
4667
4698
  ]),
4668
- S("label", Va, [w(s, {
4699
+ S("label", Ha, [w(s, {
4669
4700
  type: "actionCheck",
4670
4701
  color: "#ffffff",
4671
4702
  size: "12"
4672
4703
  })]),
4673
- S("span", Ha, [
4674
- S("span", {
4675
- class: "el-upload-list__item-preview",
4676
- onClick: (t) => a.handleItemPreview(e)
4677
- }, [w(s, {
4678
- type: "viewZoomIn",
4679
- size: "20"
4680
- })], 8, Ua),
4681
- S("span", Wa, [w(s, {
4704
+ S("span", Ua, [S("span", {
4705
+ class: "el-upload-list__item-preview",
4706
+ onClick: (t) => a.handleItemPreview(e)
4707
+ }, [w(s, {
4708
+ type: "viewZoomIn",
4709
+ size: "20"
4710
+ })], 8, Wa), n.disabled ? b("", !0) : (A(), x(v, { key: 0 }, [
4711
+ S("span", Ga, [w(s, {
4682
4712
  type: "actionDelete",
4683
4713
  size: "20",
4684
4714
  onClick: (n) => a.handleItemRemove(e, t)
4685
4715
  }, null, 8, ["onClick"])]),
4686
- S("span", Ga, [w(s, {
4716
+ S("span", Ka, [w(s, {
4687
4717
  type: "actionEdit",
4688
4718
  size: "20",
4689
4719
  onClick: (n) => a.handleItemEdit(e, t)
@@ -4695,9 +4725,9 @@ function Ya(e, t, n, r, i, a) {
4695
4725
  }, [w(s, {
4696
4726
  type: "actionCrop",
4697
4727
  size: "20"
4698
- })], 8, Ka)) : b("", !0)
4699
- ])
4700
- ], 12, Ba))), 128)), a.showUpload ? (A(), y(l, E({
4728
+ })], 8, qa)) : b("", !0)
4729
+ ], 64))])
4730
+ ], 12, Va))), 128)), a.showUpload ? (A(), y(l, E({
4701
4731
  key: 0,
4702
4732
  ref: "uploadHandleRef",
4703
4733
  class: "cv-upload-common-handle"
@@ -4714,7 +4744,7 @@ function Ya(e, t, n, r, i, a) {
4714
4744
  }, [e.upIngPercent > 0 ? (A(), y(c, {
4715
4745
  key: 0,
4716
4746
  type: "circle",
4717
- width: Math.round(n.showSize / 2),
4747
+ width: a.progressSize,
4718
4748
  percentage: e.upIngPercent
4719
4749
  }, null, 8, ["width", "percentage"])) : n.drag ? (A(), x(v, { key: 1 }, [w(s, {
4720
4750
  type: "arrowUploadFilled",
@@ -4722,7 +4752,7 @@ function Ya(e, t, n, r, i, a) {
4722
4752
  }), t[1] ||= S("div", { class: "el-upload__text" }, [C(" 将文件拖到此处,或 "), S("em", null, "点击上传")], -1)], 64)) : (A(), y(s, {
4723
4753
  key: 2,
4724
4754
  type: "actionPlus",
4725
- size: n.showSize / 3
4755
+ size: a.baseSize / 3
4726
4756
  }, null, 8, ["size"]))], 4)), [[f, e.upIngLoading && e.upIngPercent <= 0]])]),
4727
4757
  _: 1
4728
4758
  }, 16, [
@@ -4739,16 +4769,16 @@ function Ya(e, t, n, r, i, a) {
4739
4769
  title: i.previewTitle,
4740
4770
  "append-to-body": ""
4741
4771
  }, {
4742
- default: R(() => [S("div", qa, [S("img", {
4772
+ default: R(() => [S("div", Ja, [S("img", {
4743
4773
  width: "100%",
4744
4774
  src: i.previewUrl,
4745
4775
  style: { "max-width": "300px" }
4746
- }, null, 8, Ja)])]),
4776
+ }, null, 8, Ya)])]),
4747
4777
  _: 1
4748
4778
  }, 8, ["modelValue", "title"])
4749
4779
  ]);
4750
4780
  }
4751
- var Xa = /*#__PURE__*/ H(La, [["render", Ya]]), Za = {
4781
+ var Za = /*#__PURE__*/ H(Ra, [["render", Xa]]), Qa = {
4752
4782
  mdb: "access",
4753
4783
  accdb: "access",
4754
4784
  ai: "ai",
@@ -4833,11 +4863,11 @@ var Xa = /*#__PURE__*/ H(La, [["render", Ya]]), Za = {
4833
4863
  file: "file",
4834
4864
  css: "css"
4835
4865
  };
4836
- function Qa(e) {
4837
- return `https://10ui.cn/ions/type/${Za[e]}.svg`;
4866
+ function $a(e) {
4867
+ return `https://10ui.cn/ions/type/${Qa[e]}.svg`;
4838
4868
  }
4839
4869
  // packages/upload/comp/UploadList.vue
4840
- var $a = {
4870
+ var eo = {
4841
4871
  name: "uploadList",
4842
4872
  props: {
4843
4873
  files: {
@@ -4861,10 +4891,10 @@ var $a = {
4861
4891
  },
4862
4892
  methods: {
4863
4893
  getExtension(e) {
4864
- return e && e.lastIndexOf(".") > -1 && Qa[e.slice(e.lastIndexOf(".") + 1).toLowerCase()] || Qa.file;
4894
+ return e && e.lastIndexOf(".") > -1 && $a[e.slice(e.lastIndexOf(".") + 1).toLowerCase()] || $a.file;
4865
4895
  },
4866
- showSize(e) {
4867
- return e && e.size_auto ? e.size_auto : e && e.size ? ga(e.size) : "";
4896
+ showFileSize(e) {
4897
+ return e ? e.size_auto ? e.size_auto : e.size === null || e.size === void 0 ? "" : ga(e.size) : "";
4868
4898
  },
4869
4899
  parsePercentage(e) {
4870
4900
  return parseInt(e, 10);
@@ -4878,8 +4908,8 @@ var $a = {
4878
4908
  }).catch(() => {});
4879
4909
  }
4880
4910
  }
4881
- }, eo = ["src"], to = { class: "cv-upload-list__item-content-action" };
4882
- function no(e, t, n, r, i, a) {
4911
+ }, to = ["src"], no = { class: "cv-upload-list__item-content-action" };
4912
+ function ro(e, t, n, r, i, a) {
4883
4913
  let o = P("el-link");
4884
4914
  return A(), y(_e, {
4885
4915
  class: "cv-upload-file-list el-upload-list el-upload-list--text",
@@ -4897,11 +4927,11 @@ function no(e, t, n, r, i, a) {
4897
4927
  default: R(() => [S("img", {
4898
4928
  src: a.getExtension(e.name),
4899
4929
  class: "el-upload-list__item-content-name-icon"
4900
- }, null, 8, eo), S("span", null, F(e.name), 1)]),
4930
+ }, null, 8, to), S("span", null, F(e.name), 1)]),
4901
4931
  _: 2
4902
- }, 1032, ["href"]), S("div", to, [
4932
+ }, 1032, ["href"]), S("div", no, [
4903
4933
  w(o, { underline: "never" }, {
4904
- default: R(() => [C(F(a.showSize(e)), 1)]),
4934
+ default: R(() => [C(F(a.showFileSize(e)), 1)]),
4905
4935
  _: 2
4906
4936
  }, 1024),
4907
4937
  n.isCanDownload ? (A(), y(o, {
@@ -4926,12 +4956,12 @@ function no(e, t, n, r, i, a) {
4926
4956
  });
4927
4957
  }
4928
4958
  // packages/upload/src/upload-file.vue
4929
- var ro = {
4959
+ var io = {
4930
4960
  title: "文件上传",
4931
4961
  inheritAttrs: !1,
4932
4962
  name: "cvUploadFile",
4933
4963
  mixins: [fa],
4934
- components: { uploadList: /* @__PURE__ */ H($a, [["render", no]]) },
4964
+ components: { uploadList: /* @__PURE__ */ H(eo, [["render", ro]]) },
4935
4965
  props: {
4936
4966
  modelValue: {
4937
4967
  type: [
@@ -4997,7 +5027,7 @@ var ro = {
4997
5027
  limit: parseInt(this.allowFileNum),
4998
5028
  multiple: this.multiple,
4999
5029
  drag: !1,
5000
- disabled: this.upIngLoading,
5030
+ disabled: this.disabled || this.upIngLoading,
5001
5031
  showFileList: !1
5002
5032
  };
5003
5033
  } },
@@ -5014,7 +5044,7 @@ var ro = {
5014
5044
  },
5015
5045
  methods: {
5016
5046
  _init_parse_value() {
5017
- this.localValue = this.modelValue ? Fa(this.modelValue) : [];
5047
+ this.localValue = this.modelValue ? Ia(this.modelValue) : [];
5018
5048
  },
5019
5049
  _init_parse_list() {
5020
5050
  this.localList = this.initValue ? pa(this.initValue) : [];
@@ -5040,7 +5070,7 @@ var ro = {
5040
5070
  },
5041
5071
  updateValue(e, t) {
5042
5072
  if (this.isMultiValue) {
5043
- let n = Ia(this.localValue, e), r = wa(this.localList, t);
5073
+ let n = La(this.localValue, e), r = wa(this.localList, t);
5044
5074
  this.$emit("update:modelValue", n), this.$emit("update:initValue", r);
5045
5075
  } else this.$emit("update:modelValue", e || ""), this.$emit("update:initValue", t || "");
5046
5076
  },
@@ -5060,10 +5090,10 @@ var ro = {
5060
5090
  } else this.$emit("update:modelValue", ""), this.$emit("update:initValue", "");
5061
5091
  }
5062
5092
  }
5063
- }, io = { class: "cv-upload-file" };
5064
- function ao(e, t, n, r, i, a) {
5093
+ }, ao = { class: "cv-upload-file" };
5094
+ function oo(e, t, n, r, i, a) {
5065
5095
  let o = P("cv-icons"), s = P("el-button"), c = P("el-upload"), l = P("el-progress"), u = P("upload-tip"), d = P("upload-list");
5066
- return A(), x("div", io, [
5096
+ return A(), x("div", ao, [
5067
5097
  w(c, E({
5068
5098
  ref: "uploadHandleRef",
5069
5099
  class: "cv-upload-file-uploader"
@@ -5106,7 +5136,7 @@ function ao(e, t, n, r, i, a) {
5106
5136
  ])
5107
5137
  ]);
5108
5138
  }
5109
- var oo = /*#__PURE__*/ H(ro, [["render", ao]]), so = {
5139
+ var so = /*#__PURE__*/ H(io, [["render", oo]]), co = {
5110
5140
  title: "视频上传",
5111
5141
  name: "cvUploadVideo",
5112
5142
  mixins: [fa],
@@ -5132,10 +5162,19 @@ var oo = /*#__PURE__*/ H(ro, [["render", ao]]), so = {
5132
5162
  type: Array,
5133
5163
  default: ["mp4", "mp3"]
5134
5164
  },
5135
- showSize: {
5136
- type: Number,
5165
+ showWidth: {
5166
+ type: [Number, String],
5137
5167
  default: 360
5138
5168
  },
5169
+ showHeight: {
5170
+ type: [Number, String],
5171
+ default: 216
5172
+ },
5173
+ showBorderRadius: {
5174
+ type: [Number, String],
5175
+ default: null
5176
+ },
5177
+ disabled: Boolean,
5139
5178
  signatureParam: {
5140
5179
  type: [Object],
5141
5180
  default: () => ({ save_sign: "video" })
@@ -5159,19 +5198,27 @@ var oo = /*#__PURE__*/ H(ro, [["render", ao]]), so = {
5159
5198
  limit: 1,
5160
5199
  multiple: !1,
5161
5200
  drag: !0,
5162
- disabled: this.upIngLoading,
5201
+ disabled: this.disabled || this.upIngLoading,
5163
5202
  showFileList: !1
5164
5203
  };
5165
5204
  },
5166
5205
  showUpload() {
5167
5206
  return !(this.localList && this.localList.length >= 1);
5168
5207
  },
5208
+ baseSize() {
5209
+ let e = [this.showWidth, this.showHeight].map((e) => Number(e)).filter((e) => e > 0);
5210
+ return e.length ? Math.min(...e) : 216;
5211
+ },
5212
+ progressSize() {
5213
+ return Math.round(this.baseSize * .9);
5214
+ },
5169
5215
  showStyle() {
5170
- return {
5171
- width: this.showSize + "px",
5172
- height: this.showSize / 5 * 3 + "px",
5173
- lineHeight: this.showSize + "px"
5174
- };
5216
+ let e = Ea(this.showHeight), t = {
5217
+ width: Ea(this.showWidth),
5218
+ height: e,
5219
+ lineHeight: e
5220
+ }, n = Ea(this.showBorderRadius);
5221
+ return n && (t.borderRadius = n), t;
5175
5222
  }
5176
5223
  },
5177
5224
  watch: {
@@ -5187,7 +5234,7 @@ var oo = /*#__PURE__*/ H(ro, [["render", ao]]), so = {
5187
5234
  },
5188
5235
  methods: {
5189
5236
  _init_parse_value() {
5190
- this.localValue = this.modelValue ? Fa(this.modelValue) : "";
5237
+ this.localValue = this.modelValue ? Ia(this.modelValue) : "";
5191
5238
  },
5192
5239
  _init_parse_list() {
5193
5240
  this.localList = this.initValue ? pa(this.initValue) : "";
@@ -5255,18 +5302,18 @@ var oo = /*#__PURE__*/ H(ro, [["render", ao]]), so = {
5255
5302
  } else this.doRemove(t);
5256
5303
  }
5257
5304
  }
5258
- }, co = { class: "cv-upload-video" }, lo = { class: "cv-upload-list-box el-upload-list el-upload-list--picture-card" }, uo = ["tabindex"], fo = ["src"], po = { class: "el-upload-list__item-status-label" }, mo = { class: "el-upload-list__item-actions" }, ho = ["onClick"], go = { class: "el-upload-list__item-delete" }, _o = { class: "el-upload-list__item-delete" }, vo = {
5305
+ }, lo = { class: "cv-upload-video" }, uo = { class: "cv-upload-list-box el-upload-list el-upload-list--picture-card" }, fo = ["tabindex"], po = ["src"], mo = { class: "el-upload-list__item-status-label" }, ho = { class: "el-upload-list__item-actions" }, go = ["onClick"], _o = { class: "el-upload-list__item-delete" }, vo = { class: "el-upload-list__item-delete" }, yo = {
5259
5306
  key: 0,
5260
5307
  style: {
5261
5308
  width: "500px",
5262
5309
  height: "300px",
5263
5310
  margin: "0 auto"
5264
5311
  }
5265
- }, yo = ["src"];
5266
- function bo(e, t, n, r, i, a) {
5312
+ }, bo = ["src"];
5313
+ function xo(e, t, n, r, i, a) {
5267
5314
  let o = P("cv-icons"), s = P("el-progress"), c = P("el-upload"), l = P("upload-tip"), u = P("el-dialog"), d = Pe("loading");
5268
- return A(), x("div", co, [
5269
- S("div", lo, [i.localList ? (A(!0), x(v, { key: 0 }, M(i.localList, (e, t) => (A(), x("section", {
5315
+ return A(), x("div", lo, [
5316
+ S("div", uo, [i.localList ? (A(!0), x(v, { key: 0 }, M(i.localList, (e, t) => (A(), x("section", {
5270
5317
  class: "el-upload-list__item is-success",
5271
5318
  key: t,
5272
5319
  tabindex: t,
@@ -5277,32 +5324,28 @@ function bo(e, t, n, r, i, a) {
5277
5324
  autoplay: !1,
5278
5325
  src: e.url,
5279
5326
  style: k(a.showStyle)
5280
- }, " 您的浏览器不支持视频播放 ", 12, fo),
5281
- S("label", po, [w(o, {
5327
+ }, " 您的浏览器不支持视频播放 ", 12, po),
5328
+ S("label", mo, [w(o, {
5282
5329
  type: "actionCheck",
5283
5330
  color: "#ffffff",
5284
5331
  size: "12"
5285
5332
  })]),
5286
- S("span", mo, [
5287
- S("span", {
5288
- class: "el-upload-list__item-preview",
5289
- onClick: (t) => a.handleItemPreview(e)
5290
- }, [w(o, {
5291
- type: "medcirclePlay",
5292
- size: "20"
5293
- })], 8, ho),
5294
- S("span", go, [w(o, {
5295
- type: "actionDelete",
5296
- size: "20",
5297
- onClick: (n) => a.handleItemRemove(e, t)
5298
- }, null, 8, ["onClick"])]),
5299
- S("span", _o, [w(o, {
5300
- type: "actionEdit",
5301
- size: "20",
5302
- onClick: (n) => a.handleItemEdit(e, t)
5303
- }, null, 8, ["onClick"])])
5304
- ])
5305
- ], 12, uo))), 128)) : b("", !0), a.showUpload ? (A(), y(c, E({
5333
+ S("span", ho, [S("span", {
5334
+ class: "el-upload-list__item-preview",
5335
+ onClick: (t) => a.handleItemPreview(e)
5336
+ }, [w(o, {
5337
+ type: "medcirclePlay",
5338
+ size: "20"
5339
+ })], 8, go), n.disabled ? b("", !0) : (A(), x(v, { key: 0 }, [S("span", _o, [w(o, {
5340
+ type: "actionDelete",
5341
+ size: "20",
5342
+ onClick: (n) => a.handleItemRemove(e, t)
5343
+ }, null, 8, ["onClick"])]), S("span", vo, [w(o, {
5344
+ type: "actionEdit",
5345
+ size: "20",
5346
+ onClick: (n) => a.handleItemEdit(e, t)
5347
+ }, null, 8, ["onClick"])])], 64))])
5348
+ ], 12, fo))), 128)) : b("", !0), a.showUpload ? (A(), y(c, E({
5306
5349
  key: 1,
5307
5350
  ref: "uploadHandleRef",
5308
5351
  class: "cv-upload-handler"
@@ -5312,19 +5355,18 @@ function bo(e, t, n, r, i, a) {
5312
5355
  "on-exceed": e.initOnExceed,
5313
5356
  style: a.showStyle
5314
5357
  }), {
5315
- default: R(() => [e.upIngPercent > 0 ? (A(), y(s, {
5316
- key: 0,
5317
- percentage: e.upIngPercent,
5318
- style: { "margin-top": "20px" },
5319
- type: "circle"
5320
- }, null, 8, ["percentage"])) : z((A(), x("div", {
5321
- key: 1,
5358
+ default: R(() => [z((A(), x("div", {
5322
5359
  class: "cv-upload-video__ing",
5323
5360
  style: k(a.showStyle)
5324
- }, [w(o, {
5361
+ }, [e.upIngPercent > 0 ? (A(), y(s, {
5362
+ key: 0,
5363
+ type: "circle",
5364
+ width: a.progressSize,
5365
+ percentage: e.upIngPercent
5366
+ }, null, 8, ["width", "percentage"])) : (A(), x(v, { key: 1 }, [w(o, {
5325
5367
  type: "arrowUploadFilled",
5326
5368
  size: "24"
5327
- }), t[1] ||= S("div", { class: "el-upload__text" }, [C(" 将视频拖到此处,或 "), S("em", null, "点击上传")], -1)], 4)), [[d, e.upIngLoading && e.upIngPercent <= 0]])]),
5369
+ }), t[1] ||= S("div", { class: "el-upload__text" }, [C(" 将视频拖到此处,或 "), S("em", null, "点击上传")], -1)], 64))], 4)), [[d, e.upIngLoading && e.upIngPercent <= 0]])]),
5328
5370
  _: 1
5329
5371
  }, 16, [
5330
5372
  "before-upload",
@@ -5339,7 +5381,7 @@ function bo(e, t, n, r, i, a) {
5339
5381
  title: i.previewTitle,
5340
5382
  "append-to-body": ""
5341
5383
  }, {
5342
- default: R(() => [i.previewShow ? (A(), x("div", vo, [S("video", {
5384
+ default: R(() => [i.previewShow ? (A(), x("div", yo, [S("video", {
5343
5385
  autoplay: !0,
5344
5386
  src: i.previewUrl,
5345
5387
  controls: "controls",
@@ -5347,12 +5389,12 @@ function bo(e, t, n, r, i, a) {
5347
5389
  width: "500px",
5348
5390
  height: "300px"
5349
5391
  }
5350
- }, " 您的浏览器不支持视频播放 ", 8, yo)])) : b("", !0)]),
5392
+ }, " 您的浏览器不支持视频播放 ", 8, bo)])) : b("", !0)]),
5351
5393
  _: 1
5352
5394
  }, 8, ["modelValue", "title"])
5353
5395
  ]);
5354
5396
  }
5355
- var xo = /*#__PURE__*/ H(so, [["render", bo]]), So = {
5397
+ var So = /*#__PURE__*/ H(co, [["render", xo]]), Co = {
5356
5398
  name: "cvUploadOss",
5357
5399
  mixins: [{
5358
5400
  emits: [
@@ -5546,7 +5588,7 @@ var xo = /*#__PURE__*/ H(so, [["render", bo]]), So = {
5546
5588
  filePath: ""
5547
5589
  };
5548
5590
  try {
5549
- let { raw: r, percentage: i } = e, a = r, o = await ya(this.signatureType, n, {}, { secure: !0 });
5591
+ let { raw: r, percentage: i } = e, a = r, o = await ya(this.signatureType, n, { original_name: r.name }, { secure: !0 });
5550
5592
  if (Ca(this.signatureType) === Sa.sts) {
5551
5593
  if (e.client = o, e.partSize = 0, i < 100 && r.name.indexOf(".") !== -1) {
5552
5594
  let t = o.dir + a.name;
@@ -5658,22 +5700,22 @@ var xo = /*#__PURE__*/ H(so, [["render", bo]]), So = {
5658
5700
  }
5659
5701
  }
5660
5702
  }]
5661
- }, Co = { class: "oss-upload" }, wo = { class: "cv-upload-task-hd-title" }, To = { class: "cv-upload-task-hd-num" }, Eo = { class: "cv-upload-task-opts" }, Do = { class: "cv-upload-task-lists" }, Oo = { class: "cv-upload-task-item-name" }, ko = { class: "name" }, Ao = { class: "file-name-item" }, jo = {
5703
+ }, wo = { class: "oss-upload" }, To = { class: "cv-upload-task-hd-title" }, Eo = { class: "cv-upload-task-hd-num" }, Do = { class: "cv-upload-task-opts" }, Oo = { class: "cv-upload-task-lists" }, ko = { class: "cv-upload-task-item-name" }, Ao = { class: "name" }, jo = { class: "file-name-item" }, Mo = {
5662
5704
  key: 0,
5663
5705
  class: "speed"
5664
- }, Mo = {
5706
+ }, No = {
5665
5707
  key: 1,
5666
5708
  class: "speed"
5667
- }, No = {
5709
+ }, Po = {
5668
5710
  key: 2,
5669
5711
  class: "success"
5670
- }, Po = { class: "total" }, Fo = {
5712
+ }, Fo = { class: "total" }, Io = {
5671
5713
  key: 0,
5672
5714
  class: "name error"
5673
- }, Io = { class: "cv-upload-task-item-tool" }, Lo = ["onClick"], Ro = ["onClick"];
5674
- function zo(e, t, n, r, i, a) {
5715
+ }, Lo = { class: "cv-upload-task-item-tool" }, Ro = ["onClick"], zo = ["onClick"];
5716
+ function Bo(e, t, n, r, i, a) {
5675
5717
  let o = P("cv-icons"), s = P("el-button"), c = P("el-upload"), l = P("el-progress"), u = P("el-dialog");
5676
- return A(), x("div", Co, [w(c, {
5718
+ return A(), x("div", wo, [w(c, {
5677
5719
  ref: "upload",
5678
5720
  action: "",
5679
5721
  "show-file-list": !1,
@@ -5708,8 +5750,8 @@ function zo(e, t, n, r, i, a) {
5708
5750
  "before-close": e.handleClose,
5709
5751
  style: { height: "500px" }
5710
5752
  }, {
5711
- header: R(() => [S("div", wo, [t[2] ||= S("span", null, "上传", -1), S("span", To, F(e.fileList.length - e.unList.length) + "/" + F(e.fileList.length), 1)])]),
5712
- default: R(() => [S("div", Eo, [
5753
+ header: R(() => [S("div", To, [t[2] ||= S("span", null, "上传", -1), S("span", Eo, F(e.fileList.length - e.unList.length) + "/" + F(e.fileList.length), 1)])]),
5754
+ default: R(() => [S("div", Do, [
5713
5755
  w(s, {
5714
5756
  type: "primary",
5715
5757
  disabled: e.uploadDisabled,
@@ -5734,18 +5776,18 @@ function zo(e, t, n, r, i, a) {
5734
5776
  default: R(() => [w(o, { type: "medcirclePause" }), t[5] ||= C(" 暂停 ", -1)]),
5735
5777
  _: 1
5736
5778
  }, 8, ["disabled", "onClick"])
5737
- ]), S("div", Do, [(A(!0), x(v, null, M(e.fileList, (t, n) => (A(), x("div", {
5779
+ ]), S("div", Oo, [(A(!0), x(v, null, M(e.fileList, (t, n) => (A(), x("div", {
5738
5780
  class: "cv-upload-task-item-box",
5739
5781
  key: n
5740
- }, [S("div", Oo, [
5741
- S("div", ko, [
5742
- S("span", Ao, F(n + 1) + "." + F(t.name), 1),
5743
- t.isLoading && !t.isPlay ? (A(), x("span", jo, "准备就绪")) : b("", !0),
5744
- t.isPlay && t.percentage !== 100 ? (A(), x("span", Mo, F(t.speed) + "/s", 1)) : b("", !0),
5745
- t.percentage === 100 ? (A(), x("span", No, "完成")) : b("", !0),
5746
- S("div", Po, F(e.filterSize(t.size)), 1)
5782
+ }, [S("div", ko, [
5783
+ S("div", Ao, [
5784
+ S("span", jo, F(n + 1) + "." + F(t.name), 1),
5785
+ t.isLoading && !t.isPlay ? (A(), x("span", Mo, "准备就绪")) : b("", !0),
5786
+ t.isPlay && t.percentage !== 100 ? (A(), x("span", No, F(t.speed) + "/s", 1)) : b("", !0),
5787
+ t.percentage === 100 ? (A(), x("span", Po, "完成")) : b("", !0),
5788
+ S("div", Fo, F(e.filterSize(t.size)), 1)
5747
5789
  ]),
5748
- t.errMsg ? (A(), x("span", Fo, F(t.errMsg), 1)) : b("", !0),
5790
+ t.errMsg ? (A(), x("span", Io, F(t.errMsg), 1)) : b("", !0),
5749
5791
  t.percentage < 100 && !t.errMsg ? (A(), y(l, {
5750
5792
  key: 1,
5751
5793
  percentage: t.percentage
@@ -5754,11 +5796,11 @@ function zo(e, t, n, r, i, a) {
5754
5796
  percentage: t.percentage,
5755
5797
  status: t.errMsg ? "exception" : "success"
5756
5798
  }, null, 8, ["percentage", "status"]))
5757
- ]), S("div", Io, [!t.percentage || 0 < t.percentage < 100 && !t.isPlay ? (A(), x("span", {
5799
+ ]), S("div", Lo, [!t.percentage || 0 < t.percentage < 100 && !t.isPlay ? (A(), x("span", {
5758
5800
  key: 0,
5759
5801
  class: "icon delete",
5760
5802
  onClick: (t) => e.handleDeleteChangeFile(n)
5761
- }, [w(o, { type: "actionClose" })], 8, Lo)) : b("", !0), t.percentage && t.percentage !== 100 ? (A(), x("span", {
5803
+ }, [w(o, { type: "actionClose" })], 8, Ro)) : b("", !0), t.percentage && t.percentage !== 100 ? (A(), x("span", {
5762
5804
  key: 1,
5763
5805
  class: D(["icon", t.isPlay ? "delete" : "success"]),
5764
5806
  onClick: (r) => e.handleStopChangeFile(n, t)
@@ -5768,11 +5810,11 @@ function zo(e, t, n, r, i, a) {
5768
5810
  })) : (A(), y(o, {
5769
5811
  key: 1,
5770
5812
  type: "arrowCaretRight"
5771
- }))], 10, Ro)) : b("", !0)])]))), 128))])]),
5813
+ }))], 10, zo)) : b("", !0)])]))), 128))])]),
5772
5814
  _: 1
5773
5815
  }, 8, ["modelValue", "before-close"])]);
5774
5816
  }
5775
- var Bo = /*#__PURE__*/ H(So, [["render", zo], ["__scopeId", "data-v-ae9dfc45"]]), Vo = {
5817
+ var Vo = /*#__PURE__*/ H(Co, [["render", Bo], ["__scopeId", "data-v-ae9dfc45"]]), Ho = {
5776
5818
  mixins: [fa],
5777
5819
  props: {
5778
5820
  allowFileSize: {
@@ -5844,10 +5886,10 @@ var Bo = /*#__PURE__*/ H(So, [["render", zo], ["__scopeId", "data-v-ae9dfc45"]])
5844
5886
  }
5845
5887
  }
5846
5888
  }
5847
- }, Ho = {
5889
+ }, Uo = {
5848
5890
  title: "图片上传(迷你触发器)",
5849
5891
  name: "cvUploadImageMini",
5850
- mixins: [Vo],
5892
+ mixins: [Ho],
5851
5893
  props: {
5852
5894
  allowFileSize: {
5853
5895
  type: [Number],
@@ -5878,10 +5920,10 @@ var Bo = /*#__PURE__*/ H(So, [["render", zo], ["__scopeId", "data-v-ae9dfc45"]])
5878
5920
  default: () => ({ save_sign: "image" })
5879
5921
  }
5880
5922
  }
5881
- }, Uo = { class: "cv-upload-image-mini" };
5882
- function Wo(e, t, n, r, i, a) {
5923
+ }, Wo = { class: "cv-upload-image-mini" };
5924
+ function Go(e, t, n, r, i, a) {
5883
5925
  let o = P("cv-icons"), s = P("el-button"), c = P("el-upload"), l = P("el-progress");
5884
- return A(), x("div", Uo, [w(c, E({
5926
+ return A(), x("div", Wo, [w(c, E({
5885
5927
  ref: "uploadHandleRef",
5886
5928
  class: "cv-upload-image-mini__uploader"
5887
5929
  }, e.handlerAttr, {
@@ -5915,10 +5957,10 @@ function Wo(e, t, n, r, i, a) {
5915
5957
  style: { margin: "8px 0" }
5916
5958
  }, null, 8, ["percentage"])) : b("", !0)]);
5917
5959
  }
5918
- var Go = /*#__PURE__*/ H(Ho, [["render", Wo]]), Ko = {
5960
+ var Ko = /*#__PURE__*/ H(Uo, [["render", Go]]), qo = {
5919
5961
  title: "文件上传(迷你触发器)",
5920
5962
  name: "cvUploadFileMini",
5921
- mixins: [Vo],
5963
+ mixins: [Ho],
5922
5964
  props: {
5923
5965
  allowFileSize: {
5924
5966
  type: [Number],
@@ -5941,10 +5983,10 @@ var Go = /*#__PURE__*/ H(Ho, [["render", Wo]]), Ko = {
5941
5983
  default: () => ({ save_sign: "file" })
5942
5984
  }
5943
5985
  }
5944
- }, qo = { class: "cv-upload-file-mini" };
5945
- function Jo(e, t, n, r, i, a) {
5986
+ }, Jo = { class: "cv-upload-file-mini" };
5987
+ function Yo(e, t, n, r, i, a) {
5946
5988
  let o = P("cv-icons"), s = P("el-button"), c = P("el-upload"), l = P("el-progress");
5947
- return A(), x("div", qo, [w(c, E({
5989
+ return A(), x("div", Jo, [w(c, E({
5948
5990
  ref: "uploadHandleRef",
5949
5991
  class: "cv-upload-file-mini__uploader"
5950
5992
  }, e.handlerAttr, {
@@ -5978,24 +6020,24 @@ function Jo(e, t, n, r, i, a) {
5978
6020
  style: { margin: "8px 0" }
5979
6021
  }, null, 8, ["percentage"])) : b("", !0)]);
5980
6022
  }
5981
- var Yo = /*#__PURE__*/ H(Ko, [["render", Jo]]);
5982
- Pa.install = function(e) {
5983
- e.component(Pa.name, Pa);
5984
- }, Xa.install = function(e) {
5985
- e.component(Xa.name, Xa);
5986
- }, oo.install = function(e) {
5987
- e.component(oo.name, oo);
5988
- }, xo.install = function(e) {
5989
- e.component(xo.name, xo);
5990
- }, Bo.install = function(e) {
5991
- e.component(Bo.name, Bo);
5992
- }, Go.install = function(e) {
5993
- e.component(Go.name, Go);
5994
- }, Yo.install = function(e) {
5995
- e.component(Yo.name, Yo);
6023
+ var Xo = /*#__PURE__*/ H(qo, [["render", Yo]]);
6024
+ Fa.install = function(e) {
6025
+ e.component(Fa.name, Fa);
6026
+ }, Za.install = function(e) {
6027
+ e.component(Za.name, Za);
6028
+ }, so.install = function(e) {
6029
+ e.component(so.name, so);
6030
+ }, So.install = function(e) {
6031
+ e.component(So.name, So);
6032
+ }, Vo.install = function(e) {
6033
+ e.component(Vo.name, Vo);
6034
+ }, Ko.install = function(e) {
6035
+ e.component(Ko.name, Ko);
6036
+ }, Xo.install = function(e) {
6037
+ e.component(Xo.name, Xo);
5996
6038
  };
5997
6039
  // packages/tabs/src/tabs.vue
5998
- var Xo = {
6040
+ var Zo = {
5999
6041
  name: "cvTabsJump",
6000
6042
  props: { tabPosition: {
6001
6043
  type: String,
@@ -6021,11 +6063,11 @@ var Xo = {
6021
6063
  } },
6022
6064
  created() {},
6023
6065
  mounted() {}
6024
- }, Zo = { class: "tabs-header" };
6025
- function Qo(e, t, n, r, i, a) {
6026
- return A(), x("div", { class: D(["cv-tabs-jump", a.tabPositionClass]) }, [S("div", Zo, [N(e.$slots, "default")])], 2);
6066
+ }, Qo = { class: "tabs-header" };
6067
+ function $o(e, t, n, r, i, a) {
6068
+ return A(), x("div", { class: D(["cv-tabs-jump", a.tabPositionClass]) }, [S("div", Qo, [N(e.$slots, "default")])], 2);
6027
6069
  }
6028
- var $o = /*#__PURE__*/ H(Xo, [["render", Qo]]), es = {
6070
+ var es = /*#__PURE__*/ H(Zo, [["render", $o]]), ts = {
6029
6071
  name: "cvTabPane",
6030
6072
  emits: ["click"],
6031
6073
  inject: ["addChildComponents", "clearChildClass"],
@@ -6057,21 +6099,21 @@ var $o = /*#__PURE__*/ H(Xo, [["render", Qo]]), es = {
6057
6099
  this.clearChildClass(), this.className = "active", this.$emit("click");
6058
6100
  }
6059
6101
  }
6060
- }, ts = { key: 1 };
6061
- function ns(e, t, n, r, i, a) {
6102
+ }, ns = { key: 1 };
6103
+ function rs(e, t, n, r, i, a) {
6062
6104
  return z((A(), x("div", {
6063
6105
  class: D(["cv-tab-pane", i.className]),
6064
6106
  onClick: t[0] ||= (...e) => a.handleClick && a.handleClick(...e)
6065
- }, [e.$slots.label ? N(e.$slots, "label", {}, void 0, void 0, 0) : (A(), x("span", ts, F(n.label), 1))], 2)), [[L, i.isshow]]);
6107
+ }, [e.$slots.label ? N(e.$slots, "label", {}, void 0, void 0, 0) : (A(), x("span", ns, F(n.label), 1))], 2)), [[L, i.isshow]]);
6066
6108
  }
6067
- var rs = /*#__PURE__*/ H(es, [["render", ns]]);
6068
- $o.install = function(e) {
6069
- e.component($o.name, $o);
6070
- }, rs.install = function(e) {
6071
- e.component(rs.name, rs);
6109
+ var is = /*#__PURE__*/ H(ts, [["render", rs]]);
6110
+ es.install = function(e) {
6111
+ e.component(es.name, es);
6112
+ }, is.install = function(e) {
6113
+ e.component(is.name, is);
6072
6114
  };
6073
6115
  // packages/draw/src/captcha.vue
6074
- var is = {
6116
+ var as = {
6075
6117
  name: "cvDrawCaptcha",
6076
6118
  props: {
6077
6119
  modelValue: {
@@ -6185,32 +6227,32 @@ var is = {
6185
6227
  for (let t = 0; t < 80; t++) e.fillStyle = this.randomColor(0, 255), e.beginPath(), e.arc(this.randomNum(0, this.contentWidth), this.randomNum(0, this.contentHeight), 1, 0, 2 * Math.PI), e.fill();
6186
6228
  }
6187
6229
  }
6188
- }, as = { class: "cv-draw-captcha" }, os = ["width", "height"];
6189
- function ss(e, t, n, r, i, a) {
6190
- return A(), x("div", as, [S("canvas", {
6230
+ }, os = { class: "cv-draw-captcha" }, ss = ["width", "height"];
6231
+ function cs(e, t, n, r, i, a) {
6232
+ return A(), x("div", os, [S("canvas", {
6191
6233
  id: "cv-draw-captcha",
6192
6234
  width: n.contentWidth,
6193
6235
  height: n.contentHeight,
6194
6236
  onClick: t[0] ||= (...e) => a.refreshCode && a.refreshCode(...e)
6195
- }, null, 8, os)]);
6237
+ }, null, 8, ss)]);
6196
6238
  }
6197
- var cs = /*#__PURE__*/ H(is, [["render", ss]]), ls = {
6239
+ var ls = /*#__PURE__*/ H(as, [["render", cs]]), us = {
6198
6240
  name: "cvDrawQrcode",
6199
6241
  data() {
6200
6242
  return {};
6201
6243
  }
6202
6244
  };
6203
- function us(e, t, n, r, i, a) {
6245
+ function ds(e, t, n, r, i, a) {
6204
6246
  return A(), x("div", null, "二维码");
6205
6247
  }
6206
- var ds = /*#__PURE__*/ H(ls, [["render", us]]);
6207
- cs.install = function(e) {
6208
- e.component(cs.name, cs);
6209
- }, ds.install = function(e) {
6210
- e.component(ds.name, ds);
6248
+ var fs = /*#__PURE__*/ H(us, [["render", ds]]);
6249
+ ls.install = function(e) {
6250
+ e.component(ls.name, ls);
6251
+ }, fs.install = function(e) {
6252
+ e.component(fs.name, fs);
6211
6253
  };
6212
6254
  // packages/tag/src/base.vue
6213
- var fs = {
6255
+ var ps = {
6214
6256
  name: "cvTagBase",
6215
6257
  mixins: [],
6216
6258
  components: {},
@@ -6278,8 +6320,8 @@ var fs = {
6278
6320
  if (this.modelValue) {
6279
6321
  if (typeof this.modelValue == "string" && this.modelValue.includes(",")) {
6280
6322
  let e = String(this.modelValue).split(",").map((e) => e.trim());
6281
- this.localVal = Fa(e);
6282
- } else this.localVal = Fa(this.modelValue);
6323
+ this.localVal = Ia(e);
6324
+ } else this.localVal = Ia(this.modelValue);
6283
6325
  }
6284
6326
  },
6285
6327
  _parse_last() {
@@ -6301,17 +6343,17 @@ var fs = {
6301
6343
  this.disabled || (this.localVal.splice(e, 1), this._parse_last());
6302
6344
  }
6303
6345
  }
6304
- }, ps = { class: "cv-tag-base" }, ms = [
6346
+ }, ms = { class: "cv-tag-base" }, hs = [
6305
6347
  "contenteditable",
6306
6348
  "onKeyup",
6307
6349
  "onBlur"
6308
- ], hs = {
6350
+ ], gs = {
6309
6351
  key: 1,
6310
6352
  class: "cv-tag-maxlength-hint"
6311
6353
  };
6312
- function gs(e, t, n, r, i, a) {
6354
+ function _s(e, t, n, r, i, a) {
6313
6355
  let o = P("el-tag"), s = P("cv-icons");
6314
- return A(), x("div", ps, [
6356
+ return A(), x("div", ms, [
6315
6357
  (A(!0), x(v, null, M(i.localVal, (e, t) => (A(), y(o, E({ class: "cv-tag-content" }, { ref_for: !0 }, {
6316
6358
  closable: !n.disabled && n.closable,
6317
6359
  disableTransitions: n.disableTransitions,
@@ -6332,7 +6374,7 @@ function gs(e, t, n, r, i, a) {
6332
6374
  ref: `newTag${t}`,
6333
6375
  onKeyup: Ke((e) => !n.disabled && a.checkTag(t), ["enter"]),
6334
6376
  onBlur: (e) => !n.disabled && a.checkTag(t)
6335
- }, F(e), 41, ms)]),
6377
+ }, F(e), 41, hs)]),
6336
6378
  _: 2
6337
6379
  }, 1040, ["onClose", "disabled"]))), 128)),
6338
6380
  !n.disabled && i.localVal.length < n.maxlength ? (A(), y(s, {
@@ -6341,16 +6383,16 @@ function gs(e, t, n, r, i, a) {
6341
6383
  size: "20",
6342
6384
  onClick: t[0] ||= (e) => a.addTag()
6343
6385
  })) : b("", !0),
6344
- !n.disabled && i.localVal.length >= n.maxlength ? (A(), x("span", hs, "已达到最大数量 (" + F(n.maxlength) + ")", 1)) : b("", !0)
6386
+ !n.disabled && i.localVal.length >= n.maxlength ? (A(), x("span", gs, "已达到最大数量 (" + F(n.maxlength) + ")", 1)) : b("", !0)
6345
6387
  ]);
6346
6388
  }
6347
- var _s = /*#__PURE__*/ H(fs, [["render", gs]]);
6389
+ var vs = /*#__PURE__*/ H(ps, [["render", _s]]);
6348
6390
  // packages/tag/index.js
6349
- _s.install = function(e) {
6350
- e.component(_s.name, _s);
6391
+ vs.install = function(e) {
6392
+ e.component(vs.name, vs);
6351
6393
  };
6352
6394
  // packages/transfer/src/table.vue
6353
- var vs = {
6395
+ var ys = {
6354
6396
  name: "cvTransferTable",
6355
6397
  props: {
6356
6398
  modelValue: {
@@ -6538,19 +6580,19 @@ var vs = {
6538
6580
  this.pageIndex = 1, this.handlePaginationCallBack();
6539
6581
  }
6540
6582
  }
6541
- }, ys = { class: "cv-transfer-table" }, bs = { class: "transfer-panel" }, xs = { class: "transfer-panel-header" }, Ss = { key: 0 }, Cs = { style: { padding: "5px" } }, ws = { class: "transfer-buttons" }, Ts = {
6583
+ }, bs = { class: "cv-transfer-table" }, xs = { class: "transfer-panel" }, Ss = { class: "transfer-panel-header" }, Cs = { key: 0 }, ws = { style: { padding: "5px" } }, Ts = { class: "transfer-buttons" }, Es = {
6542
6584
  key: 0,
6543
6585
  class: "button-text"
6544
- }, Es = {
6586
+ }, Ds = {
6545
6587
  key: 0,
6546
6588
  class: "button-text"
6547
- }, Ds = { class: "transfer-panel" }, Os = { class: "transfer-panel-header" }, ks = { key: 0 }, As = { style: { padding: "5px" } };
6548
- function js(e, t, n, r, i, a) {
6589
+ }, Os = { class: "transfer-panel" }, ks = { class: "transfer-panel-header" }, As = { key: 0 }, js = { style: { padding: "5px" } };
6590
+ function Ms(e, t, n, r, i, a) {
6549
6591
  let o = P("el-button"), s = P("el-form-item"), c = P("el-form"), l = P("el-table-column"), u = P("el-table"), d = P("el-pagination"), f = P("cv-icons");
6550
- return A(), x("div", ys, [
6551
- S("div", bs, [
6552
- S("p", xs, [S("span", null, F(n.titleTexts && n.titleTexts[0]), 1), S("span", null, F(i.leftSelection.length) + "/" + F(i.leftTableData.length), 1)]),
6553
- n.showQuery ? (A(), x("div", Ss, [w(c, {
6592
+ return A(), x("div", bs, [
6593
+ S("div", xs, [
6594
+ S("p", Ss, [S("span", null, F(n.titleTexts && n.titleTexts[0]), 1), S("span", null, F(i.leftSelection.length) + "/" + F(i.leftTableData.length), 1)]),
6595
+ n.showQuery ? (A(), x("div", Cs, [w(c, {
6554
6596
  inline: !0,
6555
6597
  model: i.leftQueryCondition,
6556
6598
  class: "cv-transfer-form"
@@ -6609,7 +6651,7 @@ function js(e, t, n, r, i, a) {
6609
6651
  "onRowClick",
6610
6652
  "onSelectionChange"
6611
6653
  ]),
6612
- S("div", Cs, [n.showPagination ? (A(), y(d, {
6654
+ S("div", ws, [n.showPagination ? (A(), y(d, {
6613
6655
  key: 0,
6614
6656
  onSizeChange: a.handleSizeChange,
6615
6657
  onCurrentChange: a.handleCurrentChange,
@@ -6632,13 +6674,13 @@ function js(e, t, n, r, i, a) {
6632
6674
  "total"
6633
6675
  ])) : b("", !0)])
6634
6676
  ]),
6635
- S("div", ws, [w(o, {
6677
+ S("div", Ts, [w(o, {
6636
6678
  type: "primary",
6637
6679
  class: D(a.buttonClasses),
6638
6680
  disabled: a.disabledLeftButton,
6639
6681
  onClick: a.addToRight
6640
6682
  }, {
6641
- default: R(() => [n.buttonTexts[0] === void 0 ? b("", !0) : (A(), x("span", Ts, F(n.buttonTexts[0]), 1)), w(f, { type: "arrlineRight" })]),
6683
+ default: R(() => [n.buttonTexts[0] === void 0 ? b("", !0) : (A(), x("span", Es, F(n.buttonTexts[0]), 1)), w(f, { type: "arrlineRight" })]),
6642
6684
  _: 1
6643
6685
  }, 8, [
6644
6686
  "class",
@@ -6650,16 +6692,16 @@ function js(e, t, n, r, i, a) {
6650
6692
  disabled: i.rightSelection.length === 0,
6651
6693
  onClick: a.addToLeft
6652
6694
  }, {
6653
- default: R(() => [w(f, { type: "arrlineLeft" }), n.buttonTexts[1] === void 0 ? b("", !0) : (A(), x("span", Es, F(n.buttonTexts[1]), 1))]),
6695
+ default: R(() => [w(f, { type: "arrlineLeft" }), n.buttonTexts[1] === void 0 ? b("", !0) : (A(), x("span", Ds, F(n.buttonTexts[1]), 1))]),
6654
6696
  _: 1
6655
6697
  }, 8, [
6656
6698
  "class",
6657
6699
  "disabled",
6658
6700
  "onClick"
6659
6701
  ])]),
6660
- S("div", Ds, [
6661
- S("p", Os, [S("span", null, F(n.titleTexts && n.titleTexts[1]), 1), S("span", null, F(i.rightSelection.length) + "/" + F(i.rightTableData.length), 1)]),
6662
- n.showQuery ? (A(), x("div", ks, [w(c, {
6702
+ S("div", Os, [
6703
+ S("p", ks, [S("span", null, F(n.titleTexts && n.titleTexts[1]), 1), S("span", null, F(i.rightSelection.length) + "/" + F(i.rightTableData.length), 1)]),
6704
+ n.showQuery ? (A(), x("div", As, [w(c, {
6663
6705
  inline: !0,
6664
6706
  model: i.rightQueryCondition,
6665
6707
  class: "cv-transfer-form"
@@ -6715,7 +6757,7 @@ function js(e, t, n, r, i, a) {
6715
6757
  "onRowClick",
6716
6758
  "onSelectionChange"
6717
6759
  ]),
6718
- S("div", As, [n.showPagination ? (A(), y(d, {
6760
+ S("div", js, [n.showPagination ? (A(), y(d, {
6719
6761
  key: 0,
6720
6762
  total: i.rightTableData.length,
6721
6763
  layout: "total"
@@ -6723,13 +6765,13 @@ function js(e, t, n, r, i, a) {
6723
6765
  ])
6724
6766
  ]);
6725
6767
  }
6726
- var Ms = /*#__PURE__*/ H(vs, [["render", js]]);
6768
+ var Ns = /*#__PURE__*/ H(ys, [["render", Ms]]);
6727
6769
  // packages/transfer/index.js
6728
- Ms.install = function(e) {
6729
- e.component(Ms.name, Ms);
6770
+ Ns.install = function(e) {
6771
+ e.component(Ns.name, Ns);
6730
6772
  };
6731
6773
  // packages/table-list/util/tableMixin.js
6732
- var Ns = {
6774
+ var Ps = {
6733
6775
  provide() {
6734
6776
  return {
6735
6777
  pageCurr: this.loadConfigSetting.pageCurr || 1,
@@ -6777,9 +6819,9 @@ var Ns = {
6777
6819
  this.loadPageLimit = e, this.getData();
6778
6820
  }
6779
6821
  }
6780
- }, Ps = {
6822
+ }, Fs = {
6781
6823
  name: "cvTableBase",
6782
- mixins: [It, Ns],
6824
+ mixins: [It, Ps],
6783
6825
  props: {
6784
6826
  align: {
6785
6827
  type: String,
@@ -6844,20 +6886,20 @@ var Ns = {
6844
6886
  this.getData();
6845
6887
  }
6846
6888
  }
6847
- }, Fs = { class: "cv-table-list" }, Is = {
6889
+ }, Is = { class: "cv-table-list" }, Ls = {
6848
6890
  key: 0,
6849
6891
  class: "cv-tablie-list-page page"
6850
6892
  };
6851
- function Ls(e, t, n, r, i, a) {
6893
+ function Rs(e, t, n, r, i, a) {
6852
6894
  let o = P("el-table"), s = P("cv-icons"), c = P("el-button"), l = P("el-pagination"), u = Pe("loading");
6853
- return A(), x("div", Fs, [z((A(), y(o, E(e.$props, {
6895
+ return A(), x("div", Is, [z((A(), y(o, E(e.$props, {
6854
6896
  data: e.loadDataList,
6855
6897
  style: { width: "100%" },
6856
6898
  onSelectionChange: a.handleSelectionChange
6857
6899
  }), {
6858
6900
  default: R(() => [N(e.$slots, "default")]),
6859
6901
  _: 3
6860
- }, 16, ["data", "onSelectionChange"])), [[u, e.loadDataLoading]]), n.showPagebreak ? z((A(), x("div", Is, [w(c, {
6902
+ }, 16, ["data", "onSelectionChange"])), [[u, e.loadDataLoading]]), n.showPagebreak ? z((A(), x("div", Ls, [w(c, {
6861
6903
  onClick: a.refresh,
6862
6904
  style: {
6863
6905
  float: "left",
@@ -6890,9 +6932,9 @@ function Ls(e, t, n, r, i, a) {
6890
6932
  "total"
6891
6933
  ])], 512)), [[L, e.loadDataLoading === !1]]) : b("", !0)]);
6892
6934
  }
6893
- var Rs = /*#__PURE__*/ H(Ps, [["render", Ls]]), zs = {
6935
+ var zs = /*#__PURE__*/ H(Fs, [["render", Rs]]), Bs = {
6894
6936
  name: "cvTableTree",
6895
- mixins: [It, Ns],
6937
+ mixins: [It, Ps],
6896
6938
  props: {
6897
6939
  modelValue: {
6898
6940
  type: [Array],
@@ -6942,10 +6984,10 @@ var Rs = /*#__PURE__*/ H(Ps, [["render", Ls]]), zs = {
6942
6984
  this.getData();
6943
6985
  }
6944
6986
  }
6945
- }, Bs = { class: "cv-table-tree" };
6946
- function Vs(e, t, n, r, i, a) {
6987
+ }, Vs = { class: "cv-table-tree" };
6988
+ function Hs(e, t, n, r, i, a) {
6947
6989
  let o = P("el-table"), s = Pe("loading");
6948
- return A(), x("div", Bs, [z((A(), y(o, E(e.$props, {
6990
+ return A(), x("div", Vs, [z((A(), y(o, E(e.$props, {
6949
6991
  data: e.loadDataList,
6950
6992
  style: { width: "100%" },
6951
6993
  onSelectionChange: a.handleSelectionChange,
@@ -6964,9 +7006,9 @@ function Vs(e, t, n, r, i, a) {
6964
7006
  "tree-props"
6965
7007
  ])), [[s, e.loadDataLoading]])]);
6966
7008
  }
6967
- var Hs = /*#__PURE__*/ H(zs, [["render", Vs]]), Us = {
7009
+ var Us = /*#__PURE__*/ H(Bs, [["render", Hs]]), Ws = {
6968
7010
  name: "cvTableEditor",
6969
- mixins: [It, Ns],
7011
+ mixins: [It, Ps],
6970
7012
  props: {
6971
7013
  border: {
6972
7014
  type: [Boolean],
@@ -7007,10 +7049,10 @@ var Hs = /*#__PURE__*/ H(zs, [["render", Vs]]), Us = {
7007
7049
  },
7008
7050
  handleChangeTData(e) {}
7009
7051
  }
7010
- }, Ws = { class: "cv-table-editor" };
7011
- function Gs(e, t, n, r, i, a) {
7052
+ }, Gs = { class: "cv-table-editor" };
7053
+ function Ks(e, t, n, r, i, a) {
7012
7054
  let o = P("el-table"), s = Pe("loading");
7013
- return A(), x("div", Ws, [z((A(), y(o, E(e.$props, {
7055
+ return A(), x("div", Gs, [z((A(), y(o, E(e.$props, {
7014
7056
  data: e.loadDataList,
7015
7057
  style: { width: "100%" },
7016
7058
  "row-class-name": "cv-tbed-tr"
@@ -7019,7 +7061,7 @@ function Gs(e, t, n, r, i, a) {
7019
7061
  _: 3
7020
7062
  }, 16, ["data"])), [[s, e.loadDataLoading]])]);
7021
7063
  }
7022
- var Ks = /*#__PURE__*/ H(Us, [["render", Gs]]), qs = {
7064
+ var qs = /*#__PURE__*/ H(Ws, [["render", Ks]]), Js = {
7023
7065
  name: "cvTbColumnIndex",
7024
7066
  inject: {
7025
7067
  pageCurr: { default: 1 },
@@ -7052,14 +7094,14 @@ var Ks = /*#__PURE__*/ H(Us, [["render", Gs]]), qs = {
7052
7094
  return this.continuity && this.pageCurr && this.pageLimit ? e + 1 + (this.pageCurr - 1) * this.pageLimit : e + 1;
7053
7095
  } }
7054
7096
  };
7055
- function Js(e, t, n, r, i, a) {
7097
+ function Ys(e, t, n, r, i, a) {
7056
7098
  let o = P("el-table-column");
7057
7099
  return A(), y(o, E(e.$props, {
7058
7100
  type: "index",
7059
7101
  index: a.indexMethod
7060
7102
  }), null, 16, ["index"]);
7061
7103
  }
7062
- var Ys = /*#__PURE__*/ H(qs, [["render", Js]]), Xs = {
7104
+ var Xs = /*#__PURE__*/ H(Js, [["render", Ys]]), Zs = {
7063
7105
  name: "cvTbColumnCheck",
7064
7106
  props: {
7065
7107
  ..._.props,
@@ -7081,11 +7123,11 @@ var Ys = /*#__PURE__*/ H(qs, [["render", Js]]), Xs = {
7081
7123
  },
7082
7124
  created() {}
7083
7125
  };
7084
- function Zs(e, t, n, r, i, a) {
7126
+ function Qs(e, t, n, r, i, a) {
7085
7127
  let o = P("el-table-column");
7086
7128
  return A(), y(o, E(e.$props, { type: "selection" }), null, 16);
7087
7129
  }
7088
- var Qs = /*#__PURE__*/ H(Xs, [["render", Zs]]), $s = {
7130
+ var $s = /*#__PURE__*/ H(Zs, [["render", Qs]]), ec = {
7089
7131
  name: "cvTbColumnText",
7090
7132
  props: { ..._.props },
7091
7133
  data() {
@@ -7096,15 +7138,15 @@ var Qs = /*#__PURE__*/ H(Xs, [["render", Zs]]), $s = {
7096
7138
  let t = e.row[this.prop];
7097
7139
  return this.formatter && (t = this.formatter(e.row, e.column)), t;
7098
7140
  } }
7099
- }, ec = { style: { display: "contents" } };
7100
- function tc(e, t, n, r, i, a) {
7141
+ }, tc = { style: { display: "contents" } };
7142
+ function nc(e, t, n, r, i, a) {
7101
7143
  let o = P("el-table-column");
7102
7144
  return A(), y(o, O(T(e.$props)), {
7103
- default: R((t) => [S("div", ec, F(t.row[e.prop]), 1)]),
7145
+ default: R((t) => [S("div", tc, F(t.row[e.prop]), 1)]),
7104
7146
  _: 1
7105
7147
  }, 16);
7106
7148
  }
7107
- var nc = /*#__PURE__*/ H($s, [["render", tc]]), rc = {
7149
+ var rc = /*#__PURE__*/ H(ec, [["render", nc]]), ic = {
7108
7150
  name: "cvTbColumnImg",
7109
7151
  props: {
7110
7152
  ..._.props,
@@ -7151,11 +7193,11 @@ var nc = /*#__PURE__*/ H($s, [["render", tc]]), rc = {
7151
7193
  } else return 0;
7152
7194
  }
7153
7195
  }
7154
- }, ic = {
7196
+ }, ac = {
7155
7197
  key: 0,
7156
7198
  class: "cv-table-column-img-mark"
7157
- }, ac = { class: "cv-table-column-img-text" };
7158
- function oc(e, t, n, r, i, a) {
7199
+ }, oc = { class: "cv-table-column-img-text" };
7200
+ function sc(e, t, n, r, i, a) {
7159
7201
  let o = P("el-image"), s = P("el-table-column");
7160
7202
  return A(), y(s, O(T(e.$props)), {
7161
7203
  default: R((e) => [S("div", {
@@ -7185,11 +7227,11 @@ function oc(e, t, n, r, i, a) {
7185
7227
  "style",
7186
7228
  "src",
7187
7229
  "preview-src-list"
7188
- ]), a.handleImgLeng(e.row) > 1 ? (A(), x("p", ic, [S("span", ac, F(a.handleImgLeng(e.row)) + "张", 1)])) : b("", !0)], 4)]),
7230
+ ]), a.handleImgLeng(e.row) > 1 ? (A(), x("p", ac, [S("span", oc, F(a.handleImgLeng(e.row)) + "张", 1)])) : b("", !0)], 4)]),
7189
7231
  _: 1
7190
7232
  }, 16);
7191
7233
  }
7192
- var sc = /*#__PURE__*/ H(rc, [["render", oc]]), cc = {
7234
+ var cc = /*#__PURE__*/ H(ic, [["render", sc]]), lc = {
7193
7235
  name: "cvTbColumnOpt",
7194
7236
  props: {
7195
7237
  ..._.props,
@@ -7207,7 +7249,7 @@ var sc = /*#__PURE__*/ H(rc, [["render", oc]]), cc = {
7207
7249
  },
7208
7250
  created() {}
7209
7251
  };
7210
- function lc(e, t, n, r, i, a) {
7252
+ function uc(e, t, n, r, i, a) {
7211
7253
  let o = P("el-table-column");
7212
7254
  return A(), y(o, O(T(e.$props)), {
7213
7255
  default: R((t) => [N(e.$slots, "default", O(T({
@@ -7218,7 +7260,7 @@ function lc(e, t, n, r, i, a) {
7218
7260
  _: 3
7219
7261
  }, 16);
7220
7262
  }
7221
- var uc = /*#__PURE__*/ H(cc, [["render", lc]]), dc = {
7263
+ var dc = /*#__PURE__*/ H(lc, [["render", uc]]), fc = {
7222
7264
  name: "cvTbColumnBase",
7223
7265
  props: {
7224
7266
  ..._.props,
@@ -7232,7 +7274,7 @@ var uc = /*#__PURE__*/ H(cc, [["render", lc]]), dc = {
7232
7274
  },
7233
7275
  created() {}
7234
7276
  };
7235
- function fc(e, t, n, r, i, a) {
7277
+ function pc(e, t, n, r, i, a) {
7236
7278
  let o = P("el-table-column");
7237
7279
  return A(), y(o, O(T(e.$props)), {
7238
7280
  default: R((t) => [N(e.$slots, "default", O(T({
@@ -7243,7 +7285,7 @@ function fc(e, t, n, r, i, a) {
7243
7285
  _: 3
7244
7286
  }, 16);
7245
7287
  }
7246
- var pc = /*#__PURE__*/ H(dc, [["render", fc]]), mc = {
7288
+ var mc = /*#__PURE__*/ H(fc, [["render", pc]]), hc = {
7247
7289
  name: "cvTbColumnExpand",
7248
7290
  props: { ..._.props },
7249
7291
  data() {
@@ -7251,7 +7293,7 @@ var pc = /*#__PURE__*/ H(dc, [["render", fc]]), mc = {
7251
7293
  },
7252
7294
  created() {}
7253
7295
  };
7254
- function hc(e, t, n, r, i, a) {
7296
+ function gc(e, t, n, r, i, a) {
7255
7297
  let o = P("el-table-column");
7256
7298
  return A(), y(o, E(e.$props, { type: "expand" }), {
7257
7299
  default: R((t) => [N(e.$slots, "default", O(T({
@@ -7262,7 +7304,7 @@ function hc(e, t, n, r, i, a) {
7262
7304
  _: 3
7263
7305
  }, 16);
7264
7306
  }
7265
- var gc = /*#__PURE__*/ H(mc, [["render", hc]]), _c = {
7307
+ var _c = /*#__PURE__*/ H(hc, [["render", gc]]), vc = {
7266
7308
  name: "cvTbColumnEnum",
7267
7309
  props: {
7268
7310
  ..._.props,
@@ -7280,14 +7322,14 @@ var gc = /*#__PURE__*/ H(mc, [["render", hc]]), _c = {
7280
7322
  return e[this.prop] ? this.dataLists[e[this.prop]] || "" : this.dataLists[t[0]] || "";
7281
7323
  } }
7282
7324
  };
7283
- function vc(e, t, n, r, i, a) {
7325
+ function yc(e, t, n, r, i, a) {
7284
7326
  let o = P("el-table-column");
7285
7327
  return A(), y(o, O(T(e.$props)), {
7286
7328
  default: R((e) => [S("span", null, F(a.dealTypeEnum(e.row)), 1)]),
7287
7329
  _: 1
7288
7330
  }, 16);
7289
7331
  }
7290
- var yc = /*#__PURE__*/ H(_c, [["render", vc]]), bc = {
7332
+ var bc = /*#__PURE__*/ H(vc, [["render", yc]]), xc = {
7291
7333
  name: "cvTbEditSearch",
7292
7334
  props: {
7293
7335
  ..._.props,
@@ -7388,11 +7430,11 @@ var yc = /*#__PURE__*/ H(_c, [["render", vc]]), bc = {
7388
7430
  this.isEditIndex = null;
7389
7431
  }
7390
7432
  }
7391
- }, xc = { class: "name" }, Sc = { class: "addr" }, Cc = { class: "addr" }, wc = { class: "droplist-item" }, Tc = { class: "name" }, Ec = {
7433
+ }, Sc = { class: "name" }, Cc = { class: "addr" }, wc = { class: "addr" }, Tc = { class: "droplist-item" }, Ec = { class: "name" }, Dc = {
7392
7434
  key: 0,
7393
7435
  class: "attr"
7394
- }, Dc = { class: "price" }, Oc = { class: "rest" }, kc = ["onClick"];
7395
- function Ac(e, t, n, r, i, a) {
7436
+ }, Oc = { class: "price" }, kc = { class: "rest" }, Ac = ["onClick"];
7437
+ function jc(e, t, n, r, i, a) {
7396
7438
  let o = P("cv-icons"), s = P("el-icon"), c = P("el-autocomplete"), l = P("el-table-column");
7397
7439
  return A(), y(l, E(e.$props, { "class-name": "cv-table-editor-search-column" }), {
7398
7440
  default: R((t) => [i.isEditIndex == t.$index ? (A(), y(c, E({
@@ -7415,13 +7457,13 @@ function Ac(e, t, n, r, i, a) {
7415
7457
  _: 2
7416
7458
  }, 1024)]),
7417
7459
  default: R(({ item: t }) => [N(e.$slots, "default", { item: t }, () => [
7418
- S("div", xc, F(t.row_name), 1),
7419
- S("span", Sc, "价格:" + F(t.row_price), 1),
7420
- S("span", Cc, F(t.row_rest), 1),
7421
- S("div", wc, [
7422
- S("div", Tc, [C(F(t.row_name) + " ", 1), t.row_attr ? (A(), x("div", Ec, "[ " + F(t.row_attr) + "]", 1)) : b("", !0)]),
7423
- S("div", Dc, "¥ " + F(t.row_price), 1),
7424
- S("div", Oc, F(t.attr_stock), 1)
7460
+ S("div", Sc, F(t.row_name), 1),
7461
+ S("span", Cc, "价格:" + F(t.row_price), 1),
7462
+ S("span", wc, F(t.row_rest), 1),
7463
+ S("div", Tc, [
7464
+ S("div", Ec, [C(F(t.row_name) + " ", 1), t.row_attr ? (A(), x("div", Dc, "[ " + F(t.row_attr) + "]", 1)) : b("", !0)]),
7465
+ S("div", Oc, "¥ " + F(t.row_price), 1),
7466
+ S("div", kc, F(t.attr_stock), 1)
7425
7467
  ])
7426
7468
  ], !0)]),
7427
7469
  _: 2
@@ -7437,11 +7479,11 @@ function Ac(e, t, n, r, i, a) {
7437
7479
  key: 1,
7438
7480
  class: "showtext",
7439
7481
  onClick: (e) => a.searchEdit(t.row, t.$index)
7440
- }, F(t.row[e.prop]), 9, kc))]),
7482
+ }, F(t.row[e.prop]), 9, Ac))]),
7441
7483
  _: 3
7442
7484
  }, 16);
7443
7485
  }
7444
- var jc = /*#__PURE__*/ H(bc, [["render", Ac], ["__scopeId", "data-v-2b56be3e"]]), Mc = {
7486
+ var Mc = /*#__PURE__*/ H(xc, [["render", jc], ["__scopeId", "data-v-2b56be3e"]]), Nc = {
7445
7487
  name: "cvTbEditOpt",
7446
7488
  props: {
7447
7489
  tableData: {
@@ -7492,7 +7534,7 @@ var jc = /*#__PURE__*/ H(bc, [["render", Ac], ["__scopeId", "data-v-2b56be3e"]])
7492
7534
  }
7493
7535
  }
7494
7536
  };
7495
- function Nc(e, t, n, r, i, a) {
7537
+ function Pc(e, t, n, r, i, a) {
7496
7538
  let o = P("cv-icons"), s = P("el-button"), c = P("el-table-column");
7497
7539
  return A(), y(c, O(T(e.$props)), {
7498
7540
  default: R((e) => [n.btnAdd ? (A(), y(s, {
@@ -7523,7 +7565,7 @@ function Nc(e, t, n, r, i, a) {
7523
7565
  _: 1
7524
7566
  }, 16);
7525
7567
  }
7526
- var Pc = /*#__PURE__*/ H(Mc, [["render", Nc]]), Fc = {
7568
+ var Fc = /*#__PURE__*/ H(Nc, [["render", Pc]]), Ic = {
7527
7569
  name: "cvTbEditText",
7528
7570
  props: {
7529
7571
  ..._.props,
@@ -7637,8 +7679,8 @@ var Pc = /*#__PURE__*/ H(Mc, [["render", Nc]]), Fc = {
7637
7679
  } }
7638
7680
  });
7639
7681
  }
7640
- }, Ic = ["onClick"];
7641
- function Lc(e, t, n, r, i, a) {
7682
+ }, Lc = ["onClick"];
7683
+ function Rc(e, t, n, r, i, a) {
7642
7684
  let o = P("el-input"), s = P("el-table-column"), c = Pe("edfocus");
7643
7685
  return A(), y(s, E(e.$props, { "class-name": "cv-table-editor-text-column" }), {
7644
7686
  default: R((t) => [i.isEditIndex == t.$index && !n.editAttr.disabled ? z((A(), y(o, E({ key: 0 }, n.editAttr, {
@@ -7661,11 +7703,11 @@ function Lc(e, t, n, r, i, a) {
7661
7703
  key: 1,
7662
7704
  class: "showtext",
7663
7705
  onClick: (e) => a.textHdEdit(t.row, t.$index)
7664
- }, F(t.row[e.prop]), 9, Ic))]),
7706
+ }, F(t.row[e.prop]), 9, Lc))]),
7665
7707
  _: 1
7666
7708
  }, 16);
7667
7709
  }
7668
- var Rc = /*#__PURE__*/ H(Fc, [["render", Lc]]), zc = {
7710
+ var zc = /*#__PURE__*/ H(Ic, [["render", Rc]]), Bc = {
7669
7711
  name: "cvTbEditRadio",
7670
7712
  props: {
7671
7713
  ..._.props,
@@ -7706,7 +7748,7 @@ var Rc = /*#__PURE__*/ H(Fc, [["render", Lc]]), zc = {
7706
7748
  },
7707
7749
  created() {}
7708
7750
  };
7709
- function Bc(e, t, n, r, i, a) {
7751
+ function Vc(e, t, n, r, i, a) {
7710
7752
  let o = P("el-radio"), s = P("el-radio-group"), c = P("el-table-column");
7711
7753
  return A(), y(c, O(T(e.$props)), {
7712
7754
  default: R((t) => [w(s, E({
@@ -7733,7 +7775,7 @@ function Bc(e, t, n, r, i, a) {
7733
7775
  _: 1
7734
7776
  }, 16);
7735
7777
  }
7736
- var Vc = /*#__PURE__*/ H(zc, [["render", Bc]]), Hc = {
7778
+ var Hc = /*#__PURE__*/ H(Bc, [["render", Vc]]), Uc = {
7737
7779
  name: "cvTbEditCheckbox",
7738
7780
  props: {
7739
7781
  ..._.props,
@@ -7777,7 +7819,7 @@ var Vc = /*#__PURE__*/ H(zc, [["render", Bc]]), Hc = {
7777
7819
  this.localVal = [];
7778
7820
  } }
7779
7821
  };
7780
- function Uc(e, t, n, r, i, a) {
7822
+ function Wc(e, t, n, r, i, a) {
7781
7823
  let o = P("el-checkbox"), s = P("el-checkbox-group"), c = P("el-table-column");
7782
7824
  return A(), y(c, O(T(e.$props)), {
7783
7825
  default: R((t) => [t.row[e.prop] ? (A(), y(s, E({
@@ -7805,7 +7847,7 @@ function Uc(e, t, n, r, i, a) {
7805
7847
  _: 1
7806
7848
  }, 16);
7807
7849
  }
7808
- var Wc = /*#__PURE__*/ H(Hc, [["render", Uc]]), Gc = {
7850
+ var Gc = /*#__PURE__*/ H(Uc, [["render", Wc]]), Kc = {
7809
7851
  name: "cvTbEditSelect",
7810
7852
  props: {
7811
7853
  ..._.props,
@@ -7846,7 +7888,7 @@ var Wc = /*#__PURE__*/ H(Hc, [["render", Uc]]), Gc = {
7846
7888
  },
7847
7889
  created() {}
7848
7890
  };
7849
- function Kc(e, t, n, r, i, a) {
7891
+ function qc(e, t, n, r, i, a) {
7850
7892
  let o = P("el-option"), s = P("el-select"), c = P("el-table-column");
7851
7893
  return A(), y(c, O(T(e.$props)), {
7852
7894
  default: R((t) => [w(s, E({
@@ -7873,52 +7915,52 @@ function Kc(e, t, n, r, i, a) {
7873
7915
  _: 1
7874
7916
  }, 16);
7875
7917
  }
7876
- var qc = /*#__PURE__*/ H(Gc, [["render", Kc]]);
7877
- Rs.install = function(e) {
7878
- e.component(Rs.name, Rs);
7879
- }, Hs.install = function(e) {
7880
- e.component(Hs.name, Hs);
7881
- }, Ks.install = function(e) {
7882
- e.component(Ks.name, Ks);
7883
- }, Ys.install = function(e) {
7884
- e.component(Ys.name, Ys);
7885
- }, Qs.install = function(e) {
7886
- e.component(Qs.name, Qs);
7887
- }, nc.install = function(e) {
7888
- e.component(nc.name, nc);
7889
- }, sc.install = function(e) {
7890
- e.component(sc.name, sc);
7891
- }, uc.install = function(e) {
7892
- e.component(uc.name, uc);
7893
- }, pc.install = function(e) {
7894
- e.component(pc.name, pc);
7895
- }, gc.install = function(e) {
7896
- e.component(gc.name, gc);
7897
- }, yc.install = function(e) {
7898
- e.component(yc.name, yc);
7899
- }, jc.install = function(e) {
7900
- e.component(jc.name, jc);
7901
- }, Pc.install = function(e) {
7902
- e.component(Pc.name, Pc);
7903
- }, Rc.install = function(e) {
7904
- e.component(Rc.name, Rc);
7905
- }, Vc.install = function(e) {
7906
- e.component(Vc.name, Vc);
7907
- }, Wc.install = function(e) {
7908
- e.component(Wc.name, Wc);
7909
- }, qc.install = function(e) {
7910
- e.component(qc.name, qc);
7918
+ var Jc = /*#__PURE__*/ H(Kc, [["render", qc]]);
7919
+ zs.install = function(e) {
7920
+ e.component(zs.name, zs);
7921
+ }, Us.install = function(e) {
7922
+ e.component(Us.name, Us);
7923
+ }, qs.install = function(e) {
7924
+ e.component(qs.name, qs);
7925
+ }, Xs.install = function(e) {
7926
+ e.component(Xs.name, Xs);
7927
+ }, $s.install = function(e) {
7928
+ e.component($s.name, $s);
7929
+ }, rc.install = function(e) {
7930
+ e.component(rc.name, rc);
7931
+ }, cc.install = function(e) {
7932
+ e.component(cc.name, cc);
7933
+ }, dc.install = function(e) {
7934
+ e.component(dc.name, dc);
7935
+ }, mc.install = function(e) {
7936
+ e.component(mc.name, mc);
7937
+ }, _c.install = function(e) {
7938
+ e.component(_c.name, _c);
7939
+ }, bc.install = function(e) {
7940
+ e.component(bc.name, bc);
7941
+ }, Mc.install = function(e) {
7942
+ e.component(Mc.name, Mc);
7943
+ }, Fc.install = function(e) {
7944
+ e.component(Fc.name, Fc);
7945
+ }, zc.install = function(e) {
7946
+ e.component(zc.name, zc);
7947
+ }, Hc.install = function(e) {
7948
+ e.component(Hc.name, Hc);
7949
+ }, Gc.install = function(e) {
7950
+ e.component(Gc.name, Gc);
7951
+ }, Jc.install = function(e) {
7952
+ e.component(Jc.name, Jc);
7911
7953
  };
7912
7954
  // packages/comment/icons/icon-clear.vue
7913
- var Jc = {}, Yc = {
7955
+ var Yc = {}, Xc = {
7914
7956
  width: "12",
7915
7957
  height: "12",
7916
7958
  viewBox: "0 0 12 12",
7917
7959
  fill: "none",
7918
7960
  xmlns: "http://www.w3.org/2000/svg"
7919
7961
  };
7920
- function Xc(e, t) {
7921
- return A(), x("svg", Yc, [...t[0] ||= [S("rect", {
7962
+ function Zc(e, t) {
7963
+ return A(), x("svg", Xc, [...t[0] ||= [S("rect", {
7922
7964
  width: "12",
7923
7965
  height: "12",
7924
7966
  rx: "2",
@@ -7930,7 +7972,7 @@ function Xc(e, t) {
7930
7972
  fill: "white"
7931
7973
  }, null, -1)]]);
7932
7974
  }
7933
- var Zc = /*#__PURE__*/ H(Jc, [["render", Xc]]), Qc = {}, $c = {
7975
+ var Qc = /*#__PURE__*/ H(Yc, [["render", Zc]]), $c = {}, el = {
7934
7976
  width: "16",
7935
7977
  height: "16",
7936
7978
  viewBox: "0 0 16 16",
@@ -7938,16 +7980,16 @@ var Zc = /*#__PURE__*/ H(Jc, [["render", Xc]]), Qc = {}, $c = {
7938
7980
  xmlns: "http://www.w3.org/2000/svg",
7939
7981
  class: "icon"
7940
7982
  };
7941
- function el(e, t) {
7942
- return A(), x("svg", $c, [...t[0] ||= [S("path", {
7983
+ function tl(e, t) {
7984
+ return A(), x("svg", el, [...t[0] ||= [S("path", {
7943
7985
  "fill-rule": "evenodd",
7944
7986
  "clip-rule": "evenodd",
7945
7987
  d: "M8.00002 0.666504C12.0501 0.666504 15.3334 3.94975 15.3334 7.99984C15.3334 12.0499 12.0501 15.3332 8.00002 15.3332C3.94993 15.3332 0.666687 12.0499 0.666687 7.99984C0.666687 3.94975 3.94993 0.666504 8.00002 0.666504ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.6667 5.66667V7.66667H9.33333V5.66667H10.6667ZM6.66667 5.66667V7.66667H5.33333V5.66667H6.66667ZM10.0767 9.33333H11.0495C11.1804 9.33333 11.2866 9.43951 11.2866 9.57048C11.2866 9.60754 11.2779 9.64409 11.2612 9.67718L11.244 9.71053C10.6294 10.8739 9.40726 11.6667 7.99998 11.6667C6.61523 11.6667 5.40977 10.8991 4.7859 9.76612L4.73786 9.67593C4.67845 9.56052 4.72385 9.4188 4.83926 9.35939C4.87253 9.34226 4.90941 9.33333 4.94683 9.33333H5.92347C6.02396 9.33332 6.11908 9.37865 6.18238 9.4567C6.26207 9.55496 6.32833 9.62955 6.38117 9.68046C6.80074 10.0847 7.37133 10.3333 7.99998 10.3333C8.63289 10.3333 9.20694 10.0814 9.62728 9.67224C9.67791 9.62296 9.74135 9.55121 9.8176 9.45698C9.88089 9.37877 9.97611 9.33333 10.0767 9.33333Z"
7946
7988
  }, null, -1)]]);
7947
7989
  }
7948
- var tl = /*#__PURE__*/ H(Qc, [["render", el]]), nl = {}, rl = { class: "comment-common-icon" };
7949
- function il(e, t) {
7950
- return A(), x("i", rl, [...t[0] ||= [S("svg", {
7990
+ var nl = /*#__PURE__*/ H($c, [["render", tl]]), rl = {}, il = { class: "comment-common-icon" };
7991
+ function al(e, t) {
7992
+ return A(), x("i", il, [...t[0] ||= [S("svg", {
7951
7993
  width: "12",
7952
7994
  height: "12",
7953
7995
  viewBox: "0 0 12 12",
@@ -7956,7 +7998,7 @@ function il(e, t) {
7956
7998
  class: ""
7957
7999
  }, [S("path", { d: "M4.88933 0.613974C4.92947 0.616946 4.96831 0.629568 5.00253 0.650767C6.67348 1.68589 7.55141 3.13884 7.63632 5.00962C7.947 5.00962 8.2245 4.65999 8.46882 3.96072L8.49487 3.88447C8.53862 3.75351 8.68025 3.68282 8.8112 3.72656C8.83398 3.73417 8.85554 3.74502 8.87522 3.75878C9.96316 4.5193 10.5048 5.50231 10.5 6.70782C10.4999 6.73762 10.4982 6.76675 10.495 6.7952C10.4985 6.86294 10.5 6.93131 10.5 7.00005C10.5 9.48533 8.48528 11.5 6 11.5C3.51472 11.5 1.5 9.48533 1.5 7.00005C1.5 6.90255 1.5031 6.80578 1.50921 6.70983C1.5062 6.70917 1.5031 6.70849 1.5 6.70782C1.50864 6.60849 1.52139 6.50994 1.53824 6.41219C1.54515 6.35775 1.55321 6.30373 1.56222 6.25003L1.57017 6.24983C1.7622 5.3813 2.28426 4.57601 3.13635 3.83394C4.00892 3.07405 4.50079 2.11523 4.61198 0.957499L4.62156 0.844839C4.63175 0.707146 4.75163 0.603784 4.88933 0.613974Z" })], -1)]]);
7958
8000
  }
7959
- var al = /*#__PURE__*/ H(nl, [["render", il]]), ol = {}, sl = {
8001
+ var ol = /*#__PURE__*/ H(rl, [["render", al]]), sl = {}, cl = {
7960
8002
  width: "16",
7961
8003
  height: "16",
7962
8004
  viewBox: "0 0 16 16",
@@ -7964,16 +8006,16 @@ var al = /*#__PURE__*/ H(nl, [["render", il]]), ol = {}, sl = {
7964
8006
  xmlns: "http://www.w3.org/2000/svg",
7965
8007
  class: "icon"
7966
8008
  };
7967
- function cl(e, t) {
7968
- return A(), x("svg", sl, [...t[0] ||= [S("path", {
8009
+ function ll(e, t) {
8010
+ return A(), x("svg", cl, [...t[0] ||= [S("path", {
7969
8011
  "fill-rule": "evenodd",
7970
8012
  "clip-rule": "evenodd",
7971
8013
  d: "M14 1.3335C14.3514 1.3335 14.6394 1.60546 14.6648 1.95041L14.6666 2.00016V14.0002C14.6666 14.3516 14.3947 14.6396 14.0497 14.665L14 14.6668H1.99998C1.64853 14.6668 1.36059 14.3949 1.33514 14.0499L1.33331 14.0002V2.00016C1.33331 1.64871 1.60527 1.36077 1.95023 1.33532L1.99998 1.3335H14ZM13.3333 2.66618H2.66664V13.3328H13.3333V2.66618ZM11.9219 6.7879C11.9719 6.83791 12 6.90574 12 6.97647V11.7993C12 11.9098 11.9104 11.9993 11.8 11.9993H6.81615C6.7975 11.9993 6.77945 11.9968 6.76232 11.992L3.91042 11.9847C3.79996 11.9844 3.71063 11.8947 3.7109 11.7842C3.71102 11.7313 3.73209 11.6807 3.76948 11.6433L6.52468 8.88807C6.62882 8.78393 6.79766 8.78393 6.9018 8.88807L8.17297 10.1593L11.5447 6.7879C11.6489 6.68376 11.8177 6.68376 11.9219 6.7879ZM5.99997 3.99951V5.99951H3.99997V3.99951H5.99997Z"
7972
8014
  }, null, -1)]]);
7973
8015
  }
7974
- var ll = /*#__PURE__*/ H(ol, [["render", cl]]), ul = {}, dl = { class: "comment-common-icon" };
7975
- function fl(e, t) {
7976
- return A(), x("i", dl, [...t[0] ||= [S("svg", {
8016
+ var ul = /*#__PURE__*/ H(sl, [["render", ll]]), dl = {}, fl = { class: "comment-common-icon" };
8017
+ function pl(e, t) {
8018
+ return A(), x("i", fl, [...t[0] ||= [S("svg", {
7977
8019
  viewBox: "0 0 1024 1024",
7978
8020
  version: "1.1",
7979
8021
  xmlns: "http://www.w3.org/2000/svg"
@@ -7982,12 +8024,12 @@ function fl(e, t) {
7982
8024
  fill: "currentColor"
7983
8025
  })], -1)]]);
7984
8026
  }
7985
- var pl = /*#__PURE__*/ H(ul, [["render", fl]]), ml = {}, hl = {
8027
+ var ml = /*#__PURE__*/ H(dl, [["render", pl]]), hl = {}, gl = {
7986
8028
  class: "comment-common-icon",
7987
8029
  style: { color: "#1e80ff" }
7988
8030
  };
7989
- function gl(e, t) {
7990
- return A(), x("i", hl, [...t[0] ||= [S("svg", {
8031
+ function _l(e, t) {
8032
+ return A(), x("i", gl, [...t[0] ||= [S("svg", {
7991
8033
  viewBox: "0 0 1024 1024",
7992
8034
  version: "1.1",
7993
8035
  xmlns: "http://www.w3.org/2000/svg",
@@ -7997,9 +8039,9 @@ function gl(e, t) {
7997
8039
  "p-id": "1535"
7998
8040
  })], -1)]]);
7999
8041
  }
8000
- var _l = /*#__PURE__*/ H(ml, [["render", gl]]), vl = {}, yl = { class: "comment-common-icon" };
8001
- function bl(e, t) {
8002
- return A(), x("i", yl, [...t[0] ||= [S("svg", {
8042
+ var vl = /*#__PURE__*/ H(hl, [["render", _l]]), yl = {}, bl = { class: "comment-common-icon" };
8043
+ function xl(e, t) {
8044
+ return A(), x("i", bl, [...t[0] ||= [S("svg", {
8003
8045
  t: "1650360973068",
8004
8046
  viewBox: "0 0 1024 1024",
8005
8047
  version: "1.1",
@@ -8012,7 +8054,7 @@ function bl(e, t) {
8012
8054
  "p-id": "1169"
8013
8055
  })], -1)]]);
8014
8056
  }
8015
- var xl = /*#__PURE__*/ H(vl, [["render", bl]]), Sl = {}, Cl = {
8057
+ var Sl = /*#__PURE__*/ H(yl, [["render", xl]]), Cl = {}, wl = {
8016
8058
  width: "12",
8017
8059
  height: "12",
8018
8060
  viewBox: "0 0 12 12",
@@ -8020,17 +8062,17 @@ var xl = /*#__PURE__*/ H(vl, [["render", bl]]), Sl = {}, Cl = {
8020
8062
  xmlns: "http://www.w3.org/2000/svg",
8021
8063
  class: ""
8022
8064
  };
8023
- function wl(e, t) {
8024
- return A(), x("svg", Cl, [...t[0] ||= [S("path", {
8065
+ function Tl(e, t) {
8066
+ return A(), x("svg", wl, [...t[0] ||= [S("path", {
8025
8067
  "data-v-d6f79dbc": "",
8026
8068
  "fill-rule": "evenodd",
8027
8069
  "clip-rule": "evenodd",
8028
8070
  d: "M5.99976 7.93206L10.0656 3.86619C10.1633 3.76856 10.3215 3.76856 10.4192 3.86619L10.7727 4.21975C10.8704 4.31738 10.8704 4.47567 10.7727 4.5733L6.35331 8.99272C6.15805 9.18798 5.84147 9.18798 5.6462 8.99272L1.22679 4.5733C1.12916 4.47567 1.12916 4.31738 1.22679 4.21975L1.58034 3.86619C1.67797 3.76856 1.83626 3.76856 1.93389 3.86619L5.99976 7.93206Z"
8029
8071
  }, null, -1)]]);
8030
8072
  }
8031
- var Tl = /*#__PURE__*/ H(Sl, [["render", wl]]), El = {}, Dl = { class: "comment-common-icon" };
8032
- function Ol(e, t) {
8033
- return A(), x("i", Dl, [...t[0] ||= [S("svg", {
8073
+ var El = /*#__PURE__*/ H(Cl, [["render", Tl]]), Dl = {}, Ol = { class: "comment-common-icon" };
8074
+ function kl(e, t) {
8075
+ return A(), x("i", Ol, [...t[0] ||= [S("svg", {
8034
8076
  width: "12",
8035
8077
  height: "12",
8036
8078
  viewBox: "0 0 12 12",
@@ -8043,9 +8085,9 @@ function Ol(e, t) {
8043
8085
  d: "M5.99951 0.5C9.03708 0.5 11.4995 2.96243 11.4995 6C11.4995 9.03757 9.03708 11.5 5.99951 11.5C2.96195 11.5 0.499512 9.03757 0.499512 6C0.499512 2.96243 2.96195 0.5 5.99951 0.5ZM6.25 3.49988C6.38807 3.49988 6.5 3.61181 6.5 3.74988V5.49988H8.25C8.38807 5.49988 8.5 5.61181 8.5 5.74988V6.24988C8.5 6.38795 8.38807 6.49988 8.25 6.49988H5.75C5.61193 6.49988 5.5 6.38795 5.5 6.24988V3.74988C5.5 3.61181 5.61193 3.49988 5.75 3.49988H6.25Z"
8044
8086
  })], -1)]]);
8045
8087
  }
8046
- var kl = /*#__PURE__*/ H(El, [["render", Ol]]), Al = {}, jl = { class: "comment-common-icon" };
8047
- function Ml(e, t) {
8048
- return A(), x("i", jl, [...t[0] ||= [S("svg", {
8088
+ var Al = /*#__PURE__*/ H(Dl, [["render", kl]]), jl = {}, Ml = { class: "comment-common-icon" };
8089
+ function Nl(e, t) {
8090
+ return A(), x("i", Ml, [...t[0] ||= [S("svg", {
8049
8091
  viewBox: "0 0 1024 1024",
8050
8092
  version: "1.1",
8051
8093
  xmlns: "http://www.w3.org/2000/svg",
@@ -8057,7 +8099,7 @@ function Ml(e, t) {
8057
8099
  "p-id": "1321"
8058
8100
  })], -1)]]);
8059
8101
  }
8060
- var Nl = /*#__PURE__*/ H(Al, [["render", Ml]]), Pl = { class: "cv-comment-emoji" }, Fl = { class: "face-tooltip-head select-none" }, Il = ["onClick"], Ll = ["src"], Rl = { class: "emoji-body select-none" }, zl = { style: { padding: "0 5px" } }, Bl = ["onClick"], Vl = { class: "emoji-btn select-none" }, Hl = { key: 0 }, Ul = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "CompInputEmoji" }, {
8102
+ var Pl = /*#__PURE__*/ H(jl, [["render", Nl]]), Fl = { class: "cv-comment-emoji" }, Il = { class: "face-tooltip-head select-none" }, Ll = ["onClick"], Rl = ["src"], zl = { class: "emoji-body select-none" }, Bl = { style: { padding: "0 5px" } }, Vl = ["onClick"], Hl = { class: "emoji-btn select-none" }, Ul = { key: 0 }, Wl = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "CompInputEmoji" }, {
8061
8103
  __name: "input-emoji",
8062
8104
  props: {
8063
8105
  emoji: {
@@ -8081,29 +8123,29 @@ var Nl = /*#__PURE__*/ H(Al, [["render", Ml]]), Pl = { class: "cv-comment-emoji"
8081
8123
  function l() {
8082
8124
  a.value[0] = o[0];
8083
8125
  }
8084
- return (t, n) => (A(), x("div", Pl, [w(I(le), {
8126
+ return (t, n) => (A(), x("div", Fl, [w(I(le), {
8085
8127
  placement: e.placement,
8086
8128
  "popper-class": "emoji-popover",
8087
8129
  width: 250,
8088
8130
  trigger: "click",
8089
8131
  onBeforeEnter: l
8090
8132
  }, {
8091
- reference: R(() => [S("div", Vl, [t.$slots.default ? N(t.$slots, "default", {}, void 0, !0, 1) : (A(), x("div", Hl, [w(I(tl)), n[0] ||= S("span", null, "表情", -1)]))])]),
8092
- default: R(() => [S("div", Fl, [(A(!0), x(v, null, M(I(s), (e, t) => (A(), x("label", {
8133
+ reference: R(() => [S("div", Hl, [t.$slots.default ? N(t.$slots, "default", {}, void 0, !0, 1) : (A(), x("div", Ul, [w(I(nl)), n[0] ||= S("span", null, "表情", -1)]))])]),
8134
+ default: R(() => [S("div", Il, [(A(!0), x(v, null, M(I(s), (e, t) => (A(), x("label", {
8093
8135
  key: t,
8094
8136
  class: D(r.value == t ? "active" : ""),
8095
8137
  onClick: (e) => c(t)
8096
8138
  }, [S("img", {
8097
8139
  src: e,
8098
8140
  alt: ""
8099
- }, null, 8, Ll)], 10, Il))), 128))]), S("div", Rl, [S("div", {
8141
+ }, null, 8, Rl)], 10, Ll))), 128))]), S("div", zl, [S("div", {
8100
8142
  class: "emjio-container",
8101
8143
  style: k({ transform: `translateX(${i.value}%)` })
8102
8144
  }, [(A(!0), x(v, null, M(a.value, (e, n) => (A(), x("div", {
8103
8145
  key: n,
8104
8146
  class: "emoji-wrapper"
8105
8147
  }, [w(I(ue), null, {
8106
- default: R(() => [S("div", zl, [(A(!0), x(v, null, M(e, (e, n) => (A(), x("span", {
8148
+ default: R(() => [S("div", Bl, [(A(!0), x(v, null, M(e, (e, n) => (A(), x("span", {
8107
8149
  key: n,
8108
8150
  class: "emoji-item",
8109
8151
  onClick: (e) => t.$emit("addEmoji", n)
@@ -8117,16 +8159,16 @@ var Nl = /*#__PURE__*/ H(Al, [["render", Ml]]), Pl = { class: "cv-comment-emoji"
8117
8159
  margin: "5px"
8118
8160
  },
8119
8161
  lazy: ""
8120
- }, null, 8, ["src", "title"])], 8, Bl))), 128))])]),
8162
+ }, null, 8, ["src", "title"])], 8, Vl))), 128))])]),
8121
8163
  _: 2
8122
8164
  }, 1024)]))), 128))], 4)])]),
8123
8165
  _: 3
8124
8166
  }, 8, ["placement"])]));
8125
8167
  }
8126
- }), [["__scopeId", "data-v-2fb59975"]]), Wl = { class: "cv-comment-editor" }, Gl = ["placeholder", "innerHTML"], Kl = ["src"], ql = ["onClick"], Jl = {
8168
+ }), [["__scopeId", "data-v-2fb59975"]]), Gl = { class: "cv-comment-editor" }, Kl = ["placeholder", "innerHTML"], ql = ["src"], Jl = ["onClick"], Yl = {
8127
8169
  key: 0,
8128
8170
  class: "cv-comment-editor__action"
8129
- }, Yl = /*#__PURE__*/ H({
8171
+ }, Xl = /*#__PURE__*/ H({
8130
8172
  __name: "input-box",
8131
8173
  props: {
8132
8174
  placeholder: "",
@@ -8207,7 +8249,7 @@ var Nl = /*#__PURE__*/ H(Al, [["render", Ml]]), Pl = { class: "cv-comment-emoji"
8207
8249
  let t = e.target;
8208
8250
  t.innerHTML == "<br>" && (t.innerHTML = "");
8209
8251
  });
8210
- }), n({ focus: () => ye() }), (t, n) => z((A(), x("div", Wl, [S("div", { class: D(["cv-comment-editor__box", {
8252
+ }), n({ focus: () => ye() }), (t, n) => z((A(), x("div", Gl, [S("div", { class: D(["cv-comment-editor__box", {
8211
8253
  active: c.value,
8212
8254
  "input-active": l.value
8213
8255
  }]) }, [S("div", {
@@ -8225,7 +8267,7 @@ var Nl = /*#__PURE__*/ H(Al, [["render", Ml]]), Pl = { class: "cv-comment-emoji"
8225
8267
  minHeight: ae.value,
8226
8268
  padding: oe.value
8227
8269
  })
8228
- }, null, 44, Gl), S("div", {
8270
+ }, null, 44, Kl), S("div", {
8229
8271
  ref_key: "imageRef",
8230
8272
  ref: g,
8231
8273
  class: "image-preview-box"
@@ -8235,18 +8277,18 @@ var Nl = /*#__PURE__*/ H(Al, [["render", Ml]]), Pl = { class: "cv-comment-emoji"
8235
8277
  }, [S("img", {
8236
8278
  src: e,
8237
8279
  alt: ""
8238
- }, null, 8, Kl), S("div", {
8280
+ }, null, 8, ql), S("div", {
8239
8281
  class: "clean-btn",
8240
8282
  onClick: (e) => T(t)
8241
- }, [w(I(Zc))], 8, ql)]))), 128))], 512)], 2), w(ge, { name: "fade" }, {
8242
- default: R(() => [l.value ? (A(), x("div", Jl, [S("div", null, [w(Ul, {
8283
+ }, [w(I(Qc))], 8, Jl)]))), 128))], 512)], 2), w(ge, { name: "fade" }, {
8284
+ default: R(() => [l.value ? (A(), x("div", Yl, [S("div", null, [w(Wl, {
8243
8285
  emoji: I(de),
8244
8286
  onAddEmoji: n[0] ||= (e) => _e(e)
8245
8287
  }, null, 8, ["emoji"]), S("div", {
8246
8288
  class: "picture",
8247
8289
  onClick: n[1] ||= (...e) => p.value?.click && p.value?.click(...e)
8248
8290
  }, [
8249
- w(I(ll)),
8291
+ w(I(ul)),
8250
8292
  n[2] ||= S("span", null, "图片", -1),
8251
8293
  S("input", {
8252
8294
  id: "comment-upload",
@@ -8274,7 +8316,7 @@ var Nl = /*#__PURE__*/ H(Al, [["render", Ml]]), Pl = { class: "cv-comment-emoji"
8274
8316
  f.value
8275
8317
  ]]);
8276
8318
  }
8277
- }, [["__scopeId", "data-v-e3fd437e"]]), Xl = { class: "u-fold" }, Zl = { class: "action-box select-none" }, Ql = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "UFold" }, {
8319
+ }, [["__scopeId", "data-v-e3fd437e"]]), Zl = { class: "u-fold" }, Ql = { class: "action-box select-none" }, $l = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "UFold" }, {
8278
8320
  __name: "fold",
8279
8321
  props: { line: {
8280
8322
  type: [Number, String],
@@ -8292,16 +8334,16 @@ var Nl = /*#__PURE__*/ H(Al, [["render", Ml]]), Pl = { class: "cv-comment-emoji"
8292
8334
  }), o.observe(a.value);
8293
8335
  }), Ae(() => {
8294
8336
  o.disconnect();
8295
- }), (e, t) => (A(), x("div", Xl, [S("div", { class: D(["txt-box", { "over-hidden": r.value }]) }, [S("div", {
8337
+ }), (e, t) => (A(), x("div", Zl, [S("div", { class: D(["txt-box", { "over-hidden": r.value }]) }, [S("div", {
8296
8338
  ref_key: "divBox",
8297
8339
  ref: a
8298
- }, [N(e.$slots, "default", {}, void 0, !0)], 512)], 2), S("div", Zl, [i.value && e.unfold ? (A(), x("div", {
8340
+ }, [N(e.$slots, "default", {}, void 0, !0)], 512)], 2), S("div", Ql, [i.value && e.unfold ? (A(), x("div", {
8299
8341
  key: 0,
8300
8342
  class: "expand-btn",
8301
8343
  onClick: t[0] ||= (e) => r.value = !r.value
8302
8344
  }, F(r.value ? "展开" : "收起"), 1)) : b("", !0)])]));
8303
8345
  }
8304
- }), [["__scopeId", "data-v-94334818"]]), $l = {
8346
+ }), [["__scopeId", "data-v-94334818"]]), eu = {
8305
8347
  __name: "user-card",
8306
8348
  props: { uid: "" },
8307
8349
  setup(e) {
@@ -8320,13 +8362,13 @@ var Nl = /*#__PURE__*/ H(Al, [["render", Ml]]), Pl = { class: "cv-comment-emoji"
8320
8362
  }
8321
8363
  };
8322
8364
  // node_modules/.pnpm/@vueuse+shared@15.0.0_vue@3.5.44_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
8323
- function eu(e, t) {
8365
+ function tu(e, t) {
8324
8366
  return Se() ? (ke(e, t), !0) : !1;
8325
8367
  }
8326
- var tu = typeof window < "u" && typeof document < "u";
8368
+ var nu = typeof window < "u" && typeof document < "u";
8327
8369
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
8328
- var nu = Object.prototype.toString, ru = (e) => nu.call(e) === "[object Object]";
8329
- function iu(e) {
8370
+ var ru = Object.prototype.toString, iu = (e) => ru.call(e) === "[object Object]";
8371
+ function au(e) {
8330
8372
  let t;
8331
8373
  function n() {
8332
8374
  return t ||= e(), t;
@@ -8336,10 +8378,10 @@ function iu(e) {
8336
8378
  t = void 0, e && await e;
8337
8379
  }, n;
8338
8380
  }
8339
- function au(e) {
8381
+ function ou(e) {
8340
8382
  return Array.isArray(e) ? e : [e];
8341
8383
  }
8342
- function ou(e, t, n = {}) {
8384
+ function su(e, t, n = {}) {
8343
8385
  let { immediate: r = !0, immediateCallback: i = !1 } = n, a = Le(!1), o;
8344
8386
  function s() {
8345
8387
  o &&= (clearTimeout(o), void 0);
@@ -8352,63 +8394,63 @@ function ou(e, t, n = {}) {
8352
8394
  a.value = !1, o = void 0, e(...n);
8353
8395
  }, Ve(t));
8354
8396
  }
8355
- return r && (a.value = !0, tu && l()), eu(c), {
8397
+ return r && (a.value = !0, nu && l()), tu(c), {
8356
8398
  isPending: Ie(a),
8357
8399
  start: l,
8358
8400
  stop: c
8359
8401
  };
8360
8402
  }
8361
- function su(e, t, n) {
8403
+ function cu(e, t, n) {
8362
8404
  return Ge(e, t, {
8363
8405
  ...n,
8364
8406
  immediate: !0
8365
8407
  });
8366
8408
  }
8367
8409
  // node_modules/.pnpm/@vueuse+core@15.0.0_vue@3.5.44_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
8368
- var cu = tu ? window : void 0;
8369
- tu && window.document;
8370
- var lu = tu ? window.navigator : void 0;
8371
- tu && window.location;
8372
- function uu(e) {
8410
+ var lu = nu ? window : void 0;
8411
+ nu && window.document;
8412
+ var uu = nu ? window.navigator : void 0;
8413
+ nu && window.location;
8414
+ function du(e) {
8373
8415
  let t = Ve(e);
8374
8416
  return t?.$el ?? t;
8375
8417
  }
8376
- function du(...e) {
8418
+ function fu(...e) {
8377
8419
  let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = ve(() => {
8378
- let t = au(Ve(e[0])).filter((e) => e != null);
8420
+ let t = ou(Ve(e[0])).filter((e) => e != null);
8379
8421
  return t.every((e) => typeof e != "string") ? t : void 0;
8380
8422
  });
8381
- return su(() => [
8382
- n.value?.map((e) => uu(e)) ?? [cu].filter((e) => e != null),
8383
- au(Ve(n.value ? e[1] : e[0])),
8384
- au(I(n.value ? e[2] : e[1])),
8423
+ return cu(() => [
8424
+ n.value?.map((e) => du(e)) ?? [lu].filter((e) => e != null),
8425
+ ou(Ve(n.value ? e[1] : e[0])),
8426
+ ou(I(n.value ? e[2] : e[1])),
8385
8427
  Ve(n.value ? e[3] : e[2])
8386
8428
  ], ([e, n, r, i], a, o) => {
8387
8429
  if (!e?.length || !n?.length || !r?.length) return;
8388
- let s = ru(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
8430
+ let s = iu(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
8389
8431
  o(() => {
8390
8432
  c.forEach((e) => e());
8391
8433
  });
8392
8434
  }, { flush: "post" });
8393
8435
  }
8394
- function fu() {
8436
+ function pu() {
8395
8437
  let e = Le(!1), t = xe();
8396
8438
  return t && Oe(() => {
8397
8439
  e.value = !0;
8398
8440
  }, t), e;
8399
8441
  }
8400
8442
  /* @__NO_SIDE_EFFECTS__ */
8401
- function pu(e) {
8402
- let t = fu();
8443
+ function mu(e) {
8444
+ let t = pu();
8403
8445
  return ve(() => (t.value, !!e()));
8404
8446
  }
8405
8447
  /* @__NO_SIDE_EFFECTS__ */
8406
- function mu(e, t = {}) {
8407
- let { controls: n = !1, navigator: r = lu } = t, i = /* @__PURE__ */ pu(() => r && "permissions" in r), a = Le(), o = typeof e == "string" ? { name: e } : e, s = Le(), c = () => {
8448
+ function hu(e, t = {}) {
8449
+ let { controls: n = !1, navigator: r = uu } = t, i = /* @__PURE__ */ mu(() => r && "permissions" in r), a = Le(), o = typeof e == "string" ? { name: e } : e, s = Le(), c = () => {
8408
8450
  s.value = a.value?.state ?? "prompt";
8409
8451
  };
8410
- du(a, "change", c, { passive: !0 });
8411
- let l = iu(async () => {
8452
+ fu(a, "change", c, { passive: !0 });
8453
+ let l = au(async () => {
8412
8454
  if (i.value) {
8413
8455
  if (!a.value) try {
8414
8456
  a.value = await r.permissions.query(o);
@@ -8427,8 +8469,8 @@ function mu(e, t = {}) {
8427
8469
  } : s;
8428
8470
  }
8429
8471
  /* @__NO_SIDE_EFFECTS__ */
8430
- function hu(e = {}) {
8431
- let { navigator: t = lu, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ pu(() => t && "clipboard" in t), s = /* @__PURE__ */ mu("clipboard-read"), c = /* @__PURE__ */ mu("clipboard-write"), l = ve(() => o.value || a), u = Le(""), d = Le(!1), f = Le(!1), p = ou(() => d.value = !1, i, { immediate: !1 }), m = 0;
8472
+ function gu(e = {}) {
8473
+ let { navigator: t = uu, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ mu(() => t && "clipboard" in t), s = /* @__PURE__ */ hu("clipboard-read"), c = /* @__PURE__ */ hu("clipboard-write"), l = ve(() => o.value || a), u = Le(""), d = Le(!1), f = Le(!1), p = su(() => d.value = !1, i, { immediate: !1 }), m = 0;
8432
8474
  async function ee() {
8433
8475
  let e = !(o.value && ie(s.value));
8434
8476
  if (!e) try {
@@ -8438,7 +8480,7 @@ function hu(e = {}) {
8438
8480
  }
8439
8481
  e && (u.value = re());
8440
8482
  }
8441
- l.value && n && du(["copy", "cut"], ee, { passive: !0 });
8483
+ l.value && n && fu(["copy", "cut"], ee, { passive: !0 });
8442
8484
  async function te(e) {
8443
8485
  let n = e ?? Ve(r);
8444
8486
  if (l.value && n != null) {
@@ -8483,14 +8525,14 @@ function hu(e = {}) {
8483
8525
  };
8484
8526
  }
8485
8527
  // packages/comment/src/comment-operate.vue
8486
- var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp" }, vu = { class: "dialog-footer" }, yu = {
8528
+ var _u = { class: "comment-list-actbox__right" }, vu = { class: "operation-warp" }, yu = { class: "dialog-footer" }, bu = {
8487
8529
  __name: "comment-operate",
8488
8530
  props: { data: {
8489
8531
  type: [Object],
8490
8532
  default: () => ({})
8491
8533
  } },
8492
8534
  setup(e) {
8493
- let { copy: t } = /* @__PURE__ */ hu(), n = j(!1), r = j({
8535
+ let { copy: t } = /* @__PURE__ */ gu(), n = j(!1), r = j({
8494
8536
  report_type: "",
8495
8537
  report_content: ""
8496
8538
  }), i = e;
@@ -8520,7 +8562,7 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
8520
8562
  }
8521
8563
  return (e, t) => {
8522
8564
  let i = P("el-dropdown-item"), s = P("el-dropdown-menu"), c = P("el-dropdown"), l = P("el-radio"), u = P("el-radio-group"), d = P("el-form-item"), f = P("el-input"), p = P("el-form"), m = P("el-button"), ee = P("el-dialog");
8523
- return A(), x("div", gu, [w(c, {
8565
+ return A(), x("div", _u, [w(c, {
8524
8566
  trigger: "click",
8525
8567
  onCommand: t[0] ||= (e) => o(e)
8526
8568
  }, {
@@ -8544,7 +8586,7 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
8544
8586
  ]),
8545
8587
  _: 1
8546
8588
  })]),
8547
- default: R(() => [S("div", _u, [w(I(pl))])]),
8589
+ default: R(() => [S("div", vu, [w(I(ml))])]),
8548
8590
  _: 1
8549
8591
  }), w(ee, {
8550
8592
  title: "举报",
@@ -8556,7 +8598,7 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
8556
8598
  "max-width": "400px"
8557
8599
  }
8558
8600
  }, {
8559
- footer: R(() => [S("span", vu, [w(m, { onClick: t[3] ||= (e) => n.value = !1 }, {
8601
+ footer: R(() => [S("span", yu, [w(m, { onClick: t[3] ||= (e) => n.value = !1 }, {
8560
8602
  default: R(() => [...t[13] ||= [C("取消", -1)]]),
8561
8603
  _: 1
8562
8604
  }), w(m, {
@@ -8614,25 +8656,25 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
8614
8656
  }, 8, ["modelValue"])]);
8615
8657
  };
8616
8658
  }
8617
- }, bu = { class: "comment-sub" }, xu = ["href"], Su = { class: "comment-primary" }, Cu = { class: "comment-main" }, wu = {
8659
+ }, xu = { class: "comment-sub" }, Su = ["href"], Cu = { class: "comment-primary" }, wu = { class: "comment-main" }, Tu = {
8618
8660
  key: 1,
8619
8661
  class: "user-info"
8620
- }, Tu = ["href"], Eu = { class: "username" }, Du = {
8662
+ }, Eu = ["href"], Du = { class: "username" }, Ou = {
8621
8663
  class: "name",
8622
8664
  style: { "max-width": "10em" }
8623
- }, Ou = {
8665
+ }, ku = {
8624
8666
  blank: "true",
8625
8667
  class: "rank"
8626
- }, ku = ["innerHTML"], Au = {
8668
+ }, Au = ["innerHTML"], ju = {
8627
8669
  class: "address",
8628
8670
  style: {
8629
8671
  color: "#939393",
8630
8672
  "font-size": "12px"
8631
8673
  }
8632
- }, ju = { class: "time" }, Mu = { class: "content" }, Nu = ["innerHTML"], Pu = {
8674
+ }, Mu = { class: "time" }, Nu = { class: "content" }, Pu = ["innerHTML"], Fu = {
8633
8675
  class: "imgbox",
8634
8676
  style: { display: "flex" }
8635
- }, Fu = { class: "comment-list-actbox select-none" }, Iu = { class: "comment-list-actbox__left" }, Lu = { key: 2 }, Ru = { class: "comment-list-actbox__right" }, zu = { key: 2 }, Bu = /*#__PURE__*/ H({
8677
+ }, Iu = { class: "comment-list-actbox select-none" }, Lu = { class: "comment-list-actbox__left" }, Ru = { key: 2 }, zu = { class: "comment-list-actbox__right" }, Bu = { key: 2 }, Vu = /*#__PURE__*/ H({
8636
8678
  __name: "content-box",
8637
8679
  props: {
8638
8680
  reply: {
@@ -8685,7 +8727,7 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
8685
8727
  default: return "";
8686
8728
  }
8687
8729
  };
8688
- return (s, ee) => (A(), x("div", { class: D(["comment", { reply: t.reply }]) }, [S("div", bu, [w($l, { uid: I(Yr)(e.data.uid) }, {
8730
+ return (s, ee) => (A(), x("div", { class: D(["comment", { reply: t.reply }]) }, [S("div", xu, [w(eu, { uid: I(Yr)(e.data.uid) }, {
8689
8731
  default: R(() => [S("a", {
8690
8732
  href: e.data.user.homeLink,
8691
8733
  target: "_blank",
@@ -8699,28 +8741,28 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
8699
8741
  }, {
8700
8742
  default: R(() => [...ee[2] ||= [S("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)]]),
8701
8743
  _: 1
8702
- }, 8, ["src"])], 8, xu)]),
8744
+ }, 8, ["src"])], 8, Su)]),
8703
8745
  _: 1
8704
- }, 8, ["uid"])]), S("div", Su, [S("div", Cu, [
8705
- I(p).info ? (A(), y(m, { key: 0 })) : (A(), x("div", wu, [
8706
- w($l, { uid: I(Yr)(e.data.uid) }, {
8746
+ }, 8, ["uid"])]), S("div", Cu, [S("div", wu, [
8747
+ I(p).info ? (A(), y(m, { key: 0 })) : (A(), x("div", Tu, [
8748
+ w(eu, { uid: I(Yr)(e.data.uid) }, {
8707
8749
  default: R(() => [S("a", {
8708
8750
  href: e.data.user.homeLink,
8709
8751
  target: "_blank",
8710
8752
  class: "no-underline",
8711
8753
  style: { display: "block" }
8712
- }, [S("div", Eu, [S("span", Du, F(e.data.user.username), 1), S("span", Ou, [S("i", {
8754
+ }, [S("div", Du, [S("span", Ou, F(e.data.user.username), 1), S("span", ku, [S("i", {
8713
8755
  class: "comment-common-icon",
8714
8756
  style: { "font-size": "24px" },
8715
8757
  innerHTML: h(e.data.user.level)
8716
- }, null, 8, ku)])])], 8, Tu)]),
8758
+ }, null, 8, Au)])])], 8, Eu)]),
8717
8759
  _: 1
8718
8760
  }, 8, ["uid"]),
8719
- S("span", Au, "\xA0\xA0" + F(e.data.address), 1),
8720
- S("time", ju, F(I(u) ? I(Br)(e.data.createTime) : e.data.createTime), 1)
8761
+ S("span", ju, "\xA0\xA0" + F(e.data.address), 1),
8762
+ S("time", Mu, F(I(u) ? I(Br)(e.data.createTime) : e.data.createTime), 1)
8721
8763
  ])),
8722
- S("div", Mu, [w(Ql, { unfold: "" }, {
8723
- default: R(() => [S("div", { innerHTML: ne.value }, null, 8, Nu), S("div", Pu, [(A(!0), x(v, null, M(o.value, (e, t) => (A(), y(I(te), {
8764
+ S("div", Nu, [w($l, { unfold: "" }, {
8765
+ default: R(() => [S("div", { innerHTML: ne.value }, null, 8, Pu), S("div", Fu, [(A(!0), x(v, null, M(o.value, (e, t) => (A(), y(I(te), {
8724
8766
  key: t,
8725
8767
  src: e,
8726
8768
  style: {
@@ -8737,18 +8779,18 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
8737
8779
  ]))), 128))])]),
8738
8780
  _: 1
8739
8781
  })]),
8740
- S("div", Fu, [S("div", Iu, [S("div", {
8782
+ S("div", Iu, [S("div", Lu, [S("div", {
8741
8783
  "data-tip": "点赞",
8742
8784
  class: "item",
8743
8785
  onClick: ee[0] ||= (t) => I(c)(I(Yr)(e.data.id))
8744
- }, [I(l).likeIds.map(String).indexOf(I(Yr)(e.data.id)) == -1 ? (A(), y(I(xl), { key: 0 })) : (A(), y(I(_l), { key: 1 })), e.data.likes == 0 ? b("", !0) : (A(), x("span", Lu, F(e.data.likes), 1))]), S("div", {
8786
+ }, [I(l).likeIds.map(String).indexOf(I(Yr)(e.data.id)) == -1 ? (A(), y(I(Sl), { key: 0 })) : (A(), y(I(vl), { key: 1 })), e.data.likes == 0 ? b("", !0) : (A(), x("span", Ru, F(e.data.likes), 1))]), S("div", {
8745
8787
  "data-tip": "回复",
8746
8788
  ref_key: "btnRef",
8747
8789
  ref: a,
8748
8790
  class: D(["item", { active: r.active }]),
8749
8791
  onClick: d
8750
- }, [w(I(Nl)), S("span", null, F(r.active ? "取消回复" : "回复"), 1)], 2)]), S("div", Ru, [N(s.$slots, "operate", {}, () => [w(yu, { data: t.data }, null, 8, ["data"])], !0)])]),
8751
- r.active ? (A(), x("div", zu, [w(Yl, {
8792
+ }, [w(I(Pl)), S("span", null, F(r.active ? "取消回复" : "回复"), 1)], 2)]), S("div", zu, [N(s.$slots, "operate", {}, () => [w(bu, { data: t.data }, null, 8, ["data"])], !0)])]),
8793
+ r.active ? (A(), x("div", Bu, [w(Xl, {
8752
8794
  ref_key: "commentRef",
8753
8795
  ref: i,
8754
8796
  "parent-id": I(Yr)(e.id),
@@ -8765,16 +8807,16 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
8765
8807
  ])])) : b("", !0)
8766
8808
  ]), N(s.$slots, "default", {}, void 0, !0)])], 2));
8767
8809
  }
8768
- }, [["__scopeId", "data-v-cfe79df7"]]), Vu = {
8810
+ }, [["__scopeId", "data-v-cfe79df7"]]), Hu = {
8769
8811
  key: 0,
8770
8812
  class: "reply-box"
8771
- }, Hu = { class: "reply-list" }, Uu = {
8813
+ }, Uu = { class: "reply-list" }, Wu = {
8772
8814
  key: 0,
8773
8815
  class: "fetch-more"
8774
- }, Wu = { key: 0 }, Gu = { key: 1 }, Ku = { key: 0 }, qu = {
8816
+ }, Gu = { key: 0 }, Ku = { key: 1 }, qu = { key: 0 }, Ju = {
8775
8817
  key: 1,
8776
8818
  class: "fetch-more"
8777
- }, Ju = /*#__PURE__*/ H({
8819
+ }, Yu = /*#__PURE__*/ H({
8778
8820
  __name: "reply-box",
8779
8821
  props: {
8780
8822
  data: {
@@ -8822,18 +8864,18 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
8822
8864
  }, d = (e) => {
8823
8865
  n.pageSize = e, r(t.id, n.pageNum, e, (e) => l(e));
8824
8866
  };
8825
- return (t, r) => s.value.length > 0 ? (A(), x("div", Vu, [S("div", Hu, [
8826
- (A(!0), x(v, null, M(s.value.list, (t, n) => (A(), y(Bu, {
8867
+ return (t, r) => s.value.length > 0 ? (A(), x("div", Hu, [S("div", Uu, [
8868
+ (A(!0), x(v, null, M(s.value.list, (t, n) => (A(), y(Vu, {
8827
8869
  id: e.id,
8828
8870
  key: n,
8829
8871
  data: t,
8830
8872
  reply: ""
8831
8873
  }, null, 8, ["id", "data"]))), 128)),
8832
- s.value.length > I(i) ? (A(), x("div", Uu, [n.loading ? (A(), x("span", Wu, "加载中...")) : (A(), x("div", Gu, [n.over ? b("", !0) : (A(), x("div", Ku, [C(" 共" + F(s.value.total) + "条回复, ", 1), S("span", {
8874
+ s.value.length > I(i) ? (A(), x("div", Wu, [n.loading ? (A(), x("span", Gu, "加载中...")) : (A(), x("div", Ku, [n.over ? b("", !0) : (A(), x("div", qu, [C(" 共" + F(s.value.total) + "条回复, ", 1), S("span", {
8833
8875
  class: "fetch-more-comment select-none",
8834
8876
  onClick: c
8835
- }, [r[0] ||= C(" 点击查看 ", -1), w(I(Tl))])]))]))])) : b("", !0),
8836
- n.over && I(o) ? (A(), x("div", qu, [w(I(ce), {
8877
+ }, [r[0] ||= C(" 点击查看 ", -1), w(I(El))])]))]))])) : b("", !0),
8878
+ n.over && I(o) ? (A(), x("div", Ju, [w(I(ce), {
8837
8879
  small: "",
8838
8880
  "hide-on-single-page": "",
8839
8881
  layout: "total, prev, pager, next",
@@ -8844,10 +8886,10 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
8844
8886
  }, null, 8, ["total", "page-size"])])) : b("", !0)
8845
8887
  ])])) : b("", !0);
8846
8888
  }
8847
- }, [["__scopeId", "data-v-16e0a50b"]]), Yu = {
8889
+ }, [["__scopeId", "data-v-16e0a50b"]]), Xu = {
8848
8890
  key: 0,
8849
8891
  class: "comment-list"
8850
- }, Xu = {
8892
+ }, Zu = {
8851
8893
  __name: "comment-list",
8852
8894
  props: {
8853
8895
  data: {
@@ -8864,19 +8906,19 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
8864
8906
  }
8865
8907
  },
8866
8908
  setup(e) {
8867
- return (t, n) => e.data ? (A(), x("div", Yu, [(A(!0), x(v, null, M(e.data, (e, t) => (A(), y(Bu, {
8909
+ return (t, n) => e.data ? (A(), x("div", Xu, [(A(!0), x(v, null, M(e.data, (e, t) => (A(), y(Vu, {
8868
8910
  id: I(Yr)(e.id),
8869
8911
  key: t,
8870
8912
  data: e
8871
8913
  }, {
8872
- default: R(() => [w(Ju, {
8914
+ default: R(() => [w(Yu, {
8873
8915
  id: I(Yr)(e.id),
8874
8916
  data: e.reply
8875
8917
  }, null, 8, ["id", "data"])]),
8876
8918
  _: 2
8877
8919
  }, 1032, ["id", "data"]))), 128))])) : b("", !0);
8878
8920
  }
8879
- }, Zu = { class: "cv-comment-base" }, Qu = { class: "cv-comment-form" }, $u = { class: "cv-comment-form__content" }, ed = { class: "cv-comment-form__avatar" }, td = { class: "cv-comment-list-wrapper" }, nd = /*@__PURE__*/ Object.assign({ name: "cvCommentBase" }, {
8921
+ }, Qu = { class: "cv-comment-base" }, $u = { class: "cv-comment-form" }, ed = { class: "cv-comment-form__content" }, td = { class: "cv-comment-form__avatar" }, nd = { class: "cv-comment-list-wrapper" }, rd = /*@__PURE__*/ Object.assign({ name: "cvCommentBase" }, {
8880
8922
  __name: "comment",
8881
8923
  props: {
8882
8924
  config: {},
@@ -8963,19 +9005,19 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
8963
9005
  }
8964
9006
  } }), (t, n) => {
8965
9007
  let r = P("el-avatar");
8966
- return A(), x("div", Zu, [
8967
- S("div", Qu, [n[1] ||= S("div", { class: "cv-comment-form__header" }, [S("span", { class: "cv-comment-form__hdtitle" }, "评论")], -1), S("div", $u, [S("div", ed, [w(r, {
9008
+ return A(), x("div", Qu, [
9009
+ S("div", $u, [n[1] ||= S("div", { class: "cv-comment-form__header" }, [S("span", { class: "cv-comment-form__hdtitle" }, "评论")], -1), S("div", ed, [S("div", td, [w(r, {
8968
9010
  size: 40,
8969
9011
  src: e.config.user.avatar
8970
9012
  }, {
8971
9013
  default: R(() => [...n[0] ||= [S("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)]]),
8972
9014
  _: 1
8973
- }, 8, ["src"])]), w(Yl, {
9015
+ }, 8, ["src"])]), w(Xl, {
8974
9016
  placeholder: "输入评论(Enter换行,Ctrl + Enter发送)",
8975
9017
  "content-btn": "发表评论"
8976
9018
  })])]),
8977
9019
  N(t.$slots, "default", {}, () => [n[2] ||= S("div", { class: "title" }, "全部评论", -1)]),
8978
- S("div", td, [w(Xu, {
9020
+ S("div", nd, [w(Zu, {
8979
9021
  data: I(a),
8980
9022
  total: I(c),
8981
9023
  "show-size": I(Kr)(I(o), 5)
@@ -8987,7 +9029,7 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
8987
9029
  ]);
8988
9030
  };
8989
9031
  }
8990
- }), rd = { class: "comment-scroll" }, id = ["infinite-scroll-disabled"], ad = { class: "scroll-btn" }, od = { key: 1 }, sd = { key: 2 }, cd = /*@__PURE__*/ Object.assign({ name: "cvCommentScroll" }, {
9032
+ }), id = { class: "comment-scroll" }, ad = ["infinite-scroll-disabled"], od = { class: "scroll-btn" }, sd = { key: 1 }, cd = { key: 2 }, ld = /*@__PURE__*/ Object.assign({ name: "cvCommentScroll" }, {
8991
9033
  __name: "comment-scroll",
8992
9034
  props: {
8993
9035
  disable: {
@@ -9008,10 +9050,10 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
9008
9050
  };
9009
9051
  return (e, t) => {
9010
9052
  let n = P("el-link"), a = Pe("infinite-scroll");
9011
- return A(), x("div", rd, [z((A(), x("div", {
9053
+ return A(), x("div", id, [z((A(), x("div", {
9012
9054
  "infinite-scroll-disabled": s.value,
9013
9055
  "infinite-scroll-distance": "2"
9014
- }, [N(e.$slots, "default"), S("div", ad, [
9056
+ }, [N(e.$slots, "default"), S("div", od, [
9015
9057
  i.value ? b("", !0) : (A(), y(n, {
9016
9058
  key: 0,
9017
9059
  type: "primary",
@@ -9021,12 +9063,12 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
9021
9063
  default: R(() => [...t[1] ||= [C("加载更多", -1)]]),
9022
9064
  _: 1
9023
9065
  })),
9024
- r.value ? (A(), x("p", od, "加载中...")) : b("", !0),
9025
- o.value ? (A(), x("p", sd, "没有更多了")) : b("", !0)
9026
- ])], 8, id)), [[a, l]])]);
9066
+ r.value ? (A(), x("p", sd, "加载中...")) : b("", !0),
9067
+ o.value ? (A(), x("p", cd, "没有更多了")) : b("", !0)
9068
+ ])], 8, ad)), [[a, l]])]);
9027
9069
  };
9028
9070
  }
9029
- }), ld = { class: "cv-comment-nav-wrap" }, ud = { class: "cv-comment-nav__sort" }, dd = /*@__PURE__*/ Object.assign({ name: "cvCommentNav" }, {
9071
+ }), ud = { class: "cv-comment-nav-wrap" }, dd = { class: "cv-comment-nav__sort" }, fd = /*@__PURE__*/ Object.assign({ name: "cvCommentNav" }, {
9030
9072
  __name: "comment-nav",
9031
9073
  props: { modelValue: !1 },
9032
9074
  emits: ["update:modelValue", "sorted"],
@@ -9039,24 +9081,24 @@ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp"
9039
9081
  r("update:modelValue", e), r("sorted", e);
9040
9082
  }
9041
9083
  });
9042
- return (e, t) => (A(), x("div", ld, [t[4] ||= S("span", { class: "cv-comment-nav__title" }, "全部评论", -1), S("div", ud, [S("div", {
9084
+ return (e, t) => (A(), x("div", ud, [t[4] ||= S("span", { class: "cv-comment-nav__title" }, "全部评论", -1), S("div", dd, [S("div", {
9043
9085
  class: D(["item select-none", { active: i.value }]),
9044
9086
  onClick: t[0] ||= (e) => i.value = !0
9045
- }, [w(I(kl)), t[2] ||= C(" 最新 ", -1)], 2), S("div", {
9087
+ }, [w(I(Al)), t[2] ||= C(" 最新 ", -1)], 2), S("div", {
9046
9088
  class: D(["item select-none", { active: !i.value }]),
9047
9089
  onClick: t[1] ||= (e) => i.value = !1
9048
- }, [w(I(al)), t[3] ||= C(" 最热 ", -1)], 2)])]));
9090
+ }, [w(I(ol)), t[3] ||= C(" 最热 ", -1)], 2)])]));
9049
9091
  }
9050
9092
  });
9051
- nd.install = function(e) {
9052
- e.component(nd.name, nd);
9053
- }, cd.install = function(e) {
9054
- e.component(cd.name, cd);
9055
- }, dd.install = function(e) {
9056
- e.component(dd.name, dd);
9093
+ rd.install = function(e) {
9094
+ e.component(rd.name, rd);
9095
+ }, ld.install = function(e) {
9096
+ e.component(ld.name, ld);
9097
+ }, fd.install = function(e) {
9098
+ e.component(fd.name, fd);
9057
9099
  };
9058
9100
  // packages/icons/src/icons.vue
9059
- var fd = {
9101
+ var pd = {
9060
9102
  name: "cvIcons",
9061
9103
  props: {
9062
9104
  type: {
@@ -9091,13 +9133,13 @@ var fd = {
9091
9133
  created() {},
9092
9134
  methods: {}
9093
9135
  };
9094
- function pd(e, t, n, r, i, a) {
9136
+ function md(e, t, n, r, i, a) {
9095
9137
  return A(), x("i", {
9096
9138
  style: k(a.mergeIconStyle),
9097
9139
  class: D(["cv-icon", n.rotate ? "cv-icons-turn" : "cv-icon-" + n.type])
9098
9140
  }, null, 6);
9099
9141
  }
9100
- var md = /*#__PURE__*/ H(fd, [["render", pd]]), hd = {
9142
+ var hd = /*#__PURE__*/ H(pd, [["render", md]]), gd = {
9101
9143
  name: "cvIconSvg",
9102
9144
  props: {
9103
9145
  ...ee.prop,
@@ -9125,24 +9167,24 @@ var md = /*#__PURE__*/ H(fd, [["render", pd]]), hd = {
9125
9167
  } },
9126
9168
  created() {},
9127
9169
  methods: {}
9128
- }, gd = {
9170
+ }, _d = {
9129
9171
  key: 0,
9130
9172
  "aria-hidden": "true"
9131
- }, _d = ["xlink:href"];
9132
- function vd(e, t, n, r, i, a) {
9173
+ }, vd = ["xlink:href"];
9174
+ function yd(e, t, n, r, i, a) {
9133
9175
  let o = P("el-icon");
9134
9176
  return A(), y(o, O(T(e.$props)), {
9135
- default: R(() => [N(e.$slots, "default", {}, () => [(A(), y(Fe(n.type)))]), n.name ? (A(), x("svg", gd, [S("use", { "xlink:href": n.name }, null, 8, _d)])) : b("", !0)]),
9177
+ default: R(() => [N(e.$slots, "default", {}, () => [(A(), y(Fe(n.type)))]), n.name ? (A(), x("svg", _d, [S("use", { "xlink:href": n.name }, null, 8, vd)])) : b("", !0)]),
9136
9178
  _: 3
9137
9179
  }, 16);
9138
9180
  }
9139
- var yd = /*#__PURE__*/ H(hd, [["render", vd]]);
9181
+ var bd = /*#__PURE__*/ H(gd, [["render", yd]]);
9140
9182
  // packages/icons/src/mixins.js
9141
- function bd(e) {
9183
+ function xd(e) {
9142
9184
  let t = e.trim();
9143
9185
  return /^https?:\/\//.test(t);
9144
9186
  }
9145
- var xd = {
9187
+ var Sd = {
9146
9188
  emits: ["click"],
9147
9189
  props: {
9148
9190
  name: {
@@ -9172,7 +9214,7 @@ var xd = {
9172
9214
  },
9173
9215
  computed: {
9174
9216
  maskIconUrl() {
9175
- if (bd(this.name)) return this.name;
9217
+ if (xd(this.name)) return this.name;
9176
9218
  let e = "https://10ui.cn/icons", t = this.name || "", n = "";
9177
9219
  t = t.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), t = t.replace(/^-|-$/g, ""), t = t.toLowerCase().trim();
9178
9220
  let r = /-(filled|bold)$/;
@@ -9206,49 +9248,49 @@ var xd = {
9206
9248
  return this.hoverEffect && (e.transition = "background-color 0.2s ease"), e;
9207
9249
  }
9208
9250
  }
9209
- }, Sd = {
9251
+ }, Cd = {
9210
9252
  name: "cvMaskSvg",
9211
- mixins: [xd]
9212
- }, Cd = () => {
9253
+ mixins: [Sd]
9254
+ }, wd = () => {
9213
9255
  He((e) => ({ v4d7c194c: e.hoverColor }));
9214
- }, wd = Sd.setup;
9215
- Sd.setup = wd ? (e, t) => (Cd(), wd(e, t)) : Cd;
9216
- function Td(e, t, n, r, i, a) {
9256
+ }, Td = Cd.setup;
9257
+ Cd.setup = Td ? (e, t) => (wd(), Td(e, t)) : wd;
9258
+ function Ed(e, t, n, r, i, a) {
9217
9259
  return A(), x("div", {
9218
9260
  class: "cv-mask-icon",
9219
9261
  style: k(e.iconStyle),
9220
9262
  onClick: t[0] ||= (t) => e.$emit("click", t)
9221
9263
  }, null, 4);
9222
9264
  }
9223
- var Ed = /*#__PURE__*/ H(Sd, [["render", Td], ["__scopeId", "data-v-bff5bc9b"]]), Dd = {
9265
+ var Dd = /*#__PURE__*/ H(Cd, [["render", Ed], ["__scopeId", "data-v-bff5bc9b"]]), Od = {
9224
9266
  name: "cvMaskPng",
9225
- mixins: [xd],
9267
+ mixins: [Sd],
9226
9268
  data() {
9227
9269
  return { iconType: "png" };
9228
9270
  }
9229
- }, Od = () => {
9271
+ }, kd = () => {
9230
9272
  He((e) => ({ v6bb780e0: e.hoverColor }));
9231
- }, kd = Dd.setup;
9232
- Dd.setup = kd ? (e, t) => (Od(), kd(e, t)) : Od;
9233
- function Ad(e, t, n, r, i, a) {
9273
+ }, Ad = Od.setup;
9274
+ Od.setup = Ad ? (e, t) => (kd(), Ad(e, t)) : kd;
9275
+ function jd(e, t, n, r, i, a) {
9234
9276
  return A(), x("div", {
9235
9277
  class: "cv-mask-icon",
9236
9278
  style: k(e.iconStyle),
9237
9279
  onTap: t[0] ||= (t) => e.$emit("click", t)
9238
9280
  }, null, 36);
9239
9281
  }
9240
- var jd = /*#__PURE__*/ H(Dd, [["render", Ad], ["__scopeId", "data-v-4f8ce869"]]);
9241
- md.install = function(e) {
9242
- e.component(md.name, md);
9243
- }, yd.install = function(e) {
9244
- e.component(yd.name, yd);
9245
- }, Ed.install = function(e) {
9246
- e.component(Ed.name, Ed);
9247
- }, jd.install = function(e) {
9248
- e.component(jd.name, jd);
9282
+ var Md = /*#__PURE__*/ H(Od, [["render", jd], ["__scopeId", "data-v-4f8ce869"]]);
9283
+ hd.install = function(e) {
9284
+ e.component(hd.name, hd);
9285
+ }, bd.install = function(e) {
9286
+ e.component(bd.name, bd);
9287
+ }, Dd.install = function(e) {
9288
+ e.component(Dd.name, Dd);
9289
+ }, Md.install = function(e) {
9290
+ e.component(Md.name, Md);
9249
9291
  };
9250
9292
  // packages/chat/comp/emoji.vue
9251
- var Md = { class: "u-emoji" }, Nd = { class: "face-tooltip-head select-none" }, Pd = ["onClick"], Fd = ["src"], Id = { class: "emoji-body select-none" }, Ld = { style: { padding: "0 5px" } }, Rd = ["onClick"], zd = { class: "emoji-btn select-none" }, Bd = { key: 0 }, Vd = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "cvEmoji" }, {
9293
+ var Nd = { class: "u-emoji" }, Pd = { class: "face-tooltip-head select-none" }, Fd = ["onClick"], Id = ["src"], Ld = { class: "emoji-body select-none" }, Rd = { style: { padding: "0 5px" } }, zd = ["onClick"], Bd = { class: "emoji-btn select-none" }, Vd = { key: 0 }, Hd = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "cvEmoji" }, {
9252
9294
  __name: "emoji",
9253
9295
  props: {
9254
9296
  emoji: {
@@ -9272,14 +9314,14 @@ var Md = { class: "u-emoji" }, Nd = { class: "face-tooltip-head select-none" },
9272
9314
  function l() {
9273
9315
  a.value[0] = o[0];
9274
9316
  }
9275
- return (t, n) => (A(), x("div", Md, [w(I(le), {
9317
+ return (t, n) => (A(), x("div", Nd, [w(I(le), {
9276
9318
  placement: e.placement,
9277
9319
  "popper-class": "emoji-popover",
9278
9320
  width: 250,
9279
9321
  trigger: "click",
9280
9322
  onBeforeEnter: l
9281
9323
  }, {
9282
- reference: R(() => [S("div", zd, [t.$slots.default ? N(t.$slots, "default", {}, void 0, !0, 1) : (A(), x("div", Bd, [...n[0] ||= [S("svg", {
9324
+ reference: R(() => [S("div", Bd, [t.$slots.default ? N(t.$slots, "default", {}, void 0, !0, 1) : (A(), x("div", Vd, [...n[0] ||= [S("svg", {
9283
9325
  width: "16",
9284
9326
  height: "16",
9285
9327
  viewBox: "0 0 16 16",
@@ -9291,21 +9333,21 @@ var Md = { class: "u-emoji" }, Nd = { class: "face-tooltip-head select-none" },
9291
9333
  "clip-rule": "evenodd",
9292
9334
  d: "M8.00002 0.666504C12.0501 0.666504 15.3334 3.94975 15.3334 7.99984C15.3334 12.0499 12.0501 15.3332 8.00002 15.3332C3.94993 15.3332 0.666687 12.0499 0.666687 7.99984C0.666687 3.94975 3.94993 0.666504 8.00002 0.666504ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.6667 5.66667V7.66667H9.33333V5.66667H10.6667ZM6.66667 5.66667V7.66667H5.33333V5.66667H6.66667ZM10.0767 9.33333H11.0495C11.1804 9.33333 11.2866 9.43951 11.2866 9.57048C11.2866 9.60754 11.2779 9.64409 11.2612 9.67718L11.244 9.71053C10.6294 10.8739 9.40726 11.6667 7.99998 11.6667C6.61523 11.6667 5.40977 10.8991 4.7859 9.76612L4.73786 9.67593C4.67845 9.56052 4.72385 9.4188 4.83926 9.35939C4.87253 9.34226 4.90941 9.33333 4.94683 9.33333H5.92347C6.02396 9.33332 6.11908 9.37865 6.18238 9.4567C6.26207 9.55496 6.32833 9.62955 6.38117 9.68046C6.80074 10.0847 7.37133 10.3333 7.99998 10.3333C8.63289 10.3333 9.20694 10.0814 9.62728 9.67224C9.67791 9.62296 9.74135 9.55121 9.8176 9.45698C9.88089 9.37877 9.97611 9.33333 10.0767 9.33333Z"
9293
9335
  })], -1), S("span", null, "表情", -1)]]))])]),
9294
- default: R(() => [S("div", Nd, [(A(!0), x(v, null, M(I(s), (e, t) => (A(), x("label", {
9336
+ default: R(() => [S("div", Pd, [(A(!0), x(v, null, M(I(s), (e, t) => (A(), x("label", {
9295
9337
  key: t,
9296
9338
  class: D(r.value == t ? "active" : ""),
9297
9339
  onClick: (e) => c(t)
9298
9340
  }, [S("img", {
9299
9341
  src: e,
9300
9342
  alt: ""
9301
- }, null, 8, Fd)], 10, Pd))), 128))]), S("div", Id, [S("div", {
9343
+ }, null, 8, Id)], 10, Fd))), 128))]), S("div", Ld, [S("div", {
9302
9344
  class: "emjio-container",
9303
9345
  style: k({ transform: `translateX(${i.value}%)` })
9304
9346
  }, [(A(!0), x(v, null, M(a.value, (e, n) => (A(), x("div", {
9305
9347
  key: n,
9306
9348
  class: "emoji-wrapper"
9307
9349
  }, [w(I(ue), null, {
9308
- default: R(() => [S("div", Ld, [(A(!0), x(v, null, M(e, (e, n) => (A(), x("span", {
9350
+ default: R(() => [S("div", Rd, [(A(!0), x(v, null, M(e, (e, n) => (A(), x("span", {
9309
9351
  key: n,
9310
9352
  class: "emoji-item",
9311
9353
  onClick: (e) => t.$emit("addEmoji", n)
@@ -9319,16 +9361,16 @@ var Md = { class: "u-emoji" }, Nd = { class: "face-tooltip-head select-none" },
9319
9361
  margin: "5px"
9320
9362
  },
9321
9363
  lazy: ""
9322
- }, null, 8, ["src", "title"])], 8, Rd))), 128))])]),
9364
+ }, null, 8, ["src", "title"])], 8, zd))), 128))])]),
9323
9365
  _: 2
9324
9366
  }, 1024)]))), 128))], 4)])]),
9325
9367
  _: 3
9326
9368
  }, 8, ["placement"])]));
9327
9369
  }
9328
- }), [["__scopeId", "data-v-da53b6ed"]]), Hd = { class: "cv-chat-message" }, Ud = { class: "chat-list" }, Wd = { class: "content" }, Gd = {
9370
+ }), [["__scopeId", "data-v-da53b6ed"]]), Ud = { class: "cv-chat-message" }, Wd = { class: "chat-list" }, Gd = { class: "content" }, Kd = {
9329
9371
  key: 0,
9330
9372
  class: "username"
9331
- }, Kd = ["innerHTML"], qd = {
9373
+ }, qd = ["innerHTML"], Jd = {
9332
9374
  __name: "message",
9333
9375
  props: {
9334
9376
  data: {
@@ -9361,11 +9403,11 @@ var Md = { class: "u-emoji" }, Nd = { class: "face-tooltip-head select-none" },
9361
9403
  "/>"
9362
9404
  ].join("") : t;
9363
9405
  }), t);
9364
- return (t, o) => (A(), x("div", Hd, [w(I(ue), {
9406
+ return (t, o) => (A(), x("div", Ud, [w(I(ue), {
9365
9407
  ref_key: "scrollbarRef",
9366
9408
  ref: i
9367
9409
  }, {
9368
- default: R(() => [S("div", Ud, [(A(!0), x(v, null, M(e.data, (t, i) => (A(), x("div", {
9410
+ default: R(() => [S("div", Wd, [(A(!0), x(v, null, M(e.data, (t, i) => (A(), x("div", {
9369
9411
  key: i,
9370
9412
  class: D([{ self: e.userId == t.id }, "chat-item"])
9371
9413
  }, [
@@ -9373,19 +9415,19 @@ var Md = { class: "u-emoji" }, Nd = { class: "face-tooltip-head select-none" },
9373
9415
  default: R(() => [...o[0] ||= [S("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)]]),
9374
9416
  _: 1
9375
9417
  })]),
9376
- S("div", Wd, [e.userId == t.id ? b("", !0) : (A(), x("div", Gd, F(t.username), 1)), S("div", {
9418
+ S("div", Gd, [e.userId == t.id ? b("", !0) : (A(), x("div", Kd, F(t.username), 1)), S("div", {
9377
9419
  class: "card-box",
9378
9420
  innerHTML: a(I(r), t.content)
9379
- }, null, 8, Kd)]),
9421
+ }, null, 8, qd)]),
9380
9422
  o[1] ||= S("div", { class: "date" }, null, -1)
9381
9423
  ], 2))), 128))])]),
9382
9424
  _: 1
9383
9425
  }, 512)]));
9384
9426
  }
9385
- }, Jd = { class: "cv-chat-wrap" }, Yd = { class: "header" }, Xd = {
9427
+ }, Yd = { class: "cv-chat-wrap" }, Xd = { class: "header" }, Zd = {
9386
9428
  id: "chat-footer",
9387
9429
  class: "footer"
9388
- }, Zd = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "cvChat" }, {
9430
+ }, Qd = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "cvChat" }, {
9389
9431
  __name: "chat",
9390
9432
  props: {
9391
9433
  data: {
@@ -9425,8 +9467,8 @@ var Md = { class: "u-emoji" }, Nd = { class: "face-tooltip-head select-none" },
9425
9467
  };
9426
9468
  return je("InjectionEmojiApi", n.emoji), (t, n) => {
9427
9469
  let c = P("cvIcons");
9428
- return A(), x("div", Jd, [S("div", { class: D([{ active: r.value }, "chat-container translate"]) }, [
9429
- S("div", Yd, [w(c, { size: "32" }, {
9470
+ return A(), x("div", Yd, [S("div", { class: D([{ active: r.value }, "chat-container translate"]) }, [
9471
+ S("div", Xd, [w(c, { size: "32" }, {
9430
9472
  default: R(() => [...n[2] ||= [S("svg", {
9431
9473
  viewBox: "0 0 1318 1024",
9432
9474
  version: "1.1",
@@ -9462,13 +9504,13 @@ var Md = { class: "u-emoji" }, Nd = { class: "face-tooltip-head select-none" },
9462
9504
  ], -1)]]),
9463
9505
  _: 1
9464
9506
  }), n[3] ||= S("div", { style: { "margin-left": "12px" } }, [S("div", null, "聊天室"), S("div", { style: { "font-size": "12px" } }, "当前2人在线")], -1)]),
9465
- w(qd, {
9507
+ w(Jd, {
9466
9508
  ref_key: "messageRef",
9467
9509
  ref: o,
9468
9510
  data: I(s),
9469
9511
  "user-id": e.userId
9470
9512
  }, null, 8, ["data", "user-id"]),
9471
- S("div", Xd, [
9513
+ S("div", Zd, [
9472
9514
  w(I(ne), {
9473
9515
  id: "emojiInput",
9474
9516
  modelValue: a.value,
@@ -9481,7 +9523,7 @@ var Md = { class: "u-emoji" }, Nd = { class: "face-tooltip-head select-none" },
9481
9523
  placeholder: "请输入内容",
9482
9524
  onKeydown: Ke(l, ["enter"])
9483
9525
  }, null, 8, ["modelValue"]),
9484
- w(Vd, {
9526
+ w(Hd, {
9485
9527
  style: { margin: "0 8px 0" },
9486
9528
  emoji: e.emoji,
9487
9529
  placement: "top-end",
@@ -9529,11 +9571,11 @@ var Md = { class: "u-emoji" }, Nd = { class: "face-tooltip-head select-none" },
9529
9571
  }
9530
9572
  }), [["__scopeId", "data-v-c77a9347"]]);
9531
9573
  // packages/chat/index.js
9532
- Zd.install = function(e) {
9533
- e.component(Zd.name, Zd);
9574
+ Qd.install = function(e) {
9575
+ e.component(Qd.name, Qd);
9534
9576
  };
9535
9577
  // packages/notice-bar/src/notice-bar.vue
9536
- var Qd = { key: 0 }, $d = /*@__PURE__*/ Object.assign({ name: "cvNoticeBar" }, {
9578
+ var $d = { key: 0 }, ef = /*@__PURE__*/ Object.assign({ name: "cvNoticeBar" }, {
9537
9579
  __name: "notice-bar",
9538
9580
  props: {
9539
9581
  data: {
@@ -9609,7 +9651,7 @@ var Qd = { key: 0 }, $d = /*@__PURE__*/ Object.assign({ name: "cvNoticeBar" }, {
9609
9651
  background: I(d),
9610
9652
  height: `${I(s)}px`
9611
9653
  })
9612
- }, [I(r) ? (A(), x("div", Qd, [w(l, {
9654
+ }, [I(r) ? (A(), x("div", $d, [w(l, {
9613
9655
  height: "40px",
9614
9656
  direction: "vertical",
9615
9657
  autoplay: !0,
@@ -9651,11 +9693,11 @@ var Qd = { key: 0 }, $d = /*@__PURE__*/ Object.assign({ name: "cvNoticeBar" }, {
9651
9693
  }
9652
9694
  });
9653
9695
  // packages/notice-bar/index.js
9654
- $d.install = function(e) {
9655
- e.component($d.name, $d);
9696
+ ef.install = function(e) {
9697
+ e.component(ef.name, ef);
9656
9698
  };
9657
9699
  // packages/editor/codemirror/component.js
9658
- var ef = Object.freeze({
9700
+ var tf = Object.freeze({
9659
9701
  autofocus: !1,
9660
9702
  disabled: !1,
9661
9703
  indentWithTab: !0,
@@ -9663,20 +9705,20 @@ var ef = Object.freeze({
9663
9705
  placeholder: "",
9664
9706
  autoDestroy: !0,
9665
9707
  extensions: [Je]
9666
- }), tf = {
9708
+ }), nf = {
9667
9709
  Change: "change",
9668
9710
  Update: "update",
9669
9711
  Focus: "focus",
9670
9712
  Blur: "blur",
9671
9713
  Ready: "ready",
9672
9714
  ModelUpdate: "update:modelValue"
9673
- }, nf = ({ onUpdate: e, onChange: t, onFocus: n, onBlur: r, ...i }) => Ze.create({
9715
+ }, rf = ({ onUpdate: e, onChange: t, onFocus: n, onBlur: r, ...i }) => Ze.create({
9674
9716
  doc: i.doc,
9675
9717
  selection: i.selection,
9676
9718
  extensions: [...Array.isArray(i.extensions) ? i.extensions : [i.extensions], B.updateListener.of((i) => {
9677
9719
  e(i), i.docChanged && t(i.state.doc.toString(), i), i.focusChanged && (i.view.hasFocus ? n(i) : r(i));
9678
9720
  })]
9679
- }), rf = (e) => {
9721
+ }), af = (e) => {
9680
9722
  let t = new Ye();
9681
9723
  return {
9682
9724
  compartment: t,
@@ -9684,26 +9726,26 @@ var ef = Object.freeze({
9684
9726
  t.get(e.state) ? e.dispatch({ effects: t.reconfigure(n) }) : e.dispatch({ effects: Qe.appendConfig.of(t.of(n)) });
9685
9727
  }
9686
9728
  };
9687
- }, af = (e, t) => {
9688
- let { compartment: n, run: r } = rf(e);
9729
+ }, of = (e, t) => {
9730
+ let { compartment: n, run: r } = af(e);
9689
9731
  return (i) => {
9690
9732
  let a = n.get(e.state);
9691
9733
  r(i ?? a !== t ? t : []);
9692
9734
  };
9693
- }, of = (e) => {
9735
+ }, sf = (e) => {
9694
9736
  let t = () => e.state.doc.toString(), n = (n) => {
9695
9737
  n !== t() && e.dispatch({ changes: {
9696
9738
  from: 0,
9697
9739
  to: e.state.doc.length,
9698
9740
  insert: n
9699
9741
  } });
9700
- }, r = () => e.focus(), { run: i } = rf(e), a = af(e, [B.editable.of(!1), Ze.readOnly.of(!0)]), o = af(e, $e.of([tt])), { run: s } = rf(e), c = (e) => {
9742
+ }, r = () => e.focus(), { run: i } = af(e), a = of(e, [B.editable.of(!1), Ze.readOnly.of(!0)]), o = of(e, $e.of([tt])), { run: s } = af(e), c = (e) => {
9701
9743
  s([Ze.tabSize.of(e), rt.of(" ".repeat(e))]);
9702
- }, { run: l } = rf(e), u = (e) => {
9744
+ }, { run: l } = af(e), u = (e) => {
9703
9745
  l([Ze.phrases.of(e)]);
9704
- }, { run: d } = rf(e), f = (e) => {
9746
+ }, { run: d } = af(e), f = (e) => {
9705
9747
  d(et(e));
9706
- }, { run: p } = rf(e);
9748
+ }, { run: p } = af(e);
9707
9749
  return {
9708
9750
  focus: r,
9709
9751
  getDoc: t,
@@ -9718,7 +9760,7 @@ var ef = Object.freeze({
9718
9760
  p(B.theme({ "&": { ...e } }));
9719
9761
  }
9720
9762
  };
9721
- }, sf = be({
9763
+ }, cf = be({
9722
9764
  name: "VueCodemirror",
9723
9765
  props: {
9724
9766
  modelValue: {
@@ -9750,40 +9792,40 @@ var ef = Object.freeze({
9750
9792
  selection: Object
9751
9793
  },
9752
9794
  emits: {
9753
- [tf.Change]: (e, t) => !0,
9754
- [tf.Update]: (e) => !0,
9755
- [tf.Focus]: (e) => !0,
9756
- [tf.Blur]: (e) => !0,
9757
- [tf.Ready]: (e) => !0,
9758
- [tf.ModelUpdate]: (e, t) => !0
9795
+ [nf.Change]: (e, t) => !0,
9796
+ [nf.Update]: (e) => !0,
9797
+ [nf.Focus]: (e) => !0,
9798
+ [nf.Blur]: (e) => !0,
9799
+ [nf.Ready]: (e) => !0,
9800
+ [nf.ModelUpdate]: (e, t) => !0
9759
9801
  },
9760
9802
  setup(e, t) {
9761
- let n = Le(), r = Le(), i = Le(), a = { ...ef }, o = ve(() => {
9803
+ let n = Le(), r = Le(), i = Le(), a = { ...tf }, o = ve(() => {
9762
9804
  let t = {};
9763
9805
  return Object.keys(ze(e)).forEach((n) => {
9764
9806
  n !== "modelValue" && (t[n] = e[n] ?? a[n]);
9765
9807
  }), t;
9766
9808
  });
9767
9809
  return Oe(() => {
9768
- r.value = nf({
9810
+ r.value = rf({
9769
9811
  doc: e.modelValue,
9770
9812
  selection: o.value.selection,
9771
9813
  extensions: a.extensions ?? [],
9772
- onFocus: (e) => t.emit(tf.Focus, e),
9773
- onBlur: (e) => t.emit(tf.Blur, e),
9774
- onUpdate: (e) => t.emit(tf.Update, e),
9814
+ onFocus: (e) => t.emit(nf.Focus, e),
9815
+ onBlur: (e) => t.emit(nf.Blur, e),
9816
+ onUpdate: (e) => t.emit(nf.Update, e),
9775
9817
  onChange: (n, r) => {
9776
- n !== e.modelValue && (t.emit(tf.Change, n, r), t.emit(tf.ModelUpdate, n, r));
9818
+ n !== e.modelValue && (t.emit(nf.Change, n, r), t.emit(nf.ModelUpdate, n, r));
9777
9819
  }
9778
9820
  }), i.value = new B({
9779
9821
  state: r.value,
9780
9822
  parent: n.value,
9781
9823
  root: o.value.root
9782
9824
  }), i.value.contentDOM.addEventListener("scroll", (e) => {});
9783
- let s = of(i.value);
9825
+ let s = sf(i.value);
9784
9826
  Ge(() => e.modelValue, (e) => {
9785
9827
  e !== s.getDoc() && s.setDoc(e);
9786
- }), Ge(() => e.extensions, (e) => s.reExtensions(e || []), { immediate: !0 }), Ge(() => o.value.disabled, (e) => s.toggleDisabled(e), { immediate: !0 }), Ge(() => o.value.indentWithTab, (e) => s.toggleIndentWithTab(e), { immediate: !0 }), Ge(() => o.value.tabSize, (e) => s.setTabSize(e), { immediate: !0 }), Ge(() => o.value.phrases, (e) => s.setPhrases(e || {}), { immediate: !0 }), Ge(() => o.value.placeholder, (e) => s.setPlaceholder(e), { immediate: !0 }), Ge(() => o.value.style, (e) => s.setStyle(e), { immediate: !0 }), o.value.autofocus && s.focus(), t.emit(tf.Ready, {
9828
+ }), Ge(() => e.extensions, (e) => s.reExtensions(e || []), { immediate: !0 }), Ge(() => o.value.disabled, (e) => s.toggleDisabled(e), { immediate: !0 }), Ge(() => o.value.indentWithTab, (e) => s.toggleIndentWithTab(e), { immediate: !0 }), Ge(() => o.value.tabSize, (e) => s.setTabSize(e), { immediate: !0 }), Ge(() => o.value.phrases, (e) => s.setPhrases(e || {}), { immediate: !0 }), Ge(() => o.value.placeholder, (e) => s.setPlaceholder(e), { immediate: !0 }), Ge(() => o.value.style, (e) => s.setStyle(e), { immediate: !0 }), o.value.autofocus && s.focus(), t.emit(nf.Ready, {
9787
9829
  state: r.value,
9788
9830
  view: i.value,
9789
9831
  container: n.value,
@@ -9796,17 +9838,17 @@ var ef = Object.freeze({
9796
9838
  ref: n
9797
9839
  });
9798
9840
  }
9799
- }), cf = "#e5c07b", lf = "#e06c75", uf = "#56b6c2", df = "#ffffff", ff = "#abb2bf", pf = "#7d8799", mf = "#61afef", hf = "#98c379", gf = "#d19a66", _f = "#c678dd", vf = "#21252b", yf = "#2c313a", bf = "#282c34", xf = "#353a42", Sf = "#3E4451", Cf = "#528bff", wf = /*@__PURE__*/ B.theme({
9841
+ }), lf = "#e5c07b", uf = "#e06c75", df = "#56b6c2", ff = "#ffffff", pf = "#abb2bf", mf = "#7d8799", hf = "#61afef", gf = "#98c379", _f = "#d19a66", vf = "#c678dd", yf = "#21252b", bf = "#2c313a", xf = "#282c34", Sf = "#353a42", Cf = "#3E4451", wf = "#528bff", Tf = /*@__PURE__*/ B.theme({
9800
9842
  "&": {
9801
- color: ff,
9802
- backgroundColor: bf
9843
+ color: pf,
9844
+ backgroundColor: xf
9803
9845
  },
9804
- ".cm-content": { caretColor: Cf },
9805
- ".cm-cursor, .cm-dropCursor": { borderLeftColor: Cf },
9806
- "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Sf },
9846
+ ".cm-content": { caretColor: wf },
9847
+ ".cm-cursor, .cm-dropCursor": { borderLeftColor: wf },
9848
+ "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Cf },
9807
9849
  ".cm-panels": {
9808
- backgroundColor: vf,
9809
- color: ff
9850
+ backgroundColor: yf,
9851
+ color: pf
9810
9852
  },
9811
9853
  ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
9812
9854
  ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
@@ -9819,11 +9861,11 @@ var ef = Object.freeze({
9819
9861
  ".cm-selectionMatch": { backgroundColor: "#aafe661a" },
9820
9862
  "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bad0f847" },
9821
9863
  ".cm-gutters": {
9822
- backgroundColor: bf,
9823
- color: pf,
9864
+ backgroundColor: xf,
9865
+ color: mf,
9824
9866
  border: "none"
9825
9867
  },
9826
- ".cm-activeLineGutter": { backgroundColor: yf },
9868
+ ".cm-activeLineGutter": { backgroundColor: bf },
9827
9869
  ".cm-foldPlaceholder": {
9828
9870
  backgroundColor: "transparent",
9829
9871
  border: "none",
@@ -9831,24 +9873,24 @@ var ef = Object.freeze({
9831
9873
  },
9832
9874
  ".cm-tooltip": {
9833
9875
  border: "none",
9834
- backgroundColor: xf
9876
+ backgroundColor: Sf
9835
9877
  },
9836
9878
  ".cm-tooltip .cm-tooltip-arrow:before": {
9837
9879
  borderTopColor: "transparent",
9838
9880
  borderBottomColor: "transparent"
9839
9881
  },
9840
9882
  ".cm-tooltip .cm-tooltip-arrow:after": {
9841
- borderTopColor: xf,
9842
- borderBottomColor: xf
9883
+ borderTopColor: Sf,
9884
+ borderBottomColor: Sf
9843
9885
  },
9844
9886
  ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": {
9845
- backgroundColor: yf,
9846
- color: ff
9887
+ backgroundColor: bf,
9888
+ color: pf
9847
9889
  } }
9848
- }, { dark: !0 }), Tf = /*@__PURE__*/ nt.define([
9890
+ }, { dark: !0 }), Ef = /*@__PURE__*/ nt.define([
9849
9891
  {
9850
9892
  tag: V.keyword,
9851
- color: _f
9893
+ color: vf
9852
9894
  },
9853
9895
  {
9854
9896
  tag: [
@@ -9858,11 +9900,11 @@ var ef = Object.freeze({
9858
9900
  V.propertyName,
9859
9901
  V.macroName
9860
9902
  ],
9861
- color: lf
9903
+ color: uf
9862
9904
  },
9863
9905
  {
9864
9906
  tag: [/*@__PURE__*/ V.function(V.variableName), V.labelName],
9865
- color: mf
9907
+ color: hf
9866
9908
  },
9867
9909
  {
9868
9910
  tag: [
@@ -9870,11 +9912,11 @@ var ef = Object.freeze({
9870
9912
  /*@__PURE__*/ V.constant(V.name),
9871
9913
  /*@__PURE__*/ V.standard(V.name)
9872
9914
  ],
9873
- color: gf
9915
+ color: _f
9874
9916
  },
9875
9917
  {
9876
9918
  tag: [/*@__PURE__*/ V.definition(V.name), V.separator],
9877
- color: ff
9919
+ color: pf
9878
9920
  },
9879
9921
  {
9880
9922
  tag: [
@@ -9887,7 +9929,7 @@ var ef = Object.freeze({
9887
9929
  V.self,
9888
9930
  V.namespace
9889
9931
  ],
9890
- color: cf
9932
+ color: lf
9891
9933
  },
9892
9934
  {
9893
9935
  tag: [
@@ -9899,11 +9941,11 @@ var ef = Object.freeze({
9899
9941
  V.link,
9900
9942
  /*@__PURE__*/ V.special(V.string)
9901
9943
  ],
9902
- color: uf
9944
+ color: df
9903
9945
  },
9904
9946
  {
9905
9947
  tag: [V.meta, V.comment],
9906
- color: pf
9948
+ color: mf
9907
9949
  },
9908
9950
  {
9909
9951
  tag: V.strong,
@@ -9919,13 +9961,13 @@ var ef = Object.freeze({
9919
9961
  },
9920
9962
  {
9921
9963
  tag: V.link,
9922
- color: pf,
9964
+ color: mf,
9923
9965
  textDecoration: "underline"
9924
9966
  },
9925
9967
  {
9926
9968
  tag: V.heading,
9927
9969
  fontWeight: "bold",
9928
- color: lf
9970
+ color: uf
9929
9971
  },
9930
9972
  {
9931
9973
  tag: [
@@ -9933,7 +9975,7 @@ var ef = Object.freeze({
9933
9975
  V.bool,
9934
9976
  /*@__PURE__*/ V.special(V.variableName)
9935
9977
  ],
9936
- color: gf
9978
+ color: _f
9937
9979
  },
9938
9980
  {
9939
9981
  tag: [
@@ -9941,13 +9983,13 @@ var ef = Object.freeze({
9941
9983
  V.string,
9942
9984
  V.inserted
9943
9985
  ],
9944
- color: hf
9986
+ color: gf
9945
9987
  },
9946
9988
  {
9947
9989
  tag: V.invalid,
9948
- color: df
9990
+ color: ff
9949
9991
  }
9950
- ]), Ef = [wf, /*@__PURE__*/ it(Tf)], U = {
9992
+ ]), Df = [Tf, /*@__PURE__*/ it(Ef)], U = {
9951
9993
  name: "materialLight",
9952
9994
  dark: !1,
9953
9995
  background: "#FAFAFA",
@@ -9974,7 +10016,7 @@ var ef = Object.freeze({
9974
10016
  heading: "#91B859",
9975
10017
  invalid: "#E53935",
9976
10018
  regexp: "#39ADB5"
9977
- }, Df = B.theme({
10019
+ }, Of = B.theme({
9978
10020
  "&": {
9979
10021
  color: U.foreground,
9980
10022
  backgroundColor: U.background
@@ -10029,7 +10071,7 @@ var ef = Object.freeze({
10029
10071
  background: U.selection,
10030
10072
  color: U.foreground
10031
10073
  } }
10032
- }, { dark: U.dark }), Of = nt.define([
10074
+ }, { dark: U.dark }), kf = nt.define([
10033
10075
  {
10034
10076
  tag: V.keyword,
10035
10077
  color: U.keyword
@@ -10142,7 +10184,7 @@ var ef = Object.freeze({
10142
10184
  tag: V.strikethrough,
10143
10185
  textDecoration: "line-through"
10144
10186
  }
10145
- ]), kf = [Df, it(Of)], W = {
10187
+ ]), Af = [Of, it(kf)], W = {
10146
10188
  name: "materialDark",
10147
10189
  dark: !0,
10148
10190
  background: "#263238",
@@ -10169,7 +10211,7 @@ var ef = Object.freeze({
10169
10211
  heading: "#C3E88D",
10170
10212
  invalid: "#FF5370",
10171
10213
  regexp: "#89DDFF"
10172
- }, Af = B.theme({
10214
+ }, jf = B.theme({
10173
10215
  "&": {
10174
10216
  color: W.foreground,
10175
10217
  backgroundColor: W.background
@@ -10224,7 +10266,7 @@ var ef = Object.freeze({
10224
10266
  background: W.selection,
10225
10267
  color: W.foreground
10226
10268
  } }
10227
- }, { dark: W.dark }), jf = nt.define([
10269
+ }, { dark: W.dark }), Mf = nt.define([
10228
10270
  {
10229
10271
  tag: V.keyword,
10230
10272
  color: W.keyword
@@ -10337,7 +10379,7 @@ var ef = Object.freeze({
10337
10379
  tag: V.strikethrough,
10338
10380
  textDecoration: "line-through"
10339
10381
  }
10340
- ]), Mf = [Af, it(jf)], G = {
10382
+ ]), Nf = [jf, it(Mf)], G = {
10341
10383
  name: "solarizedLight",
10342
10384
  dark: !1,
10343
10385
  background: "#FDF6E3",
@@ -10364,7 +10406,7 @@ var ef = Object.freeze({
10364
10406
  heading: "#268BD2",
10365
10407
  invalid: "#DC322F",
10366
10408
  regexp: "#DC322F"
10367
- }, Nf = B.theme({
10409
+ }, Pf = B.theme({
10368
10410
  "&": {
10369
10411
  color: G.foreground,
10370
10412
  backgroundColor: G.background
@@ -10419,7 +10461,7 @@ var ef = Object.freeze({
10419
10461
  background: G.selection,
10420
10462
  color: G.foreground
10421
10463
  } }
10422
- }, { dark: G.dark }), Pf = nt.define([
10464
+ }, { dark: G.dark }), Ff = nt.define([
10423
10465
  {
10424
10466
  tag: V.keyword,
10425
10467
  color: G.keyword
@@ -10532,7 +10574,7 @@ var ef = Object.freeze({
10532
10574
  tag: V.strikethrough,
10533
10575
  textDecoration: "line-through"
10534
10576
  }
10535
- ]), Ff = [Nf, it(Pf)], K = {
10577
+ ]), If = [Pf, it(Ff)], K = {
10536
10578
  name: "solarizedDark",
10537
10579
  dark: !0,
10538
10580
  background: "#002B36",
@@ -10559,7 +10601,7 @@ var ef = Object.freeze({
10559
10601
  heading: "#268BD2",
10560
10602
  invalid: "#DC322F",
10561
10603
  regexp: "#DC322F"
10562
- }, If = B.theme({
10604
+ }, Lf = B.theme({
10563
10605
  "&": {
10564
10606
  color: K.foreground,
10565
10607
  backgroundColor: K.background
@@ -10614,7 +10656,7 @@ var ef = Object.freeze({
10614
10656
  background: K.selection,
10615
10657
  color: K.foreground
10616
10658
  } }
10617
- }, { dark: K.dark }), Lf = nt.define([
10659
+ }, { dark: K.dark }), Rf = nt.define([
10618
10660
  {
10619
10661
  tag: V.keyword,
10620
10662
  color: K.keyword
@@ -10727,7 +10769,7 @@ var ef = Object.freeze({
10727
10769
  tag: V.strikethrough,
10728
10770
  textDecoration: "line-through"
10729
10771
  }
10730
- ]), Rf = [If, it(Lf)], q = {
10772
+ ]), zf = [Lf, it(Rf)], q = {
10731
10773
  name: "dracula",
10732
10774
  dark: !0,
10733
10775
  background: "#282A36",
@@ -10754,7 +10796,7 @@ var ef = Object.freeze({
10754
10796
  heading: "#BD93F9",
10755
10797
  invalid: "#FF5555",
10756
10798
  regexp: "#F1FA8C"
10757
- }, zf = B.theme({
10799
+ }, Bf = B.theme({
10758
10800
  "&": {
10759
10801
  color: q.foreground,
10760
10802
  backgroundColor: q.background
@@ -10809,7 +10851,7 @@ var ef = Object.freeze({
10809
10851
  background: q.selection,
10810
10852
  color: q.foreground
10811
10853
  } }
10812
- }, { dark: q.dark }), Bf = nt.define([
10854
+ }, { dark: q.dark }), Vf = nt.define([
10813
10855
  {
10814
10856
  tag: V.keyword,
10815
10857
  color: q.keyword
@@ -10922,7 +10964,7 @@ var ef = Object.freeze({
10922
10964
  tag: V.strikethrough,
10923
10965
  textDecoration: "line-through"
10924
10966
  }
10925
- ]), Vf = [zf, it(Bf)], J = {
10967
+ ]), Hf = [Bf, it(Vf)], J = {
10926
10968
  name: "githubLight",
10927
10969
  dark: !1,
10928
10970
  background: "#fff",
@@ -10949,7 +10991,7 @@ var ef = Object.freeze({
10949
10991
  heading: "#005cc5",
10950
10992
  invalid: "#cb2431",
10951
10993
  regexp: "#032f62"
10952
- }, Hf = B.theme({
10994
+ }, Uf = B.theme({
10953
10995
  "&": {
10954
10996
  color: J.foreground,
10955
10997
  backgroundColor: J.background
@@ -11004,7 +11046,7 @@ var ef = Object.freeze({
11004
11046
  background: J.selection,
11005
11047
  color: J.foreground
11006
11048
  } }
11007
- }, { dark: J.dark }), Uf = nt.define([
11049
+ }, { dark: J.dark }), Wf = nt.define([
11008
11050
  {
11009
11051
  tag: V.keyword,
11010
11052
  color: J.keyword
@@ -11117,7 +11159,7 @@ var ef = Object.freeze({
11117
11159
  tag: V.strikethrough,
11118
11160
  textDecoration: "line-through"
11119
11161
  }
11120
- ]), Wf = [Hf, it(Uf)], Y = {
11162
+ ]), Gf = [Uf, it(Wf)], Y = {
11121
11163
  name: "githubDark",
11122
11164
  dark: !0,
11123
11165
  background: "#24292e",
@@ -11144,7 +11186,7 @@ var ef = Object.freeze({
11144
11186
  heading: "#79b8ff",
11145
11187
  invalid: "#f97583",
11146
11188
  regexp: "#9ecbff"
11147
- }, Gf = B.theme({
11189
+ }, Kf = B.theme({
11148
11190
  "&": {
11149
11191
  color: Y.foreground,
11150
11192
  backgroundColor: Y.background
@@ -11199,7 +11241,7 @@ var ef = Object.freeze({
11199
11241
  background: Y.selection,
11200
11242
  color: Y.foreground
11201
11243
  } }
11202
- }, { dark: Y.dark }), Kf = nt.define([
11244
+ }, { dark: Y.dark }), qf = nt.define([
11203
11245
  {
11204
11246
  tag: V.keyword,
11205
11247
  color: Y.keyword
@@ -11312,7 +11354,7 @@ var ef = Object.freeze({
11312
11354
  tag: V.strikethrough,
11313
11355
  textDecoration: "line-through"
11314
11356
  }
11315
- ]), qf = [Gf, it(Kf)], X = {
11357
+ ]), Jf = [Kf, it(qf)], X = {
11316
11358
  name: "aura",
11317
11359
  dark: !0,
11318
11360
  background: "#21202e",
@@ -11339,7 +11381,7 @@ var ef = Object.freeze({
11339
11381
  heading: "#a277ff",
11340
11382
  invalid: "#ff6767",
11341
11383
  regexp: "#61ffca"
11342
- }, Jf = B.theme({
11384
+ }, Yf = B.theme({
11343
11385
  "&": {
11344
11386
  color: X.foreground,
11345
11387
  backgroundColor: X.background
@@ -11394,7 +11436,7 @@ var ef = Object.freeze({
11394
11436
  background: X.selection,
11395
11437
  color: X.foreground
11396
11438
  } }
11397
- }, { dark: X.dark }), Yf = nt.define([
11439
+ }, { dark: X.dark }), Xf = nt.define([
11398
11440
  {
11399
11441
  tag: V.keyword,
11400
11442
  color: X.keyword
@@ -11507,7 +11549,7 @@ var ef = Object.freeze({
11507
11549
  tag: V.strikethrough,
11508
11550
  textDecoration: "line-through"
11509
11551
  }
11510
- ]), Xf = [Jf, it(Yf)], Z = {
11552
+ ]), Zf = [Yf, it(Xf)], Z = {
11511
11553
  name: "tokyoNight",
11512
11554
  dark: !0,
11513
11555
  background: "#1a1b26",
@@ -11534,7 +11576,7 @@ var ef = Object.freeze({
11534
11576
  heading: "#89ddff",
11535
11577
  invalid: "#ff5370",
11536
11578
  regexp: "#b4f9f8"
11537
- }, Zf = B.theme({
11579
+ }, Qf = B.theme({
11538
11580
  "&": {
11539
11581
  color: Z.foreground,
11540
11582
  backgroundColor: Z.background
@@ -11589,7 +11631,7 @@ var ef = Object.freeze({
11589
11631
  background: Z.selection,
11590
11632
  color: Z.foreground
11591
11633
  } }
11592
- }, { dark: Z.dark }), Qf = nt.define([
11634
+ }, { dark: Z.dark }), $f = nt.define([
11593
11635
  {
11594
11636
  tag: V.keyword,
11595
11637
  color: Z.keyword
@@ -11702,7 +11744,7 @@ var ef = Object.freeze({
11702
11744
  tag: V.strikethrough,
11703
11745
  textDecoration: "line-through"
11704
11746
  }
11705
- ]), $f = [Zf, it(Qf)], Q = {
11747
+ ]), ep = [Qf, it($f)], Q = {
11706
11748
  name: "tokyoNightStorm",
11707
11749
  dark: !0,
11708
11750
  background: "#24283b",
@@ -11729,7 +11771,7 @@ var ef = Object.freeze({
11729
11771
  heading: "#89ddff",
11730
11772
  invalid: "#ff5370",
11731
11773
  regexp: "#b4f9f8"
11732
- }, ep = B.theme({
11774
+ }, tp = B.theme({
11733
11775
  "&": {
11734
11776
  color: Q.foreground,
11735
11777
  backgroundColor: Q.background
@@ -11784,7 +11826,7 @@ var ef = Object.freeze({
11784
11826
  background: Q.selection,
11785
11827
  color: Q.foreground
11786
11828
  } }
11787
- }, { dark: Q.dark }), tp = nt.define([
11829
+ }, { dark: Q.dark }), np = nt.define([
11788
11830
  {
11789
11831
  tag: V.keyword,
11790
11832
  color: Q.keyword
@@ -11897,7 +11939,7 @@ var ef = Object.freeze({
11897
11939
  tag: V.strikethrough,
11898
11940
  textDecoration: "line-through"
11899
11941
  }
11900
- ]), np = [ep, it(tp)], $ = {
11942
+ ]), rp = [tp, it(np)], $ = {
11901
11943
  name: "tokyoNightDay",
11902
11944
  dark: !1,
11903
11945
  background: "#e1e2e7",
@@ -11924,7 +11966,7 @@ var ef = Object.freeze({
11924
11966
  heading: "#006a83",
11925
11967
  invalid: "#ff3e64",
11926
11968
  regexp: "#2e5857"
11927
- }, rp = B.theme({
11969
+ }, ip = B.theme({
11928
11970
  "&": {
11929
11971
  color: $.foreground,
11930
11972
  backgroundColor: $.background
@@ -11979,7 +12021,7 @@ var ef = Object.freeze({
11979
12021
  background: $.selection,
11980
12022
  color: $.foreground
11981
12023
  } }
11982
- }, { dark: $.dark }), ip = nt.define([
12024
+ }, { dark: $.dark }), ap = nt.define([
11983
12025
  {
11984
12026
  tag: V.keyword,
11985
12027
  color: $.keyword
@@ -12092,7 +12134,7 @@ var ef = Object.freeze({
12092
12134
  tag: V.strikethrough,
12093
12135
  textDecoration: "line-through"
12094
12136
  }
12095
- ]), ap = [rp, it(ip)], op = {
12137
+ ]), op = [ip, it(ap)], sp = {
12096
12138
  disabled: !1,
12097
12139
  indentWithTab: !0,
12098
12140
  tabSize: 4,
@@ -12102,25 +12144,25 @@ var ef = Object.freeze({
12102
12144
  language: "markdown",
12103
12145
  theme: "oneDark",
12104
12146
  phrases: "en-us"
12105
- }, sp = {
12147
+ }, cp = {
12106
12148
  emits: ["update:config"],
12107
- components: { CodemirrorEditor: sf },
12149
+ components: { CodemirrorEditor: cf },
12108
12150
  data() {
12109
12151
  return {
12110
- codemrrConfig: { ...op },
12152
+ codemrrConfig: { ...sp },
12111
12153
  codemrrThemes: {
12112
- oneDark: Ef,
12113
- materialLight: kf,
12114
- materialDark: Mf,
12115
- solarizedLight: Ff,
12116
- solarizedDark: Rf,
12117
- dracula: Vf,
12118
- githubLight: Wf,
12119
- githubDark: qf,
12120
- aura: Xf,
12121
- tokyoNight: $f,
12122
- tokyoNightStorm: np,
12123
- tokyoNightDay: ap
12154
+ oneDark: Df,
12155
+ materialLight: Af,
12156
+ materialDark: Nf,
12157
+ solarizedLight: If,
12158
+ solarizedDark: zf,
12159
+ dracula: Hf,
12160
+ githubLight: Gf,
12161
+ githubDark: Jf,
12162
+ aura: Zf,
12163
+ tokyoNight: ep,
12164
+ tokyoNightStorm: rp,
12165
+ tokyoNightDay: op
12124
12166
  },
12125
12167
  codemrrLanguages: {
12126
12168
  javascript: at(),
@@ -12203,7 +12245,7 @@ var ef = Object.freeze({
12203
12245
  watch: { codemrrConfig(e) {
12204
12246
  this.$emit("update:config", e);
12205
12247
  } }
12206
- }, cp = {
12248
+ }, lp = {
12207
12249
  props: { editorID: {
12208
12250
  type: [String],
12209
12251
  required: !1,
@@ -12219,18 +12261,18 @@ var ef = Object.freeze({
12219
12261
  } }
12220
12262
  };
12221
12263
  // packages/editor/common/utils.js
12222
- function lp(e, t) {
12264
+ function up(e, t) {
12223
12265
  var n = document.createElement("a");
12224
12266
  if (n.setAttribute("href", "data:text/plain;charset=UTF-8," + encodeURIComponent(e)), n.setAttribute("download", t), n.style.display = "none", document.createEvent) {
12225
12267
  let e = document.createEvent("MouseEvents");
12226
12268
  e.initEvent("click", !0, !0), n.dispatchEvent(e);
12227
12269
  } else n.click();
12228
12270
  }
12229
- function up(e) {
12271
+ function dp(e) {
12230
12272
  return e < 10 ? "0" + e : e;
12231
12273
  }
12232
12274
  // packages/editor/common/toolbar-config.js
12233
- var dp = {
12275
+ var fp = {
12234
12276
  undo: !1,
12235
12277
  redo: !1,
12236
12278
  strong: !0,
@@ -12274,7 +12316,7 @@ var dp = {
12274
12316
  disabled: !1,
12275
12317
  autofocus: !1,
12276
12318
  indentWithTab: !1
12277
- }, fp = { name: "SvgImgMap" }, pp = {
12319
+ }, pp = { name: "SvgImgMap" }, mp = {
12278
12320
  t: "1713021153946",
12279
12321
  class: "icon",
12280
12322
  viewBox: "0 0 1024 1024",
@@ -12284,8 +12326,8 @@ var dp = {
12284
12326
  width: "20",
12285
12327
  height: "20"
12286
12328
  };
12287
- function mp(e, t, n, r, i, a) {
12288
- return A(), x("svg", pp, [...t[0] ||= [S("path", {
12329
+ function hp(e, t, n, r, i, a) {
12330
+ return A(), x("svg", mp, [...t[0] ||= [S("path", {
12289
12331
  d: "M659.456 786.432l-114.688-188.416c-4.10112-8.192-8.19712-12.28288-16.384-12.28288-4.096 0-8.19712 4.096-12.288 4.096l-57.344 57.344-61.44-90.11712c-4.096-8.192-8.192-12.28288-16.384-12.28288s-12.288 4.096-16.384 8.192l-151.552 225.28c0 4.096-4.096 8.192-4.096 12.288 0 12.28288 8.192 20.48 20.48 20.48h413.696c12.288 0 20.48-8.19712 20.48-20.48l-4.096-4.10112zM286.72 512c40.96 0 73.728-32.768 73.728-73.728S327.68 364.544 286.72 364.544s-73.728 32.768-73.728 73.728C208.896 479.232 245.76 512 286.72 512zM851.968 98.304H323.584c-40.96 0-73.728 32.768-73.728 73.728v20.48c0 12.288 8.192 20.48 20.48 20.48s16.384-12.288 16.384-20.48v-20.48c0-20.48 16.384-36.864 36.864-36.864h528.384c20.48 0 36.85888 16.384 36.85888 36.864v528.384c0 20.48-16.37888 36.864-36.85888 36.864h-20.48c-12.288 0-20.48 8.192-20.48 20.48s8.192 20.48 20.48 20.48h20.48c40.96 0 73.72288-32.768 73.72288-73.728v-532.48c0.00512-40.96-32.76288-73.728-73.72288-73.728z",
12290
12332
  "p-id": "1925"
12291
12333
  }, null, -1), S("path", {
@@ -12293,7 +12335,7 @@ function mp(e, t, n, r, i, a) {
12293
12335
  "p-id": "1926"
12294
12336
  }, null, -1)]]);
12295
12337
  }
12296
- var hp = /*#__PURE__*/ H(fp, [["render", mp]]), gp = { name: "SvgUploadFile" }, _p = {
12338
+ var gp = /*#__PURE__*/ H(pp, [["render", hp]]), _p = { name: "SvgUploadFile" }, vp = {
12297
12339
  t: "1599285632421",
12298
12340
  class: "icon",
12299
12341
  viewBox: "0 0 1024 1024",
@@ -12303,8 +12345,8 @@ var hp = /*#__PURE__*/ H(fp, [["render", mp]]), gp = { name: "SvgUploadFile" },
12303
12345
  width: "17",
12304
12346
  height: "17"
12305
12347
  };
12306
- function vp(e, t, n, r, i, a) {
12307
- return A(), x("svg", _p, [...t[0] ||= [S("path", {
12348
+ function yp(e, t, n, r, i, a) {
12349
+ return A(), x("svg", vp, [...t[0] ||= [S("path", {
12308
12350
  d: "M127.519 892.879v-763.34h655.448V514.69h63.612V81.831c0-8.783-7.12-15.903-15.903-15.903H79.81c-8.783 0-15.903 7.12-15.903 15.903v858.757c0 8.783 7.12 15.903 15.903 15.903h493.993v-63.612H127.519z",
12309
12351
  "p-id": "45641"
12310
12352
  }, null, -1), S("path", {
@@ -12312,7 +12354,7 @@ function vp(e, t, n, r, i, a) {
12312
12354
  "p-id": "45642"
12313
12355
  }, null, -1)]]);
12314
12356
  }
12315
- var yp = /*#__PURE__*/ H(gp, [["render", vp]]), bp = { name: "SvgToc" }, xp = {
12357
+ var bp = /*#__PURE__*/ H(_p, [["render", yp]]), xp = { name: "SvgToc" }, Sp = {
12316
12358
  t: "1611551476626",
12317
12359
  class: "icon",
12318
12360
  viewBox: "0 0 1024 1024",
@@ -12322,8 +12364,8 @@ var yp = /*#__PURE__*/ H(gp, [["render", vp]]), bp = { name: "SvgToc" }, xp = {
12322
12364
  width: "22",
12323
12365
  height: "22"
12324
12366
  };
12325
- function Sp(e, t, n, r, i, a) {
12326
- return A(), x("svg", xp, [...t[0] ||= [S("path", {
12367
+ function Cp(e, t, n, r, i, a) {
12368
+ return A(), x("svg", Sp, [...t[0] ||= [S("path", {
12327
12369
  d: "M370.1 371.5h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.1-2.6 5.7-5.7 5.7z m333.5-7.6H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.2-2.7 5.7-5.8 5.7zM370.1 712.4h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.2-2.6 5.7-5.7 5.7z m333.5-7.5H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.1-2.7 5.7-5.8 5.7zM370.1 542.5h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.1-2.6 5.7-5.7 5.7z m333.5-7.6H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.2-2.7 5.7-5.8 5.7z",
12328
12370
  "p-id": "4616"
12329
12371
  }, null, -1), S("path", {
@@ -12331,7 +12373,7 @@ function Sp(e, t, n, r, i, a) {
12331
12373
  "p-id": "4617"
12332
12374
  }, null, -1)]]);
12333
12375
  }
12334
- var Cp = /*#__PURE__*/ H(bp, [["render", Sp]]), wp = { name: "SvgCopy" }, Tp = {
12376
+ var wp = /*#__PURE__*/ H(xp, [["render", Cp]]), Tp = { name: "SvgCopy" }, Ep = {
12335
12377
  t: "1713097613984",
12336
12378
  class: "icon",
12337
12379
  viewBox: "0 0 1024 1024",
@@ -12341,8 +12383,8 @@ var Cp = /*#__PURE__*/ H(bp, [["render", Sp]]), wp = { name: "SvgCopy" }, Tp = {
12341
12383
  width: "18",
12342
12384
  height: "18"
12343
12385
  };
12344
- function Ep(e, t, n, r, i, a) {
12345
- return A(), x("svg", Tp, [...t[0] ||= [
12386
+ function Dp(e, t, n, r, i, a) {
12387
+ return A(), x("svg", Ep, [...t[0] ||= [
12346
12388
  S("path", {
12347
12389
  d: "M857.373005 65.290005 469.604424 65.290005c-34.211173 0-62.044078 27.832905-62.044078 62.043055l0 10.340509-63.076594 0c-25.993001 0-48.228421 16.346293-57.001225 39.293935L166.626995 176.967504c-34.21015 0-62.043055 27.832905-62.043055 62.043055l0 657.655358c0 34.21015 27.832905 62.043055 62.043055 62.043055l550.115086 0c34.21015 0 62.043055-27.832905 62.043055-62.043055l0-49.634444 78.587869 0c34.21015 0 62.043055-27.832905 62.043055-62.043055L919.41606 127.33306C919.41606 93.122911 891.583155 65.290005 857.373005 65.290005zM344.483752 179.035606l194.402595 0c10.833743 0 19.646456 8.813736 19.646456 19.646456 0 10.833743-8.813736 19.646456-19.646456 19.646456L344.483752 218.328517c-10.833743 0-19.646456-8.813736-19.646456-19.646456C324.836273 187.849342 333.650009 179.035606 344.483752 179.035606zM737.423099 896.665917c0 11.402701-9.278317 20.681018-20.681018 20.681018L166.626995 917.346935c-11.403724 0-20.681018-9.278317-20.681018-20.681018L145.945977 239.010559c0-11.402701 9.277294-20.681018 20.681018-20.681018l120.111588 0c8.197706 24.02723 30.977525 41.362037 57.744145 41.362037l194.402595 0c26.767644 0 49.54644-17.334807 57.744145-41.362037l120.111588 0c11.402701 0 20.681018 9.278317 20.681018 20.681018L737.422076 896.665917zM878.054023 784.988418c0 11.402701-9.278317 20.681018-20.681018 20.681018l-78.587869 0L778.785136 239.010559c0-34.21015-27.832905-62.043055-62.043055-62.043055L595.886549 176.967504c-8.771781-22.947641-31.007201-39.293935-57.001225-39.293935l-89.963964 0L448.921359 127.33306c0-11.403724 9.278317-20.681018 20.683065-20.681018l387.768581 0c11.402701 0 20.681018 9.277294 20.681018 20.681018L878.054023 784.988418z",
12348
12390
  "p-id": "6857"
@@ -12361,7 +12403,7 @@ function Ep(e, t, n, r, i, a) {
12361
12403
  }, null, -1)
12362
12404
  ]]);
12363
12405
  }
12364
- var Dp = /*#__PURE__*/ H(wp, [["render", Ep]]), Op = { name: "SvgLanguage" }, kp = {
12406
+ var Op = /*#__PURE__*/ H(Tp, [["render", Dp]]), kp = { name: "SvgLanguage" }, Ap = {
12365
12407
  t: "1713109019954",
12366
12408
  class: "icon",
12367
12409
  viewBox: "0 0 1024 1024",
@@ -12371,8 +12413,8 @@ var Dp = /*#__PURE__*/ H(wp, [["render", Ep]]), Op = { name: "SvgLanguage" }, kp
12371
12413
  width: "18",
12372
12414
  height: "18"
12373
12415
  };
12374
- function Ap(e, t, n, r, i, a) {
12375
- return A(), x("svg", kp, [...t[0] ||= [
12416
+ function jp(e, t, n, r, i, a) {
12417
+ return A(), x("svg", Ap, [...t[0] ||= [
12376
12418
  S("path", {
12377
12419
  d: "M200.313605 806.764028h487.993851v78.708685h-487.993851z",
12378
12420
  fill: "#6C7280",
@@ -12393,13 +12435,13 @@ function Ap(e, t, n, r, i, a) {
12393
12435
  ]]);
12394
12436
  }
12395
12437
  // packages/editor/common/topbar-mixin.js
12396
- var jp = {
12438
+ var Mp = {
12397
12439
  components: {
12398
- SvgImgMap: hp,
12399
- SvgUploadFile: yp,
12400
- SvgToc: Cp,
12401
- SvgCopy: Dp,
12402
- SvgLanguage: /* @__PURE__ */ H(Op, [["render", Ap]])
12440
+ SvgImgMap: gp,
12441
+ SvgUploadFile: bp,
12442
+ SvgToc: wp,
12443
+ SvgCopy: Op,
12444
+ SvgLanguage: /* @__PURE__ */ H(kp, [["render", jp]])
12403
12445
  },
12404
12446
  emits: [
12405
12447
  "on-action",
@@ -12446,13 +12488,13 @@ var jp = {
12446
12488
  },
12447
12489
  computed: {
12448
12490
  lastExpFileName() {
12449
- let e = /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth() + 1, r = e.getDate(), i = e.getHours(), a = e.getMinutes(), o = t + "-" + up(n) + "-" + up(r) + "_" + up(i) + "-" + up(a);
12491
+ let e = /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth() + 1, r = e.getDate(), i = e.getHours(), a = e.getMinutes(), o = t + "-" + dp(n) + "-" + dp(r) + "_" + dp(i) + "-" + dp(a);
12450
12492
  return this.exportFileName || o;
12451
12493
  },
12452
12494
  toolConfig() {
12453
12495
  let { toolbars: e = {} } = this;
12454
12496
  return {
12455
- ...dp,
12497
+ ...fp,
12456
12498
  ...e
12457
12499
  };
12458
12500
  }
@@ -12598,7 +12640,7 @@ var jp = {
12598
12640
  html: ".html",
12599
12641
  markdown: ".md"
12600
12642
  };
12601
- this.language && t[this.language] && (e = t[this.language]), lp(this.localVal, this.lastExpFileName + e);
12643
+ this.language && t[this.language] && (e = t[this.language]), up(this.localVal, this.lastExpFileName + e);
12602
12644
  },
12603
12645
  insertCode() {
12604
12646
  let e = this.getLastPoint(), t = e.content || !1;
@@ -12629,12 +12671,12 @@ var jp = {
12629
12671
  this.$emit("on-act-custom", e);
12630
12672
  }
12631
12673
  }
12632
- }, Mp = {
12674
+ }, Np = {
12633
12675
  name: "cvEditorCode",
12634
12676
  mixins: [
12635
- sp,
12636
12677
  cp,
12637
- jp
12678
+ lp,
12679
+ Mp
12638
12680
  ],
12639
12681
  emits: ["update:modelValue", "on-ready"],
12640
12682
  props: {
@@ -12740,28 +12782,28 @@ var jp = {
12740
12782
  },
12741
12783
  listerenEvent() {}
12742
12784
  }
12743
- }, Np = {
12785
+ }, Pp = {
12744
12786
  key: 0,
12745
12787
  class: "cv-editor-code-toolbar",
12746
12788
  "data-title": "头部工具栏"
12747
- }, Pp = { class: "cv-editor-toolbars" }, Fp = {
12789
+ }, Fp = { class: "cv-editor-toolbars" }, Ip = {
12748
12790
  name: "导入文件",
12749
12791
  class: "import-file"
12750
- }, Ip = { name: "保存到本地" }, Lp = {
12792
+ }, Lp = { name: "保存到本地" }, Rp = {
12751
12793
  key: 1,
12752
12794
  class: "shift-theme",
12753
12795
  name: "主题"
12754
- }, Rp = ["onClick"], zp = {
12796
+ }, zp = ["onClick"], Bp = {
12755
12797
  class: "shift-theme",
12756
12798
  name: "语言"
12757
- }, Bp = ["onClick"], Vp = { class: "icon-svg" }, Hp = {
12799
+ }, Vp = ["onClick"], Hp = { class: "icon-svg" }, Up = {
12758
12800
  key: 5,
12759
12801
  class: "segmentation"
12760
- }, Up = ["name"], Wp = {
12802
+ }, Wp = ["name"], Gp = {
12761
12803
  title: "编辑器",
12762
12804
  class: "cv-editor-code-main"
12763
12805
  };
12764
- function Gp(e, t, n, r, i, a) {
12806
+ function Kp(e, t, n, r, i, a) {
12765
12807
  let o = P("SvgLanguage"), s = P("SvgCopy"), c = P("CodemirrorEditor");
12766
12808
  return A(), x("div", {
12767
12809
  ref: a.editorWrapRefID,
@@ -12770,9 +12812,9 @@ function Gp(e, t, n, r, i, a) {
12770
12812
  width: a.widthTotalPx,
12771
12813
  height: a.heightTotalPx
12772
12814
  })
12773
- }, [e.actionPreview ? b("", !0) : (A(), x("div", Np, [S("ul", Pp, [
12815
+ }, [e.actionPreview ? b("", !0) : (A(), x("div", Pp, [S("ul", Fp, [
12774
12816
  e.$slots.title ? (A(), x(v, { key: 0 }, [S("li", null, [N(e.$slots, "title")]), t[16] ||= S("li", { class: "segmentation" }, [S("div")], -1)], 64)) : b("", !0),
12775
- z(S("li", Fp, [S("span", {
12817
+ z(S("li", Ip, [S("span", {
12776
12818
  class: "iconfont icon-daoru",
12777
12819
  onClick: t[0] ||= (...t) => e.actionImportFile && e.actionImportFile(...t)
12778
12820
  }), S("input", {
@@ -12780,19 +12822,19 @@ function Gp(e, t, n, r, i, a) {
12780
12822
  onChange: t[1] ||= (t) => e.actionImportFile(t),
12781
12823
  accept: "text/markdown"
12782
12824
  }, null, 32)], 512), [[L, e.toolConfig.importmd]]),
12783
- z(S("li", Ip, [S("span", {
12825
+ z(S("li", Lp, [S("span", {
12784
12826
  class: "iconfont icon-download",
12785
12827
  onClick: t[2] ||= (...t) => e.actionExportFile && e.actionExportFile(...t)
12786
12828
  })], 512), [[L, e.toolConfig.exportmd]]),
12787
12829
  t[20] ||= S("li", { class: "segmentation" }, [S("div")], -1),
12788
- e.toolConfig.theme ? (A(), x("li", Lp, [S("span", {
12830
+ e.toolConfig.theme ? (A(), x("li", Rp, [S("span", {
12789
12831
  class: "iconfont icon-theme",
12790
12832
  onClick: t[3] ||= (t) => e.actionThemeDropdown = !e.actionThemeDropdown
12791
12833
  }), S("ul", {
12792
12834
  class: D({ active: e.actionThemeDropdown }),
12793
12835
  onMouseleave: t[4] ||= (t) => e.actionThemeDropdown = !1
12794
- }, [(A(!0), x(v, null, M(e.optionTheme, (t) => (A(), x("li", { onClick: (n) => e.actionThemesSet(t) }, F(t), 9, Rp))), 256))], 34)])) : b("", !0),
12795
- S("li", zp, [S("span", {
12836
+ }, [(A(!0), x(v, null, M(e.optionTheme, (t) => (A(), x("li", { onClick: (n) => e.actionThemesSet(t) }, F(t), 9, zp))), 256))], 34)])) : b("", !0),
12837
+ S("li", Bp, [S("span", {
12796
12838
  class: "icon-svg",
12797
12839
  onClick: t[5] ||= (t) => e.actionLanguageDropdown = !e.actionLanguageDropdown
12798
12840
  }, [w(o)]), S("ul", {
@@ -12801,13 +12843,13 @@ function Gp(e, t, n, r, i, a) {
12801
12843
  }, [(A(!0), x(v, null, M(e.optionLanguage, (t) => (A(), x("li", {
12802
12844
  class: D(t == n.language ? "active" : ""),
12803
12845
  onClick: (n) => e.actionLanguageSet(t)
12804
- }, F(t), 11, Bp))), 256))], 34)]),
12846
+ }, F(t), 11, Vp))), 256))], 34)]),
12805
12847
  t[21] ||= S("li", { class: "empty" }, null, -1),
12806
12848
  e.toolConfig.copy ? (A(), x("li", {
12807
12849
  key: 2,
12808
12850
  name: "复制",
12809
12851
  onClick: t[7] ||= (...t) => e.actionCopySet && e.actionCopySet(...t)
12810
- }, [S("span", Vp, [w(s)])])) : b("", !0),
12852
+ }, [S("span", Hp, [w(s)])])) : b("", !0),
12811
12853
  e.toolConfig.clear ? (A(), x("li", {
12812
12854
  key: 3,
12813
12855
  name: "清空",
@@ -12818,7 +12860,7 @@ function Gp(e, t, n, r, i, a) {
12818
12860
  name: "保存",
12819
12861
  onClick: t[9] ||= (...t) => e.actionSaveSet && e.actionSaveSet(...t)
12820
12862
  }, [...t[18] ||= [S("span", { class: "iconfont icon-save" }, null, -1)]])) : b("", !0),
12821
- e.toolConfig.fullscreen ? (A(), x("li", Hp, [...t[19] ||= [S("div", null, null, -1)]])) : b("", !0),
12863
+ e.toolConfig.fullscreen ? (A(), x("li", Up, [...t[19] ||= [S("div", null, null, -1)]])) : b("", !0),
12822
12864
  e.toolConfig.fullscreen ? (A(), x("li", {
12823
12865
  key: 6,
12824
12866
  name: e.actionFullscreen ? "退出全屏" : "全屏"
@@ -12828,8 +12870,8 @@ function Gp(e, t, n, r, i, a) {
12828
12870
  }, null, 512), [[L, e.actionFullscreen]]), z(S("span", {
12829
12871
  onClick: t[11] ||= (t) => e.actionFullscreenSet(!0),
12830
12872
  class: "iconfont icon-fullscreen"
12831
- }, null, 512), [[L, !e.actionFullscreen]])], 8, Up)) : b("", !0)
12832
- ])])), S("div", Wp, [w(c, E(e.codemrrBind, {
12873
+ }, null, 512), [[L, !e.actionFullscreen]])], 8, Wp)) : b("", !0)
12874
+ ])])), S("div", Gp, [w(c, E(e.codemrrBind, {
12833
12875
  id: e.editorRefID,
12834
12876
  ref: e.editorRefID,
12835
12877
  style: {
@@ -12851,10 +12893,10 @@ function Gp(e, t, n, r, i, a) {
12851
12893
  "onReady"
12852
12894
  ])])], 6);
12853
12895
  }
12854
- var Kp = /*#__PURE__*/ H(Mp, [["render", Gp]]), qp = {
12896
+ var qp = /*#__PURE__*/ H(Np, [["render", Kp]]), Jp = {
12855
12897
  name: "cvEditorJson",
12856
12898
  components: {},
12857
- mixins: [cp],
12899
+ mixins: [lp],
12858
12900
  props: {
12859
12901
  modelValue: {
12860
12902
  type: [
@@ -12975,7 +13017,7 @@ var Kp = /*#__PURE__*/ H(Mp, [["render", Gp]]), qp = {
12975
13017
  }
12976
13018
  }
12977
13019
  };
12978
- function Jp(e, t, n, r, i, a) {
13020
+ function Yp(e, t, n, r, i, a) {
12979
13021
  return A(), x("div", {
12980
13022
  class: D(["cv-editor-json", {
12981
13023
  "max-box": i.max,
@@ -12990,7 +13032,7 @@ function Jp(e, t, n, r, i, a) {
12990
13032
  class: "max-btn"
12991
13033
  })], 6);
12992
13034
  }
12993
- var Yp = /*#__PURE__*/ H(qp, [["render", Jp]]), Xp = [
13035
+ var Xp = /*#__PURE__*/ H(Jp, [["render", Yp]]), Zp = [
12994
13036
  "advlist",
12995
13037
  "anchor",
12996
13038
  "autolink",
@@ -13014,22 +13056,22 @@ var Yp = /*#__PURE__*/ H(qp, [["render", Jp]]), Xp = [
13014
13056
  "visualblocks",
13015
13057
  "visualchars",
13016
13058
  "wordcount"
13017
- ], Zp = ["hr blockquote anchor pagebreak insertdatetime table emoticons | searchreplace preview code codesample | fullscreen | link media image ", "undo redo | styles | removeformat subscript superscript forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist indent"], Qp = [];
13018
- function $p() {
13059
+ ], Qp = ["hr blockquote anchor pagebreak insertdatetime table emoticons | searchreplace preview code codesample | fullscreen | link media image ", "undo redo | styles | removeformat subscript superscript forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist indent"], $p = [];
13060
+ function em() {
13019
13061
  return window.tinymce;
13020
13062
  }
13021
- var em = (e, t) => {
13063
+ var tm = (e, t) => {
13022
13064
  let n = document.getElementById(e), r = t || function() {};
13023
13065
  if (!n) {
13024
13066
  let t = document.createElement("script");
13025
- t.src = e, t.id = e, document.body.appendChild(t), Qp.push(r), ("onload" in t ? i : a)(t);
13067
+ t.src = e, t.id = e, document.body.appendChild(t), $p.push(r), ("onload" in t ? i : a)(t);
13026
13068
  }
13027
- n && r && ($p() ? r(null, n) : Qp.push(r));
13069
+ n && r && (em() ? r(null, n) : $p.push(r));
13028
13070
  function i(t) {
13029
13071
  t.onload = function() {
13030
13072
  this.onerror = this.onload = null;
13031
- for (let e of Qp) e(null, t);
13032
- Qp = null;
13073
+ for (let e of $p) e(null, t);
13074
+ $p = null;
13033
13075
  }, t.onerror = function() {
13034
13076
  this.onerror = this.onload = null, r(/* @__PURE__ */ Error("Failed to load " + e), t);
13035
13077
  };
@@ -13038,16 +13080,16 @@ var em = (e, t) => {
13038
13080
  e.onreadystatechange = function() {
13039
13081
  if (this.readyState === "complete" || this.readyState === "loaded") {
13040
13082
  this.onreadystatechange = null;
13041
- for (let t of Qp) t(null, e);
13042
- Qp = null;
13083
+ for (let t of $p) t(null, e);
13084
+ $p = null;
13043
13085
  }
13044
13086
  };
13045
13087
  }
13046
- }, tm = "https://10ui.cn/tinymce/@8.10.1/tinymce.min.js", nm = {
13088
+ }, nm = "https://10ui.cn/tinymce/@8.10.1/tinymce.min.js", rm = {
13047
13089
  inheritAttrs: !1,
13048
13090
  name: "cvEditorTinymce",
13049
13091
  emits: ["update:modelValue"],
13050
- mixins: [cp, si],
13092
+ mixins: [lp, si],
13051
13093
  props: {
13052
13094
  modelValue: {
13053
13095
  type: String,
@@ -13137,7 +13179,7 @@ var em = (e, t) => {
13137
13179
  },
13138
13180
  methods: {
13139
13181
  initLoad() {
13140
- em(tm, (e) => {
13182
+ tm(nm, (e) => {
13141
13183
  e ? this.notify("error", e.message) : this.initTinymce();
13142
13184
  });
13143
13185
  },
@@ -13152,9 +13194,9 @@ var em = (e, t) => {
13152
13194
  branding: !1,
13153
13195
  body_class: "panel-body ",
13154
13196
  object_resizing: !1,
13155
- toolbar: this.toolbar.length > 0 ? this.toolbar : Zp,
13197
+ toolbar: this.toolbar.length > 0 ? this.toolbar : Qp,
13156
13198
  menubar: this.menubar,
13157
- plugins: Xp,
13199
+ plugins: Zp,
13158
13200
  end_container_on_empty_block: !0,
13159
13201
  link_default_target: "_blank",
13160
13202
  link_title: !1,
@@ -13251,22 +13293,22 @@ var em = (e, t) => {
13251
13293
  });
13252
13294
  }
13253
13295
  }
13254
- }, rm = ["id"];
13255
- function im(e, t, n, r, i, a) {
13296
+ }, im = ["id"];
13297
+ function am(e, t, n, r, i, a) {
13256
13298
  return A(), x("div", {
13257
13299
  class: D(["cv-editor-tinymce tinymce-container", { fullscreen: i.fullscreen }]),
13258
13300
  style: k({ width: a.containerWidth })
13259
13301
  }, [S("textarea", {
13260
13302
  id: e.editorRefID,
13261
13303
  class: "tinymce-textarea"
13262
- }, null, 8, rm)], 6);
13304
+ }, null, 8, im)], 6);
13263
13305
  }
13264
- var am = /*#__PURE__*/ H(nm, [["render", im], ["__scopeId", "data-v-280d4f3a"]]), om = {
13306
+ var om = /*#__PURE__*/ H(rm, [["render", am], ["__scopeId", "data-v-280d4f3a"]]), sm = {
13265
13307
  name: "cvEditorMarkdown",
13266
13308
  mixins: [
13267
- sp,
13268
13309
  cp,
13269
- jp
13310
+ lp,
13311
+ Mp
13270
13312
  ],
13271
13313
  emits: [
13272
13314
  "update:modelValue",
@@ -13465,120 +13507,120 @@ var am = /*#__PURE__*/ H(nm, [["render", im], ["__scopeId", "data-v-280d4f3a"]])
13465
13507
  }
13466
13508
  }
13467
13509
  }
13468
- }, sm = {
13510
+ }, cm = {
13469
13511
  key: 0,
13470
13512
  title: "头部工具栏",
13471
13513
  class: "cv-editor-markdown-toolbar"
13472
- }, cm = { class: "cv-editor-toolbars" }, lm = {
13514
+ }, lm = { class: "cv-editor-toolbars" }, um = {
13473
13515
  key: 1,
13474
13516
  name: "插入图片"
13475
- }, um = {
13517
+ }, dm = {
13476
13518
  key: 2,
13477
13519
  name: "本地图片"
13478
- }, dm = { class: "icon-svg" }, fm = {
13520
+ }, fm = { class: "icon-svg" }, pm = {
13479
13521
  key: 4,
13480
13522
  name: "上传图片"
13481
- }, pm = {
13523
+ }, mm = {
13482
13524
  key: 5,
13483
13525
  name: "上传文件"
13484
- }, mm = {
13526
+ }, hm = {
13485
13527
  name: "导入文件",
13486
13528
  class: "import-file"
13487
- }, hm = { name: "保存到本地" }, gm = {
13529
+ }, gm = { name: "保存到本地" }, _m = {
13488
13530
  key: 6,
13489
13531
  name: "代码块"
13490
- }, _m = {
13532
+ }, vm = {
13491
13533
  key: 7,
13492
13534
  class: "shift-theme",
13493
13535
  name: "主题"
13494
- }, vm = ["onClick"], ym = {
13536
+ }, ym = ["onClick"], bm = {
13495
13537
  key: 8,
13496
13538
  class: "shift-theme",
13497
13539
  name: "背景颜色"
13498
- }, bm = ["onClick"], xm = {
13540
+ }, xm = ["onClick"], Sm = {
13499
13541
  key: 9,
13500
13542
  class: "shift-theme",
13501
13543
  name: "phrases"
13502
- }, Sm = ["onClick"], Cm = ["name"], wm = ["name"], Tm = ["name"], Em = ["name"], Dm = {
13544
+ }, Cm = ["onClick"], wm = ["name"], Tm = ["name"], Em = ["name"], Dm = ["name"], Om = {
13503
13545
  key: 15,
13504
13546
  name: "全屏编辑"
13505
- }, Om = {
13547
+ }, km = {
13506
13548
  key: 16,
13507
13549
  name: "分屏显示"
13508
- }, km = {
13550
+ }, Am = {
13509
13551
  key: 17,
13510
13552
  name: "预览"
13511
- }, Am = {
13553
+ }, jm = {
13512
13554
  key: 18,
13513
13555
  class: "segmentation"
13514
- }, jm = { class: "icon-svg" }, Mm = {
13556
+ }, Mm = { class: "icon-svg" }, Nm = {
13515
13557
  key: 22,
13516
13558
  class: "segmentation"
13517
- }, Nm = {
13559
+ }, Pm = {
13518
13560
  key: 23,
13519
13561
  name: "目录"
13520
- }, Pm = {
13562
+ }, Fm = {
13521
13563
  key: 24,
13522
13564
  class: "segmentation"
13523
- }, Fm = ["name"], Im = { class: "cv-editor-toolbars" }, Lm = {
13565
+ }, Im = ["name"], Lm = { class: "cv-editor-toolbars" }, Rm = {
13524
13566
  key: 0,
13525
13567
  name: "撤销"
13526
- }, Rm = {
13568
+ }, zm = {
13527
13569
  key: 2,
13528
13570
  name: "粗体"
13529
- }, zm = {
13571
+ }, Bm = {
13530
13572
  key: 3,
13531
13573
  name: "斜体"
13532
- }, Bm = {
13574
+ }, Vm = {
13533
13575
  key: 4,
13534
13576
  name: "删除线"
13535
- }, Vm = {
13577
+ }, Hm = {
13536
13578
  key: 5,
13537
13579
  name: "下划线"
13538
- }, Hm = {
13580
+ }, Um = {
13539
13581
  key: 6,
13540
13582
  name: "标题1"
13541
- }, Um = {
13583
+ }, Wm = {
13542
13584
  key: 7,
13543
13585
  name: "标题2"
13544
- }, Wm = {
13586
+ }, Gm = {
13545
13587
  key: 8,
13546
13588
  name: "标题3"
13547
- }, Gm = {
13589
+ }, Km = {
13548
13590
  key: 9,
13549
13591
  name: "标题4"
13550
- }, Km = {
13592
+ }, qm = {
13551
13593
  key: 10,
13552
13594
  name: "标题5"
13553
- }, qm = {
13595
+ }, Jm = {
13554
13596
  key: 11,
13555
13597
  name: "标题6"
13556
- }, Jm = {
13598
+ }, Ym = {
13557
13599
  key: 12,
13558
13600
  name: "分割线"
13559
- }, Ym = {
13601
+ }, Xm = {
13560
13602
  key: 13,
13561
13603
  name: "引用"
13562
- }, Xm = {
13604
+ }, Zm = {
13563
13605
  key: 14,
13564
13606
  name: "无序列表"
13565
- }, Zm = {
13607
+ }, Qm = {
13566
13608
  key: 15,
13567
13609
  name: "有序列表"
13568
- }, Qm = {
13610
+ }, $m = {
13569
13611
  key: 16,
13570
13612
  name: "未完成列表"
13571
- }, $m = {
13613
+ }, eh = {
13572
13614
  key: 17,
13573
13615
  name: "已完成列表"
13574
- }, eh = {
13616
+ }, th = {
13575
13617
  key: 18,
13576
13618
  name: "链接"
13577
- }, th = {
13619
+ }, nh = {
13578
13620
  key: 19,
13579
13621
  name: "表格"
13580
13622
  };
13581
- function nh(e, t, n, r, i, a) {
13623
+ function rh(e, t, n, r, i, a) {
13582
13624
  let o = P("SvgImgMap"), s = P("SvgUploadFile"), c = P("SvgCopy"), l = P("SvgToc"), u = P("CodemirrorEditor"), d = P("cv-markdown-show"), f = P("el-input"), p = P("el-button"), m = P("el-dialog");
13583
13625
  return A(), x("div", {
13584
13626
  ref: a.editorWrapRefID,
@@ -13588,13 +13630,13 @@ function nh(e, t, n, r, i, a) {
13588
13630
  height: a.heightTotalPx
13589
13631
  })
13590
13632
  }, [
13591
- e.actionPreview ? b("", !0) : (A(), x("div", sm, [S("ul", cm, [
13633
+ e.actionPreview ? b("", !0) : (A(), x("div", cm, [S("ul", lm, [
13592
13634
  e.$slots.title ? (A(), x(v, { key: 0 }, [S("li", null, [N(e.$slots, "title", {}, void 0, !0)]), t[65] ||= S("li", { class: "segmentation" }, [S("div")], -1)], 64)) : b("", !0),
13593
- e.toolConfig.image ? (A(), x("li", lm, [S("span", {
13635
+ e.toolConfig.image ? (A(), x("li", um, [S("span", {
13594
13636
  onClick: t[0] ||= (...t) => e.actionInsImage && e.actionInsImage(...t),
13595
13637
  class: "iconfont icon-img"
13596
13638
  })])) : b("", !0),
13597
- e.toolConfig.uploadImage ? (A(), x("li", um, [S("span", {
13639
+ e.toolConfig.uploadImage ? (A(), x("li", dm, [S("span", {
13598
13640
  onClick: t[1] ||= (...t) => e.actionChooseImage && e.actionChooseImage(...t),
13599
13641
  class: "iconfont icon-upload-img"
13600
13642
  })])) : b("", !0),
@@ -13602,16 +13644,16 @@ function nh(e, t, n, r, i, a) {
13602
13644
  key: 3,
13603
13645
  name: "图片空间",
13604
13646
  onClick: t[2] ||= (t) => e.actionCustom("image-browse")
13605
- }, [S("span", dm, [w(o)])])) : b("", !0),
13606
- e.toolConfig.custom_uploadImage ? (A(), x("li", fm, [S("span", {
13647
+ }, [S("span", fm, [w(o)])])) : b("", !0),
13648
+ e.toolConfig.custom_uploadImage ? (A(), x("li", pm, [S("span", {
13607
13649
  onClick: t[3] ||= (t) => e.actionCustom("image-upload"),
13608
13650
  class: "iconfont icon-upload-img"
13609
13651
  })])) : b("", !0),
13610
- e.toolConfig.custom_uploadFile ? (A(), x("li", pm, [S("span", {
13652
+ e.toolConfig.custom_uploadFile ? (A(), x("li", mm, [S("span", {
13611
13653
  onClick: t[4] ||= (t) => e.actionCustom("file-upload"),
13612
13654
  class: "icon-svg"
13613
13655
  }, [w(s)])])) : b("", !0),
13614
- z(S("li", mm, [S("span", {
13656
+ z(S("li", hm, [S("span", {
13615
13657
  class: "iconfont icon-daoru",
13616
13658
  onClick: t[5] ||= (...t) => e.actionImportFile && e.actionImportFile(...t)
13617
13659
  }), S("input", {
@@ -13619,23 +13661,23 @@ function nh(e, t, n, r, i, a) {
13619
13661
  onChange: t[6] ||= (t) => e.actionImportFile(t),
13620
13662
  accept: "text/markdown"
13621
13663
  }, null, 32)], 512), [[L, e.toolConfig.importmd]]),
13622
- z(S("li", hm, [S("span", {
13664
+ z(S("li", gm, [S("span", {
13623
13665
  class: "iconfont icon-download",
13624
13666
  onClick: t[7] ||= (...t) => e.actionExportFile && e.actionExportFile(...t)
13625
13667
  })], 512), [[L, e.toolConfig.exportmd]]),
13626
13668
  t[72] ||= S("li", { class: "segmentation" }, [S("div")], -1),
13627
- e.toolConfig.code ? (A(), x("li", gm, [S("span", {
13669
+ e.toolConfig.code ? (A(), x("li", _m, [S("span", {
13628
13670
  onClick: t[8] ||= (...t) => e.insertCode && e.insertCode(...t),
13629
13671
  class: "iconfont icon-code"
13630
13672
  })])) : b("", !0),
13631
- e.toolConfig.theme ? (A(), x("li", _m, [S("span", {
13673
+ e.toolConfig.theme ? (A(), x("li", vm, [S("span", {
13632
13674
  class: "iconfont icon-theme",
13633
13675
  onClick: t[9] ||= (t) => e.actionThemeDropdown = !e.actionThemeDropdown
13634
13676
  }), S("ul", {
13635
13677
  class: D({ active: e.actionThemeDropdown }),
13636
13678
  onMouseleave: t[10] ||= (t) => e.actionThemeDropdown = !1
13637
- }, [(A(!0), x(v, null, M(e.optionTheme, (t) => (A(), x("li", { onClick: (n) => e.actionThemesSet(t) }, F(t), 9, vm))), 256))], 34)])) : b("", !0),
13638
- e.toolConfig.backgroundColor ? (A(), x("li", ym, [S("span", {
13679
+ }, [(A(!0), x(v, null, M(e.optionTheme, (t) => (A(), x("li", { onClick: (n) => e.actionThemesSet(t) }, F(t), 9, ym))), 256))], 34)])) : b("", !0),
13680
+ e.toolConfig.backgroundColor ? (A(), x("li", bm, [S("span", {
13639
13681
  class: "iconfont icon-theme",
13640
13682
  onClick: t[11] ||= (t) => e.actionBgColorDropdown = !e.actionBgColorDropdown
13641
13683
  }), S("ul", {
@@ -13648,14 +13690,14 @@ function nh(e, t, n, r, i, a) {
13648
13690
  "lawngreen",
13649
13691
  "blue",
13650
13692
  "white"
13651
- ], (t) => S("li", { onClick: (n) => e.actionBgColorSet(t) }, F(t), 9, bm)), 64))], 34)])) : b("", !0),
13652
- e.toolConfig.phrases ? (A(), x("li", xm, [S("span", {
13693
+ ], (t) => S("li", { onClick: (n) => e.actionBgColorSet(t) }, F(t), 9, xm)), 64))], 34)])) : b("", !0),
13694
+ e.toolConfig.phrases ? (A(), x("li", Sm, [S("span", {
13653
13695
  class: "iconfont icon-theme",
13654
13696
  onClick: t[13] ||= (t) => e.actionPhrasesDropdown = !e.actionPhrasesDropdown
13655
13697
  }), S("ul", {
13656
13698
  class: D({ active: e.actionPhrasesDropdown }),
13657
13699
  onMouseleave: t[14] ||= (t) => e.actionPhrasesDropdown = !1
13658
- }, [(A(!0), x(v, null, M(e.optionPhrases, (t) => (A(), x("li", { onClick: (n) => e.actionPhrasesSet(t) }, F(t), 9, Sm))), 256))], 34)])) : b("", !0),
13700
+ }, [(A(!0), x(v, null, M(e.optionPhrases, (t) => (A(), x("li", { onClick: (n) => e.actionPhrasesSet(t) }, F(t), 9, Cm))), 256))], 34)])) : b("", !0),
13659
13701
  e.toolConfig.html_to_markdown ? (A(), x("li", {
13660
13702
  key: 10,
13661
13703
  name: "html转markdown",
@@ -13676,7 +13718,7 @@ function nh(e, t, n, r, i, a) {
13676
13718
  }, null, 512), [[L, e.codemrrConfig.disabled]]), z(S("span", {
13677
13719
  onClick: t[17] ||= (t) => e.codemrrConfig.disabled = !e.codemrrConfig.disabled,
13678
13720
  class: "iconfont icon-off"
13679
- }, null, 512), [[L, !e.codemrrConfig.disabled]])], 8, Cm)) : b("", !0),
13721
+ }, null, 512), [[L, !e.codemrrConfig.disabled]])], 8, wm)) : b("", !0),
13680
13722
  e.toolConfig.autofocus ? (A(), x("li", {
13681
13723
  key: 12,
13682
13724
  name: e.codemrrConfig.autofocus ? "toggle autofocus:开" : "toggle autofocus:关"
@@ -13686,7 +13728,7 @@ function nh(e, t, n, r, i, a) {
13686
13728
  }, null, 512), [[L, e.codemrrConfig.autofocus]]), z(S("span", {
13687
13729
  onClick: t[19] ||= (t) => e.codemrrConfig.autofocus = !e.codemrrConfig.autofocus,
13688
13730
  class: "iconfont icon-off"
13689
- }, null, 512), [[L, !e.codemrrConfig.autofocus]])], 8, wm)) : b("", !0),
13731
+ }, null, 512), [[L, !e.codemrrConfig.autofocus]])], 8, Tm)) : b("", !0),
13690
13732
  e.toolConfig.indentWithTab ? (A(), x("li", {
13691
13733
  key: 13,
13692
13734
  name: e.codemrrConfig.indentWithTab ? "toggle indentWithTab:开" : "toggle indentWithTab:关"
@@ -13696,7 +13738,7 @@ function nh(e, t, n, r, i, a) {
13696
13738
  }, null, 512), [[L, e.codemrrConfig.indentWithTab]]), z(S("span", {
13697
13739
  onClick: t[21] ||= (t) => e.codemrrConfig.indentWithTab = !e.codemrrConfig.indentWithTab,
13698
13740
  class: "iconfont icon-off"
13699
- }, null, 512), [[L, !e.codemrrConfig.indentWithTab]])], 8, Tm)) : b("", !0),
13741
+ }, null, 512), [[L, !e.codemrrConfig.indentWithTab]])], 8, Em)) : b("", !0),
13700
13742
  t[73] ||= S("li", { class: "empty" }, null, -1),
13701
13743
  e.toolConfig.scrollSync ? (A(), x("li", {
13702
13744
  key: 14,
@@ -13707,25 +13749,25 @@ function nh(e, t, n, r, i, a) {
13707
13749
  }, null, 512), [[L, e.actionScrollSync]]), z(S("span", {
13708
13750
  onClick: t[23] ||= (t) => e.actionScrollSync = !e.actionScrollSync,
13709
13751
  class: "iconfont icon-off"
13710
- }, null, 512), [[L, !e.actionScrollSync]])], 8, Em)) : b("", !0),
13711
- e.toolConfig.split && e.actionSplit ? (A(), x("li", Dm, [S("span", {
13752
+ }, null, 512), [[L, !e.actionScrollSync]])], 8, Dm)) : b("", !0),
13753
+ e.toolConfig.split && e.actionSplit ? (A(), x("li", Om, [S("span", {
13712
13754
  onClick: t[24] ||= (t) => e.actionSplit = !1,
13713
13755
  class: "iconfont icon-md"
13714
13756
  })])) : b("", !0),
13715
- e.toolConfig.split && !e.actionSplit ? (A(), x("li", Om, [S("span", {
13757
+ e.toolConfig.split && !e.actionSplit ? (A(), x("li", km, [S("span", {
13716
13758
  onClick: t[25] ||= (t) => e.actionSplit = !0,
13717
13759
  class: "iconfont icon-group"
13718
13760
  })])) : b("", !0),
13719
- e.toolConfig.preview ? (A(), x("li", km, [S("span", {
13761
+ e.toolConfig.preview ? (A(), x("li", Am, [S("span", {
13720
13762
  onClick: t[26] ||= (t) => e.actionPreview = !0,
13721
13763
  class: "iconfont icon-preview"
13722
13764
  })])) : b("", !0),
13723
- e.toolConfig.copy || e.toolConfig.clear || e.toolConfig.save ? (A(), x("li", Am, [...t[67] ||= [S("div", null, null, -1)]])) : b("", !0),
13765
+ e.toolConfig.copy || e.toolConfig.clear || e.toolConfig.save ? (A(), x("li", jm, [...t[67] ||= [S("div", null, null, -1)]])) : b("", !0),
13724
13766
  e.toolConfig.copy ? (A(), x("li", {
13725
13767
  key: 19,
13726
13768
  name: "复制",
13727
13769
  onClick: t[27] ||= (...t) => e.actionCopySet && e.actionCopySet(...t)
13728
- }, [S("span", jm, [w(c)])])) : b("", !0),
13770
+ }, [S("span", Mm, [w(c)])])) : b("", !0),
13729
13771
  e.toolConfig.clear ? (A(), x("li", {
13730
13772
  key: 20,
13731
13773
  name: "清空",
@@ -13736,15 +13778,15 @@ function nh(e, t, n, r, i, a) {
13736
13778
  name: "保存",
13737
13779
  onClick: t[29] ||= (...t) => e.actionSaveSet && e.actionSaveSet(...t)
13738
13780
  }, [...t[69] ||= [S("span", { class: "iconfont icon-save" }, null, -1)]])) : b("", !0),
13739
- e.toolConfig.toc ? (A(), x("li", Mm, [...t[70] ||= [S("div", null, null, -1)]])) : b("", !0),
13740
- e.toolConfig.toc ? (A(), x("li", Nm, [z(S("span", {
13781
+ e.toolConfig.toc ? (A(), x("li", Nm, [...t[70] ||= [S("div", null, null, -1)]])) : b("", !0),
13782
+ e.toolConfig.toc ? (A(), x("li", Pm, [z(S("span", {
13741
13783
  onClick: t[30] ||= (t) => e.actionToc = !e.actionToc,
13742
13784
  class: "icon-svg active"
13743
13785
  }, [w(l)], 512), [[L, e.actionToc]]), z(S("span", {
13744
13786
  onClick: t[31] ||= (t) => e.actionToc = !e.actionToc,
13745
13787
  class: "icon-svg"
13746
13788
  }, [w(l)], 512), [[L, !e.actionToc]])])) : b("", !0),
13747
- e.toolConfig.fullscreen ? (A(), x("li", Pm, [...t[71] ||= [S("div", null, null, -1)]])) : b("", !0),
13789
+ e.toolConfig.fullscreen ? (A(), x("li", Fm, [...t[71] ||= [S("div", null, null, -1)]])) : b("", !0),
13748
13790
  e.toolConfig.fullscreen ? (A(), x("li", {
13749
13791
  key: 25,
13750
13792
  name: e.actionFullscreen ? "退出全屏" : "全屏"
@@ -13754,9 +13796,9 @@ function nh(e, t, n, r, i, a) {
13754
13796
  }, null, 512), [[L, e.actionFullscreen]]), z(S("span", {
13755
13797
  onClick: t[33] ||= (t) => e.actionFullscreenSet(!0),
13756
13798
  class: "iconfont icon-fullscreen"
13757
- }, null, 512), [[L, !e.actionFullscreen]])], 8, Fm)) : b("", !0)
13758
- ]), S("ul", Im, [
13759
- e.toolConfig.undo ? (A(), x("li", Lm, [S("span", {
13799
+ }, null, 512), [[L, !e.actionFullscreen]])], 8, Im)) : b("", !0)
13800
+ ]), S("ul", Lm, [
13801
+ e.toolConfig.undo ? (A(), x("li", Rm, [S("span", {
13760
13802
  class: "iconfont icon-undo",
13761
13803
  onClick: t[34] ||= (...t) => e.actionUndo && e.actionUndo(...t)
13762
13804
  })])) : b("", !0),
@@ -13765,76 +13807,76 @@ function nh(e, t, n, r, i, a) {
13765
13807
  name: "重做",
13766
13808
  onClick: t[35] ||= (...t) => e.actionRedo && e.actionRedo(...t)
13767
13809
  }, [...t[74] ||= [S("span", { class: "iconfont icon-redo" }, null, -1)]])) : b("", !0),
13768
- e.toolConfig.strong ? (A(), x("li", Rm, [S("span", {
13810
+ e.toolConfig.strong ? (A(), x("li", zm, [S("span", {
13769
13811
  onClick: t[36] ||= (...t) => e.actionInsStrong && e.actionInsStrong(...t),
13770
13812
  class: "iconfont icon-bold"
13771
13813
  })])) : b("", !0),
13772
- e.toolConfig.italic ? (A(), x("li", zm, [S("span", {
13814
+ e.toolConfig.italic ? (A(), x("li", Bm, [S("span", {
13773
13815
  onClick: t[37] ||= (...t) => e.actionInsItalic && e.actionInsItalic(...t),
13774
13816
  class: "iconfont icon-italic"
13775
13817
  })])) : b("", !0),
13776
- e.toolConfig.overline ? (A(), x("li", Bm, [S("span", {
13818
+ e.toolConfig.overline ? (A(), x("li", Vm, [S("span", {
13777
13819
  onClick: t[38] ||= (...t) => e.actionInsOverline && e.actionInsOverline(...t),
13778
13820
  class: "iconfont icon-overline"
13779
13821
  })])) : b("", !0),
13780
- e.toolConfig.overline ? (A(), x("li", Vm, [S("span", {
13822
+ e.toolConfig.overline ? (A(), x("li", Hm, [S("span", {
13781
13823
  onClick: t[39] ||= (...t) => e.actionInsUnderline && e.actionInsUnderline(...t),
13782
13824
  class: "iconfont icon-under-line"
13783
13825
  })])) : b("", !0),
13784
- e.toolConfig.h1 ? (A(), x("li", Hm, [S("span", {
13826
+ e.toolConfig.h1 ? (A(), x("li", Um, [S("span", {
13785
13827
  style: { "font-size": "16px" },
13786
13828
  onClick: t[40] ||= (t) => e.actionInsTitle(1)
13787
13829
  }, "h1")])) : b("", !0),
13788
- e.toolConfig.h2 ? (A(), x("li", Um, [S("span", {
13830
+ e.toolConfig.h2 ? (A(), x("li", Wm, [S("span", {
13789
13831
  style: { "font-size": "16px" },
13790
13832
  onClick: t[41] ||= (t) => e.actionInsTitle(2)
13791
13833
  }, "h2")])) : b("", !0),
13792
- e.toolConfig.h3 ? (A(), x("li", Wm, [S("span", {
13834
+ e.toolConfig.h3 ? (A(), x("li", Gm, [S("span", {
13793
13835
  style: { "font-size": "16px" },
13794
13836
  onClick: t[42] ||= (t) => e.actionInsTitle(3)
13795
13837
  }, "h3")])) : b("", !0),
13796
- e.toolConfig.h4 ? (A(), x("li", Gm, [S("span", {
13838
+ e.toolConfig.h4 ? (A(), x("li", Km, [S("span", {
13797
13839
  style: { "font-size": "16px" },
13798
13840
  onClick: t[43] ||= (t) => e.actionInsTitle(4)
13799
13841
  }, "h4")])) : b("", !0),
13800
- e.toolConfig.h5 ? (A(), x("li", Km, [S("span", {
13842
+ e.toolConfig.h5 ? (A(), x("li", qm, [S("span", {
13801
13843
  style: { "font-size": "16px" },
13802
13844
  onClick: t[44] ||= (t) => e.actionInsTitle(5)
13803
13845
  }, "h5")])) : b("", !0),
13804
- e.toolConfig.h6 ? (A(), x("li", qm, [S("span", {
13846
+ e.toolConfig.h6 ? (A(), x("li", Jm, [S("span", {
13805
13847
  style: { "font-size": "16px" },
13806
13848
  onClick: t[45] ||= (t) => e.actionInsTitle(6)
13807
13849
  }, "h6")])) : b("", !0),
13808
- e.toolConfig.hr ? (A(), x("li", Jm, [S("span", {
13850
+ e.toolConfig.hr ? (A(), x("li", Ym, [S("span", {
13809
13851
  onClick: t[46] ||= (...t) => e.actionInsLine && e.actionInsLine(...t),
13810
13852
  class: "iconfont icon-horizontal"
13811
13853
  })])) : b("", !0),
13812
- e.toolConfig.quote ? (A(), x("li", Ym, [S("span", {
13854
+ e.toolConfig.quote ? (A(), x("li", Xm, [S("span", {
13813
13855
  style: { "font-size": "16px" },
13814
13856
  onClick: t[47] ||= (...t) => e.actionInsQuote && e.actionInsQuote(...t),
13815
13857
  class: "iconfont icon-quote"
13816
13858
  })])) : b("", !0),
13817
- e.toolConfig.ul ? (A(), x("li", Xm, [S("span", {
13859
+ e.toolConfig.ul ? (A(), x("li", Zm, [S("span", {
13818
13860
  onClick: t[48] ||= (...t) => e.actionInsUl && e.actionInsUl(...t),
13819
13861
  class: "iconfont icon-ul"
13820
13862
  })])) : b("", !0),
13821
- e.toolConfig.ol ? (A(), x("li", Zm, [S("span", {
13863
+ e.toolConfig.ol ? (A(), x("li", Qm, [S("span", {
13822
13864
  onClick: t[49] ||= (...t) => e.actionInsOl && e.actionInsOl(...t),
13823
13865
  class: "iconfont icon-ol"
13824
13866
  })])) : b("", !0),
13825
- e.toolConfig.notChecked ? (A(), x("li", Qm, [S("span", {
13867
+ e.toolConfig.notChecked ? (A(), x("li", $m, [S("span", {
13826
13868
  onClick: t[50] ||= (...t) => e.insertNotFinished && e.insertNotFinished(...t),
13827
13869
  class: "iconfont icon-checked-false"
13828
13870
  })])) : b("", !0),
13829
- e.toolConfig.checked ? (A(), x("li", $m, [S("span", {
13871
+ e.toolConfig.checked ? (A(), x("li", eh, [S("span", {
13830
13872
  onClick: t[51] ||= (...t) => e.insertFinished && e.insertFinished(...t),
13831
13873
  class: "iconfont icon-checked"
13832
13874
  })])) : b("", !0),
13833
- e.toolConfig.link ? (A(), x("li", eh, [S("span", {
13875
+ e.toolConfig.link ? (A(), x("li", th, [S("span", {
13834
13876
  onClick: t[52] ||= (...t) => e.actionInsLink && e.actionInsLink(...t),
13835
13877
  class: "iconfont icon-link"
13836
13878
  })])) : b("", !0),
13837
- e.toolConfig.table ? (A(), x("li", th, [S("span", {
13879
+ e.toolConfig.table ? (A(), x("li", nh, [S("span", {
13838
13880
  onClick: t[53] ||= (...t) => e.actionInsTable && e.actionInsTable(...t),
13839
13881
  class: "iconfont icon-table"
13840
13882
  })])) : b("", !0)
@@ -13923,9 +13965,9 @@ function nh(e, t, n, r, i, a) {
13923
13965
  }, 8, ["modelValue"])
13924
13966
  ], 6);
13925
13967
  }
13926
- var rh = /*#__PURE__*/ H(om, [["render", nh], ["__scopeId", "data-v-89e99ce8"]]), ih = {
13968
+ var ih = /*#__PURE__*/ H(sm, [["render", rh], ["__scopeId", "data-v-89e99ce8"]]), ah = {
13927
13969
  name: "cvMarkdownSimple",
13928
- mixins: [cp, jp],
13970
+ mixins: [lp, Mp],
13929
13971
  emits: [
13930
13972
  "update:modelValue",
13931
13973
  "on-ready",
@@ -14164,112 +14206,112 @@ var rh = /*#__PURE__*/ H(om, [["render", nh], ["__scopeId", "data-v-89e99ce8"]])
14164
14206
  o <= 0 || (e.scrollTop = parseInt(a / o * (t - r), 0));
14165
14207
  }
14166
14208
  }
14167
- }, ah = {
14209
+ }, oh = {
14168
14210
  key: 0,
14169
14211
  title: "头部工具栏",
14170
14212
  class: "cv-editor-markdown-toolbar"
14171
- }, oh = { class: "cv-editor-toolbars" }, sh = {
14213
+ }, sh = { class: "cv-editor-toolbars" }, ch = {
14172
14214
  key: 1,
14173
14215
  name: "插入图片"
14174
- }, ch = {
14216
+ }, lh = {
14175
14217
  key: 2,
14176
14218
  name: "本地图片"
14177
- }, lh = { class: "icon-svg" }, uh = {
14219
+ }, uh = { class: "icon-svg" }, dh = {
14178
14220
  key: 4,
14179
14221
  name: "上传图片"
14180
- }, dh = {
14222
+ }, fh = {
14181
14223
  key: 5,
14182
14224
  name: "上传文件"
14183
- }, fh = {
14225
+ }, ph = {
14184
14226
  name: "导入文件",
14185
14227
  class: "import-file"
14186
- }, ph = { name: "保存到本地" }, mh = {
14228
+ }, mh = { name: "保存到本地" }, hh = {
14187
14229
  key: 6,
14188
14230
  name: "代码块"
14189
- }, hh = {
14231
+ }, gh = {
14190
14232
  key: 7,
14191
14233
  class: "shift-theme",
14192
14234
  name: "主题"
14193
- }, gh = ["onClick"], _h = ["name"], vh = {
14235
+ }, _h = ["onClick"], vh = ["name"], yh = {
14194
14236
  key: 10,
14195
14237
  name: "全屏编辑"
14196
- }, yh = {
14238
+ }, bh = {
14197
14239
  key: 11,
14198
14240
  name: "分屏显示"
14199
- }, bh = {
14241
+ }, xh = {
14200
14242
  key: 12,
14201
14243
  name: "预览"
14202
- }, xh = {
14244
+ }, Sh = {
14203
14245
  key: 13,
14204
14246
  class: "segmentation"
14205
- }, Sh = { class: "icon-svg" }, Ch = {
14247
+ }, Ch = { class: "icon-svg" }, wh = {
14206
14248
  key: 17,
14207
14249
  class: "segmentation"
14208
- }, wh = {
14250
+ }, Th = {
14209
14251
  key: 18,
14210
14252
  name: "目录"
14211
- }, Th = {
14253
+ }, Eh = {
14212
14254
  key: 19,
14213
14255
  class: "segmentation"
14214
- }, Eh = ["name"], Dh = { class: "cv-editor-toolbars" }, Oh = {
14256
+ }, Dh = ["name"], Oh = { class: "cv-editor-toolbars" }, kh = {
14215
14257
  key: 0,
14216
14258
  name: "粗体"
14217
- }, kh = {
14259
+ }, Ah = {
14218
14260
  key: 1,
14219
14261
  name: "斜体"
14220
- }, Ah = {
14262
+ }, jh = {
14221
14263
  key: 2,
14222
14264
  name: "删除线"
14223
- }, jh = {
14265
+ }, Mh = {
14224
14266
  key: 3,
14225
14267
  name: "下划线"
14226
- }, Mh = {
14268
+ }, Nh = {
14227
14269
  key: 4,
14228
14270
  name: "标题1"
14229
- }, Nh = {
14271
+ }, Ph = {
14230
14272
  key: 5,
14231
14273
  name: "标题2"
14232
- }, Ph = {
14274
+ }, Fh = {
14233
14275
  key: 6,
14234
14276
  name: "标题3"
14235
- }, Fh = {
14277
+ }, Ih = {
14236
14278
  key: 7,
14237
14279
  name: "标题4"
14238
- }, Ih = {
14280
+ }, Lh = {
14239
14281
  key: 8,
14240
14282
  name: "标题5"
14241
- }, Lh = {
14283
+ }, Rh = {
14242
14284
  key: 9,
14243
14285
  name: "标题6"
14244
- }, Rh = {
14286
+ }, zh = {
14245
14287
  key: 10,
14246
14288
  name: "分割线"
14247
- }, zh = {
14289
+ }, Bh = {
14248
14290
  key: 11,
14249
14291
  name: "引用"
14250
- }, Bh = {
14292
+ }, Vh = {
14251
14293
  key: 12,
14252
14294
  name: "无序列表"
14253
- }, Vh = {
14295
+ }, Hh = {
14254
14296
  key: 13,
14255
14297
  name: "有序列表"
14256
- }, Hh = {
14298
+ }, Uh = {
14257
14299
  key: 14,
14258
14300
  name: "未完成列表"
14259
- }, Uh = {
14301
+ }, Wh = {
14260
14302
  key: 15,
14261
14303
  name: "已完成列表"
14262
- }, Wh = {
14304
+ }, Gh = {
14263
14305
  key: 16,
14264
14306
  name: "链接"
14265
- }, Gh = {
14307
+ }, Kh = {
14266
14308
  key: 17,
14267
14309
  name: "表格"
14268
- }, Kh = {
14310
+ }, qh = {
14269
14311
  class: "md-simple-gutter",
14270
14312
  ref: "gutter"
14271
- }, qh = ["readonly"];
14272
- function Jh(e, t, n, r, i, a) {
14313
+ }, Jh = ["readonly"];
14314
+ function Yh(e, t, n, r, i, a) {
14273
14315
  let o = P("SvgImgMap"), s = P("SvgUploadFile"), c = P("SvgCopy"), l = P("SvgToc"), u = P("cv-markdown-show"), d = P("el-input"), f = P("el-button"), p = P("el-dialog");
14274
14316
  return A(), x("div", {
14275
14317
  ref: a.editorWrapRefID,
@@ -14279,13 +14321,13 @@ function Jh(e, t, n, r, i, a) {
14279
14321
  height: a.heightTotalPx
14280
14322
  })
14281
14323
  }, [
14282
- e.actionPreview ? b("", !0) : (A(), x("div", ah, [S("ul", oh, [
14324
+ e.actionPreview ? b("", !0) : (A(), x("div", oh, [S("ul", sh, [
14283
14325
  e.$slots.title ? (A(), x(v, { key: 0 }, [S("li", null, [N(e.$slots, "title", {}, void 0, !0)]), t[54] ||= S("li", { class: "segmentation" }, [S("div")], -1)], 64)) : b("", !0),
14284
- e.toolConfig.image ? (A(), x("li", sh, [S("span", {
14326
+ e.toolConfig.image ? (A(), x("li", ch, [S("span", {
14285
14327
  onClick: t[0] ||= (...t) => e.actionInsImage && e.actionInsImage(...t),
14286
14328
  class: "iconfont icon-img"
14287
14329
  })])) : b("", !0),
14288
- e.toolConfig.uploadImage ? (A(), x("li", ch, [S("span", {
14330
+ e.toolConfig.uploadImage ? (A(), x("li", lh, [S("span", {
14289
14331
  onClick: t[1] ||= (...t) => e.actionChooseImage && e.actionChooseImage(...t),
14290
14332
  class: "iconfont icon-upload-img"
14291
14333
  })])) : b("", !0),
@@ -14293,16 +14335,16 @@ function Jh(e, t, n, r, i, a) {
14293
14335
  key: 3,
14294
14336
  name: "图片空间",
14295
14337
  onClick: t[2] ||= (t) => e.actionCustom("image-browse")
14296
- }, [S("span", lh, [w(o)])])) : b("", !0),
14297
- e.toolConfig.custom_uploadImage ? (A(), x("li", uh, [S("span", {
14338
+ }, [S("span", uh, [w(o)])])) : b("", !0),
14339
+ e.toolConfig.custom_uploadImage ? (A(), x("li", dh, [S("span", {
14298
14340
  onClick: t[3] ||= (t) => e.actionCustom("image-upload"),
14299
14341
  class: "iconfont icon-upload-img"
14300
14342
  })])) : b("", !0),
14301
- e.toolConfig.custom_uploadFile ? (A(), x("li", dh, [S("span", {
14343
+ e.toolConfig.custom_uploadFile ? (A(), x("li", fh, [S("span", {
14302
14344
  onClick: t[4] ||= (t) => e.actionCustom("file-upload"),
14303
14345
  class: "icon-svg"
14304
14346
  }, [w(s)])])) : b("", !0),
14305
- z(S("li", fh, [S("span", {
14347
+ z(S("li", ph, [S("span", {
14306
14348
  class: "iconfont icon-daoru",
14307
14349
  onClick: t[5] ||= (...t) => e.actionImportFile && e.actionImportFile(...t)
14308
14350
  }), S("input", {
@@ -14310,16 +14352,16 @@ function Jh(e, t, n, r, i, a) {
14310
14352
  onChange: t[6] ||= (t) => e.actionImportFile(t),
14311
14353
  accept: "text/markdown"
14312
14354
  }, null, 32)], 512), [[L, e.toolConfig.importmd]]),
14313
- z(S("li", ph, [S("span", {
14355
+ z(S("li", mh, [S("span", {
14314
14356
  class: "iconfont icon-download",
14315
14357
  onClick: t[7] ||= (...t) => e.actionExportFile && e.actionExportFile(...t)
14316
14358
  })], 512), [[L, e.toolConfig.exportmd]]),
14317
14359
  t[61] ||= S("li", { class: "segmentation" }, [S("div")], -1),
14318
- e.toolConfig.code ? (A(), x("li", mh, [S("span", {
14360
+ e.toolConfig.code ? (A(), x("li", hh, [S("span", {
14319
14361
  onClick: t[8] ||= (...t) => e.insertCode && e.insertCode(...t),
14320
14362
  class: "iconfont icon-code"
14321
14363
  })])) : b("", !0),
14322
- e.toolConfig.theme ? (A(), x("li", hh, [S("span", {
14364
+ e.toolConfig.theme ? (A(), x("li", gh, [S("span", {
14323
14365
  class: "iconfont icon-theme",
14324
14366
  onClick: t[9] ||= (t) => e.actionThemeDropdown = !e.actionThemeDropdown
14325
14367
  }), S("ul", {
@@ -14328,7 +14370,7 @@ function Jh(e, t, n, r, i, a) {
14328
14370
  }, [(A(!0), x(v, null, M(i.optionTheme, (t) => (A(), x("li", {
14329
14371
  key: t,
14330
14372
  onClick: (n) => e.actionThemesSet(t)
14331
- }, F(t), 9, gh))), 128))], 34)])) : b("", !0),
14373
+ }, F(t), 9, _h))), 128))], 34)])) : b("", !0),
14332
14374
  e.toolConfig.html_to_markdown ? (A(), x("li", {
14333
14375
  key: 8,
14334
14376
  name: "html转markdown",
@@ -14350,25 +14392,25 @@ function Jh(e, t, n, r, i, a) {
14350
14392
  }, null, 512), [[L, e.actionScrollSync]]), z(S("span", {
14351
14393
  onClick: t[13] ||= (t) => e.actionScrollSync = !e.actionScrollSync,
14352
14394
  class: "iconfont icon-off"
14353
- }, null, 512), [[L, !e.actionScrollSync]])], 8, _h)) : b("", !0),
14354
- e.toolConfig.split && e.actionSplit ? (A(), x("li", vh, [S("span", {
14395
+ }, null, 512), [[L, !e.actionScrollSync]])], 8, vh)) : b("", !0),
14396
+ e.toolConfig.split && e.actionSplit ? (A(), x("li", yh, [S("span", {
14355
14397
  onClick: t[14] ||= (t) => e.actionSplit = !1,
14356
14398
  class: "iconfont icon-md"
14357
14399
  })])) : b("", !0),
14358
- e.toolConfig.split && !e.actionSplit ? (A(), x("li", yh, [S("span", {
14400
+ e.toolConfig.split && !e.actionSplit ? (A(), x("li", bh, [S("span", {
14359
14401
  onClick: t[15] ||= (t) => e.actionSplit = !0,
14360
14402
  class: "iconfont icon-group"
14361
14403
  })])) : b("", !0),
14362
- e.toolConfig.preview ? (A(), x("li", bh, [S("span", {
14404
+ e.toolConfig.preview ? (A(), x("li", xh, [S("span", {
14363
14405
  onClick: t[16] ||= (t) => e.actionPreview = !0,
14364
14406
  class: "iconfont icon-preview"
14365
14407
  })])) : b("", !0),
14366
- e.toolConfig.copy || e.toolConfig.clear || e.toolConfig.save ? (A(), x("li", xh, [...t[56] ||= [S("div", null, null, -1)]])) : b("", !0),
14408
+ e.toolConfig.copy || e.toolConfig.clear || e.toolConfig.save ? (A(), x("li", Sh, [...t[56] ||= [S("div", null, null, -1)]])) : b("", !0),
14367
14409
  e.toolConfig.copy ? (A(), x("li", {
14368
14410
  key: 14,
14369
14411
  name: "复制",
14370
14412
  onClick: t[17] ||= (...t) => e.actionCopySet && e.actionCopySet(...t)
14371
- }, [S("span", Sh, [w(c)])])) : b("", !0),
14413
+ }, [S("span", Ch, [w(c)])])) : b("", !0),
14372
14414
  e.toolConfig.clear ? (A(), x("li", {
14373
14415
  key: 15,
14374
14416
  name: "清空",
@@ -14379,15 +14421,15 @@ function Jh(e, t, n, r, i, a) {
14379
14421
  name: "保存",
14380
14422
  onClick: t[19] ||= (...t) => e.actionSaveSet && e.actionSaveSet(...t)
14381
14423
  }, [...t[58] ||= [S("span", { class: "iconfont icon-save" }, null, -1)]])) : b("", !0),
14382
- e.toolConfig.toc ? (A(), x("li", Ch, [...t[59] ||= [S("div", null, null, -1)]])) : b("", !0),
14383
- e.toolConfig.toc ? (A(), x("li", wh, [z(S("span", {
14424
+ e.toolConfig.toc ? (A(), x("li", wh, [...t[59] ||= [S("div", null, null, -1)]])) : b("", !0),
14425
+ e.toolConfig.toc ? (A(), x("li", Th, [z(S("span", {
14384
14426
  onClick: t[20] ||= (t) => e.actionToc = !e.actionToc,
14385
14427
  class: "icon-svg active"
14386
14428
  }, [w(l)], 512), [[L, e.actionToc]]), z(S("span", {
14387
14429
  onClick: t[21] ||= (t) => e.actionToc = !e.actionToc,
14388
14430
  class: "icon-svg"
14389
14431
  }, [w(l)], 512), [[L, !e.actionToc]])])) : b("", !0),
14390
- e.toolConfig.fullscreen ? (A(), x("li", Th, [...t[60] ||= [S("div", null, null, -1)]])) : b("", !0),
14432
+ e.toolConfig.fullscreen ? (A(), x("li", Eh, [...t[60] ||= [S("div", null, null, -1)]])) : b("", !0),
14391
14433
  e.toolConfig.fullscreen ? (A(), x("li", {
14392
14434
  key: 20,
14393
14435
  name: e.actionFullscreen ? "退出全屏" : "全屏"
@@ -14397,78 +14439,78 @@ function Jh(e, t, n, r, i, a) {
14397
14439
  }, null, 512), [[L, e.actionFullscreen]]), z(S("span", {
14398
14440
  onClick: t[23] ||= (t) => e.actionFullscreenSet(!0),
14399
14441
  class: "iconfont icon-fullscreen"
14400
- }, null, 512), [[L, !e.actionFullscreen]])], 8, Eh)) : b("", !0)
14401
- ]), S("ul", Dh, [
14402
- e.toolConfig.strong ? (A(), x("li", Oh, [S("span", {
14442
+ }, null, 512), [[L, !e.actionFullscreen]])], 8, Dh)) : b("", !0)
14443
+ ]), S("ul", Oh, [
14444
+ e.toolConfig.strong ? (A(), x("li", kh, [S("span", {
14403
14445
  onClick: t[24] ||= (...t) => e.actionInsStrong && e.actionInsStrong(...t),
14404
14446
  class: "iconfont icon-bold"
14405
14447
  })])) : b("", !0),
14406
- e.toolConfig.italic ? (A(), x("li", kh, [S("span", {
14448
+ e.toolConfig.italic ? (A(), x("li", Ah, [S("span", {
14407
14449
  onClick: t[25] ||= (...t) => e.actionInsItalic && e.actionInsItalic(...t),
14408
14450
  class: "iconfont icon-italic"
14409
14451
  })])) : b("", !0),
14410
- e.toolConfig.overline ? (A(), x("li", Ah, [S("span", {
14452
+ e.toolConfig.overline ? (A(), x("li", jh, [S("span", {
14411
14453
  onClick: t[26] ||= (...t) => e.actionInsOverline && e.actionInsOverline(...t),
14412
14454
  class: "iconfont icon-overline"
14413
14455
  })])) : b("", !0),
14414
- e.toolConfig.overline ? (A(), x("li", jh, [S("span", {
14456
+ e.toolConfig.overline ? (A(), x("li", Mh, [S("span", {
14415
14457
  onClick: t[27] ||= (...t) => e.actionInsUnderline && e.actionInsUnderline(...t),
14416
14458
  class: "iconfont icon-under-line"
14417
14459
  })])) : b("", !0),
14418
- e.toolConfig.h1 ? (A(), x("li", Mh, [S("span", {
14460
+ e.toolConfig.h1 ? (A(), x("li", Nh, [S("span", {
14419
14461
  style: { "font-size": "16px" },
14420
14462
  onClick: t[28] ||= (t) => e.actionInsTitle(1)
14421
14463
  }, "h1")])) : b("", !0),
14422
- e.toolConfig.h2 ? (A(), x("li", Nh, [S("span", {
14464
+ e.toolConfig.h2 ? (A(), x("li", Ph, [S("span", {
14423
14465
  style: { "font-size": "16px" },
14424
14466
  onClick: t[29] ||= (t) => e.actionInsTitle(2)
14425
14467
  }, "h2")])) : b("", !0),
14426
- e.toolConfig.h3 ? (A(), x("li", Ph, [S("span", {
14468
+ e.toolConfig.h3 ? (A(), x("li", Fh, [S("span", {
14427
14469
  style: { "font-size": "16px" },
14428
14470
  onClick: t[30] ||= (t) => e.actionInsTitle(3)
14429
14471
  }, "h3")])) : b("", !0),
14430
- e.toolConfig.h4 ? (A(), x("li", Fh, [S("span", {
14472
+ e.toolConfig.h4 ? (A(), x("li", Ih, [S("span", {
14431
14473
  style: { "font-size": "16px" },
14432
14474
  onClick: t[31] ||= (t) => e.actionInsTitle(4)
14433
14475
  }, "h4")])) : b("", !0),
14434
- e.toolConfig.h5 ? (A(), x("li", Ih, [S("span", {
14476
+ e.toolConfig.h5 ? (A(), x("li", Lh, [S("span", {
14435
14477
  style: { "font-size": "16px" },
14436
14478
  onClick: t[32] ||= (t) => e.actionInsTitle(5)
14437
14479
  }, "h5")])) : b("", !0),
14438
- e.toolConfig.h6 ? (A(), x("li", Lh, [S("span", {
14480
+ e.toolConfig.h6 ? (A(), x("li", Rh, [S("span", {
14439
14481
  style: { "font-size": "16px" },
14440
14482
  onClick: t[33] ||= (t) => e.actionInsTitle(6)
14441
14483
  }, "h6")])) : b("", !0),
14442
- e.toolConfig.hr ? (A(), x("li", Rh, [S("span", {
14484
+ e.toolConfig.hr ? (A(), x("li", zh, [S("span", {
14443
14485
  onClick: t[34] ||= (...t) => e.actionInsLine && e.actionInsLine(...t),
14444
14486
  class: "iconfont icon-horizontal"
14445
14487
  })])) : b("", !0),
14446
- e.toolConfig.quote ? (A(), x("li", zh, [S("span", {
14488
+ e.toolConfig.quote ? (A(), x("li", Bh, [S("span", {
14447
14489
  style: { "font-size": "16px" },
14448
14490
  onClick: t[35] ||= (...t) => e.actionInsQuote && e.actionInsQuote(...t),
14449
14491
  class: "iconfont icon-quote"
14450
14492
  })])) : b("", !0),
14451
- e.toolConfig.ul ? (A(), x("li", Bh, [S("span", {
14493
+ e.toolConfig.ul ? (A(), x("li", Vh, [S("span", {
14452
14494
  onClick: t[36] ||= (...t) => e.actionInsUl && e.actionInsUl(...t),
14453
14495
  class: "iconfont icon-ul"
14454
14496
  })])) : b("", !0),
14455
- e.toolConfig.ol ? (A(), x("li", Vh, [S("span", {
14497
+ e.toolConfig.ol ? (A(), x("li", Hh, [S("span", {
14456
14498
  onClick: t[37] ||= (...t) => e.actionInsOl && e.actionInsOl(...t),
14457
14499
  class: "iconfont icon-ol"
14458
14500
  })])) : b("", !0),
14459
- e.toolConfig.notChecked ? (A(), x("li", Hh, [S("span", {
14501
+ e.toolConfig.notChecked ? (A(), x("li", Uh, [S("span", {
14460
14502
  onClick: t[38] ||= (...t) => e.insertNotFinished && e.insertNotFinished(...t),
14461
14503
  class: "iconfont icon-checked-false"
14462
14504
  })])) : b("", !0),
14463
- e.toolConfig.checked ? (A(), x("li", Uh, [S("span", {
14505
+ e.toolConfig.checked ? (A(), x("li", Wh, [S("span", {
14464
14506
  onClick: t[39] ||= (...t) => e.insertFinished && e.insertFinished(...t),
14465
14507
  class: "iconfont icon-checked"
14466
14508
  })])) : b("", !0),
14467
- e.toolConfig.link ? (A(), x("li", Wh, [S("span", {
14509
+ e.toolConfig.link ? (A(), x("li", Gh, [S("span", {
14468
14510
  onClick: t[40] ||= (...t) => e.actionInsLink && e.actionInsLink(...t),
14469
14511
  class: "iconfont icon-link"
14470
14512
  })])) : b("", !0),
14471
- e.toolConfig.table ? (A(), x("li", Gh, [S("span", {
14513
+ e.toolConfig.table ? (A(), x("li", Kh, [S("span", {
14472
14514
  onClick: t[41] ||= (...t) => e.actionInsTable && e.actionInsTable(...t),
14473
14515
  class: "iconfont icon-table"
14474
14516
  })])) : b("", !0)
@@ -14481,7 +14523,7 @@ function Jh(e, t, n, r, i, a) {
14481
14523
  class: "md-simple-editor",
14482
14524
  style: k({ height: i.heightMainPx }),
14483
14525
  onMouseenter: t[47] ||= (e) => a.mousescrollSide("left")
14484
- }, [S("ul", Kh, [(A(!0), x(v, null, M(a.lineNumbers, (e) => (A(), x("li", { key: e }, F(e), 1))), 128))], 512), z(S("textarea", {
14526
+ }, [S("ul", qh, [(A(!0), x(v, null, M(a.lineNumbers, (e) => (A(), x("li", { key: e }, F(e), 1))), 128))], 512), z(S("textarea", {
14485
14527
  class: "md-simple-textarea",
14486
14528
  ref: "textarea",
14487
14529
  "onUpdate:modelValue": t[42] ||= (e) => i.localVal = e,
@@ -14491,7 +14533,7 @@ function Jh(e, t, n, r, i, a) {
14491
14533
  onKeydown: t[44] ||= Ke((...e) => a.onTab && a.onTab(...e), ["tab"]),
14492
14534
  onKeyup: t[45] ||= Ke((...e) => a.onEnterContinue && a.onEnterContinue(...e), ["enter"]),
14493
14535
  onPaste: t[46] ||= (...e) => a.handlePaste && a.handlePaste(...e)
14494
- }, null, 40, qh), [[We, i.localVal]])], 36), [[L, !e.actionPreview]]), z(w(u, {
14536
+ }, null, 40, Jh), [[We, i.localVal]])], 36), [[L, !e.actionPreview]]), z(w(u, {
14495
14537
  html: i.lastHtml,
14496
14538
  "onUpdate:html": t[48] ||= (e) => i.lastHtml = e,
14497
14539
  ref: a.previewRefID,
@@ -14556,7 +14598,7 @@ function Jh(e, t, n, r, i, a) {
14556
14598
  }, 8, ["modelValue"])
14557
14599
  ], 6);
14558
14600
  }
14559
- var Yh = /*#__PURE__*/ H(ih, [["render", Jh], ["__scopeId", "data-v-9b03adf6"]]), Xh = {
14601
+ var Xh = /*#__PURE__*/ H(ah, [["render", Yh], ["__scopeId", "data-v-9b03adf6"]]), Zh = {
14560
14602
  add(e, t) {
14561
14603
  let n = `toc${t}${++this.index}`, r = {
14562
14604
  anchor: n,
@@ -14572,49 +14614,49 @@ var Yh = /*#__PURE__*/ H(ih, [["render", Jh], ["__scopeId", "data-v-9b03adf6"]])
14572
14614
  index: 0
14573
14615
  };
14574
14616
  // packages/editor/markdown/utils/marked-highlight.js
14575
- function Zh(e) {
14617
+ function Qh(e) {
14576
14618
  if (typeof e == "function" && (e = { highlight: e }), !e || typeof e.highlight != "function") throw Error("Must provide highlight function");
14577
14619
  return typeof e.langPrefix != "string" && (e.langPrefix = "language-"), {
14578
14620
  async: !!e.async,
14579
14621
  walkTokens(t) {
14580
14622
  if (t.type !== "code") return;
14581
- let n = Qh(t);
14582
- if (e.async) return Promise.resolve(e.highlight(t.text, n)).then($h(t));
14623
+ let n = $h(t);
14624
+ if (e.async) return Promise.resolve(e.highlight(t.text, n)).then(eg(t));
14583
14625
  let r = e.highlight(t.text, n);
14584
14626
  if (r instanceof Promise) throw Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");
14585
- $h(t)(r);
14627
+ eg(t)(r);
14586
14628
  },
14587
14629
  renderer: { code(t, n, r) {
14588
- let i = (n || "").match(/\S*/)[0], a = i ? ` class="${e.langPrefix}${og(i)}"` : "";
14589
- return t = t.replace(/\n$/, ""), `<pre><code${a}>${r ? t : og(t, !0)}\n</code></pre>`;
14630
+ let i = (n || "").match(/\S*/)[0], a = i ? ` class="${e.langPrefix}${sg(i)}"` : "";
14631
+ return t = t.replace(/\n$/, ""), `<pre><code${a}>${r ? t : sg(t, !0)}\n</code></pre>`;
14590
14632
  } }
14591
14633
  };
14592
14634
  }
14593
- function Qh(e) {
14635
+ function $h(e) {
14594
14636
  return (e.lang || "").match(/\S*/)[0];
14595
14637
  }
14596
- function $h(e) {
14638
+ function eg(e) {
14597
14639
  return (t) => {
14598
14640
  typeof t == "string" && t !== e.text && (e.escaped = !0, e.text = t);
14599
14641
  };
14600
14642
  }
14601
- var eg = /[&<>"']/, tg = new RegExp(eg.source, "g"), ng = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, rg = new RegExp(ng.source, "g"), ig = {
14643
+ var tg = /[&<>"']/, ng = new RegExp(tg.source, "g"), rg = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, ig = new RegExp(rg.source, "g"), ag = {
14602
14644
  "&": "&amp;",
14603
14645
  "<": "&lt;",
14604
14646
  ">": "&gt;",
14605
14647
  "\"": "&quot;",
14606
14648
  "'": "&#39;"
14607
- }, ag = (e) => ig[e];
14608
- function og(e, t) {
14649
+ }, og = (e) => ag[e];
14650
+ function sg(e, t) {
14609
14651
  if (t) {
14610
- if (eg.test(e)) return e.replace(tg, ag);
14611
- } else if (ng.test(e)) return e.replace(rg, ag);
14652
+ if (tg.test(e)) return e.replace(ng, og);
14653
+ } else if (rg.test(e)) return e.replace(ig, og);
14612
14654
  return e;
14613
14655
  }
14614
14656
  // packages/editor/src/markdown-show.vue
14615
- var sg = {
14657
+ var cg = {
14616
14658
  name: "cvMarkdownShow",
14617
- mixins: [cp],
14659
+ mixins: [lp],
14618
14660
  emits: ["update:html", "on-copy"],
14619
14661
  props: {
14620
14662
  html: { type: [String] },
@@ -14673,7 +14715,7 @@ var sg = {
14673
14715
  this.localVal = this.modelValue || "";
14674
14716
  },
14675
14717
  async mounted() {
14676
- Xh.reset(), await Ir(this.CDN_URL_UI + "/highlight.js/@11.8.0/styles/default.min.css"), await Lr(this.CDN_URL_UI + "/highlight.js/@11.8.0/highlight.min.js").then(() => {
14718
+ Zh.reset(), await Ir(this.CDN_URL_UI + "/highlight.js/@11.8.0/styles/default.min.css"), await Lr(this.CDN_URL_UI + "/highlight.js/@11.8.0/highlight.min.js").then(() => {
14677
14719
  setTimeout(() => {
14678
14720
  hljs.highlightAll(), this.initNewCreate();
14679
14721
  }, 30);
@@ -14683,10 +14725,10 @@ var sg = {
14683
14725
  async initNewCreate() {
14684
14726
  let { Marked: e, Renderer: t } = await import("https://10ui.cn/marked/@12.0.1/marked.esm.js");
14685
14727
  t.prototype.heading = function(e, t, n, r) {
14686
- let i = Xh.add(e, t);
14728
+ let i = Zh.add(e, t);
14687
14729
  return `<h${t} id="${n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g, "-")}" toc-id="${i}">${e}</h${t}>`;
14688
14730
  };
14689
- let n = new e(Zh({
14731
+ let n = new e(Qh({
14690
14732
  langPrefix: "hljs language-",
14691
14733
  highlight(e, t) {
14692
14734
  let n = hljs.getLanguage(t) ? t : "plaintext";
@@ -14704,7 +14746,7 @@ var sg = {
14704
14746
  sanitize: !1,
14705
14747
  ...this.markedOptions
14706
14748
  });
14707
- r = r.replace(/href="/gi, "target=\"_blank\" href=\""), this.copyCode && (r = r.replace(/<pre>/g, "<div class=\"code-block\"><span class=\"copy-code\">" + this.copyBtnText + "</span><pre>").replace(/<\/pre>/g, "</pre></div>")), /\[\[TOC\]\]/.test(r) && (r = r.replace(/\[\[TOC\]\]/g, "<ul class=\"toc-anchor\"></ul>")), this.localHtml = r, this.tocLists = Xh.tocItems, this.tocTrigger, Xh.reset(), this.addCopyListener(), this.addImageClickListener();
14749
+ r = r.replace(/href="/gi, "target=\"_blank\" href=\""), this.copyCode && (r = r.replace(/<pre>/g, "<div class=\"code-block\"><span class=\"copy-code\">" + this.copyBtnText + "</span><pre>").replace(/<\/pre>/g, "</pre></div>")), /\[\[TOC\]\]/.test(r) && (r = r.replace(/\[\[TOC\]\]/g, "<ul class=\"toc-anchor\"></ul>")), this.localHtml = r, this.tocLists = Zh.tocItems, this.tocTrigger, Zh.reset(), this.addCopyListener(), this.addImageClickListener();
14708
14750
  },
14709
14751
  addCopyListener() {
14710
14752
  setTimeout(() => {
@@ -14763,8 +14805,8 @@ var sg = {
14763
14805
  }), n === 9999 ? e : e - (n - 1);
14764
14806
  }
14765
14807
  }
14766
- }, cg = ["id"], lg = ["innerHTML"], ug = { class: "toc-anchor" }, dg = ["anchor", "onClick"], fg = ["anchor", "title"], pg = ["src"];
14767
- function mg(e, t, n, r, i, a) {
14808
+ }, lg = ["id"], ug = ["innerHTML"], dg = { class: "toc-anchor" }, fg = ["anchor", "onClick"], pg = ["anchor", "title"], mg = ["src"];
14809
+ function hg(e, t, n, r, i, a) {
14768
14810
  let o = P("cv-icons");
14769
14811
  return A(), x("div", {
14770
14812
  class: "cv-markdown-preview",
@@ -14777,8 +14819,8 @@ function mg(e, t, n, r, i, a) {
14777
14819
  class: D(`markdown-preview markdown-theme-base ${"markdown-theme-" + n.theme}`),
14778
14820
  onScroll: t[0] ||= (...e) => a.handleScroll && a.handleScroll(...e),
14779
14821
  innerHTML: i.localHtml
14780
- }, null, 42, lg),
14781
- z(S("ul", ug, [(A(!0), x(v, null, M(i.tocLists, (e) => (A(), x("li", {
14822
+ }, null, 42, ug),
14823
+ z(S("ul", dg, [(A(!0), x(v, null, M(i.tocLists, (e) => (A(), x("li", {
14782
14824
  class: "toc-anchor-item",
14783
14825
  anchor: e.anchor,
14784
14826
  key: e.anchor,
@@ -14787,7 +14829,7 @@ function mg(e, t, n, r, i, a) {
14787
14829
  class: D(`toc-link-${a.tocLevel(e.level)}${i.tocAction == e.anchor ? " toc-link-action" : ""}`),
14788
14830
  anchor: e.anchor,
14789
14831
  title: e.text
14790
- }, F(e.text), 11, fg)], 8, dg))), 128))], 512), [[L, n.tocShow]]),
14832
+ }, F(e.text), 11, pg)], 8, fg))), 128))], 512), [[L, n.tocShow]]),
14791
14833
  S("div", { class: D(["preview-img", i.previewImgModal ? "active" : ""]) }, [w(o, {
14792
14834
  type: "actionClose",
14793
14835
  onClick: t[1] ||= (e) => i.previewImgModal = !1
@@ -14795,10 +14837,10 @@ function mg(e, t, n, r, i, a) {
14795
14837
  src: i.previewImgSrc,
14796
14838
  class: D([i.previewImgMode]),
14797
14839
  alt: ""
14798
- }, null, 10, pg)], 2)
14799
- ], 12, cg);
14840
+ }, null, 10, mg)], 2)
14841
+ ], 12, lg);
14800
14842
  }
14801
- var hg = /*#__PURE__*/ H(sg, [["render", mg]]), gg = {
14843
+ var gg = /*#__PURE__*/ H(cg, [["render", hg]]), _g = {
14802
14844
  name: "cvMarkdownNostyle",
14803
14845
  props: {
14804
14846
  modelValue: {
@@ -14829,31 +14871,31 @@ var hg = /*#__PURE__*/ H(sg, [["render", mg]]), gg = {
14829
14871
  let { Marked: e, Renderer: t } = await import("https://10ui.cn/marked/@12.0.1/marked.esm.js"), n = new e().parser(this.localVal, { sanitize: !1 });
14830
14872
  n = n.replace(/href="/gi, "target=\"_blank\" href=\""), this.localHtml = n;
14831
14873
  } }
14832
- }, _g = ["innerHTML"];
14833
- function vg(e, t, n, r, i, a) {
14874
+ }, vg = ["innerHTML"];
14875
+ function yg(e, t, n, r, i, a) {
14834
14876
  return A(), x("div", {
14835
14877
  class: "markdown-preview-nostyle",
14836
14878
  innerHTML: i.localHtml
14837
- }, null, 8, _g);
14838
- }
14839
- var yg = /*#__PURE__*/ H(gg, [["render", vg]]);
14840
- rh.install = function(e) {
14841
- e.component(rh.name, rh);
14842
- }, Yh.install = function(e) {
14843
- e.component(Yh.name, Yh);
14844
- }, hg.install = function(e) {
14845
- e.component(hg.name, hg);
14846
- }, yg.install = function(e) {
14847
- e.component(yg.name, yg);
14848
- }, Kp.install = function(e) {
14849
- e.component(Kp.name, Kp);
14850
- }, Yp.install = function(e) {
14851
- e.component(Yp.name, Yp);
14852
- }, am.install = function(e) {
14853
- e.component(am.name, am);
14879
+ }, null, 8, vg);
14880
+ }
14881
+ var bg = /*#__PURE__*/ H(_g, [["render", yg]]);
14882
+ ih.install = function(e) {
14883
+ e.component(ih.name, ih);
14884
+ }, Xh.install = function(e) {
14885
+ e.component(Xh.name, Xh);
14886
+ }, gg.install = function(e) {
14887
+ e.component(gg.name, gg);
14888
+ }, bg.install = function(e) {
14889
+ e.component(bg.name, bg);
14890
+ }, qp.install = function(e) {
14891
+ e.component(qp.name, qp);
14892
+ }, Xp.install = function(e) {
14893
+ e.component(Xp.name, Xp);
14894
+ }, om.install = function(e) {
14895
+ e.component(om.name, om);
14854
14896
  };
14855
14897
  // packages/dialog-render/src/dialog.js
14856
- function bg(e) {
14898
+ function xg(e) {
14857
14899
  return {
14858
14900
  text: "按钮",
14859
14901
  clickFn: null,
@@ -14863,7 +14905,7 @@ function bg(e) {
14863
14905
  ...e
14864
14906
  };
14865
14907
  }
14866
- var xg = class {
14908
+ var Sg = class {
14867
14909
  constructor(e, t) {
14868
14910
  this.WinVue = e, this.vmCompObj = null, this.vmComponent = null, this.vmApp = null, this.dialogObj = null, this.boxShow = j(!1), this.boxProps = j({}), this.boxOptions = Vr({
14869
14911
  closeIsConfirm: !1,
@@ -14905,12 +14947,12 @@ var xg = class {
14905
14947
  onClose: () => e.close(),
14906
14948
  ...e.bodyFunc
14907
14949
  }, { default: () => "" }), n = {
14908
- ok: bg({
14950
+ ok: xg({
14909
14951
  text: "确定",
14910
14952
  type: "primary",
14911
14953
  order: 0
14912
14954
  }),
14913
- cancel: bg({
14955
+ cancel: xg({
14914
14956
  text: "取消",
14915
14957
  order: 1
14916
14958
  })
@@ -14919,7 +14961,7 @@ var xg = class {
14919
14961
  if (["ok", "cancel"].includes(t)) {
14920
14962
  let n = t === "ok" ? e.defaultFunc.onOK : e.defaultFunc.onCancel;
14921
14963
  r.clickFn = r.clickFn || n;
14922
- } else n[t] = bg(r);
14964
+ } else n[t] = xg(r);
14923
14965
  });
14924
14966
  let r = Object.values(n).filter((e) => !e.isHide);
14925
14967
  w("div", {}, r.map((e) => w(i, {
@@ -14961,7 +15003,7 @@ var xg = class {
14961
15003
  }
14962
15004
  };
14963
15005
  // packages/dialog-render/src/drawer.js
14964
- function Sg(e) {
15006
+ function Cg(e) {
14965
15007
  return {
14966
15008
  text: "按钮",
14967
15009
  clickFn: null,
@@ -14971,7 +15013,7 @@ function Sg(e) {
14971
15013
  ...e
14972
15014
  };
14973
15015
  }
14974
- var Cg = class {
15016
+ var wg = class {
14975
15017
  constructor(e, t) {
14976
15018
  this.WinVue = e, this.vmCompObj = null, this.vmComponent = null, this.vmApp = null, this.dialogObj = null, this.boxShow = j(!1), this.boxProps = j({}), this.boxOptions = Vr({
14977
15019
  closeIsConfirm: !0,
@@ -15015,12 +15057,12 @@ var Cg = class {
15015
15057
  onClose: this.clearVm,
15016
15058
  ...e.bodyFunc
15017
15059
  }, { default: () => "" }), n = {
15018
- ok: Sg({
15060
+ ok: Cg({
15019
15061
  text: "确定",
15020
15062
  type: "primary",
15021
15063
  order: 0
15022
15064
  }),
15023
- cancel: Sg({
15065
+ cancel: Cg({
15024
15066
  text: "取消",
15025
15067
  order: 1
15026
15068
  })
@@ -15029,7 +15071,7 @@ var Cg = class {
15029
15071
  if (["ok", "cancel"].includes(t)) {
15030
15072
  let n = t === "ok" ? e.defaultFunc.onOK : e.defaultFunc.onCancel;
15031
15073
  r.clickFn = r.clickFn || n;
15032
- } else n[t] = Sg(r);
15074
+ } else n[t] = Cg(r);
15033
15075
  });
15034
15076
  let r = Object.values(n).filter((e) => !e.isHide);
15035
15077
  w("div", {}, r.map((e) => w(i, {
@@ -15071,8 +15113,8 @@ var Cg = class {
15071
15113
  }
15072
15114
  };
15073
15115
  // packages/dialog-render/index.js
15074
- function wg(e, t = null, n = {}, r = {}, i = {}) {
15075
- let a = new xg(e, {
15116
+ function Tg(e, t = null, n = {}, r = {}, i = {}) {
15117
+ let a = new Sg(e, {
15076
15118
  component: t,
15077
15119
  diyOpts: n,
15078
15120
  props: r,
@@ -15086,8 +15128,8 @@ function wg(e, t = null, n = {}, r = {}, i = {}) {
15086
15128
  });
15087
15129
  return a;
15088
15130
  }
15089
- function Tg(e, t = "", n = {}, r = {}, i = null) {
15090
- let a = new Cg(e, {
15131
+ function Eg(e, t = "", n = {}, r = {}, i = null) {
15132
+ let a = new wg(e, {
15091
15133
  component: t,
15092
15134
  diyOpts: { ...n },
15093
15135
  props: r,
@@ -15102,7 +15144,7 @@ function Tg(e, t = "", n = {}, r = {}, i = null) {
15102
15144
  return a;
15103
15145
  }
15104
15146
  // src/index.js
15105
- var Eg = [
15147
+ var Dg = [
15106
15148
  bt,
15107
15149
  Ct,
15108
15150
  Et,
@@ -15147,68 +15189,95 @@ var Eg = [
15147
15189
  Zi,
15148
15190
  ea,
15149
15191
  ra,
15150
- Pa,
15151
- Xa,
15152
- oo,
15153
- xo,
15154
- Bo,
15155
- _s,
15156
- Ms,
15192
+ Fa,
15193
+ Za,
15194
+ so,
15195
+ So,
15196
+ Vo,
15197
+ vs,
15198
+ Ns,
15157
15199
  oa,
15158
- cs,
15159
- ds,
15160
- Hs,
15161
- Rs,
15162
- Ks,
15163
- jc,
15164
- Pc,
15165
- Rc,
15166
- Vc,
15167
- Wc,
15168
- qc,
15169
- Ys,
15170
- Qs,
15171
- nc,
15172
- sc,
15173
- uc,
15174
- pc,
15175
- gc,
15176
- yc,
15177
- $o,
15178
- rs,
15200
+ ls,
15201
+ fs,
15202
+ Us,
15203
+ zs,
15204
+ qs,
15205
+ Mc,
15206
+ Fc,
15207
+ zc,
15208
+ Hc,
15209
+ Gc,
15210
+ Jc,
15211
+ Xs,
15212
+ $s,
15213
+ rc,
15214
+ cc,
15215
+ dc,
15216
+ mc,
15217
+ _c,
15218
+ bc,
15219
+ es,
15220
+ is,
15179
15221
  oi,
15180
15222
  _i,
15181
- nd,
15182
- cd,
15183
- dd,
15184
- md,
15185
- yd,
15186
- Ed,
15187
- jd,
15188
- Zd,
15189
- $d,
15190
- Kp,
15191
- Yp,
15192
- am,
15193
- rh,
15194
- Yh,
15195
- hg,
15196
- yg,
15197
- Go,
15198
- Yo
15199
- ], Dg = function(e, t = {}) {
15200
- Eg.forEach((t) => {
15201
- e.component(t.name, t);
15223
+ rd,
15224
+ ld,
15225
+ fd,
15226
+ hd,
15227
+ bd,
15228
+ Dd,
15229
+ Md,
15230
+ Qd,
15231
+ ef,
15232
+ qp,
15233
+ Xp,
15234
+ om,
15235
+ ih,
15236
+ Xh,
15237
+ gg,
15238
+ bg,
15239
+ Ko,
15240
+ Xo
15241
+ ], Og = function(e, t = {}) {
15242
+ Dg.forEach((n) => {
15243
+ Ag(n, t), e.component(n.name, n);
15202
15244
  }), e.config.globalProperties.$cvUiParams = { ...t }, e.config.globalProperties.$cvDialogRender = function() {
15203
- return wg(e, ...arguments);
15204
- }, e.config.globalProperties.$cvCopy = Rr, e.config.globalProperties.$cvDrawerRender = function() {
15205
15245
  return Tg(e, ...arguments);
15246
+ }, e.config.globalProperties.$cvCopy = Rr, e.config.globalProperties.$cvDrawerRender = function() {
15247
+ return Eg(e, ...arguments);
15206
15248
  }, e.config.globalProperties.CDN_URL_UI = "https://10ui.cn/";
15207
15249
  };
15208
15250
  /* istanbul ignore if */
15209
- typeof window < "u" && window._vueApp_ && Dg(window._vueApp_);
15210
- var Og = {
15251
+ typeof window < "u" && window._vueApp_ && Og(window._vueApp_);
15252
+ var kg = {
15211
15253
  version: "0.3.x",
15212
- install: Dg
15254
+ install: Og
15213
15255
  };
15214
- export { Eg as components, wg as cvDialogRender, Tg as cvDrawerRender, Og as default, Dg as install };
15256
+ function Ag(e, t) {
15257
+ if (!e || !e.name || !t) return;
15258
+ let n = Object.assign({}, t.upload || {}, t[e.name] || {}), r = Object.keys(n);
15259
+ if (!r.length) return;
15260
+ let i = jg(e), a = e.props && !Array.isArray(e.props) ? e.props : {}, o = Object.assign({}, a), s = !1;
15261
+ r.forEach((e) => {
15262
+ let t = n[e];
15263
+ if (t === void 0 || !i[e]) return;
15264
+ let r = Mg(i[e]);
15265
+ o[e] = Ng(r) ? Object.assign({}, r, { default: t }) : Object.assign({}, r, { default: () => t }), s = !0;
15266
+ }), s && (e.props = o);
15267
+ }
15268
+ function jg(e, t = {}) {
15269
+ (e.mixins || []).forEach((e) => {
15270
+ e && jg(e, t);
15271
+ });
15272
+ let n = e.props;
15273
+ return Array.isArray(n) ? n.forEach((e) => {
15274
+ t[e] || (t[e] = {});
15275
+ }) : n && Object.assign(t, n), t;
15276
+ }
15277
+ function Mg(e) {
15278
+ return typeof e == "function" || Array.isArray(e) || typeof e == "string" ? { type: e } : e || {};
15279
+ }
15280
+ function Ng(e) {
15281
+ return e.type === Function;
15282
+ }
15283
+ export { Dg as components, Tg as cvDialogRender, Eg as cvDrawerRender, kg as default, Og as install };