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

14 lines
365 B
TypeScript
Raw Normal View History

2020-08-08 20:18:40 +08:00
import PageHeader 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'
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 = PageHeader as SFCWithInstall<typeof PageHeader>
export default _PageHeader
export const ElPageHeader = _PageHeader