element-plus/packages/page-header/index.ts

13 lines
318 B
TypeScript
Raw Normal View History

2020-08-08 20:18:40 +08:00
import { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
2020-08-08 20:18:40 +08:00
import PageHeader from './src/index.vue'
2020-10-29 17:28:26 +08:00
PageHeader.install = (app: App): void => {
2020-08-08 20:18:40 +08:00
app.component(PageHeader.name, PageHeader)
}
2020-10-29 17:28:26 +08:00
const _PageHeader: SFCWithInstall<typeof PageHeader> = PageHeader
export default _PageHeader
2020-10-29 17:28:26 +08:00