1 |
- !function(){function e(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,l){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==a)return;var n,r,t=[],i=!0,o=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(t.push(n.value),!l||t.length!==l);i=!0);}catch(c){o=!0,r=c}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return t}(e,a)||function(e,a){if(!e)return;if("string"==typeof e)return l(e,a);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 l(e,a)}(e,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 l(e,l){(null==l||l>e.length)&&(l=e.length);for(var a=0,n=new Array(l);a<l;a++)n[a]=e[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(["./ResizeObserver.es-legacy.8d60aee1.js"],(function(l){"use strict";var a,n,r,t,i,o,c,v,s,d,u,g;return{setters:[function(e){a=e.E,n=e.G,r=e.H,t=e.I,i=e.J,o=e.K,c=e.d,v=e.L,s=e.j,d=e.M,u=e.N,g=e.O}],execute:function(){var f=e(a("cell"),2),b=f[0],h=f[1],p=l("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),z=c({name:b,props:m,setup:function(e,l){var a=l.slots,n=v(),r=function(){if(a.label||d(e.label))return s("div",{class:[h("label"),e.labelClass]},[a.label?a.label():e.label])},t=function(){if(a.title||d(e.title))return s("div",{class:[h("title"),e.titleClass],style:e.titleStyle},[a.title?a.title():s("span",null,[e.title]),r()])},i=function(){var l=a.value||a.default;if(l||d(e.value)){var n=a.title||d(e.title);return s("div",{class:[h("value",{alone:!n}),e.valueClass]},[l?l():s("span",null,[e.value])])}},o=function(){if(a["right-icon"])return a["right-icon"]();if(e.isLink){var l=e.arrowDirection?"arrow-".concat(e.arrowDirection):"arrow";return s(u,{name:l,class:h("right-icon")},null)}};return function(){var l,r,c=e.size,v=e.center,d=e.border,g=e.isLink,f=e.required,b=null!=(l=e.clickable)?l: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():e.icon?s(u,{name:e.icon,class:h("left-icon"),classPrefix:e.iconPrefix},null):void 0,t(),i(),o(),null==(r=a.extra)?void 0:r.call(a)])}}});l("C",g(z))}}}))}();
|