game/nginx/admin/assets/index-DpfIyoxx.js
2026-04-20 16:07:22 +08:00

2 lines
5.1 KiB
JavaScript

var e=Object.defineProperty,l=Object.defineProperties,t=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,n=(l,t,a)=>t in l?e(l,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[t]=a,i=(e,l)=>{for(var t in l||(l={}))s.call(l,t)&&n(e,t,l[t]);if(a)for(var t of a(l))r.call(l,t)&&n(e,t,l[t]);return e},o=(e,a)=>l(e,t(a));import{d as c,dp as p,cB as d,a1 as u,N as b,ag as y,ar as h,a9 as v,a8 as f,at as g,a0 as m,b as w,p as S,e as N,f as k,I as O,J as j,h as x,g as W,bw as $,bx as D,bs as E,c as A,i as P,q as z,s as I,j as _,v as C,aq as q,ae as B,az as J,aA as R}from"./index-BoIUJTA2.js";const F=Symbol("elDescriptions");var G=c({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup:()=>({descriptions:v(F,{})}),render(){var e;const l=p(this.cell),t=((null==(e=this.cell)?void 0:e.dirs)||[]).map(e=>{const{dir:l,arg:t,modifiers:a,value:s}=e;return[l,s,t,a]}),{border:a,direction:s}=this.descriptions,r="vertical"===s,n=()=>{var e,t,a;return(null==(a=null==(t=null==(e=this.cell)?void 0:e.children)?void 0:t.label)?void 0:a.call(t))||l.label},i=()=>{var e,l,t;return null==(t=null==(l=null==(e=this.cell)?void 0:e.children)?void 0:l.default)?void 0:t.call(l)},o=l.span,c=l.rowspan,v=l.align?`is-${l.align}`:"",f=l.labelAlign?`is-${l.labelAlign}`:v,g=l.className,m=l.labelClassName,w="label"===this.type&&(l.labelWidth||this.descriptions.labelWidth)||l.width,S={width:d(w),minWidth:d(l.minWidth)},N=u("descriptions");switch(this.type){case"label":return b(y(this.tag,{style:S,class:[N.e("cell"),N.e("label"),N.is("bordered-label",a),N.is("vertical-label",r),f,m],colSpan:r?o:1,rowspan:r?1:c},n()),t);case"content":return b(y(this.tag,{style:S,class:[N.e("cell"),N.e("content"),N.is("bordered-content",a),N.is("vertical-content",r),v,g],colSpan:r?o:2*o-1,rowspan:r?2*c-1:c},i()),t);default:{const e=n(),a={},s=d(l.labelWidth||this.descriptions.labelWidth);return s&&(a.width=s,a.display="inline-block"),b(y("td",{style:S,class:[N.e("cell"),v],colSpan:o,rowspan:c},[h(e)?void 0:y("span",{style:a,class:[N.e("label"),m]},e),y("span",{class:[N.e("content"),g]},i())]),t)}}}});const H=f({row:{type:g(Array),default:()=>[]}}),K=c({name:"ElDescriptionsRow"});var L=m(c(o(i({},K),{props:H,setup(e){const l=v(F,{});return(e,t)=>"vertical"===S(l).direction?(N(),w(O,{key:0},[k("tr",null,[(N(!0),w(O,null,j(e.row,(e,l)=>(N(),x(S(G),{key:`tr1-${l}`,cell:e,tag:"th",type:"label"},null,8,["cell"]))),128))]),k("tr",null,[(N(!0),w(O,null,j(e.row,(e,l)=>(N(),x(S(G),{key:`tr2-${l}`,cell:e,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(N(),w("tr",{key:1},[(N(!0),w(O,null,j(e.row,(e,t)=>(N(),w(O,{key:`tr3-${t}`},[S(l).border?(N(),w(O,{key:0},[W(S(G),{cell:e,tag:"td",type:"label"},null,8,["cell"]),W(S(G),{cell:e,tag:"td",type:"content"},null,8,["cell"])],64)):(N(),x(S(G),{key:1,cell:e,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}})),[["__file","descriptions-row.vue"]]);const M=f({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:$,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number],default:""}}),Q="ElDescriptionsItem",T=c({name:"ElDescriptions"});var U=m(c(o(i({},T),{props:M,setup(e){const l=e,t=u("descriptions"),a=D(),s=E();B(F,l);const r=A(()=>[t.b(),t.m(a.value)]),n=(e,l,t,a=!1)=>(e.props||(e.props={}),l>t&&(e.props.span=t),a&&(e.props.span=l),e),i=()=>{if(!s.default)return[];const e=q(s.default()).filter(e=>{var l;return(null==(l=null==e?void 0:e.type)?void 0:l.name)===Q}),t=[];let a=[],r=l.column,i=0;const o=[];return e.forEach((s,c)=>{var p,d,u;const b=(null==(p=s.props)?void 0:p.span)||1,y=(null==(d=s.props)?void 0:d.rowspan)||1,h=t.length;if(o[h]||(o[h]=0),y>1)for(let e=1;e<y;e++)o[u=h+e]||(o[u]=0),o[h+e]++,i++;if(o[h]>0&&(r-=o[h],o[h]=0),c<e.length-1&&(i+=b>r?r:b),c===e.length-1){const e=l.column-i%l.column;return a.push(n(s,e,r,!0)),void t.push(a)}b<r?(r-=b,a.push(s)):(a.push(n(s,b,r)),t.push(a),r=l.column,a=[])}),t};return(e,l)=>(N(),w("div",{class:z(S(r))},[e.title||e.extra||e.$slots.title||e.$slots.extra?(N(),w("div",{key:0,class:z(S(t).e("header"))},[k("div",{class:z(S(t).e("title"))},[I(e.$slots,"title",{},()=>[_(C(e.title),1)])],2),k("div",{class:z(S(t).e("extra"))},[I(e.$slots,"extra",{},()=>[_(C(e.extra),1)])],2)],2)):P("v-if",!0),k("div",{class:z(S(t).e("body"))},[k("table",{class:z([S(t).e("table"),S(t).is("bordered",e.border)])},[k("tbody",null,[(N(!0),w(O,null,j(i(),(e,l)=>(N(),x(L,{key:l,row:e},null,8,["row"]))),128))])],2)],2)],2))}})),[["__file","description.vue"]]);const V=["left","center","right"],X=f({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number],default:""},align:{type:String,values:V,default:"left"},labelAlign:{type:String,values:V},className:{type:String,default:""},labelClassName:{type:String,default:""}}),Y=c({name:Q,props:X}),Z=J(U,{DescriptionsItem:Y}),ee=R(Y);export{Z as E,ee as a};