Initalize

This commit is contained in:
Your Name
2026-05-03 12:12:57 -04:00
commit 38652eb9b5
10603 changed files with 1762136 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { UseAsyncValidatorOptions, UseAsyncValidatorReturn } from "../useAsyncValidator.js";
import { Rules } from "async-validator";
import * as _$vue from "vue";
import { Reactive, SlotsType } from "vue";
//#region useAsyncValidator/component.d.ts
interface UseAsyncValidatorProps {
form: Record<string, any>;
rules: Rules;
options?: UseAsyncValidatorOptions;
}
interface UseAsyncValidatorSlots {
default: (data: Reactive<UseAsyncValidatorReturn>) => any;
}
declare const UseAsyncValidator: _$vue.DefineSetupFnComponent<UseAsyncValidatorProps, Record<string, never>, SlotsType<UseAsyncValidatorSlots>, UseAsyncValidatorProps & {
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
}, _$vue.PublicProps>;
//#endregion
export { UseAsyncValidator, UseAsyncValidatorProps };

View File

@@ -0,0 +1,18 @@
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 };