![]() |
10 months ago | |
---|---|---|
.. | ||
AreaSelect | 10 months ago | |
CtDialog | 10 months ago | |
CtForm | 11 months ago | |
CtPagination | 10 months ago | |
CtSearch | 10 months ago | |
CtVuetify | 1 year ago | |
DatePicker | 11 months ago | |
Empty | 10 months ago | |
Enterprise | 10 months ago | |
FormUI | 10 months ago | |
Position | 10 months ago | |
PositionLongStrip | 10 months ago | |
PreviewImg | 11 months ago | |
VerificationCode | 11 months ago | |
headSearch | 10 months ago | |
industryTypeCard | 10 months ago | |
jobTypeCard | 10 months ago | |
publicRecruitment | 10 months 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>