import{d as u,co as p,bk as s,r as d,a4 as g,ay as h,gL as m,h as f,o as y,A as _,l as b,Z as c,ah as v,aI as K,N as S}from"./index-9PRMimni.js";const x=u({__name:"RenderDict",props:{cacheKey:{},dictValue:{},optionType:{}},setup(a){const e=a,n=p({storage:localStorage}),l=s(),t=d([]),r=g(()=>(t.value||[]).find(o=>(e.optionType==="number"?Number(o.value):o.value)===e.dictValue)?.[l.getLocale==="en"?"labelEn":"label"]);h(()=>e.cacheKey,()=>{i()},{immediate:!0});async function i(){e.cacheKey?n.get(e.cacheKey)?t.value=n.get(e.cacheKey):(t.value=await m(e.cacheKey),n.set(e.cacheKey,t.value)):t.value=[]}return(o,T)=>(y(),f("span",null,_(b(r)),1))}}),L=s();function D(a,e=v){return c("span",{},[c("span",{style:{"margin-right":"5px"}},a),c(S,{size:14},{default:()=>c(e)})])}function I(a,e){return c(K,{},{trigger:()=>D(a),default:()=>L.getLocale==="en"?"This column is editable":"该列可编辑"})}export{x as _,I as r};
