@uozi-admin/curd
Version:
Easy to implement curd.
43 lines (42 loc) • 1.73 kB
TypeScript
import { DescriptionsProps } from 'antdv-next';
import { CurdApi } from 'src/types/api';
import { StdTableColumn } from '../types';
interface Props {
id?: string;
columns: StdTableColumn[];
detailProps?: DescriptionsProps;
api?: CurdApi;
editable?: boolean;
editableFields?: string[];
loading?: boolean;
overwriteParams?: Record<string, any>;
}
type __VLS_Props = Props;
type __VLS_PublicProps = {
'record'?: any;
} & __VLS_Props;
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:record": (value: any) => any;
} & {
edit: () => any;
save: (data: any) => any;
cancel: () => any;
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
onEdit?: (() => any) | undefined;
onSave?: ((data: any) => any) | undefined;
onCancel?: (() => any) | undefined;
"onUpdate:record"?: ((value: any) => any) | undefined;
}>, {
loading: boolean;
editable: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
formRef: import('vue').CreateComponentPublicInstanceWithMixins<import('antdv-next').FormProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('antdv-next').FormEmits, import('vue').PublicProps, {}, false, {}, import('vue').SlotsType<import('antdv-next').FormSlots>, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, import('antdv-next').FormProps, {}, {}, {}, {}, {}> | null;
}, HTMLDivElement>;
export default _default;