mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* Revert "fix(types): packing unexpected types (#19419)"
This reverts commit 13506ffb81.
* Revert "chore: add explicit type annoation (#19352)"
* fix(typescript): borken import paths in declaration files
* chore: emits smaller declaration files
20 lines
573 B
TypeScript
20 lines
573 B
TypeScript
import { buildProps, isArray } from '@element-plus/utils'
|
|
|
|
import type { ExtractPropTypes } from 'vue'
|
|
import type UploadDragger from './upload-dragger.vue'
|
|
|
|
export const uploadDraggerProps = buildProps({
|
|
disabled: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
} as const)
|
|
export type UploadDraggerProps = ExtractPropTypes<typeof uploadDraggerProps>
|
|
|
|
export const uploadDraggerEmits = {
|
|
file: (file: File[]) => isArray(file),
|
|
}
|
|
export type UploadDraggerEmits = typeof uploadDraggerEmits
|
|
|
|
export type UploadDraggerInstance = InstanceType<typeof UploadDragger> & unknown
|