mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-10-24 16:59:22 +08:00
first commit
This commit is contained in:
11
config/plugins/components.ts
Normal file
11
config/plugins/components.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import components from 'unplugin-vue-components/vite'
|
||||
|
||||
export default function createComponents() {
|
||||
return components({
|
||||
// 指定组件位置,默认是 src/components 自动导入自定义组件
|
||||
dirs: ['src/components'],
|
||||
extensions: ['vue', 'tsx'],
|
||||
// 配置文件生成位置
|
||||
dts: './src/types/components.d.ts',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user