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
10 KiB
2 lines
10 KiB
1 year ago
|
import{d as E,e,f as l,F as i,u as k,k as r,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}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 L,e as P,i as T}from"./naive-ui-eecf2ec3.js";import{_ as B,V as M,W as O}from"./index-1e276b8f.js";import{e as W}from"./paopao-video-player-2fe58954.js";const Z={class:"link-wrap"},q={class:"link-txt-wrap"},z=["href"],F={class:"link-txt"},H=E({__name:"post-link",props:{links:{default:()=>[]}},setup(f){const o=f;return(u,a)=>{const x=$;return e(),l("div",Z,[(e(!0),l(i,null,k(o.links,n=>(e(),l("div",{class:"link-item",key:n.id},[r(x,{class:"hash-link"},{default:s(()=>[r(c(N))]),_:1}),C("div",q,[C("a",{href:n.content,class:"hash-link",target:"_blank",onClick:a[0]||(a[0]=y(()=>{},["stop"]))},[C("span",F,I(n.content),1)],8,z)])]))),128))])}}});const st=B(H,[["__scopeId","data-v-36eef76b"]]),X={key:0},rt=E({__name:"post-video",props:{videos:{default:()=>[]},full:{type:Boolean,default:!1}},setup(f){const o=f;return(u,a)=>{const x=A,n=V;return o.videos.length>0?(e(),l("div",X,[r(n,{"x-gap":4,"y-gap":4,cols:u.full?1:5},{default:s(()=>[r(x,{span:u.full?1:3},{default:s(()=>[(e(!0),l(i,null,k(o.videos,v=>(e(),g(c(W),{onClick:a[0]||(a[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)}}}),Y={class:"images-wrap"},ot=E({__name:"post-image",props:{imgs:{default:()=>[]}},setup(f){const o=f,u="https://paopao-assets.oss-cn-shanghai.aliyuncs.com/public/404.png",a="?x-oss-process=image/resize,m_fill,w_300,h_300,limit_0/auto-orient,1/format,png";return(x,n)=>{const v=R,_=A,p=V,w=L;return e(),l("div",Y,[[1].includes(o.imgs.length)?(e(),g(w,{key:0},{default:s(()=>[r(p,{"x-gap":4,"y-gap":4,cols:2},{default:s(()=>[(e(!0),l(i,null,k(o.imgs,t=>(e(),g(_,{key:t.id},{default:s(()=>[r(v,{onError:()=>t.content=c(u),onClick:n[0]||(n[0]=y(()=>{},["stop"])),class:"post-img x1","object-fit":"cover",src:t.content+c(a),"preview-src":t.content},null,8,["onError","src","preview-src"])]),_:2},1024))),128))]),_:1})]),_:1})):m("",!0),[2,3].includes(o.imgs.length)?(e(),g(w,{key:1},{default:s(()=>[r(p,{"x-gap":4,"y-gap":4,cols:3},{default:s(()=>[(e(!0),l(i,null,k(o.imgs,t=>(e(),g(_,{key:t.id},{default:s(()=>[r(v,{onError:()=>t.content=c(u),onClick:n[1]||(n[1]=y(()=>{},["stop"])),class:"post-img x2","object-fit":"cover",src:t.content+c(a),"preview-src":t.content},null,8,["onError","src","preview-src"])]),_:2},1024))),128))]),_:1})]),_:1})):m("",!0),[4].includes(o.imgs.length)?(e(),g(w,{key:2},{default:s(()=>[r(p,{"x-gap":4,"y-gap":4,cols:4},{default:s(()=>[(e(!0),l(i,null,k(o.imgs,t=>(e(),g(_,{key:t.id},{default:s(()=>[r(v,{onError:()=>t.content=c(u),onClick:n[2]||(n[2]=y(()=>{},["stop"])),class:"post-img x3","object-fit":"cover",src:t.content+c(a),"preview-src":t.content},null,8,["onError","src","preview-src"])]),_:2},1024))),128))]),_:1})]),_:1})):m("",!0),[5].includes(o.imgs.length)?(e(),g(w,{key:3},{default:s(()=>[r(p,{"x-gap":4,"y-gap":4,cols:3},{default:s(()=>[(e(!0),l(i,null,k(o.imgs,(t,d)=>(e(),l(i,{key:t.id},[d<3?(e(),g(_,{key:0},{default:s(()=>[r(v,{onError:()=>t.content=c(u),onClick:n[3]||(n[3]=y(()=>{},["stop"])),class:"post-img x2","object-fit":"cover",src:t.content+c(a),"preview-src":t.content},null,8,["onError","src","preview-src"])]),_:2},1024)):m("",!0)],64))),128))]),_:1}),r(p,{"x-gap":4,"y-gap":4,cols:2,style:{"margin-top":"4px"}},{default:s(()=>[(e(!0),l(i,null,k(o.imgs,(t,d)=>(e(),l(i,{key:t.id},[d>=3?(e(),g(_,{key:0},{default:s(()=>[r(v,{onError:()=>t.content=c(u),onClick:n[4]||(n[4]=y(()=>{},["stop"])),class:"post-img x1","object-fit":"cover",src:t.content+c(a),"preview-src":t.content},null,8,["onError","src","preview-src"])]),_:2},1024)):m("",!0)],64))),128))]),_:1})]),_:1})):m("",!0),[6].includes(o.imgs.length)?(e(),g(w,{key:4},{default:s(()=>[r(p,{"x-gap":4,"y-gap":4,cols:3},{default:s(()=>[(e(!0),l(i,null,k(o.imgs,(t,d)=>(e(),l(i,{key:t.id},[d<3?(e(),g(_,{key:0},{default:s(()=>[r(v,{onError:()=>t.
|