Index-6ea8c29f.js 5.7 KB

1
  1. import{c as S,t as z,n as v,m as $,u as D,b,w as C,e as E,a as F,B as O,I}from"./index-6fe369de.js";import{C as T}from"./index-b65fba2c.js";import{I as V}from"./index-c9a903a0.js";import{d as w,c as n,a as P,m as G,b as k,e as B,f as e,h as m,F as L,k as H,t as K}from"./index-e4dd81d1.js";import{a as U,r as Y,u as A,b as J}from"./use-route-d0420bb1.js";const[j,M]=S("grid"),Q={square:Boolean,center:z,border:z,gutter:v,reverse:Boolean,iconSize:v,direction:String,clickable:Boolean,columnNum:$(4)},R=Symbol(j);var W=w({name:j,props:Q,setup(t,{slots:i}){const{linkChildren:o}=D(R);return o({props:t}),()=>{var s;return n("div",{style:{paddingLeft:b(t.gutter)},class:[M(),{[U]:t.border&&!t.gutter}]},[(s=i.default)==null?void 0:s.call(i)])}}});const X=C(W),[Z,_]=S("grid-item"),ee=E({},Y,{dot:Boolean,text:String,icon:String,badge:v,iconColor:String,iconPrefix:String,badgeProps:Object});var te=w({name:Z,props:ee,setup(t,{slots:i}){const{parent:o,index:s}=F(R),c=A();if(!o)return;const u=P(()=>{const{square:d,gutter:l,columnNum:a}=o.props,g=`${100/+a}%`,r={flexBasis:g};if(d)r.paddingTop=g;else if(l){const p=b(l);r.paddingRight=p,s.value>=+a&&(r.marginTop=p)}return r}),h=P(()=>{const{square:d,gutter:l}=o.props;if(d&&l){const a=b(l);return{right:a,bottom:a,height:"auto"}}}),x=()=>{if(i.icon)return n(O,G({dot:t.dot,content:t.badge},t.badgeProps),{default:i.icon});if(t.icon)return n(I,{dot:t.dot,name:t.icon,size:o.props.iconSize,badge:t.badge,class:_("icon"),color:t.iconColor,badgeProps:t.badgeProps,classPrefix:t.iconPrefix},null)},f=()=>{if(i.text)return i.text();if(t.text)return n("span",{class:_("text")},[t.text])},N=()=>i.default?i.default():[x(),f()];return()=>{const{center:d,border:l,square:a,gutter:g,reverse:r,direction:p,clickable:y}=o.props,q=[_("content",[p,{center:d,square:a,reverse:r,clickable:y,surround:l&&g}]),{[J]:l}];return n("div",{class:[_({square:a})],style:u.value},[n("div",{role:y?"button":void 0,class:q,style:h.value,tabindex:y?0:void 0,onClick:c},[N()])])}}});const ne=C(te);const ie={style:{height:"100vh",overflow:"hidden",display:"flex","flex-direction":"column"}},se={style:{padding:"10px 16px 0px 16px","background-image":"url('static/images/bg-home.png')","background-repeat":"no-repeat","background-position-y":"0px","background-size":"100% 120%"}},oe={style:{display:"flex","justify-content":"space-between","align-items":"center",color:"#ffffff"}},le=e("div",{style:{"font-size":"20px","font-weight":"bold"}},[e("span",null,"工作台")],-1),ae={style:{"line-height":"0px"}},re=e("div",{style:{"margin-top":"20px",display:"flex","justify-content":"space-between","align-items":"center",color:"#ffffff"}},[e("div",{style:{"font-size":"16px"}},[e("span",null,"Hi,"),e("span",null,"龙三郎")])],-1),de={style:{"margin-top":"10px","line-height":"0px"}},ce={style:{width:"100%","text-align":"left"}},ue=e("div",{style:{"font-size":"1rem",color:"#969799"}},[e("span",null,"个人设备")],-1),fe={style:{"font-size":"1rem",display:"flex","justify-content":"space-between","align-items":"baseline"}},ge=e("div",{style:{display:"flex","align-items":"baseline"}},[e("div",{style:{"font-size":"2rem","font-weight":"bold"}},"2640"),e("div",{style:{"margin-left":"5px","font-size":"1rem",color:"#969799"}},"台")],-1),pe={style:{width:"100%","text-align":"left"}},me=e("div",{style:{"font-size":"1rem",color:"#969799"}},[e("span",null,"产品类型")],-1),_e={style:{"font-size":"1rem",display:"flex","justify-content":"space-between","align-items":"baseline"}},he=e("div",{style:{display:"flex","align-items":"baseline"}},[e("div",{style:{"font-size":"2rem","font-weight":"bold"}},"5"),e("div",{style:{"margin-left":"5px","font-size":"1rem",color:"#969799"}},"类")],-1),xe={style:{padding:"0px 20px"}},ye={style:{display:"flex","justify-content":"space-between","border-radius":"2px","align-items":"center"}},ve={style:{"font-weight":"bold",display:"flex","align-items":"center"}},be=e("span",{style:{"margin-left":"4px"}},"新闻",-1),we={style:{color:"#0047FF","font-size":"0.9rem",display:"flex","align-items":"baseline"}},ze=e("span",{style:{"margin-right":"3px"}},"换一批",-1),Pe={style:{padding:"0px 0px 0px 0px",height:"0px","flex-grow":"1","overflow-y":"auto"}},ke={style:{height:"80px",display:"flex"}},Be={style:{"margin-right":"18px"}},Se={style:{width:"0px","flex-grow":"1",display:"flex","flex-direction":"column","justify-content":"space-between"}},Ce={style:{"font-weight":"bold","text-align":"left",color:"#000"}},Ie=e("div",{style:{display:"flex","justify-content":"space-between",color:"#969799"}},[e("div",null,"河南新闻"),e("div",null,"2024-06-11")],-1),je=e("div",{style:{height:"60px"}},null,-1),Ee=w({__name:"Index",setup(t){return(i,o)=>{const s=I,c=V,u=ne,h=X,x=T;return k(),B("div",ie,[e("div",se,[e("div",oe,[le,e("div",ae,[n(s,{name:"static/images/icon-search-white.png",size:"1.6rem"})])]),re,e("div",de,[n(c,{width:"100%",fit:"contain",src:"static/images/banner.png"})])]),e("div",null,[n(h,{square:!1,clickable:!1,border:!1,"column-num":"2",gutter:"16"},{default:m(()=>[n(u,null,{default:m(()=>[e("div",ce,[ue,e("div",fe,[ge,e("div",null,[n(s,{name:"static/images/icon-device2.png",size:"1.6rem"})])])])]),_:1}),n(u,null,{default:m(()=>[e("div",pe,[me,e("div",_e,[he,e("div",null,[n(s,{name:"static/images/icon-type.png",size:"1.6rem"})])])])]),_:1})]),_:1})]),e("div",xe,[e("div",ye,[e("div",null,[e("div",ve,[n(s,{name:"label-o",size:"1.1rem"}),be])]),e("div",we,[ze,n(s,{name:"replay",size:"1rem"})])])]),e("div",Pe,[(k(),B(L,null,H(10,f=>n(x,{clickable:"",to:"/article/detail/"+f},{default:m(()=>[e("div",ke,[e("div",Be,[n(c,{width:"80",height:"80",radius:"6",src:"static/images/banner.png"})]),e("div",Se,[e("div",Ce,[e("span",null,K(f)+"、公务员考试笔试,政审都过了,单位叫我去上班我要去吗?",1)]),Ie])])]),_:2},1032,["to"])),64))]),je])}}});export{Ee as default};