first commit

This commit is contained in:
2026-01-09 23:05:52 -05:00
commit dec0c8e4e4
4203 changed files with 824454 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { i as UseAsyncValidatorReturn, r as UseAsyncValidatorOptions } from "../index-BgoBW25H.js";
import { Rules } from "async-validator";
import * as vue0 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: vue0.DefineSetupFnComponent<UseAsyncValidatorProps, Record<string, never>, SlotsType<UseAsyncValidatorSlots>, UseAsyncValidatorProps & {
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
}, vue0.PublicProps>;
//#endregion
export { UseAsyncValidator, UseAsyncValidatorProps };

View File

@@ -0,0 +1,20 @@
import { t as useAsyncValidator } from "../useAsyncValidator-pcZPyeq7.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 };