23 lines
554 B
TypeScript
23 lines
554 B
TypeScript
import { Ref } from "vue";
|
|
import { CrudExpose } from "../d/expose";
|
|
import { CrudBinding } from "../d";
|
|
export type UseExposeProps<R = any> = {
|
|
crudRef: Ref;
|
|
crudBinding: Ref<CrudBinding<R>>;
|
|
};
|
|
export type UseExposeRet<R = any> = {
|
|
expose: CrudExpose<R>;
|
|
crudExpose: CrudExpose<R>;
|
|
};
|
|
export type UseEditableProps<R = any> = {
|
|
crudExpose: CrudExpose<R>;
|
|
};
|
|
export type EditableOnEnabledProps = {
|
|
editable: any;
|
|
};
|
|
/**
|
|
*
|
|
* @param props
|
|
*/
|
|
export declare function useExpose<R = any>(props: UseExposeProps<R>): UseExposeRet<R>;
|