优化页面

This commit is contained in:
pengxiaolong
2025-06-09 23:02:05 +08:00
parent c5042d08c3
commit 8c70c2c850
605 changed files with 661 additions and 945 deletions

View File

@@ -1 +1 @@
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../../common/Toast/index.js"),n=require("../../../utils/env.js"),u=require("../../common/Toast/type.js"),r=e.defineComponent({__name:"manage-notification",props:{data:{type:Object,default:()=>({})},isAuthor:{type:Boolean,default:!1}},emits:["update","close"],setup(r,{emit:o}){const i=r,a=e.ref({}),f=e.ref(""),l=e.ref(!1),s=e.ref(!1);e.watchEffect((()=>{a.value=i.data,f.value=a.value.notification,l.value=i.isAuthor}));const c=o,v=()=>{f.value.length>150?t.Toast({message:e.Wt.t("TUIGroup.群公告字数超出限制最大长度为150"),type:u.TOAST_TYPE.ERROR}):(f.value&&f.value!==a.value.notification&&(c("update",{key:"notification",value:f.value}),e.nextTick$1((()=>{f.value=""}))),s.value=!s.value)};return(t,u)=>e.e({a:!e.unref(n.isUniFrameWork)},e.unref(n.isUniFrameWork)?e.e({o:e.t(e.unref(e.Wt).t("TUIGroup.群公告")),p:e.t(e.unref(e.Wt).t("关闭")),q:e.o$1((e=>{c("close","notification")})),r:e.unref(s)},e.unref(s)?{s:e.n(e.unref(n.isUniFrameWork)?"uni-height":""),t:e.o$1(v),v:e.unref(f),w:e.o$1((t=>e.isRef(f)?f.value=t.detail.value:null))}:e.e({x:!e.unref(a).notification},e.unref(a).notification?{z:e.t(e.unref(a).notification)}:{y:e.t(e.unref(e.Wt).t("TUIGroup.暂无公告"))}),{A:e.unref(l)},e.unref(l)?e.e({B:e.unref(s)},e.unref(s)?{C:e.t(e.unref(e.Wt).t("TUIGroup.发布")),D:e.o$1(v)}:{E:e.t(e.unref(e.Wt).t("TUIGroup.编辑")),F:e.o$1((t=>s.value=!e.unref(s)))}):{}):e.e({b:e.unref(s)},e.unref(s)?{c:e.o$1(v),d:e.unref(f),e:e.o$1((t=>e.isRef(f)?f.value=t.detail.value:null))}:e.e({f:!e.unref(a).notification},e.unref(a).notification?{h:e.t(e.unref(a).notification)}:{g:e.t(e.unref(e.Wt).t("TUIGroup.暂无公告"))}),{i:e.unref(l)},e.unref(l)?e.e({j:e.unref(s)},e.unref(s)?{k:e.t(e.unref(e.Wt).t("TUIGroup.发布")),l:e.o$1(v)}:{m:e.t(e.unref(e.Wt).t("TUIGroup.编辑")),n:e.o$1((t=>s.value=!e.unref(s)))}):{}))}}),o=e._export_sfc(r,[["__scopeId","data-v-004c98e1"]]);wx.createComponent(o);
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../../common/Toast/index.js"),n=require("../../../utils/env.js"),u=require("../../common/Toast/type.js"),r=e.defineComponent({__name:"manage-notification",props:{data:{type:Object,default:()=>({})},isAuthor:{type:Boolean,default:!1}},emits:["update","close"],setup(r,{emit:o}){const i=r,a=e.ref({}),f=e.ref(""),l=e.ref(!1),s=e.ref(!1);e.watchEffect((()=>{a.value=i.data,f.value=a.value.notification,l.value=i.isAuthor}));const c=o,v=()=>{f.value.length>150?t.Toast({message:e.Wt.t("TUIGroup.群公告字数超出限制最大长度为150"),type:u.TOAST_TYPE.ERROR}):(f.value&&f.value!==a.value.notification&&(c("update",{key:"notification",value:f.value}),e.nextTick$1((()=>{f.value=""}))),s.value=!s.value)};return(t,u)=>e.e({a:!e.unref(n.isUniFrameWork)},e.unref(n.isUniFrameWork)?e.e({o:e.t(e.unref(e.Wt).t("TUIGroup.群公告")),p:e.t(e.unref(e.Wt).t("关闭")),q:e.o$1((e=>{c("close","notification")})),r:e.unref(s)},e.unref(s)?{s:e.n(e.unref(n.isUniFrameWork)?"uni-height":""),t:e.o$1(v),v:e.unref(f),w:e.o$1((t=>e.isRef(f)?f.value=t.detail.value:null))}:e.e({x:!e.unref(a).notification},e.unref(a).notification?{z:e.t(e.unref(a).notification)}:{y:e.t(e.unref(e.Wt).t("TUIGroup.暂无公告"))}),{A:e.unref(l)},e.unref(l)?e.e({B:e.unref(s)},e.unref(s)?{C:e.t(e.unref(e.Wt).t("TUIGroup.发布")),D:e.o$1(v)}:{E:e.t(e.unref(e.Wt).t("TUIGroup.编辑")),F:e.o$1((t=>s.value=!e.unref(s)))}):{}):e.e({b:e.unref(s)},e.unref(s)?{c:e.o$1(v),d:e.unref(f),e:e.o$1((t=>e.isRef(f)?f.value=t.detail.value:null))}:e.e({f:!e.unref(a).notification},e.unref(a).notification?{h:e.t(e.unref(a).notification)}:{g:e.t(e.unref(e.Wt).t("TUIGroup.暂无公告"))}),{i:e.unref(l)},e.unref(l)?e.e({j:e.unref(s)},e.unref(s)?{k:e.t(e.unref(e.Wt).t("TUIGroup.发布")),l:e.o$1(v)}:{m:e.t(e.unref(e.Wt).t("TUIGroup.编辑")),n:e.o$1((t=>s.value=!e.unref(s)))}):{}))}}),o=e._export_sfc(r,[["__scopeId","data-v-bd710001"]]);wx.createComponent(o);