讨论显示字数

This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-04-30 16:37:35 +08:00
parent a4d97e2ad2
commit 39475bc8bb
20 changed files with 125 additions and 78 deletions

View File

@@ -18,7 +18,7 @@ const client_manifest = {
"module": true,
"prefetch": true,
"preload": true,
"file": "Umv-bsyi.js",
"file": "B18V_g5i.js",
"name": "error-404",
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue",
"isDynamicEntry": true,
@@ -38,7 +38,7 @@ const client_manifest = {
"module": true,
"prefetch": true,
"preload": true,
"file": "BGDbQN3C.js",
"file": "CZEVIQE1.js",
"name": "error-500",
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue",
"isDynamicEntry": true,
@@ -58,7 +58,7 @@ const client_manifest = {
"module": true,
"prefetch": true,
"preload": true,
"file": "FpbUUKD2.js",
"file": "BtJiJbkr.js",
"name": "entry",
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/entry.js",
"isEntry": true,
@@ -67,7 +67,7 @@ const client_manifest = {
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue"
],
"css": [
"entry.ZDbmrW6p.css"
"entry.Ac-gJZ5d.css"
],
"assets": [
"logo.DlviZpxD.png",
@@ -75,8 +75,8 @@ const client_manifest = {
],
"_globalCSS": true
},
"entry.ZDbmrW6p.css": {
"file": "entry.ZDbmrW6p.css",
"entry.Ac-gJZ5d.css": {
"file": "entry.Ac-gJZ5d.css",
"resourceType": "style",
"prefetch": true,
"preload": true

File diff suppressed because one or more lines are too long

View File

@@ -5380,7 +5380,7 @@ const _sfc_main$3 = {
const _component_el_button = ElButton;
_push(`<div${ssrRenderAttrs(mergeProps({ class: "answer-discuss" }, _attrs))}>`);
if (unref(editCommentState)) {
_push(`<div class="edit-comment flexcenter"><div class="box"><div class="text">编辑评论</div><div class="input-box"><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="500" placeholder="说说你的想法或疑问…">${ssrInterpolate(unref(editInput))}</textarea></div>`);
_push(`<div class="edit-comment flexcenter"><div class="box"><div class="text">编辑评论</div><div class="input-box"><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="1000" placeholder="说说你的想法或疑问…">${ssrInterpolate(unref(editInput))}</textarea></div>`);
if (unref(editPicture).url) {
_push(`<div class="picture-box"><div class="picture"><img class="close"${ssrRenderAttr("src", _imports_3$1)}><img class="img"${ssrRenderAttr("src", unref(editPicture).base64 || unref(editPicture).url)}></div></div>`);
} else {
@@ -5390,7 +5390,13 @@ const _sfc_main$3 = {
ssrRenderList(emojiData, (item) => {
_push(`<div class="emoji-icon">${ssrInterpolate(item)}</div>`);
});
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div></div></div><div class="btn-list flexacenter"><div class="btn">取消</div><div class="btn send">发送</div></div></div></div>`);
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div>`);
if (unref(editInput)) {
_push(`<div class="numberwords" style="${ssrRenderStyle({ "margin": "0" })}">${ssrInterpolate(unref(editInput).length)}/1000</div>`);
} else {
_push(`<!---->`);
}
_push(`</div></div><div class="btn-list flexacenter"><div class="btn">取消</div><div class="btn send">发送</div></div></div></div>`);
} else {
_push(`<!---->`);
}
@@ -5400,7 +5406,7 @@ const _sfc_main$3 = {
} else {
_push(`<!---->`);
}
_push(`<textarea class="input-textarea flex1" maxlength="500" placeholder="说说你的看法…">${ssrInterpolate(unref(inputTextarea))}</textarea></div>`);
_push(`<textarea class="input-textarea flex1" maxlength="1000" placeholder="说说你的看法…">${ssrInterpolate(unref(inputTextarea))}</textarea></div>`);
if (unref(picture).url) {
_push(`<div class="picture-box"><div class="picture"><img class="close"${ssrRenderAttr("src", _imports_3$1)}><img class="img"${ssrRenderAttr("src", unref(picture).base64 || unref(picture).url)}></div></div>`);
} else {
@@ -5410,7 +5416,13 @@ const _sfc_main$3 = {
ssrRenderList(emojiData, (item) => {
_push(`<div class="emoji-icon">${ssrInterpolate(item)}</div>`);
});
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div><div class="btn">发送</div></div></div><div class="comments-box"><!--[-->`);
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div><div class="flexacenter">`);
if (unref(inputTextarea)) {
_push(`<div class="numberwords">${ssrInterpolate(unref(inputTextarea).length)}/1000</div>`);
} else {
_push(`<!---->`);
}
_push(`<div class="btn">发送</div></div></div></div><div class="comments-box"><!--[-->`);
ssrRenderList(unref(commentList), (item, index) => {
var _a, _b, _c, _d;
_push(`<div class="comments-item"><div class="comments-header flexacenter"><div class="comments-header-left flexacenter"><img class="comments-avatar"${ssrRenderAttr("src", item["avatar"])}><div class="comments-username">${ssrInterpolate(item["nickname"] || "匿名用户")}</div><div class="comments-time">${ssrInterpolate(unref(handleDate)(item["timestamp"]))}</div>`);
@@ -5453,7 +5465,7 @@ const _sfc_main$3 = {
_push(`<!---->`);
}
if (item["childState"]) {
_push(`<div class="input-box"><img class="cross"${ssrRenderAttr("src", _imports_12)}><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="500" placeholder="说说你的看法…">${ssrInterpolate(item["commentInput"])}</textarea></div>`);
_push(`<div class="input-box"><img class="cross"${ssrRenderAttr("src", _imports_12)}><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="1000" placeholder="说说你的看法…">${ssrInterpolate(item["commentInput"])}</textarea></div>`);
if ((_d = item.picture) == null ? void 0 : _d.url) {
_push(`<div class="picture-box"><div class="picture"><img class="close"${ssrRenderAttr("src", _imports_3$1)}><img class="img"${ssrRenderAttr("src", item.picture.base64 || item.picture.url)}></div></div>`);
} else {
@@ -5463,7 +5475,13 @@ const _sfc_main$3 = {
ssrRenderList(emojiData, (item2) => {
_push(`<div class="emoji-icon">${ssrInterpolate(item2)}</div>`);
});
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div><div class="btn">发送</div></div></div>`);
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div><div class="flexacenter">`);
if (item["commentInput"]) {
_push(`<div class="numberwords">${ssrInterpolate(item.commentInput.length)}/1000</div>`);
} else {
_push(`<!---->`);
}
_push(`<div class="btn">发送</div></div></div></div>`);
} else {
_push(`<!---->`);
}
@@ -5518,7 +5536,7 @@ const _sfc_main$3 = {
_push(`<!---->`);
}
if (ite["childState"]) {
_push(`<div class="input-box"><img class="cross"${ssrRenderAttr("src", _imports_12)}><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="500"${ssrRenderAttr("placeholder", "回复“" + (ite["nickname"] || "匿名用户") + "”:")}>${ssrInterpolate(ite["commentInput"])}</textarea></div>`);
_push(`<div class="input-box"><img class="cross"${ssrRenderAttr("src", _imports_12)}><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="1000"${ssrRenderAttr("placeholder", "回复“" + (ite["nickname"] || "匿名用户") + "”:")}>${ssrInterpolate(ite["commentInput"])}</textarea></div>`);
if ((_e = ite.picture) == null ? void 0 : _e.url) {
_push(`<div class="picture-box"><div class="picture"><img class="close"${ssrRenderAttr("src", _imports_3$1)}><img class="img"${ssrRenderAttr("src", ite.picture.base64 || ite.picture.url)}></div></div>`);
} else {
@@ -5528,7 +5546,13 @@ const _sfc_main$3 = {
ssrRenderList(emojiData, (item2) => {
_push(`<div class="emoji-icon">${ssrInterpolate(item2)}</div>`);
});
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div><div class="btn">发送</div></div></div>`);
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div><div class="flexacenter">`);
if (ite["commentInput"]) {
_push(`<div class="numberwords">${ssrInterpolate(ite.commentInput.length)}/1000</div>`);
} else {
_push(`<!---->`);
}
_push(`<div class="btn">发送</div></div></div></div>`);
} else {
_push(`<!---->`);
}

View File

@@ -2,10 +2,10 @@ const interopDefault = r => r.default || r || [];
const styles = {
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/entry.js": () => import('./entry-styles.BMEJ6WCM.mjs').then(interopDefault),
"app.vue": () => import('./app-styles.CoC7fGAv.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue": () => import('./error-404-styles.wRz_-Rw1.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue": () => import('./error-500-styles.TwxDbBgG.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue?vue&type=style&index=0&scoped=075d74b5&lang.css": () => import('./error-404-styles.BNmKahfp.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue": () => import('./error-404-styles.wRz_-Rw1.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue?vue&type=style&index=0&scoped=84d937c0&lang.css": () => import('./error-500-styles.Cx3AJg0u.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue?vue&type=style&index=0&scoped=075d74b5&lang.css": () => import('./error-404-styles.BNmKahfp.mjs').then(interopDefault),
"app.vue?vue&type=style&index=0&lang.css": () => import('./app-styles.DjCRi-SL.mjs').then(interopDefault)
};