fix: fix tooltip's export (#1678)

This commit is contained in:
Ryan2128 2021-03-22 20:52:31 +08:00 committed by GitHub
parent 6822cafda8
commit 2a5059b5c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,11 @@
import { App } from 'vue'
import Tooltip from './src/index'
import { SFCWithInstall } from '@element-plus/utils/types'
Tooltip.install = (app: App): void => {
app.component(Tooltip.name, Tooltip)
}
export default Tooltip
const _Tooltip: SFCWithInstall<typeof Tooltip> = Tooltip as SFCWithInstall<typeof Tooltip>
export default _Tooltip