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

16 lines
383 B
TypeScript
Raw Normal View History

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