1 |
- System.register(["./index-legacy-b974e43f.js"],(function(e,l){"use strict";var t,r,i,a,n,s,o,c,u,d,v,b,f;return{setters:[e=>{t=e.c,r=e.a9,i=e.at,a=e.d,n=e.au,s=e.a,o=e.m,c=e.n,u=e.t,d=e.a3,v=e.W,b=e.I,f=e.k}],execute:function(){const[l,g]=t("cell"),k=e("c",{tag:o("div"),icon:String,size:String,title:c,value:c,label:c,center:Boolean,isLink:Boolean,border:u,required:Boolean,iconPrefix:String,valueClass:d,labelClass:d,titleClass:d,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}}),y=r({},k,i);var C=a({name:l,props:y,setup(e,{slots:l}){const t=n(),r=()=>{if(l.label||v(e.label))return s("div",{class:[g("label"),e.labelClass]},[l.label?l.label():e.label])},i=()=>{var t;if(l.title||v(e.title)){const i=null==(t=l.title)?void 0:t.call(l);if(Array.isArray(i)&&0===i.length)return;return s("div",{class:[g("title"),e.titleClass],style:e.titleStyle},[i||s("span",null,[e.title]),r()])}},a=()=>{const t=l.value||l.default;if(t||v(e.value))return s("div",{class:[g("value"),e.valueClass]},[t?t():s("span",null,[e.value])])},o=()=>{if(l["right-icon"])return l["right-icon"]();if(e.isLink){const l=e.arrowDirection&&"right"!==e.arrowDirection?`arrow-${e.arrowDirection}`:"arrow";return s(b,{name:l,class:g("right-icon")},null)}};return()=>{var r;const{tag:n,size:c,center:u,border:d,isLink:v,required:f}=e,k=null!=(r=e.clickable)?r:v,y={center:u,required:f,clickable:k,borderless:!d};return c&&(y[c]=!!c),s(n,{class:g(y),role:k?"button":void 0,tabindex:k?0:void 0,onClick:t},{default:()=>{var t;return[l.icon?l.icon():e.icon?s(b,{name:e.icon,class:g("left-icon"),classPrefix:e.iconPrefix},null):void 0,i(),a(),o(),null==(t=l.extra)?void 0:t.call(l)]}})}}});e("C",f(C))}}}));
|