index-legacy.207dc8c2.js 5.5 KB

1
  1. !function(){function l(l,a){return function(l){if(Array.isArray(l))return l}(l)||function(l,e){var a=null==l?null:"undefined"!=typeof Symbol&&l[Symbol.iterator]||l["@@iterator"];if(null==a)return;var n,r,t=[],i=!0,o=!1;try{for(a=a.call(l);!(i=(n=a.next()).done)&&(t.push(n.value),!e||t.length!==e);i=!0);}catch(c){o=!0,r=c}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return t}(l,a)||function(l,a){if(!l)return;if("string"==typeof l)return e(l,a);var n=Object.prototype.toString.call(l).slice(8,-1);"Object"===n&&l.constructor&&(n=l.constructor.name);if("Map"===n||"Set"===n)return Array.from(l);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(l,a)}(l,a)||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 e(l,e){(null==e||e>l.length)&&(e=l.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=l[a];return n}var a=document.createElement("style");a.innerHTML=':root{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: .64rem;--van-cell-vertical-padding: .26667rem;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background-color: var(--van-background-color-light);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-icon-size: .42667rem;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md)}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background-color)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:.02667rem solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__value--alone{color:var(--van-text-color);text-align:left}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}\n',document.head.appendChild(a),System.register(["./index-legacy.b2528a15.js"],(function(e){"use strict";var a,n,r,t,i,o,c,v,s,d,u,g;return{setters:[function(l){a=l.E,n=l.G,r=l.H,t=l.I,i=l.J,o=l.K,c=l.d,v=l.L,s=l.i,d=l.M,u=l.N,g=l.O}],execute:function(){var f=l(a("cell"),2),b=f[0],h=f[1],p=e("c",{icon:String,size:String,title:n,value:n,label:n,center:Boolean,isLink:Boolean,border:r,required:Boolean,iconPrefix:String,valueClass:t,labelClass:t,titleClass:t,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}}),m=i({},p,o),y=c({name:b,props:m,setup:function(l,e){var a=e.slots,n=v(),r=function(){if(a.label||d(l.label))return s("div",{class:[h("label"),l.labelClass]},[a.label?a.label():l.label])},t=function(){if(a.title||d(l.title))return s("div",{class:[h("title"),l.titleClass],style:l.titleStyle},[a.title?a.title():s("span",null,[l.title]),r()])},i=function(){var e=a.value||a.default;if(e||d(l.value)){var n=a.title||d(l.title);return s("div",{class:[h("value",{alone:!n}),l.valueClass]},[e?e():s("span",null,[l.value])])}},o=function(){if(a["right-icon"])return a["right-icon"]();if(l.isLink){var e=l.arrowDirection?"arrow-".concat(l.arrowDirection):"arrow";return s(u,{name:e,class:h("right-icon")},null)}};return function(){var e,r,c=l.size,v=l.center,d=l.border,g=l.isLink,f=l.required,b=null!=(e=l.clickable)?e:g,p={center:v,required:f,clickable:b,borderless:!d};return c&&(p[c]=!!c),s("div",{class:h(p),role:b?"button":void 0,tabindex:b?0:void 0,onClick:n},[a.icon?a.icon():l.icon?s(u,{name:l.icon,class:h("left-icon"),classPrefix:l.iconPrefix},null):void 0,t(),i(),o(),null==(r=a.extra)?void 0:r.call(a)])}}});e("C",g(y))}}}))}();