index.ts 851 B

1234567891011121314151617181920212223242526
  1. import { withInstall, withNoopInstall } from '@element-plus/utils'
  2. import Container from './src/container.vue'
  3. import Aside from './src/aside.vue'
  4. import Footer from './src/footer.vue'
  5. import Header from './src/header.vue'
  6. import Main from './src/main.vue'
  7. export const ElContainer = withInstall(Container, {
  8. Aside,
  9. Footer,
  10. Header,
  11. Main,
  12. })
  13. export default ElContainer
  14. export const ElAside = withNoopInstall(Aside)
  15. export const ElFooter = withNoopInstall(Footer)
  16. export const ElHeader = withNoopInstall(Header)
  17. export const ElMain = withNoopInstall(Main)
  18. export type ContainerInstance = InstanceType<typeof Container>
  19. export type AsideInstance = InstanceType<typeof Aside>
  20. export type FooterInstance = InstanceType<typeof Footer>
  21. export type HeaderInstance = InstanceType<typeof Header>
  22. export type MainInstance = InstanceType<typeof Main>