vue-admin-core
Version:
A Component Library for Vue 3
13 lines (12 loc) • 512 B
TypeScript
import { Form, FormPathPattern } from "@formily/core";
import { Options, Service } from "../useRequest/src/types";
import { Ref } from "vue";
export declare const useRemote: <TData, TParams extends any[]>({ form, target }: {
form: Ref<Form>;
target: FormPathPattern;
}, service: Service<TData, TParams>, options: Options<TData, TParams> & {
pagination?: boolean | {
totalKey: string;
listKey: string;
} | undefined;
}) => import("../useRequest/src/types").Result<TData, TParams>;