UNPKG

tdesign-pro-component

Version:

ProComponents tdesign-vue-next + Vue3 + TS

13 lines (12 loc) 236 B
import { ref as u, watchEffect as f, watch as i } from "vue"; function s(n, t, o, a) { const c = `update:${t}`, e = u(a || n[t]); return f(() => { e.value = n[t]; }), i(e, (r) => { o(c, r); }), e; } export { s as u };