column-helper.64ceba17.js 712 B

1
  1. import{J as n,au as i,av as u}from"./index.4d061c66.js";function d(e,t="status"){return{cellRenderer({row:a}){const r=e.find(l=>l.id===String(a[t]));return n(i,{type:r&&r.type?r.type:"",size:"small"},{default:()=>(r==null?void 0:r.label)||"--"})}}}function f(e="image"){return{cellRenderer({row:t}){return n(u,{src:t[e],fit:"cover",lazy:!0,size:"small",style:"width: 33px; height: 22px","preview-src-list":t[e]!==""?[t[e]]:[],"z-index":99999,"preview-teleported":!0},{default:()=>"--"})}}}function o(e,t="id"){return e.map(a=>({value:a[t],label:a.label}))}function p(e,t){return{cellRenderer({row:a}){let r="";return e.forEach((l,s)=>{r+=s===0?`${a[l]}`:` ${t}${a[l]}`}),r}}}export{f as a,o as c,d as r,p as t};