mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* feat(types): [utils] add ExtractPublicPropTypes type * feat(types): [components] add props public type * chore(types): use type-only import for Prop from 'vue' Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com> --------- Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
20 lines
657 B
TypeScript
20 lines
657 B
TypeScript
import { buildProps, isArray } from '@element-plus/utils'
|
|
|
|
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'
|
|
import type UploadDragger from './upload-dragger.vue'
|
|
|
|
export const uploadDraggerProps = buildProps({
|
|
disabled: Boolean,
|
|
} as const)
|
|
export type UploadDraggerProps = ExtractPropTypes<typeof uploadDraggerProps>
|
|
export type UploadDraggerPropsPublic = __ExtractPublicPropTypes<
|
|
typeof uploadDraggerProps
|
|
>
|
|
|
|
export const uploadDraggerEmits = {
|
|
file: (file: File[]) => isArray(file),
|
|
}
|
|
export type UploadDraggerEmits = typeof uploadDraggerEmits
|
|
|
|
export type UploadDraggerInstance = InstanceType<typeof UploadDragger> & unknown
|