|
|
1 year ago | |
|---|---|---|
| .. | ||
| AreaSelect | 1 year ago | |
| CtDialog | 1 year ago | |
| CtForm | 1 year ago | |
| CtPagination | 1 year ago | |
| CtSearch | 1 year ago | |
| CtVuetify | 1 year ago | |
| DatePicker | 1 year ago | |
| Empty | 1 year ago | |
| Enterprise | 1 year ago | |
| FormUI | 1 year ago | |
| Position | 1 year ago | |
| PositionLongStrip | 1 year ago | |
| VerificationCode | 1 year ago | |
| headSearch | 1 year ago | |
| industryTypeCard | 1 year ago | |
| jobTypeCard | 1 year ago | |
| README.md | 1 year ago | |
Vue template files in this folder are automatically imported.
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>