You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
377 B

import{D as f,q as i,E as v,G as m,f as d,H as g,J as E,K as S,u as h}from"./index-f4658ae7.js";function x(n,u="value",c="change",o){const a=f(),s=a==null?void 0:a.emit,t=i({value:n[u]}),r=v(t),l=e=>{t.value=e};return m(()=>{t.value=n[u]}),[d({get(){return t.value},set(e){g(e,r.value)||(t.value=e,E(()=>{s==null||s(c,e,...S(h(o))||[])}))}}),l,r]}export{x as useRuleFormItem};