常用的技巧或 Vue 组件
# 开启文档生成, http://localhost:3000/v-tricks/docs/
yarn start
# 开启示例生成, http://localhost:3001/v-tricks/
yarn dev
- 添加组件到
/components/
目录中,并在/components/index.ts
中导入 - 将组件引人到
src/router
demo.vue
: 示例index.md
: 说明文档inde.vue
: 组件
- 在文档配置文件
/docs/.vitepress/config.js
中添加路由