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

14 lines
335 B
TypeScript
Raw Normal View History

2020-07-27 23:22:31 +08:00
import Divider 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'
Divider.install = (app: App): void => {
2020-07-27 23:22:31 +08:00
app.component(Divider.name, Divider)
}
2020-10-29 17:28:26 +08:00
const _Divider = Divider as SFCWithInstall<typeof Divider>
export default _Divider
export const ElDivider = _Divider