1 |
- !function(){function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,a=[],o=!0,d=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(c){d=!0,i=c}finally{try{o||null==r.return||r.return()}finally{if(d)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);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 r(e,t)}(e,t)||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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var n=document.createElement("style");n.innerHTML=".van-grid{display:flex;flex-wrap:wrap}:root{--van-grid-item-content-padding: var(--van-padding-md) var(--van-padding-xs);--van-grid-item-content-background-color: var(--van-background-color-light);--van-grid-item-content-active-color: var(--van-active-color);--van-grid-item-icon-size: .74667rem;--van-grid-item-text-color: var(--van-gray-7);--van-grid-item-text-font-size: var(--van-font-size-sm)}.van-grid-item{position:relative;box-sizing:border-box}.van-grid-item--square{height:0}.van-grid-item__icon{font-size:var(--van-grid-item-icon-size)}.van-grid-item__text{color:var(--van-grid-item-text-color);font-size:var(--van-grid-item-text-font-size);line-height:1.5;word-break:break-all}.van-grid-item__icon+.van-grid-item__text{margin-top:var(--van-padding-xs)}.van-grid-item__content{display:flex;flex-direction:column;box-sizing:border-box;height:100%;padding:var(--van-grid-item-content-padding);background:var(--van-grid-item-content-background-color)}.van-grid-item__content:after{z-index:1;border-width:0 var(--van-border-width-base) var(--van-border-width-base) 0}.van-grid-item__content--square{position:absolute;top:0;right:0;left:0}.van-grid-item__content--center{align-items:center;justify-content:center}.van-grid-item__content--horizontal{flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__text{margin:0 0 0 var(--van-padding-xs)}.van-grid-item__content--reverse{flex-direction:column-reverse}.van-grid-item__content--reverse .van-grid-item__text{margin:0 0 var(--van-padding-xs)}.van-grid-item__content--horizontal.van-grid-item__content--reverse{flex-direction:row-reverse}.van-grid-item__content--horizontal.van-grid-item__content--reverse .van-grid-item__text{margin:0 var(--van-padding-xs) 0 0}.van-grid-item__content--surround:after{border-width:var(--van-border-width-base)}.van-grid-item__content--clickable{cursor:pointer}.van-grid-item__content--clickable:active{background-color:var(--van-grid-item-content-active-color)}\n",document.head.appendChild(n),System.register(["./index-legacy.b2528a15.js"],(function(r){"use strict";var n,i,a,o,d,c,l,v,s,u,g,m,f,b,p,_,x,h,y;return{setters:[function(e){n=e.E,i=e.H,a=e.G,o=e.ab,d=e.d,c=e.aj,l=e.i,v=e.a2,s=e.b4,u=e.O,g=e.J,m=e.K,f=e.at,b=e.L,p=e.W,_=e.b5,x=e.a8,h=e.aw,y=e.N}],execute:function(){var z=t(n("grid"),2),w=z[0],k=z[1],S={square:Boolean,center:i,border:i,gutter:a,reverse:Boolean,iconSize:a,direction:String,clickable:Boolean,columnNum:o(4)},j=Symbol(w),q=d({name:w,props:S,setup:function(t,r){var n=r.slots;return(0,c(j).linkChildren)({props:t}),function(){var r;return l("div",{style:{paddingLeft:v(t.gutter)},class:[k(),e({},s,t.border&&!t.gutter)]},[null==(r=n.default)?void 0:r.call(n)])}}}),P=(r("G",u(q)),t(n("grid-item"),2)),A=P[0],C=P[1],B=g({},m,{dot:Boolean,text:String,icon:String,badge:a,iconColor:String,iconPrefix:String,badgeProps:Object}),O=d({name:A,props:B,setup:function(t,r){var n=r.slots,i=f(j),a=i.parent,o=i.index,d=b();if(a){var c=p((function(){var e=a.props,t=e.square,r=e.gutter,n=e.columnNum,i="".concat(100/+n,"%"),d={flexBasis:i};if(t)d.paddingTop=i;else if(r){var c=v(r);d.paddingRight=c,o.value>=n&&(d.marginTop=c)}return d})),s=p((function(){var e=a.props,t=e.square,r=e.gutter;if(t&&r){var n=v(r);return{right:n,bottom:n,height:"auto"}}}));return function(){var r=a.props,i=r.center,o=r.border,v=r.square,u=r.gutter,g=r.reverse,m=r.direction,f=r.clickable,b=[C("content",[m,{center:i,square:v,reverse:g,clickable:f,surround:o&&u}]),e({},_,o)];return l("div",{class:[C({square:v})],style:c.value},[l("div",{role:f?"button":void 0,class:b,style:s.value,tabindex:f?0:void 0,onClick:d},[n.default?n.default():[n.icon?l(h,x({dot:t.dot,content:t.badge},t.badgeProps),{default:n.icon}):t.icon?l(y,{dot:t.dot,name:t.icon,size:a.props.iconSize,badge:t.badge,class:C("icon"),color:t.iconColor,badgeProps:t.badgeProps,classPrefix:t.iconPrefix},null):void 0,n.text?n.text():t.text?l("span",{class:C("text")},[t.text]):void 0]])])}}}});r("a",u(O))}}}))}();
|