Files

19 lines
496 B
JavaScript
Raw Permalink Normal View History

2026-05-03 12:12:57 -04:00
import { useAsyncValidator } from "../useAsyncValidator.js";
import { defineComponent, reactive } from "vue";
//#region useAsyncValidator/component.ts
const UseAsyncValidator = /* @__PURE__ */ defineComponent((props, { slots }) => {
const data = reactive(useAsyncValidator(props.form, props.rules));
return () => {
if (slots.default) return slots.default(data);
};
}, {
name: "UseAsyncValidator",
props: [
"form",
"options",
"rules"
]
});
//#endregion
export { UseAsyncValidator };