Vue
学习Vue
林初笔墨
这个作者很懒,什么都没留下…
展开
-
vue中配置别名
标题vue中配置别名 在根目录创建名为 jsconfig.json 的文件 { "compilerOptions": { "baseUrl": "./", "paths": { "@/*":["src/*"] } }, "exclude": ["node_modules","dist"] }原创 2022-03-30 12:33:45 · 1425 阅读 · 0 评论 -
Vue3+ts+vite 组件统一注册
// components/文件名称/index.ts import { App } from 'vue' import Component from './index.vue' export default { install (app: App) { app.component('AntenneMainTitle', Component) } } // main.ts const app = createApp(App) // 自动注册全局组件 const modules = im原创 2022-05-31 10:06:14 · 415 阅读 · 0 评论