2020-08-04 10:54:43 +08:00
|
|
|
import Backtop from './src/index.vue'
|
2021-09-17 15:27:31 +08:00
|
|
|
import type { App } from 'vue'
|
2020-10-29 17:28:26 +08:00
|
|
|
|
2021-08-24 13:36:48 +08:00
|
|
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
|
|
|
|
2020-11-20 20:24:16 +08:00
|
|
|
Backtop.install = (app: App): void => {
|
2020-08-04 10:54:43 +08:00
|
|
|
app.component(Backtop.name, Backtop)
|
|
|
|
}
|
2020-10-29 17:28:26 +08:00
|
|
|
|
2021-08-24 13:36:48 +08:00
|
|
|
const _Backtop = Backtop as SFCWithInstall<typeof Backtop>
|
2020-12-23 14:07:15 +08:00
|
|
|
|
|
|
|
export default _Backtop
|
2021-08-24 13:36:48 +08:00
|
|
|
export const ElBacktop = _Backtop
|