@ahzoo/sus 3.1.2 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -19832,7 +19832,7 @@ const ck = ["onClick"], uk = { class: "sus-code-block-content" }, dk = /* @__PUR
19832
19832
  }
19833
19833
  c.notify = 1;
19834
19834
  }), (U, O) => (K(), X("div", mk, [
19835
- O[14] || (O[14] = ar('<div class="sus-comment__decoration" data-v-b3427ec2><div class="decoration-corner top-left" data-v-b3427ec2></div><div class="decoration-corner top-right" data-v-b3427ec2></div><div class="decoration-corner bottom-left" data-v-b3427ec2></div><div class="decoration-corner bottom-right" data-v-b3427ec2></div></div>', 1)),
19835
+ O[14] || (O[14] = ar('<div class="sus-comment__decoration" data-v-e59fab4c><div class="sus-decoration-corner top-left" data-v-e59fab4c></div><div class="sus-decoration-corner top-right" data-v-e59fab4c></div><div class="sus-decoration-corner bottom-left" data-v-e59fab4c></div><div class="sus-decoration-corner bottom-right" data-v-e59fab4c></div></div>', 1)),
19836
19836
  m.enable ? (K(), X("div", gk, [
19837
19837
  $e(k("img", {
19838
19838
  alt: "头像",
@@ -19929,7 +19929,7 @@ const ck = ["onClick"], uk = { class: "sus-code-block-content" }, dk = /* @__PUR
19929
19929
  xmlns: "http://www.w3.org/2000/svg",
19930
19930
  viewBox: "0 0 24 24"
19931
19931
  }, [...O[8] || (O[8] = [
19932
- ar('<g fill="none" data-v-b3427ec2><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M9 16c.85.63 1.885 1 3 1s2.15-.37 3-1" data-v-b3427ec2></path><path fill="currentColor" d="M16 10.5c0 .828-.448 1.5-1 1.5s-1-.672-1-1.5s.448-1.5 1-1.5s1 .672 1 1.5" data-v-b3427ec2></path><ellipse cx="9" cy="10.5" fill="currentColor" rx="1" ry="1.5" data-v-b3427ec2></ellipse><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M7 3.338A9.95 9.95 0 0 1 12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12c0-1.821.487-3.53 1.338-5" data-v-b3427ec2></path></g>', 1)
19932
+ ar('<g fill="none" data-v-e59fab4c><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M9 16c.85.63 1.885 1 3 1s2.15-.37 3-1" data-v-e59fab4c></path><path fill="currentColor" d="M16 10.5c0 .828-.448 1.5-1 1.5s-1-.672-1-1.5s.448-1.5 1-1.5s1 .672 1 1.5" data-v-e59fab4c></path><ellipse cx="9" cy="10.5" fill="currentColor" rx="1" ry="1.5" data-v-e59fab4c></ellipse><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M7 3.338A9.95 9.95 0 0 1 12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12c0-1.821.487-3.53 1.338-5" data-v-e59fab4c></path></g>', 1)
19933
19933
  ])]))
19934
19934
  ])) : ce("", !0),
19935
19935
  n.toolBar?.image ? (K(), X("div", Dk, [
@@ -19942,7 +19942,7 @@ const ck = ["onClick"], uk = { class: "sus-code-block-content" }, dk = /* @__PUR
19942
19942
  name: "image",
19943
19943
  accept: "image/*"
19944
19944
  }, null, 544),
19945
- O[9] || (O[9] = ar('<label for="upload-input" data-v-b3427ec2><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" data-v-b3427ec2><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5" data-v-b3427ec2><path d="m2 12.5l1.752-1.533a2.3 2.3 0 0 1 3.14.105l4.29 4.29a2 2 0 0 0 2.564.222l.299-.21a3 3 0 0 1 3.731.225L21 18.5m-6-13h3.5m0 0H22m-3.5 0V9m0-3.5V2" data-v-b3427ec2></path><path d="M22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12c0-1.128 0-2.122.02-3M12 2C7.286 2 4.929 2 3.464 3.464c-.424.425-.726.925-.94 1.536" data-v-b3427ec2></path></g></svg></label>', 1))
19945
+ O[9] || (O[9] = ar('<label for="upload-input" data-v-e59fab4c><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" data-v-e59fab4c><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5" data-v-e59fab4c><path d="m2 12.5l1.752-1.533a2.3 2.3 0 0 1 3.14.105l4.29 4.29a2 2 0 0 0 2.564.222l.299-.21a3 3 0 0 1 3.731.225L21 18.5m-6-13h3.5m0 0H22m-3.5 0V9m0-3.5V2" data-v-e59fab4c></path><path d="M22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12c0-1.128 0-2.122.02-3M12 2C7.286 2 4.929 2 3.464 3.464c-.424.425-.726.925-.94 1.536" data-v-e59fab4c></path></g></svg></label>', 1))
19946
19946
  ])) : ce("", !0),
19947
19947
  n.toolBar?.notify ? (K(), X("div", {
19948
19948
  key: 2,
@@ -20030,7 +20030,7 @@ const ck = ["onClick"], uk = { class: "sus-code-block-content" }, dk = /* @__PUR
20030
20030
  key: Z
20031
20031
  }, [
20032
20032
  k("img", {
20033
- class: "img-item",
20033
+ class: "sus-img-item",
20034
20034
  src: Z,
20035
20035
  alt: ""
20036
20036
  }, null, 8, Bk),
@@ -20038,14 +20038,14 @@ const ck = ["onClick"], uk = { class: "sus-code-block-content" }, dk = /* @__PUR
20038
20038
  onClick: (Se) => V(te),
20039
20039
  class: "sus-comment__extend-mask"
20040
20040
  }, [...O[13] || (O[13] = [
20041
- ar('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" data-v-b3427ec2><g fill="none" stroke="currentColor" stroke-width="1.5" data-v-b3427ec2><path stroke-linecap="round" d="M20.5 6h-17m6 5l.5 5m4.5-5l-.5 5" data-v-b3427ec2></path><path d="M6.5 6h.11a2 2 0 0 0 1.83-1.32l.034-.103l.097-.291c.083-.249.125-.373.18-.479a1.5 1.5 0 0 1 1.094-.788C9.962 3 10.093 3 10.355 3h3.29c.262 0 .393 0 .51.019a1.5 1.5 0 0 1 1.094.788c.055.106.097.23.18.479l.097.291A2 2 0 0 0 17.5 6" data-v-b3427ec2></path><path stroke-linecap="round" d="M18.374 15.4c-.177 2.654-.266 3.981-1.131 4.79s-2.195.81-4.856.81h-.774c-2.66 0-3.99 0-4.856-.81c-.865-.809-.953-2.136-1.13-4.79l-.46-6.9m13.666 0l-.2 3" data-v-b3427ec2></path></g></svg>', 1)
20041
+ ar('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" data-v-e59fab4c><g fill="none" stroke="currentColor" stroke-width="1.5" data-v-e59fab4c><path stroke-linecap="round" d="M20.5 6h-17m6 5l.5 5m4.5-5l-.5 5" data-v-e59fab4c></path><path d="M6.5 6h.11a2 2 0 0 0 1.83-1.32l.034-.103l.097-.291c.083-.249.125-.373.18-.479a1.5 1.5 0 0 1 1.094-.788C9.962 3 10.093 3 10.355 3h3.29c.262 0 .393 0 .51.019a1.5 1.5 0 0 1 1.094.788c.055.106.097.23.18.479l.097.291A2 2 0 0 0 17.5 6" data-v-e59fab4c></path><path stroke-linecap="round" d="M18.374 15.4c-.177 2.654-.266 3.981-1.131 4.79s-2.195.81-4.856.81h-.774c-2.66 0-3.99 0-4.856-.81c-.865-.809-.953-2.136-1.13-4.79l-.46-6.9m13.666 0l-.2 3" data-v-e59fab4c></path></g></svg>', 1)
20042
20042
  ])], 8, $k)
20043
20043
  ]))), 128))
20044
20044
  ])
20045
20045
  ])
20046
20046
  ]));
20047
20047
  }
20048
- }), zk = /* @__PURE__ */ mn(_k, [["__scopeId", "data-v-b3427ec2"]]);
20048
+ }), zk = /* @__PURE__ */ mn(_k, [["__scopeId", "data-v-e59fab4c"]]);
20049
20049
  function Hk(n) {
20050
20050
  const e = new Date(n), t = e.getFullYear(), r = e.getMonth() + 1, i = e.getDate(), s = /* @__PURE__ */ new Date(), o = s.getFullYear(), l = s.getMonth() + 1, a = s.getDate();
20051
20051
  if (o === t && l == r) {
@@ -20057,19 +20057,19 @@ function Hk(n) {
20057
20057
  }
20058
20058
  return o === t ? `${r}月${i}日` : `${t}年${r}月${i}日`;
20059
20059
  }
20060
- const Fk = { class: "sus-comment" }, Vk = {
20060
+ const Fk = { class: "sus-comment__item__inner" }, Vk = {
20061
20061
  class: "sus-item-privacy-watermark",
20062
20062
  xmlns: "http://www.w3.org/2000/svg",
20063
20063
  width: "24",
20064
20064
  height: "24",
20065
20065
  viewBox: "0 0 24 24"
20066
- }, jk = { class: "sus-comment__aside" }, Uk = { class: "sus-item-number" }, Wk = { class: "number-value" }, Kk = {
20066
+ }, jk = { class: "sus-comment__aside" }, Uk = {
20067
20067
  key: 0,
20068
- class: "sus-item-avatar-frame"
20069
- }, qk = { class: "avatar-inner" }, Jk = {
20068
+ class: "sus-comment-avatar"
20069
+ }, Wk = { class: "avatar-inner" }, Kk = {
20070
20070
  key: 0,
20071
20071
  class: "avatar-letter"
20072
- }, Gk = ["src"], Yk = { class: "sus-comment__main" }, Xk = { class: "sus-comment__header" }, Qk = { class: "header-primary" }, Zk = ["rel", "href"], ev = { class: "username-text" }, tv = {
20072
+ }, qk = ["src"], Jk = { class: "sus-item-number" }, Gk = { class: "number-value" }, Yk = { class: "sus-comment__main" }, Xk = { class: "sus-comment__header" }, Qk = { class: "sus-header-primary" }, Zk = ["rel", "href"], ev = { class: "sus-username-text" }, tv = {
20073
20073
  key: 0,
20074
20074
  class: "sus-item-owner"
20075
20075
  }, nv = {
@@ -20145,13 +20145,9 @@ const Fk = { class: "sus-comment" }, Vk = {
20145
20145
  [rt, n.comment.band === "privacy"]
20146
20146
  ]),
20147
20147
  k("div", jk, [
20148
- k("div", Uk, [
20149
- p[1] || (p[1] = k("span", { class: "number-prefix" }, "No.", -1)),
20150
- k("span", Wk, Ve(String(n.num).padStart(2, "0")), 1)
20151
- ]),
20152
- n.comment.avatarDisplay !== "none" ? (K(), X("div", Kk, [
20153
- k("div", qk, [
20154
- n.comment.avatarDisplay === "text" || !n.comment.userAvatar ? (K(), X("div", Jk, [
20148
+ n.comment.avatarDisplay !== "none" ? (K(), X("div", Uk, [
20149
+ k("div", Wk, [
20150
+ n.comment.avatarDisplay === "text" || !n.comment.userAvatar ? (K(), X("div", Kk, [
20155
20151
  k("span", null, Ve(n.comment.userName.charAt(0)), 1)
20156
20152
  ])) : (K(), X("img", {
20157
20153
  key: 1,
@@ -20159,22 +20155,26 @@ const Fk = { class: "sus-comment" }, Vk = {
20159
20155
  class: "avatar-image",
20160
20156
  src: n.comment.userAvatar,
20161
20157
  onerror: "this.onerror=null,this.src='/error.webp'"
20162
- }, null, 8, Gk))
20158
+ }, null, 8, qk))
20163
20159
  ]),
20164
- p[2] || (p[2] = k("div", { class: "avatar-decoration" }, null, -1))
20165
- ])) : ce("", !0)
20160
+ p[1] || (p[1] = k("div", { class: "avatar-decoration" }, null, -1))
20161
+ ])) : ce("", !0),
20162
+ k("div", Jk, [
20163
+ p[2] || (p[2] = k("span", { class: "number-prefix" }, "No.", -1)),
20164
+ k("span", Gk, Ve(String(n.num).padStart(2, "0")), 1)
20165
+ ])
20166
20166
  ]),
20167
20167
  k("div", Yk, [
20168
- k("header", Xk, [
20168
+ k("div", Xk, [
20169
20169
  k("div", Qk, [
20170
20170
  k("a", {
20171
20171
  target: "_blank",
20172
20172
  rel: f(),
20173
20173
  href: n.comment.userWebsite,
20174
- class: bo(["username-link", { "is-owner": n.comment.tagName === "owner" }])
20174
+ class: bo(["sus-username-underline", { "is-owner": n.comment.tagName === "owner" }])
20175
20175
  }, [
20176
20176
  k("span", ev, Ve(n.comment.userName), 1),
20177
- p[3] || (p[3] = k("span", { class: "username-underline" }, null, -1))
20177
+ p[3] || (p[3] = k("span", { class: "sus-username-underline" }, null, -1))
20178
20178
  ], 10, Zk),
20179
20179
  n.comment.tagName === "owner" ? (K(), X("span", tv, " 博主 ")) : ce("", !0),
20180
20180
  n.comment.replyName ? (K(), X("span", nv, [
@@ -20186,7 +20186,7 @@ const Fk = { class: "sus-comment" }, Vk = {
20186
20186
  k("div", ov, [
20187
20187
  $e(k("button", {
20188
20188
  onClick: u,
20189
- class: "action-btn action-delete"
20189
+ class: "sus-action-btn action-delete"
20190
20190
  }, [...p[4] || (p[4] = [
20191
20191
  k("span", null, "删除", -1)
20192
20192
  ])], 512), [
@@ -20194,7 +20194,7 @@ const Fk = { class: "sus-comment" }, Vk = {
20194
20194
  ]),
20195
20195
  $e(k("button", {
20196
20196
  onClick: c,
20197
- class: "action-btn action-edit"
20197
+ class: "sus-action-btn action-edit"
20198
20198
  }, [...p[5] || (p[5] = [
20199
20199
  k("span", null, "编辑", -1)
20200
20200
  ])], 512), [
@@ -20202,7 +20202,7 @@ const Fk = { class: "sus-comment" }, Vk = {
20202
20202
  ]),
20203
20203
  $e(k("button", {
20204
20204
  onClick: a,
20205
- class: "action-btn action-reply"
20205
+ class: "sus-action-btn action-reply"
20206
20206
  }, [...p[6] || (p[6] = [
20207
20207
  k("span", null, "回复", -1)
20208
20208
  ])], 512), [
@@ -20213,16 +20213,16 @@ const Fk = { class: "sus-comment" }, Vk = {
20213
20213
  ]),
20214
20214
  k("div", lv, [
20215
20215
  n.comment.privacy ? (K(), X("div", av, [
20216
- p[7] || (p[7] = k("div", { class: "private-overlay" }, null, -1)),
20216
+ p[7] || (p[7] = k("div", { class: "sus-private-overlay" }, null, -1)),
20217
20217
  k("span", {
20218
- class: "private-text",
20218
+ class: "sus-private-text",
20219
20219
  innerHTML: n.comment.content
20220
20220
  }, null, 8, cv)
20221
20221
  ])) : (K(), X("div", uv, [
20222
20222
  k("div", {
20223
20223
  ref_key: "contentDom",
20224
20224
  ref: r,
20225
- class: "content-text",
20225
+ class: "sus-content-text",
20226
20226
  innerHTML: n.comment.content + (n.comment.contentExtends || "")
20227
20227
  }, null, 8, dv),
20228
20228
  i.value ? (K(), X("button", {
@@ -20246,7 +20246,7 @@ const Fk = { class: "sus-comment" }, Vk = {
20246
20246
  ])])) : ce("", !0)
20247
20247
  ]))
20248
20248
  ]),
20249
- n.showFooter && n.comment.area && !n.comment.privacy ? (K(), X("footer", fv, [
20249
+ n.showFooter && n.comment.area && !n.comment.privacy ? (K(), X("div", fv, [
20250
20250
  k("div", hv, [
20251
20251
  k("span", pv, [
20252
20252
  p[9] || (p[9] = k("svg", {
@@ -20285,13 +20285,13 @@ const Fk = { class: "sus-comment" }, Vk = {
20285
20285
  ])
20286
20286
  ]));
20287
20287
  }
20288
- }), ui = /* @__PURE__ */ mn(gv, [["__scopeId", "data-v-a0318dae"]]), yv = { class: "sus-comment__item" }, bv = { class: "sus-comment__item__inner" }, wv = {
20288
+ }), ui = /* @__PURE__ */ mn(gv, [["__scopeId", "data-v-25c45584"]]), yv = { class: "sus-comment__item" }, bv = {
20289
20289
  key: 0,
20290
20290
  class: "sus-item"
20291
- }, kv = { class: "sus-item__content" }, vv = { class: "sus-item__header" }, xv = { class: "replies-count" }, Sv = {
20291
+ }, wv = { class: "sus-item__content" }, kv = { class: "sus-item__header" }, vv = { class: "sus-replies-count" }, xv = {
20292
20292
  key: 1,
20293
20293
  class: "sus-item__more"
20294
- }, Cv = /* @__PURE__ */ qe({
20294
+ }, Sv = /* @__PURE__ */ qe({
20295
20295
  __name: "index",
20296
20296
  props: {
20297
20297
  comment: {},
@@ -20310,117 +20310,115 @@ const Fk = { class: "sus-comment" }, Vk = {
20310
20310
  function o(l) {
20311
20311
  r("on-remove", l);
20312
20312
  }
20313
- return (l, a) => (K(), X("article", yv, [
20314
- k("div", bv, [
20315
- ut(ui, {
20316
- comment: n.comment,
20317
- onOnReply: a[0] || (a[0] = (c) => i(n.comment)),
20318
- onOnEdit: a[1] || (a[1] = (c) => s(n.comment)),
20319
- onOnRemove: a[2] || (a[2] = (c) => o(n.comment)),
20320
- lineHeight: n.lineHeight,
20321
- showFooter: n.showFooter
20322
- }, null, 8, ["comment", "lineHeight", "showFooter"]),
20323
- n.comment.child?.length > 0 ? (K(), X("div", wv, [
20324
- a[12] || (a[12] = k("div", { class: "sus-item__connector" }, [
20325
- k("svg", {
20326
- viewBox: "0 0 40 100",
20327
- preserveAspectRatio: "none"
20328
- }, [
20329
- k("path", {
20330
- d: "M20 0 L20 100",
20331
- stroke: "currentColor",
20332
- "stroke-width": "1",
20333
- fill: "none",
20334
- "stroke-dasharray": "4 4"
20335
- })
20336
- ])
20337
- ], -1)),
20313
+ return (l, a) => (K(), X("div", yv, [
20314
+ ut(ui, {
20315
+ comment: n.comment,
20316
+ onOnReply: a[0] || (a[0] = (c) => i(n.comment)),
20317
+ onOnEdit: a[1] || (a[1] = (c) => s(n.comment)),
20318
+ onOnRemove: a[2] || (a[2] = (c) => o(n.comment)),
20319
+ lineHeight: n.lineHeight,
20320
+ showFooter: n.showFooter
20321
+ }, null, 8, ["comment", "lineHeight", "showFooter"]),
20322
+ n.comment.child?.length > 0 ? (K(), X("div", bv, [
20323
+ a[12] || (a[12] = k("div", { class: "sus-item__connector" }, [
20324
+ k("svg", {
20325
+ viewBox: "0 0 40 100",
20326
+ preserveAspectRatio: "none"
20327
+ }, [
20328
+ k("path", {
20329
+ d: "M20 0 L20 100",
20330
+ stroke: "currentColor",
20331
+ "stroke-width": "1",
20332
+ fill: "none",
20333
+ "stroke-dasharray": "4 4"
20334
+ })
20335
+ ])
20336
+ ], -1)),
20337
+ k("div", wv, [
20338
20338
  k("div", kv, [
20339
- k("div", vv, [
20340
- a[10] || (a[10] = k("span", { class: "replies-label" }, "Responses", -1)),
20341
- k("span", xv, Ve(n.comment.child.length), 1)
20342
- ]),
20343
- ut(ui, {
20344
- onOnReply: a[3] || (a[3] = (c) => i(n.comment.child[0])),
20345
- onOnEdit: a[4] || (a[4] = (c) => s(n.comment.child[0])),
20346
- onOnRemove: a[5] || (a[5] = (c) => o(n.comment.child[0])),
20347
- comment: n.comment.child[0],
20348
- num: 2,
20349
- showFooter: n.showFooter,
20350
- lineHeight: n.lineHeight
20351
- }, null, 8, ["comment", "showFooter", "lineHeight"]),
20352
- n.comment.child?.length > 1 ? (K(), Sr(ui, {
20339
+ a[10] || (a[10] = k("span", { class: "sus-replies-label" }, "Responses", -1)),
20340
+ k("span", vv, Ve(n.comment.child.length), 1)
20341
+ ]),
20342
+ ut(ui, {
20343
+ onOnReply: a[3] || (a[3] = (c) => i(n.comment.child[0])),
20344
+ onOnEdit: a[4] || (a[4] = (c) => s(n.comment.child[0])),
20345
+ onOnRemove: a[5] || (a[5] = (c) => o(n.comment.child[0])),
20346
+ comment: n.comment.child[0],
20347
+ num: 2,
20348
+ showFooter: n.showFooter,
20349
+ lineHeight: n.lineHeight
20350
+ }, null, 8, ["comment", "showFooter", "lineHeight"]),
20351
+ n.comment.child?.length > 1 ? (K(), Sr(ui, {
20352
+ key: 0,
20353
+ onOnReply: a[6] || (a[6] = (c) => i(n.comment.child[1])),
20354
+ onOnEdit: a[7] || (a[7] = (c) => s(n.comment.child[1])),
20355
+ onOnRemove: a[8] || (a[8] = (c) => o(n.comment.child[1])),
20356
+ comment: n.comment.child[1],
20357
+ num: 3,
20358
+ showFooter: n.showFooter,
20359
+ lineHeight: n.lineHeight
20360
+ }, null, 8, ["comment", "showFooter", "lineHeight"])) : ce("", !0),
20361
+ n.comment.child?.length > 2 ? (K(), X("div", xv, [
20362
+ t.value ? ce("", !0) : (K(), X("button", {
20353
20363
  key: 0,
20354
- onOnReply: a[6] || (a[6] = (c) => i(n.comment.child[1])),
20355
- onOnEdit: a[7] || (a[7] = (c) => s(n.comment.child[1])),
20356
- onOnRemove: a[8] || (a[8] = (c) => o(n.comment.child[1])),
20357
- comment: n.comment.child[1],
20358
- num: 3,
20364
+ onClick: a[9] || (a[9] = (c) => t.value = !0),
20365
+ class: "sus-item-expand-btn"
20366
+ }, [...a[11] || (a[11] = [
20367
+ k("span", { class: "sus-expand-icon" }, [
20368
+ k("svg", {
20369
+ viewBox: "0 0 24 24",
20370
+ width: "16",
20371
+ height: "16"
20372
+ }, [
20373
+ k("path", {
20374
+ fill: "none",
20375
+ stroke: "currentColor",
20376
+ "stroke-width": "1.5",
20377
+ d: "M12 5v14m-7-7h14"
20378
+ })
20379
+ ])
20380
+ ], -1),
20381
+ k("span", { class: "expand-text" }, "查看全部", -1)
20382
+ ])])),
20383
+ t.value ? (K(!0), X(Br, { key: 1 }, ds(n.comment.child.slice(2), (c, u) => (K(), Sr(ui, {
20384
+ onOnReply: (d) => i(c),
20385
+ onOnEdit: (d) => s(c),
20386
+ onOnRemove: (d) => o(c),
20387
+ key: u,
20388
+ comment: c,
20389
+ num: 4 + u,
20359
20390
  showFooter: n.showFooter,
20360
20391
  lineHeight: n.lineHeight
20361
- }, null, 8, ["comment", "showFooter", "lineHeight"])) : ce("", !0),
20362
- n.comment.child?.length > 2 ? (K(), X("div", Sv, [
20363
- t.value ? ce("", !0) : (K(), X("button", {
20364
- key: 0,
20365
- onClick: a[9] || (a[9] = (c) => t.value = !0),
20366
- class: "sus-item-expand-btn"
20367
- }, [...a[11] || (a[11] = [
20368
- k("span", { class: "expand-icon" }, [
20369
- k("svg", {
20370
- viewBox: "0 0 24 24",
20371
- width: "16",
20372
- height: "16"
20373
- }, [
20374
- k("path", {
20375
- fill: "none",
20376
- stroke: "currentColor",
20377
- "stroke-width": "1.5",
20378
- d: "M12 5v14m-7-7h14"
20379
- })
20380
- ])
20381
- ], -1),
20382
- k("span", { class: "expand-text" }, "查看全部", -1)
20383
- ])])),
20384
- t.value ? (K(!0), X(Br, { key: 1 }, ds(n.comment.child.slice(2), (c, u) => (K(), Sr(ui, {
20385
- onOnReply: (d) => i(c),
20386
- onOnEdit: (d) => s(c),
20387
- onOnRemove: (d) => o(c),
20388
- key: u,
20389
- comment: c,
20390
- num: 4 + u,
20391
- showFooter: n.showFooter,
20392
- lineHeight: n.lineHeight
20393
- }, null, 8, ["onOnReply", "onOnEdit", "onOnRemove", "comment", "num", "showFooter", "lineHeight"]))), 128)) : ce("", !0)
20394
- ])) : ce("", !0)
20395
- ])
20396
- ])) : ce("", !0)
20397
- ])
20392
+ }, null, 8, ["onOnReply", "onOnEdit", "onOnRemove", "comment", "num", "showFooter", "lineHeight"]))), 128)) : ce("", !0)
20393
+ ])) : ce("", !0)
20394
+ ])
20395
+ ])) : ce("", !0)
20398
20396
  ]));
20399
20397
  }
20400
- }), Mv = /* @__PURE__ */ mn(Cv, [["__scopeId", "data-v-af40c685"]]), Ev = { class: "sus-top-item" }, Tv = { class: "sus-top-item__info sus-top-info" }, Ov = { class: "sus-top-item__user sus-top-name" }, Av = {
20398
+ }), Cv = /* @__PURE__ */ mn(Sv, [["__scopeId", "data-v-b5e4a2ff"]]), Mv = { class: "sus-top-item" }, Ev = { class: "sus-top-item__info sus-top-info" }, Tv = { class: "sus-top-item__user sus-top-name" }, Ov = {
20401
20399
  key: 0,
20402
20400
  class: "sus-top-item__reply sus-top-reply-tag"
20403
- }, Nv = ["innerHTML"], Rv = /* @__PURE__ */ qe({
20401
+ }, Av = ["innerHTML"], Nv = /* @__PURE__ */ qe({
20404
20402
  __name: "simple",
20405
20403
  props: {
20406
20404
  comment: {}
20407
20405
  },
20408
20406
  setup(n) {
20409
- return (e, t) => (K(), X("div", Ev, [
20410
- k("div", Tv, [
20411
- k("span", Ov, Ve(n.comment.userName) + ": ", 1),
20412
- n.comment.replyName ? (K(), X("span", Av, Ve("@" + n.comment.replyName), 1)) : ce("", !0)
20407
+ return (e, t) => (K(), X("div", Mv, [
20408
+ k("div", Ev, [
20409
+ k("span", Tv, Ve(n.comment.userName) + ": ", 1),
20410
+ n.comment.replyName ? (K(), X("span", Ov, Ve("@" + n.comment.replyName), 1)) : ce("", !0)
20413
20411
  ]),
20414
20412
  k("span", {
20415
20413
  class: "sus-top-item__content sus-top-text",
20416
20414
  innerHTML: n.comment.content
20417
- }, null, 8, Nv)
20415
+ }, null, 8, Av)
20418
20416
  ]));
20419
20417
  }
20420
- }), Dv = /* @__PURE__ */ mn(Rv, [["__scopeId", "data-v-84858c63"]]), Iv = { class: "sus-top-item__user sus-top-user" }, Pv = {
20418
+ }), Rv = /* @__PURE__ */ mn(Nv, [["__scopeId", "data-v-84858c63"]]), Dv = { class: "sus-top-item__user sus-top-user" }, Iv = {
20421
20419
  key: 0,
20422
20420
  class: "sus-top-item__user-avatar sus-top-avatar"
20423
- }, Lv = ["src"], Bv = { class: "sus-top-item__user-owner sus-top-username" }, $v = { class: "sus-top-item__user-reply sus-top-reply" }, _v = ["innerHTML"], zv = /* @__PURE__ */ qe({
20421
+ }, Pv = ["src"], Lv = { class: "sus-top-item__user-owner sus-top-username" }, Bv = { class: "sus-top-item__user-reply sus-top-reply" }, $v = ["innerHTML"], _v = /* @__PURE__ */ qe({
20424
20422
  __name: "index",
20425
20423
  props: {
20426
20424
  comment: {}
@@ -20435,8 +20433,8 @@ const Fk = { class: "sus-comment" }, Vk = {
20435
20433
  class: "sus-top-item",
20436
20434
  onClick: r
20437
20435
  }, [
20438
- k("div", Iv, [
20439
- n.comment.userAvatar ? (K(), X("div", Pv, [
20436
+ k("div", Dv, [
20437
+ n.comment.userAvatar ? (K(), X("div", Iv, [
20440
20438
  k("img", {
20441
20439
  alt: "",
20442
20440
  class: "sus-avatar",
@@ -20444,28 +20442,28 @@ const Fk = { class: "sus-comment" }, Vk = {
20444
20442
  decoding: "async",
20445
20443
  src: n.comment.userAvatar,
20446
20444
  onerror: "this.onerror=null,this.src='/error.webp'"
20447
- }, null, 8, Lv)
20445
+ }, null, 8, Pv)
20448
20446
  ])) : ce("", !0),
20449
- k("div", Bv, Ve(n.comment.userName), 1),
20450
- k("div", $v, Ve(n.comment.replyName ? "@" + n.comment.replyName : ""), 1)
20447
+ k("div", Lv, Ve(n.comment.userName), 1),
20448
+ k("div", Bv, Ve(n.comment.replyName ? "@" + n.comment.replyName : ""), 1)
20451
20449
  ]),
20452
20450
  k("div", {
20453
20451
  class: "sus-top-item__content sus-top-content",
20454
20452
  innerHTML: n.comment.content
20455
- }, null, 8, _v)
20453
+ }, null, 8, $v)
20456
20454
  ]));
20457
20455
  }
20458
- }), Hv = /* @__PURE__ */ mn(zv, [["__scopeId", "data-v-91174ba1"]]), Fv = [zk, Mv, Hv, Dv], qv = {
20456
+ }), zv = /* @__PURE__ */ mn(_v, [["__scopeId", "data-v-91174ba1"]]), Hv = [zk, Cv, zv, Rv], Kv = {
20459
20457
  install(n) {
20460
- Fv.forEach((e) => {
20458
+ Hv.forEach((e) => {
20461
20459
  n.component(e.name, e);
20462
20460
  });
20463
20461
  }
20464
20462
  };
20465
20463
  export {
20466
20464
  zk as SuSComment,
20467
- Mv as SuSList,
20468
- Dv as SuSSimpleTop,
20469
- Hv as SuSTop,
20470
- qv as default
20465
+ Cv as SuSList,
20466
+ Rv as SuSSimpleTop,
20467
+ zv as SuSTop,
20468
+ Kv as default
20471
20469
  };