You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
9 months ago | |
|---|---|---|
| .. | ||
| atoms | 9 months ago | |
| common | 9 months ago | |
| models | 9 months ago | |
| service | 9 months ago | |
| templates | 9 months ago | |
| AppFooter.vue | 1 year ago | |
| HelloWorld.vue | 1 year ago | |
| README.md | 1 year ago | |
README.md
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>