| | |
| | | declare module 'vue' { |
| | | export interface GlobalComponents { |
| | | ElButton: typeof import('element-plus/es')['ElButton'] |
| | | Header: typeof import('./src/components/Header/index.vue')['default'] |
| | | HelloWorld: typeof import('./src/components/HelloWorld.vue')['default'] |
| | | RouterLink: typeof import('vue-router')['RouterLink'] |
| | | RouterView: typeof import('vue-router')['RouterView'] |
| | |
| | | </script> |
| | | |
| | | <template> |
| | | |
| | | <RouterView /> |
| | | </template> |
| | | |
| | | <style scoped></style> |
| | | <style scoped> |
| | | </style> |
New file |
| | |
| | | <template> |
| | | <div class="header-container"> |
| | | <div class="head-item"> |
| | | <div class="logo-container"> |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="head-item"></div> |
| | | <div class="head-item"></div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup> |
| | | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .header-container { |
| | | width: 100%; |
| | | display: flex; |
| | | box-shadow: 0 2px 20px ; |
| | | .head-item { |
| | | flex-shrink: 0; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <el-button>button</el-button> |
| | | |
| | | </template> |
| | | |
| | | <script setup> |