UNPKG

ideaz-element

Version:

<p align="center"> <a href="" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/logo.svg" alt="Ideaz Element" width="180" style="width: 180px;" /> </a> </p>

3 lines (2 loc) 822 B
"use strict";require("../../../shared/index.cjs");const a=require("./props.cjs"),n=require("vue"),c=require("../../../hooks/useNamespace.cjs"),m=require("../../../shared/resolveDynamicComponent.cjs"),g=n.defineComponent({name:"ZRow",props:a.rowProps,emits:["input","update:modelValue"],setup(e,{slots:r}){const u=c.useNamespace("row"),o=n.computed(()=>e.gutter);n.provide("rowContextKey",{gutter:o});const i=n.computed(()=>{const t={};return e.gutter&&(t.marginRight=t.marginLeft=`-${e.gutter/2}px`),t}),s=n.computed(()=>[u.b(),u.is(`justify-${e.justify}`,e.justify!=="start"),u.is(`align-${e.align}`,e.align!=="top")]);return()=>{var t;return m.resolveDynamicComponent({name:e.tag,attrs:{class:s.value,style:i.value},content:(t=r.default)==null?void 0:t.call(r)})}}});module.exports=g; //# sourceMappingURL=index.cjs.map