UNPKG

@cblink/finches-ui

Version:

A Component Library for Vue 3

16 lines (15 loc) 614 B
import type { ComputedRef, Ref } from 'vue'; interface ActionType { getPaginationInfo: ComputedRef<any>; setPagination: (info: any) => void; tableData: Ref<any[]>; setLoading: (loading: boolean) => void; } export declare function useDataSource(propsRef: any, { getPaginationInfo, setPagination, tableData, setLoading }: ActionType, emit: any, formActions: any): { getDataSourceRef: ComputedRef<any[]>; handleCurrentChange: (page: number) => void; handleSizeChange: (size: number) => void; fetch: (opt?: any) => Promise<void>; reload: (opt?: any) => Promise<void>; }; export {};