element-plus/packages/components/backtop/index.ts
Jeremy 84a867f847
refactor(components): [backtop] (#10151)
* refactor(components): [backtop]

* Extract logic code from component itself.
* Reorganize code for better readability.

* chore: remove handleScrollThrottled from being returned
2022-10-20 14:02:56 +08:00

10 lines
248 B
TypeScript

import { withInstall } from '@element-plus/utils'
import Backtop from './src/backtop.vue'
export const ElBacktop = withInstall(Backtop)
export default ElBacktop
export * from './src/backtop'
export type { BacktopInstance } from './src/instance'