Files
sports-empower-hub/app/citizen-frontend/src/components
skytek_xinliang 889e44f68e feat: 課程建議
2026-08-05 15:45:45 +08:00
..
2026-08-05 15:45:45 +08:00
2026-06-23 09:16:49 +08:00
2026-06-22 17:35:23 +08:00
2026-06-22 17:26:48 +08:00
2026-06-23 11:06:11 +08:00
2026-06-22 10:59:41 +08:00

Components

Vue template files in this folder are automatically imported.

🚀 Usage

Importing is handled by unplugin-vue-components. This plugin automatically imports .vue files created in the src/components directory, and registers them as global components. This means that you can use any component in your application without having to manually import it.

The following example assumes a component located at src/components/MyComponent.vue:

<template>
  <div>
    <MyComponent />
  </div>
</template>

<script lang="ts" setup>
  //
</script>

When your template is rendered, the component's import will automatically be inlined, which renders to this:

<template>
  <div>
    <MyComponent />
  </div>
</template>

<script lang="ts" setup>
  import MyComponent from '@/components/MyComponent.vue'
</script>