mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
2 lines
6.8 KiB
JavaScript
2 lines
6.8 KiB
JavaScript
/*! For license information please see 3525.d9290447.js.LICENSE.txt */
|
|
(self.webpackChunk=self.webpackChunk||[]).push([["3525"],{85914:function(t,a,e){"use strict";e.r(a);var n=e("22905");e("36981");let u=n.Z;a.default=u},22905:function(t,a,e){"use strict";var n=e("80681"),u=e("11848"),r=e("23483"),l=e("19294"),s=e("54369"),f={class:"demo-vertical-space"};a.Z=(0,n.aZ)({__name:"index",setup(t){var a=(0,s.q)({"zh-CN":{title2:"\u5728\u5217\u5143\u7D20\u4E4B\u95F4\u589E\u52A0\u95F4\u8DDD",justify:"\u5BF9\u9F50\u65B9\u5F0F",vertical:"\u5782\u76F4\u95F4\u8DDD"},"en-US":{title2:"Column Spacing",justify:"Justify Content",vertical:"Vertical Spacing"}});return(t,e)=>{var s=(0,n.up)("demo-block");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n.Wm)(s,{title:(0,u.SU)(a)("basicUsage")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,u.SU)(r.ZP),null,{default:(0,n.w5)(()=>[(0,n.Wm)((0,u.SU)(l.ZP),{span:"8"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 8")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"8"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 8")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"8"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 8")]),_:1})]),_:1}),(0,n.Wm)((0,u.SU)(r.ZP),null,{default:(0,n.w5)(()=>[(0,n.Wm)((0,u.SU)(l.ZP),{span:"4"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 4")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"10",offset:"4"},{default:(0,n.w5)(()=>[(0,n.Uk)(" offset: 4, span: 10 ")]),_:1})]),_:1}),(0,n.Wm)((0,u.SU)(r.ZP),null,{default:(0,n.w5)(()=>[(0,n.Wm)((0,u.SU)(l.ZP),{offset:"12",span:"12"},{default:(0,n.w5)(()=>[(0,n.Uk)(" offset: 12, span: 12 ")]),_:1})]),_:1})]),_:1},8,["title"]),(0,n.Wm)(s,{title:(0,u.SU)(a)("title2")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,u.SU)(r.ZP),{gutter:"20"},{default:(0,n.w5)(()=>[(0,n.Wm)((0,u.SU)(l.ZP),{span:"8"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 8")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"8"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 8")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"8"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 8")]),_:1})]),_:1})]),_:1},8,["title"]),(0,n.Wm)(s,{title:(0,u.SU)(a)("vertical")},{default:(0,n.w5)(()=>[(0,n._)("div",f,[(0,n.Wm)((0,u.SU)(r.ZP),{gutter:[20,20]},{default:(0,n.w5)(()=>[(0,n.Wm)((0,u.SU)(l.ZP),{span:"12"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 12")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"12"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 12")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"12"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 12")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"12"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 12")]),_:1})]),_:1})])]),_:1},8,["title"]),(0,n.Wm)(s,{title:(0,u.SU)(a)("justify")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,u.SU)(r.ZP),{justify:"center"},{default:(0,n.w5)(()=>[(0,n.Wm)((0,u.SU)(l.ZP),{span:"6"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 6")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"6"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 6")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"6"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 6")]),_:1})]),_:1}),(0,n.Wm)((0,u.SU)(r.ZP),{justify:"end"},{default:(0,n.w5)(()=>[(0,n.Wm)((0,u.SU)(l.ZP),{span:"6"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 6")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"6"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 6")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"6"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 6")]),_:1})]),_:1}),(0,n.Wm)((0,u.SU)(r.ZP),{justify:"space-between"},{default:(0,n.w5)(()=>[(0,n.Wm)((0,u.SU)(l.ZP),{span:"6"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 6")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"6"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 6")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"6"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 6")]),_:1})]),_:1}),(0,n.Wm)((0,u.SU)(r.ZP),{justify:"space-around"},{default:(0,n.w5)(()=>[(0,n.Wm)((0,u.SU)(l.ZP),{span:"6"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 6")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"6"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 6")]),_:1}),(0,n.Wm)((0,u.SU)(l.ZP),{span:"6"},{default:(0,n.w5)(()=>[(0,n.Uk)("span: 6")]),_:1})]),_:1})]),_:1},8,["title"])],64)}}})},19294:function(t,a,e){"use strict";var n=e("63112"),u=e("24657"),r=(0,n.n)(u.C);a.ZP=r},23483:function(t,a,e){"use strict";var n=e("63112"),u=e("66125"),r=(0,n.n)(u.ZP);a.ZP=r},78335:function(t,a,e){"use strict";e.d(a,{Ce:function(){return s},J5:function(){return r},Or:function(){return u},SI:function(){return i},SQ:function(){return p},Vg:function(){return n},ir:function(){return l},qM:function(){return f}});var n=null,u=[Number,String],r={type:Boolean,default:!0},l=t=>({type:t,required:!0}),s=()=>({type:Array,default:()=>[]}),f=t=>({type:Number,default:t}),i=t=>({type:u,default:t}),p=t=>({type:String,default:t})},63112:function(t,a,e){"use strict";e.d(a,{n:function(){return u}});var n=e("20358");function u(t){return t.install=a=>{var{name:e}=t;e&&(a.component(e,t),a.component((0,n._A)("-".concat(e)),t))},t}},24657:function(t,a,e){"use strict";e("82116"),e("17989");var n=e("80681"),u=e("62568"),r=e("78335"),l=e("12308"),s=e("22300"),f=e("66125"),[i,p]=(0,u.do)("col"),c={tag:(0,r.SQ)("div"),span:(0,r.SI)(0),offset:r.Or};a.C=(0,n.aZ)({name:i,props:c,setup(t,a){var{slots:e}=a,{parent:u,index:r}=(0,s.NB)(f.oA),i=(0,n.Fl)(()=>{if(u){var{spaces:t,verticalSpaces:a}=u,e={};if(t&&t.value&&t.value[r.value]){var{left:n,right:s}=t.value[r.value];e={paddingLeft:n?"".concat(n,"px"):null,paddingRight:s?"".concat(s,"px"):null}}var{bottom:f}=a.value[r.value]||{};return(0,l.l7)(e,{marginBottom:f?"".concat(f,"px"):null})}});return()=>{var{tag:a,span:u,offset:r}=t;return(0,n.Wm)(a,{style:i.value,class:p({[u]:u,["offset-".concat(r)]:r})},{default:()=>{var t;return[null===(t=e.default)||void 0===t?void 0:t.call(e)]}})}}})},66125:function(t,a,e){"use strict";e.d(a,{oA:function(){return i}}),e("82116"),e("17989"),e("86795"),e("31564"),e("8649"),e("70629"),e("61557");var n=e("80681"),u=e("62568"),r=e("78335"),l=e("22300"),[s,f]=(0,u.do)("row"),i=Symbol(s),p={tag:(0,r.SQ)("div"),wrap:r.J5,align:String,gutter:{type:[String,Number,Array],default:0},justify:String};a.ZP=(0,n.aZ)({name:s,props:p,setup(t,a){var{slots:e}=a,{children:u,linkChildren:r}=(0,l.$E)(i),s=(0,n.Fl)(()=>{var t=[[]],a=0;return u.forEach((e,n)=>{(a+=Number(e.span))>24?(t.push([n]),a-=24):t[t.length-1].push(n)}),t}),p=(0,n.Fl)(()=>{var a=0;a=Array.isArray(t.gutter)?Number(t.gutter[0])||0:Number(t.gutter);var e=[];return a?(s.value.forEach(t=>{var n=a*(t.length-1)/t.length;t.forEach((t,u)=>{if(0===u)e.push({right:n});else{var r=a-e[t-1].right;e.push({left:r,right:n-r})}})}),e):e});return r({spaces:p,verticalSpaces:(0,n.Fl)(()=>{var{gutter:a}=t,e=[];if(Array.isArray(a)&&a.length>1){var n=Number(a[1])||0;if(n<=0)return e;s.value.forEach((t,a)=>{a!==s.value.length-1&&t.forEach(()=>{e.push({bottom:n})})})}return e})}),()=>{var{tag:a,wrap:u,align:r,justify:l}=t;return(0,n.Wm)(a,{class:f({["align-".concat(r)]:r,["justify-".concat(l)]:l,nowrap:!u})},{default:()=>{var t;return[null===(t=e.default)||void 0===t?void 0:t.call(e)]}})}}})},36981:function(t,a,e){"use strict";e.r(t.exports={})},41371:function(t,a,e){"use strict";e.r(t.exports={})}}]); |