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.
1 lines
2.1 KiB
1 lines
2.1 KiB
import{e as g,am as u,f as r,k as _,l as $,a1 as b,w as h}from"./index.1762932289438.js";import{k as f,i as R,c as o,d as S,G as w,o as v,H as j,m as N,M as x,E as C,u as c,I as E,p as k}from"./vue.1762932289438.js";const K=g({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:r([Number,Object]),default:()=>u({})},sm:{type:r([Number,Object]),default:()=>u({})},md:{type:r([Number,Object]),default:()=>u({})},lg:{type:r([Number,Object]),default:()=>u({})},xl:{type:r([Number,Object]),default:()=>u({})}}),O=Symbol("rowContextKey"),P=f({name:"ElCol"}),B=f({...P,props:K,setup(p){const e=p,{gutter:l}=R(O,{gutter:o(()=>0)}),a=$("col"),i=o(()=>{const t={};return l.value&&(t.paddingLeft=t.paddingRight=`${l.value/2}px`),t}),d=o(()=>{const t=[];return["span","offset","pull","push"].forEach(s=>{const n=e[s];b(n)&&(s==="span"?t.push(a.b(`${e[s]}`)):n>0&&t.push(a.b(`${s}-${e[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{b(e[s])?t.push(a.b(`${s}-${e[s]}`)):S(e[s])&&Object.entries(e[s]).forEach(([n,y])=>{t.push(n!=="span"?a.b(`${s}-${n}-${y}`):a.b(`${s}-${y}`))})}),l.value&&t.push(a.is("guttered")),[a.b(),t]});return(t,m)=>(v(),w(E(t.tag),{class:C(c(d)),style:x(c(i))},{default:j(()=>[N(t.$slots,"default")]),_:3},8,["class","style"]))}});var I=_(B,[["__file","col.vue"]]);const F=h(I),L=["start","center","end","space-around","space-between","space-evenly"],A=["top","middle","bottom"],D=g({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:L,default:"start"},align:{type:String,values:A}}),G=f({name:"ElRow"}),H=f({...G,props:D,setup(p){const e=p,l=$("row"),a=o(()=>e.gutter);k(O,{gutter:a});const i=o(()=>{const t={};return e.gutter&&(t.marginRight=t.marginLeft=`-${e.gutter/2}px`),t}),d=o(()=>[l.b(),l.is(`justify-${e.justify}`,e.justify!=="start"),l.is(`align-${e.align}`,!!e.align)]);return(t,m)=>(v(),w(E(t.tag),{class:C(c(d)),style:x(c(i))},{default:j(()=>[N(t.$slots,"default")]),_:3},8,["class","style"]))}});var J=_(H,[["__file","row.vue"]]);const Q=h(J);export{F as E,Q as a};
|
|
|