@uozi-admin/curd
Version:
Easy to implement curd.
71 lines (70 loc) • 2.84 kB
TypeScript
import { FilterValue, SorterResult } from 'ant-design-vue/es/table/interface';
import { TablePaginationConfig } from 'ant-design-vue/lib/table/interface';
import { StdTableProps } from '../types';
type __VLS_Props = StdTableProps;
type __VLS_PublicProps = {
'tableLoading'?: boolean;
'selectedRowKeys'?: any[];
'selectedRows'?: any[];
} & __VLS_Props;
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
beforeSearch?(_: {}): any;
searchFormAction?(_: {
formData: any;
}): any;
beforeTable?(_: {}): any;
beforeActions?(_: {
record: any;
column: any;
}): any;
afterActions?(_: {
record: any;
column: any;
}): any;
};
refs: {};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
refresh: import('lodash-es').DebouncedFunc<() => Promise<void>>;
tableData: import('vue').Ref<Record<string, any>[], Record<string, any>[]>;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:tableLoading": (value: boolean) => any;
"update:selectedRowKeys": (value: any[]) => any;
"update:selectedRows": (value: any[]) => any;
} & {
view: (record: any) => any;
deleteItemTemporarily: (record: any) => any;
deleteItemPermanently: (record: any) => any;
restoreItem: (record: any) => any;
change: (payload: {
pagination: TablePaginationConfig;
filters: Record<string, FilterValue>;
sorter: SorterResult | SorterResult<any>[];
}) => any;
editItem: (record: any) => any;
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
onView?: ((record: any) => any) | undefined;
onDeleteItemTemporarily?: ((record: any) => any) | undefined;
onDeleteItemPermanently?: ((record: any) => any) | undefined;
onRestoreItem?: ((record: any) => any) | undefined;
onChange?: ((payload: {
pagination: TablePaginationConfig;
filters: Record<string, FilterValue>;
sorter: SorterResult | SorterResult<any>[];
}) => any) | undefined;
onEditItem?: ((record: any) => any) | undefined;
"onUpdate:tableLoading"?: ((value: boolean) => any) | undefined;
"onUpdate:selectedRowKeys"?: ((value: any[]) => any) | undefined;
"onUpdate:selectedRows"?: ((value: any[]) => any) | undefined;
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};