mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
9.9 KiB
2 lines
9.9 KiB
8 months ago
|
import{d as h,e,f as l,F as u,u as k,k as o,w as s,bk as a,j as C,y,x as I,q as g,Z as m,H as j,A as N,h as E}from"./@vue-CQsYufSu.js";import{$ as U,a0 as V}from"./@vicons-C3A8jsfr.js";import{j as $,V as A,W as B,m as R,X as P,e as T,i as Z}from"./naive-ui-DNcWoFGl.js";import{_ as D,W as L,X as M}from"./index-v3l9hw1O.js";import{e as O}from"./paopao-video-player-DAi68TC5.js";const W={class:"link-wrap"},X={class:"link-txt-wrap"},q=["href"],z={class:"link-txt"},F=h({__name:"post-link",props:{links:{default:()=>[]}},setup(f){const i=f;return(p,r)=>{const w=$;return e(),l("div",W,[(e(!0),l(u,null,k(i.links,n=>(e(),l("div",{class:"link-item",key:n.id},[o(w,{class:"hash-link"},{default:s(()=>[o(a(U))]),_:1}),C("div",X,[C("a",{href:n.content,class:"hash-link",target:"_blank",onClick:r[0]||(r[0]=y(()=>{},["stop"]))},[C("span",z,I(n.content),1)],8,q)])]))),128))])}}}),st=D(F,[["__scopeId","data-v-36eef76b"]]),H={key:0},rt=h({__name:"post-video",props:{videos:{default:()=>[]},full:{type:Boolean,default:!1}},setup(f){const i=f;return(p,r)=>{const w=A,n=B;return i.videos.length>0?(e(),l("div",H,[o(n,{"x-gap":4,"y-gap":4,cols:p.full?1:5},{default:s(()=>[o(w,{span:p.full?1:3},{default:s(()=>[(e(!0),l(u,null,k(i.videos,v=>(e(),g(a(O),{onClick:r[0]||(r[0]=y(()=>{},["stop"])),key:v.id,src:v.content,colors:["#18a058","#2aca75"],hoverable:!0,theme:"gradient"},null,8,["src"]))),128))]),_:1},8,["span"])]),_:1},8,["cols"])])):m("",!0)}}}),G={class:"images-wrap"},ot=h({__name:"post-image",props:{imgs:{default:()=>[]}},setup(f){const i="https://paopao-assets.oss-cn-shanghai.aliyuncs.com/public/404.png",p="?x-oss-process=image/resize,m_fill,w_300,h_300,limit_0/auto-orient,1/format,webp",r=f;return(w,n)=>{const v=R,d=A,c=B,x=P;return e(),l("div",G,[[1].includes(r.imgs.length)?(e(),g(x,{key:0},{default:s(()=>[o(c,{"x-gap":4,"y-gap":4,cols:2},{default:s(()=>[(e(!0),l(u,null,k(r.imgs,t=>(e(),g(d,{key:t.id},{default:s(()=>[o(v,{onError:()=>t.content=a(i),onClick:n[0]||(n[0]=y(()=>{},["stop"])),class:"post-img x1","object-fit":"cover",src:t.content+a(p),"preview-src":t.content},null,8,["onError","src","preview-src"])]),_:2},1024))),128))]),_:1})]),_:1})):m("",!0),[2,3].includes(r.imgs.length)?(e(),g(x,{key:1},{default:s(()=>[o(c,{"x-gap":4,"y-gap":4,cols:3},{default:s(()=>[(e(!0),l(u,null,k(r.imgs,t=>(e(),g(d,{key:t.id},{default:s(()=>[o(v,{onError:()=>t.content=a(i),onClick:n[1]||(n[1]=y(()=>{},["stop"])),class:"post-img x2","object-fit":"cover",src:t.content+a(p),"preview-src":t.content},null,8,["onError","src","preview-src"])]),_:2},1024))),128))]),_:1})]),_:1})):m("",!0),[4].includes(r.imgs.length)?(e(),g(x,{key:2},{default:s(()=>[o(c,{"x-gap":4,"y-gap":4,cols:4},{default:s(()=>[(e(!0),l(u,null,k(r.imgs,t=>(e(),g(d,{key:t.id},{default:s(()=>[o(v,{onError:()=>t.content=a(i),onClick:n[2]||(n[2]=y(()=>{},["stop"])),class:"post-img x3","object-fit":"cover",src:t.content+a(p),"preview-src":t.content},null,8,["onError","src","preview-src"])]),_:2},1024))),128))]),_:1})]),_:1})):m("",!0),[5].includes(r.imgs.length)?(e(),g(x,{key:3},{default:s(()=>[o(c,{"x-gap":4,"y-gap":4,cols:3},{default:s(()=>[(e(!0),l(u,null,k(r.imgs,(t,_)=>(e(),l(u,{key:t.id},[_<3?(e(),g(d,{key:0},{default:s(()=>[o(v,{onError:()=>t.content=a(i),onClick:n[3]||(n[3]=y(()=>{},["stop"])),class:"post-img x2","object-fit":"cover",src:t.content+a(p),"preview-src":t.content},null,8,["onError","src","preview-src"])]),_:2},1024)):m("",!0)],64))),128))]),_:1}),o(c,{"x-gap":4,"y-gap":4,cols:2,style:{"margin-top":"4px"}},{default:s(()=>[(e(!0),l(u,null,k(r.imgs,(t,_)=>(e(),l(u,{key:t.id},[_>=3?(e(),g(d,{key:0},{default:s(()=>[o(v,{onError:()=>t.content=a(i),onClick:n[4]||(n[4]=y(()=>{},["stop"])),class:"post-img x1","object-fit":"cover",src:t.content+a(p),"preview-src":t.content},null,8,["onError","src","preview-src"])]),_:2},1024)):m("",!0)],64))),128))]),_:1})]),_:1})):m("",!0),[6].includes(r.imgs.length)?(e(),g(x,{key:4},{default:s(()=>[o(c,{"x-gap":4,"y-gap":4,cols:3},{default:s(()=>[(e(!0),l(u,null,k(r.imgs,(t,_)=>(e(),l(u,{key:t.id},[_<3?(e(),g(d,{key:0},{default:s(()=>[o(v,{onError:()=>t.
|