index-legacy.e4343e46.js 3.1 KB

1
  1. !function(){function e(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function r(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var n,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(n=t.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}System.register(["./index-legacy.90c82f08.js"],(function(t){"use strict";var n,o,i,a,u,l,c,s,d,f,p,g,b,v,m,y,h,x,S;return{setters:[function(e){n=e.t,o=e.v,i=e.z,a=e.w,u=e.d,l=e.x,c=e.c,s=e.U,d=e.bh,f=e.D,p=e.N,g=e.ae,b=e.C,v=e.af,m=e.y,y=e.bi,h=e.E,x=e.aL,S=e.a5}],execute:function(){var P=r(n("grid"),2),j=P[0],q=P[1],w={square:Boolean,center:o,border:o,gutter:i,reverse:Boolean,iconSize:i,direction:String,clickable:Boolean,columnNum:a(4)},A=Symbol(j),C=u({name:j,props:w,setup:function(r,t){var n=t.slots;return(0,l(A).linkChildren)({props:r}),function(){var t;return c("div",{style:{paddingLeft:s(r.gutter)},class:[q(),e({},d,r.border&&!r.gutter)]},[null==(t=n.default)?void 0:t.call(n)])}}}),k=(t("G",f(C)),r(n("grid-item"),2)),B=k[0],z=k[1],I=p({},g,{dot:Boolean,text:String,icon:String,badge:i,iconColor:String,iconPrefix:String,badgeProps:Object}),O=u({name:B,props:I,setup:function(r,t){var n=t.slots,o=b(A),i=o.parent,a=o.index,u=v();if(i){var l=m((function(){var e=i.props,r=e.square,t=e.gutter,n=e.columnNum,o="".concat(100/+n,"%"),u={flexBasis:o};if(r)u.paddingTop=o;else if(t){var l=s(t);u.paddingRight=l,a.value>=n&&(u.marginTop=l)}return u})),d=m((function(){var e=i.props,r=e.square,t=e.gutter;if(r&&t){var n=s(t);return{right:n,bottom:n,height:"auto"}}}));return function(){var t=i.props,o=t.center,a=t.border,s=t.square,f=t.gutter,p=t.reverse,g=t.direction,b=t.clickable,v=[z("content",[g,{center:o,square:s,reverse:p,clickable:b,surround:a&&f}]),e({},y,a)];return c("div",{class:[z({square:s})],style:l.value},[c("div",{role:b?"button":void 0,class:v,style:d.value,tabindex:b?0:void 0,onClick:u},[n.default?n.default():[n.icon?c(x,h({dot:r.dot,content:r.badge},r.badgeProps),{default:n.icon}):r.icon?c(S,{dot:r.dot,name:r.icon,size:i.props.iconSize,badge:r.badge,class:z("icon"),color:r.iconColor,badgeProps:r.badgeProps,classPrefix:r.iconPrefix},null):void 0,n.text?n.text():r.text?c("span",{class:z("text")},[r.text]):void 0]])])}}console.error("[Vant] <GridItem> must be a child component of <Grid>.")}});t("a",f(O))}}}))}();