1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/Chris_Chiang-gin-admin

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
PageWrapper.0f991710.js 3.8 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
chris Отправлено 4 лет назад 40fc9b4
var e=Object.defineProperty,t=Object.defineProperties,o=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,l=(t,o,n)=>o in t?e(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,a=(e,t)=>{for(var o in t||(t={}))s.call(t,o)&&l(e,o,t[o]);if(n)for(var o of n(t))r.call(t,o)&&l(e,o,t[o]);return e},i=(e,n)=>t(e,o(n));import{c as g,q as c,p as d}from"./index.36aa7878.js";import{j as f,o as p,m as u,n as h,Q as v,x as m,bj as C,r as b,i as y,an as $,u as x,C as H,J as j,K as F,N as P,b1 as S,ag as O,P as w,S as _,X as k,q as W,W as A}from"./vendor.0af35baf.js";import{u as B}from"./usePageContext.37d2295e.js";/* empty css *//* empty css */import{o as R}from"./onMountedOrActivated.28436c92.js";var q=f({name:"PageFooter",inheritAttrs:!1,setup(){const{prefixCls:e}=g("page-footer"),{getCalcContentWidth:t}=c();return{prefixCls:e,getCalcContentWidth:t}}});const N=m()(((e,t,o,n,s,r)=>(p(),u("div",{class:e.prefixCls,style:{width:e.getCalcContentWidth}},[h("div",{class:`${e.prefixCls}__left`},[v(e.$slots,"left",{},void 0,!0)],2),v(e.$slots,"default",{},void 0,!0),h("div",{class:`${e.prefixCls}__right`},[v(e.$slots,"right",{},void 0,!0)],2)],6))));q.render=N,q.__scopeId="data-v-3ebffc87";var I=f({name:"PageWrapper",components:{PageFooter:q,PageHeader:C},inheritAttrs:!1,props:{title:d.string,dense:d.bool,ghost:d.bool,content:d.string,contentStyle:{type:Object},contentBackground:d.bool,contentFullHeight:d.bool,contentClass:d.string,fixedHeight:d.bool},setup(e,{slots:t}){const o=b(null),n=b(null),s=b(0),{prefixCls:r,prefixVar:l}=g("page-wrapper"),{contentHeight:c,setPageHeight:d,pageHeight:f}=B(),p=y((()=>[r,{[`${r}--dense`]:e.dense}])),u=y((()=>(null==t?void 0:t.leftFooter)||(null==t?void 0:t.rightFooter))),h=y((()=>Object.keys($(t,"default","leftFooter","rightFooter","headerContent")))),v=y((()=>{const{contentFullHeight:t,contentStyle:o,fixedHeight:n}=e;if(!t)return a({},o);const r=`${x(f)}px`;return i(a(i(a({},o),{minHeight:r}),n?{height:r}:{}),{paddingBottom:`${x(s)}px`})})),m=y((()=>{const{contentBackground:t,contentClass:o}=e;return[`${r}-content`,o,{[`${r}-content-bg`]:t}]}));function C(){var t,r,a,i;if(!e.contentFullHeight)return;const g=x(n),f=x(o);s.value=0;const p=null==g?void 0:g.$el;p&&(s.value+=null!=(t=null==p?void 0:p.offsetHeight)?t:0);let u=0;const h=null==f?void 0:f.$el;h&&(u+=null!=(r=null==h?void 0:h.offsetHeight)?r:0);let v=0;const m="0px";let C=m,b=m;const y=document.querySelectorAll(`.${l}-page-wrapper-content`);if(y&&y.length>0){const e=y[0],t=getComputedStyle(e);C=null!=(a=null==t?void 0:t.marginBottom)?a:m,b=null!=(i=null==t?void 0:t.marginTop)?i:m}if(C){v+=Number(C.replace(/[^\d]/g,""))}if(b){v+=Number(b.replace(/[^\d]/g,""))}null==d||d(x(c)-x(s)-u-v)}return H((()=>[null==c?void 0:c.value,u.value]),(()=>{C()}),{flush:"post",immediate:!0}),R((()=>{j((()=>{C()}))})),{getContentStyle:v,footerRef:n,headerRef:o,getClass:p,getHeaderSlots:h,prefixCls:r,getShowFooter:u,pageHeight:f,omit:$,getContentClass:m}}});I.render=function(e,t,o,n,s,r){const l=F("PageHeader"),a=F("PageFooter");return p(),u("div",{class:e.getClass},[e.content||e.$slots.headerContent||e.title||e.getHeaderSlots.length?(p(),u(l,P({key:0,ghost:e.ghost,title:e.title},e.$attrs,{ref:"headerRef"}),S({default:w((()=>[e.content?(p(),u(_,{key:0},[k(W(e.content),1)],64)):v(e.$slots,"headerContent",{key:1})])),_:2},[O(e.getHeaderSlots,(t=>({name:t,fn:w((o=>[v(e.$slots,t,o)]))})))]),1040,["ghost","title"])):A("",!0),h("div",{class:["overflow-hidden",e.getContentClass],style:e.getContentStyle},[v(e.$slots,"default")],6),e.getShowFooter?(p(),u(a,{key:1,ref:"footerRef"},{left:w((()=>[v(e.$slots,"leftFooter")])),right:w((()=>[v(e.$slots,"rightFooter")])),_:1},512)):A("",!0)],2)};export{I as _};

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://gitlife.ru/oschina-mirror/Chris_Chiang-gin-admin.git
git@gitlife.ru:oschina-mirror/Chris_Chiang-gin-admin.git
oschina-mirror
Chris_Chiang-gin-admin
Chris_Chiang-gin-admin
main