UNPKG

@ithinkdt/naive

Version:

iThinkDT Naive UI

28 lines (22 loc) 957 B
import { PropType, ExtractPublicPropTypes, VNodeChild } from 'vue' import { buttonProps, uploadProps } from 'ithinkdt-ui' import { SimpleDefineComponent } from '@ithinkdt/common' import { UseFetchOptions } from '@ithinkdt/core' declare const importBtnProps: typeof buttonProps & Pick<typeof uploadProps, 'accept'> & { onChose: { type: PropType<(params: { [x: string]: unknown; file: Blob } & UseFetchOptions) => void> required: false } } export type ImportBtnProps = ExtractPublicPropTypes<typeof importBtnProps> export type ImportBtnSlots = { trigger: (options: { handleClick: () => void handleDragOver: (e: DragEvent) => void handleDragEnter: (e: DragEvent) => void handleDragLeave: (e: DragEvent) => void handleDrop: (e: DragEvent) => void }) => VNodeChild } export declare const NImportBtn: SimpleDefineComponent<typeof importBtnProps, ImportBtnSlots>