import{d as n,c as i,e as o,f as c,s as _,g as p,k as f,h as u,j as m,B as b,n as l,ar as v}from"./index-a0da86f0.js";import{_ as y}from"./_plugin-vue_export-helper-c27b6911.js";const C={class:"field-label"},g={key:0,class:"required"},k=n({__name:"Color",props:{df:{},record:{},canEdit:{type:Boolean},ctx:{}},setup(s){const r=s,t=i(()=>r.df.label_layout||"vertical");return(e,a)=>(l(),o("div",{class:b(["field-wrapper",`layout-${t.value}`])},[c("label",C,[_(p(e.ctx.t(e.df.label||e.df.fieldname))+" ",1),e.df.reqd?(l(),o("span",g,"*")):f("",!0)]),u(m(v),{value:e.record[e.df.fieldname],"onUpdate:value":a[0]||(a[0]=d=>e.record[e.df.fieldname]=d),disabled:!e.canEdit,size:"medium"},null,8,["value","disabled"])],2))}});const B=y(k,[["__scopeId","data-v-896505ba"]]),j=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"}));export{j as _};
