mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-14 18:11:48 +08:00

* perf: change to import-x * feat: add rules * chore: fix rule * chore: fix * chore: fix * chore: fix * style: `pnpm lint:fix` * Revert "style: `pnpm lint:fix`" This reverts commit db0116a288299c507e3cfc4d7a22e2207265d920. * Revert "chore: fix" This reverts commit 69c82a90c01525e38180be4c21e8ef5602512318. * chore: fix * style: `pnpm lint:fix` * fix: lint * chore: `pnpm format`
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
import { withInstall, withNoopInstall } from '@element-plus/utils'
|
|
import Container from './src/container.vue'
|
|
import Aside from './src/aside.vue'
|
|
import Footer from './src/footer.vue'
|
|
import Header from './src/header.vue'
|
|
import Main from './src/main.vue'
|
|
|
|
import type { SFCWithInstall } from '@element-plus/utils'
|
|
|
|
export const ElContainer: SFCWithInstall<typeof Container> & {
|
|
Aside: typeof Aside
|
|
Footer: typeof Footer
|
|
Header: typeof Header
|
|
Main: typeof Main
|
|
} = withInstall(Container, {
|
|
Aside,
|
|
Footer,
|
|
Header,
|
|
Main,
|
|
})
|
|
|
|
export default ElContainer
|
|
export const ElAside: SFCWithInstall<typeof Aside> = withNoopInstall(Aside)
|
|
export const ElFooter: SFCWithInstall<typeof Footer> = withNoopInstall(Footer)
|
|
export const ElHeader: SFCWithInstall<typeof Header> = withNoopInstall(Header)
|
|
export const ElMain: SFCWithInstall<typeof Main> = withNoopInstall(Main)
|
|
|
|
export type ContainerInstance = InstanceType<typeof Container> & unknown
|
|
export type AsideInstance = InstanceType<typeof Aside> & unknown
|
|
export type FooterInstance = InstanceType<typeof Footer> & unknown
|
|
export type HeaderInstance = InstanceType<typeof Header> & unknown
|
|
export type MainInstance = InstanceType<typeof Main> & unknown
|