| 1 |
- import{ac as U,s as V,M as L,d as W,u as q,a4 as s,k as I,w as J,a1 as K,_ as g,f as Q,c as v,G as X,a as G,P as N,ad as F,a7 as Y,B as r}from"./index-DhgeYuDI.js";import{u as Z,C as B}from"./index-CByZ5nRv.js";const ee=()=>U()&&window.document.documentElement;let f;const te=()=>{if(!ee())return!1;if(f!==void 0)return f;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),f=e.scrollHeight===1,document.body.removeChild(e),f},ae=()=>{const e=V(!1);return L(()=>{e.value=te()}),e},ne={small:8,middle:16,large:24},le=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:N.oneOf(F("horizontal","vertical")).def("horizontal"),align:N.oneOf(F("start","end","center","baseline")),wrap:Y()});function oe(e){return typeof e=="string"?ne[e]:e||0}const i=W({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:le(),slots:Object,setup(e,T){let{slots:c,attrs:h}=T;const{prefixCls:n,space:y,direction:C}=q("space",e),[H,O]=Z(n),_=ae(),l=s(()=>{var t,a,o;return(o=(t=e.size)!==null&&t!==void 0?t:(a=y==null?void 0:y.value)===null||a===void 0?void 0:a.size)!==null&&o!==void 0?o:"small"}),S=I(),u=I();J(l,()=>{[S.value,u.value]=(Array.isArray(l.value)?l.value:[l.value,l.value]).map(t=>oe(t))},{immediate:!0});const z=s(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),M=s(()=>K(n.value,O.value,`${n.value}-${e.direction}`,{[`${n.value}-rtl`]:C.value==="rtl",[`${n.value}-align-${z.value}`]:z.value})),j=s(()=>C.value==="rtl"?"marginLeft":"marginRight"),R=s(()=>{const t={};return _.value&&(t.columnGap=`${S.value}px`,t.rowGap=`${u.value}px`),g(g({},t),e.wrap&&{flexWrap:"wrap",marginBottom:`${-u.value}px`})});return()=>{var t,a;const{wrap:o,direction:k="horizontal"}=e,b=(t=c.default)===null||t===void 0?void 0:t.call(c),w=Q(b),A=w.length;if(A===0)return null;const d=(a=c.split)===null||a===void 0?void 0:a.call(c),P=`${n.value}-item`,D=S.value,x=A-1;return v("div",G(G({},h),{},{class:[M.value,h.class],style:[R.value,h.style]}),[w.map((E,p)=>{let $=b.indexOf(E);$===-1&&($=`$$space-${p}`);let m={};return _.value||(k==="vertical"?p<x&&(m={marginBottom:`${D/(d?2:1)}px`}):m=g(g({},p<x&&{[j.value]:`${D/(d?2:1)}px`}),o&&{paddingBottom:`${u.value}px`})),H(v(X,{key:$},[v("div",{class:P,style:m},[E]),p<x&&d&&v("span",{class:`${P}-split`,style:m},[d])]))})])}}});i.Compact=B;i.install=function(e){return e.component(i.name,i),e.component(B.name,B),e};const re=i;function ce(e){return r.get("/dataBigScreen/health/getTodayHealthData",{params:e})}function ue(e){return r.get("/dataBigScreen/health/getBuildData",{params:e})}function de(e){return r.get("/dataBigScreen/health/getBuildFloor",{params:e})}function pe(e){return r.get("/dataBigScreen/health/getBedNum",{params:e})}function me(e){return r.post("/dataBigScreen/health/getElderHealthPage",e)}const ge="/assets/searchTitle-CxdMS60T.png";export{re as _,ge as a,de as b,pe as c,ce as d,me as e,ue as g};
|