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
1 year ago
|
import{d as b,e,f as l,F as i,u as k,k as o,w as s,bf as c,j as C,y,x as I,q as g,Y as m,H as j,A as D,h as E}from"./@vue-a481fc63.js";import{$ as N,a0 as U}from"./@vicons-f0266f88.js";import{j as $,V as A,W as V,m as R,X as F,e as L,i as P}from"./naive-ui-eecf2ec3.js";import{_ as B,V as T,W as M}from"./index-3489d7cc.js";import{e as O}from"./paopao-video-player-2fe58954.js";const W={class:"link-wrap"},Z={class:"link-txt-wrap"},q=["href"],z={class:"link-txt"},H=b({__name:"post-link",props:{links:{default:()=>[]}},setup(d){const r=d;return(a,p)=>{const x=$;return e(),l("div",W,[(e(!0),l(i,null,k(r.links,n=>(e(),l("div",{class:"link-item",key:n.id},[o(x,{class:"hash-link"},{default:s(()=>[o(c(N))]),_:1}),C("div",Z,[C("a",{href:n.content,class:"hash-link",target:"_blank",onClick:p[0]||(p[0]=y(()=>{},["stop"]))},[C("span",z,I(n.content),1)],8,q)])]))),128))])}}});const st=B(H,[["__scopeId","data-v-36eef76b"]]),X={key:0},ot=b({__name:"post-video",props:{videos:{default:()=>[]},full:{type:Boolean,default:!1}},setup(d){const r=d;return(a,p)=>{const x=A,n=V;return r.videos.length>0?(e(),l("div",X,[o(n,{"x-gap":4,"y-gap":4,cols:a.full?1:5},{default:s(()=>[o(x,{span:a.full?1:3},{default:s(()=>[(e(!0),l(i,null,k(r.videos,u=>(e(),g(c(O),{onClick:p[0]||(p[0]=y(()=>{},["stop"])),key:u.id,src:u.content,colors:["#18a058","#2aca75"],hoverable:!0,theme:"gradient"},null,8,["src"]))),128))]),_:1},8,["span"])]),_:1},8,["cols"])])):m("",!0)}}}),Y={class:"images-wrap"},rt=b({__name:"post-image",props:{imgs:{default:()=>[]}},setup(d){const r=d,a="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,png";return(x,n)=>{const u=R,f=A,v=V,w=F;return e(),l("div",Y,[[1].includes(r.imgs.length)?(e(),g(w,{key:0},{default:s(()=>[o(v,{"x-gap":4,"y-gap":4,cols:2},{default:s(()=>[(e(!0),l(i,null,k(r.imgs,t=>(e(),g(f,{key:t.id},{default:s(()=>[o(u,{onError:()=>t.content=c(a),onClick:n[0]||(n[0]=y(()=>{},["stop"])),class:"post-img x1","object-fit":"cover",src:t.content+c(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(w,{key:1},{default:s(()=>[o(v,{"x-gap":4,"y-gap":4,cols:3},{default:s(()=>[(e(!0),l(i,null,k(r.imgs,t=>(e(),g(f,{key:t.id},{default:s(()=>[o(u,{onError:()=>t.content=c(a),onClick:n[1]||(n[1]=y(()=>{},["stop"])),class:"post-img x2","object-fit":"cover",src:t.content+c(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(w,{key:2},{default:s(()=>[o(v,{"x-gap":4,"y-gap":4,cols:4},{default:s(()=>[(e(!0),l(i,null,k(r.imgs,t=>(e(),g(f,{key:t.id},{default:s(()=>[o(u,{onError:()=>t.content=c(a),onClick:n[2]||(n[2]=y(()=>{},["stop"])),class:"post-img x3","object-fit":"cover",src:t.content+c(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(w,{key:3},{default:s(()=>[o(v,{"x-gap":4,"y-gap":4,cols:3},{default:s(()=>[(e(!0),l(i,null,k(r.imgs,(t,_)=>(e(),l(i,{key:t.id},[_<3?(e(),g(f,{key:0},{default:s(()=>[o(u,{onError:()=>t.content=c(a),onClick:n[3]||(n[3]=y(()=>{},["stop"])),class:"post-img x2","object-fit":"cover",src:t.content+c(p),"preview-src":t.content},null,8,["onError","src","preview-src"])]),_:2},1024)):m("",!0)],64))),128))]),_:1}),o(v,{"x-gap":4,"y-gap":4,cols:2,style:{"margin-top":"4px"}},{default:s(()=>[(e(!0),l(i,null,k(r.imgs,(t,_)=>(e(),l(i,{key:t.id},[_>=3?(e(),g(f,{key:0},{default:s(()=>[o(u,{onError:()=>t.content=c(a),onClick:n[4]||(n[4]=y(()=>{},["stop"])),class:"post-img x1","object-fit":"cover",src:t.content+c(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(w,{key:4},{default:s(()=>[o(v,{"x-gap":4,"y-gap":4,cols:3},{default:s(()=>[(e(!0),l(i,null,k(r.imgs,(t,_)=>(e(),l(i,{key:t.id},[_<3?(e(),g(f,{key:0},{default:s(()=>[o(u,{onError:(
|