UNPKG

@oiij/naive-ui

Version:

Som Composable Functions And Components for Vue 3

73 lines (72 loc) 4.26 kB
import { DataTableBaseColumn, DataTableFilterState, DataTableSortState } from 'naive-ui'; import { RObject } from '../remote-request/index'; import { DataTablePlusEmits, DataTablePlusExposeActions, DataTablePlusExposeRefs, DataTablePlusProps } from './index'; declare const _default: <P extends RObject, D extends RObject, R extends RObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{ readonly onError?: ((err: Error, params: P[]) => any) | undefined; readonly onLoad?: ((row: R) => any) | undefined; readonly onScroll?: ((ev: Event) => any) | undefined; readonly onSuccess?: ((data: D, params: P[]) => any) | undefined; readonly onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined; readonly onBefore?: ((params: P[]) => any) | undefined; readonly onClickRow?: ((row: R, index: number, event: MouseEvent, currentData: R[]) => any) | undefined; readonly onContextMenuRow?: ((row: R, index: number, event: MouseEvent, currentData: R[]) => any) | undefined; readonly onScrollBottom?: ((ev: Event) => any) | undefined; readonly "onUpdate:checkedRowKeys"?: ((keys: (string | number)[], rows: (R | undefined)[], meta: { row: R | undefined; action: "check" | "uncheck" | "checkAll" | "uncheckAll"; }, currentData: R[]) => any) | undefined; readonly "onUpdate:expandedRowKeys"?: ((keys: (string | number)[], currentData: R[]) => any) | undefined; readonly "onUpdate:filters"?: ((filterState: DataTableFilterState, sourceColumn: DataTableBaseColumn) => any) | undefined; readonly "onUpdate:sorter"?: ((options: DataTableSortState | DataTableSortState[] | null) => any) | undefined; readonly "onUpdate:page"?: ((page: number) => any) | undefined; readonly "onUpdate:pageSize"?: ((pageSize: number) => any) | undefined; } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onLoad" | "onError" | "onScroll" | "onSuccess" | "onFinally" | "onBefore" | "onClickRow" | "onContextMenuRow" | "onScrollBottom" | "onUpdate:checkedRowKeys" | "onUpdate:expandedRowKeys" | "onUpdate:filters" | "onUpdate:sorter" | "onUpdate:page" | "onUpdate:pageSize"> & DataTablePlusProps<P, D, R> & Partial<{}>> & import('vue').PublicProps; expose(exposed: import('vue').ShallowUnwrapRef<{ refs: DataTablePlusExposeRefs<P, D, R>; actions: DataTablePlusExposeActions<P, D>; }>): void; attrs: any; slots: { header?(_: { refs: DataTablePlusExposeRefs<P, D, R>; actions: DataTablePlusExposeActions<P, D>; }): any; title?(_: {}): any; 'header-extra'?(_: { refs: DataTablePlusExposeRefs<P, D, R>; actions: DataTablePlusExposeActions<P, D>; }): any; filter?(_: { refs: DataTablePlusExposeRefs<P, D, R>; actions: DataTablePlusExposeActions<P, D>; }): any; empty?(_: { refs: DataTablePlusExposeRefs<P, D, R>; actions: DataTablePlusExposeActions<P, D>; }): any; loading?(_: { refs: DataTablePlusExposeRefs<P, D, R>; actions: DataTablePlusExposeActions<P, D>; }): any; footer?(_: { refs: DataTablePlusExposeRefs<P, D, R>; actions: DataTablePlusExposeActions<P, D>; }): any; 'footer-extra'?(_: { refs: DataTablePlusExposeRefs<P, D, R>; actions: DataTablePlusExposeActions<P, D>; }): any; 'filter-modal'?(_: { refs: DataTablePlusExposeRefs<P, D, R>; actions: DataTablePlusExposeActions<P, D>; }): any; }; emit: DataTablePlusEmits<P, D, R>; }>) => import('vue').VNode & { __ctx?: Awaited<typeof __VLS_setup>; }; export default _default; type __VLS_PrettifyLocal<T> = { [K in keyof T]: T[K]; } & {};