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