element-plus/packages/components/upload/index.ts

14 lines
319 B
TypeScript
Raw Normal View History

import Upload from './src/index.vue'
2020-10-29 17:28:26 +08:00
import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils'
Upload.install = (app: App): void => {
app.component(Upload.name, Upload)
}
2020-10-29 17:28:26 +08:00
const _Upload = Upload as SFCWithInstall<typeof Upload>
export default _Upload
export const ElUpload = _Upload