feat: 添加setup插件以支持setup可以设置name

This commit is contained in:
xieyonghong 2023-01-10 15:54:19 +08:00
parent cc50da7b49
commit 387d94494e
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,15 @@
<template>
<div class=''>
</div>
</template>
<script setup type='ts' name='FormBuilder'>
export default {
name: 'FormBuilder'
}
</script>
<style scoped>
</style>

View File

@ -7,6 +7,7 @@ import AutoImport from 'unplugin-auto-import/vite'
import { createHtmlPlugin } from 'vite-plugin-html'
import Config from './config/config'
import {VueAmapResolver} from '@vuemap/unplugin-resolver'
import VueSetupExtend from 'vite-plugin-vue-setup-extend'
import * as path from 'path'
@ -67,7 +68,8 @@ export default defineConfig(({ mode}) => {
favicon: `<link rel="icon" type="image/svg+xml" href="${Config.logo}" />`
}
}
})
}),
VueSetupExtend()
],
server: {
host:'0.0.0.0',