mirror of
https://github.com/wmn1525/grasscutterTools.git
synced 2024-11-22 07:08:15 +00:00
497 lines
18 KiB
Markdown
497 lines
18 KiB
Markdown
|
<p align="center">
|
|||
|
<img src="https://cdn.jsdelivr.net/gh/MaleWeb/picture/images/techblog/fast-vue3.svg" width="340" />
|
|||
|
</p>
|
|||
|
|
|||
|
|
|||
|
<p align="center">
|
|||
|
<img src="https://img.shields.io/badge/-Vue3-34495e?logo=vue.j" />
|
|||
|
<img src="https://img.shields.io/badge/-Vite2.7-646cff?logo=vite&logoColor=white" />
|
|||
|
<img src="https://img.shields.io/badge/-TypeScript-blue?logo=typescript&logoColor=white" />
|
|||
|
<img src="https://img.shields.io/badge/-Pinia-yellow?logo=picpay&logoColor=white" />
|
|||
|
<img src="https://img.shields.io/badge/-ESLint-4b32c3?logo=eslint&logoColor=white" />
|
|||
|
<img src="https://img.shields.io/badge/-pnpm-F69220?logo=pnpm&logoColor=white" />
|
|||
|
<img src="https://img.shields.io/badge/-Axios-008fc7?logo=axios.js&logoColor=white" />
|
|||
|
<img src="https://img.shields.io/badge/-Prettier-ef9421?logo=Prettier&logoColor=white" alt="Prettier">
|
|||
|
<img src="https://img.shields.io/badge/-Less-1D365D?logo=less&logoColor=white" alt="Less">
|
|||
|
<img src="https://img.shields.io/badge/-Tailwind%20CSS-06B6D4?logo=Tailwind%20CSS&logoColor=white" alt="Taiwind">
|
|||
|
<img src="" alt="">
|
|||
|
<p>
|
|||
|
|
|||
|
|
|||
|
一个开箱即用,快速搭建大型应用的Vue3+Vite2+TypeScript+...模板框架。集成了各类插件,并进行了模块化和按需加载的优化,可以放心使用。 [更新文档在此](https://github.com/tobe-fe-dalao/fast-vue3/blob/main/docs/update.md)
|
|||
|
|
|||
|
[English](./README.md) | 简体中文 | [日本語](./README.ja-JP.md)
|
|||
|
|
|||
|
|
|||
|
# 功能亮点
|
|||
|
这里简单介绍一些核心部分,安装部分不再细讲,建议大家直接阅读官方文档或[可视化仓库](https://github1s.com/tobe-fe-dalao/fast-vue3)
|
|||
|
|
|||
|
## 🪂大厂协作-代码规范
|
|||
|
🪁 目前多数大厂团队一般使用[husky](https://github.com/typicode/husky)和 [lint-staged](https://github.com/okonet/lint-staged) 来约束代码规范,
|
|||
|
- 通过`pre-commit`实现lint检查、单元测试、代码格式化等。
|
|||
|
- 结合VsCode编辑器(保存时自动执行格式化:editor.formatOnSave: true)
|
|||
|
- 配合Git hooks钩子(commit前或提交前执行:pre-commit => npm run lint:lint-staged)
|
|||
|
- IDE 配置(`.editorconfig`)、ESLint 配置(`.eslintrc.js` 和 `.eslintignore`)、StyleLint 配置(`.stylelintrc` 和 `.stylelintignore`),详细请看对应的配置文件。
|
|||
|
|
|||
|
🔌关闭代码规范
|
|||
|
将 `src/` 目录分别加入 `.eslintignore` 和 `.stylelintignore` 进行忽略即可。
|
|||
|
|
|||
|
|
|||
|
## 目录结构
|
|||
|
|
|||
|
以下是系统的目录结构
|
|||
|
|
|||
|
```
|
|||
|
├── config
|
|||
|
│ ├── vite // vite配置
|
|||
|
│ ├── constant // 系统常量
|
|||
|
| └── themeConfig // 主题配置
|
|||
|
├── docs // 文档相关
|
|||
|
├── mock // mock数据
|
|||
|
├── plop-tpls // plop模板
|
|||
|
├── src
|
|||
|
│ ├── api // api请求
|
|||
|
│ ├── assets // 静态文件
|
|||
|
│ ├── components // 业务通用组件
|
|||
|
│ ├── page // 业务页面
|
|||
|
│ ├── router // 路由文件
|
|||
|
│ ├── store // 状态管理
|
|||
|
│ ├── utils // 工具类
|
|||
|
│ ├── App.vue // vue模板入口
|
|||
|
│ ├── main.ts // vue模板js
|
|||
|
├── .d.ts // 类型定义
|
|||
|
├── tailwind.config.js // tailwind全局配置
|
|||
|
├── tsconfig.json // ts配置
|
|||
|
└── vite.config.ts // vite全局配置
|
|||
|
```
|
|||
|
|
|||
|
## 💕支持JSX语法
|
|||
|
|
|||
|
```json
|
|||
|
{
|
|||
|
...
|
|||
|
"@vitejs/plugin-vue-jsx": "^1.3.3"
|
|||
|
...
|
|||
|
}
|
|||
|
```
|
|||
|
## 🎸UI组件按需加载,自动导入
|
|||
|
```typescript
|
|||
|
//模块化写法
|
|||
|
import Components from 'unplugin-vue-components/vite'
|
|||
|
export const AutoRegistryComponents = () => {
|
|||
|
return Components({
|
|||
|
extensions: ['vue', 'md'],
|
|||
|
deep: true,
|
|||
|
dts: 'src/components.d.ts',
|
|||
|
directoryAsNamespace: false,
|
|||
|
globalNamespaces: [],
|
|||
|
directives: true,
|
|||
|
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
|
|||
|
exclude: [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
|||
|
resolvers: [
|
|||
|
IconsResolver({
|
|||
|
componentPrefix: '',
|
|||
|
}),
|
|||
|
ArcoResolver({ importStyle: 'less' }),//根据你需要增加UI框架
|
|||
|
VueUseComponentsResolver(),//默认使用VueUse组件
|
|||
|
],
|
|||
|
})
|
|||
|
}
|
|||
|
```
|
|||
|
|
|||
|
## 🧩Vite插件模块化
|
|||
|
为了方便管理插件,将所有的`config`统一放入`config/vite/plugins`里面,未来还会有更多插件直接分文件夹管理十分干净。
|
|||
|
值得一提的是,`Fast-Vue3`增加了统一环境变量管理,来区分动态开启某些插件。
|
|||
|
```typescript
|
|||
|
// vite/plugins/index.ts
|
|||
|
/**
|
|||
|
* @name createVitePlugins
|
|||
|
* @description 封装plugins数组统一调用
|
|||
|
*/
|
|||
|
import type { Plugin } from 'vite';
|
|||
|
import vue from '@vitejs/plugin-vue';
|
|||
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|||
|
import { ConfigSvgIconsPlugin } from './svgIcons';
|
|||
|
import { AutoRegistryComponents } from './component';
|
|||
|
import { AutoImportDeps } from './autoImport';
|
|||
|
import { ConfigMockPlugin } from './mock';
|
|||
|
import { ConfigVisualizerConfig } from './visualizer';
|
|||
|
import { ConfigCompressPlugin } from './compress';
|
|||
|
import { ConfigPagesPlugin } from './pages'
|
|||
|
import { ConfigMarkDownPlugin } from './markdown'
|
|||
|
import { ConfigRestartPlugin } from './restart'
|
|||
|
|
|||
|
export function createVitePlugins(isBuild: boolean) {
|
|||
|
const vitePlugins: (Plugin | Plugin[])[] = [
|
|||
|
// vue支持
|
|||
|
vue(),
|
|||
|
// JSX支持
|
|||
|
vueJsx(),
|
|||
|
// 自动按需引入组件
|
|||
|
AutoRegistryComponents(),
|
|||
|
// 自动按需引入依赖
|
|||
|
AutoImportDeps(),
|
|||
|
// 自动生成路由
|
|||
|
ConfigPagesPlugin(),
|
|||
|
// 开启.gz压缩 rollup-plugin-gzip
|
|||
|
ConfigCompressPlugin(),
|
|||
|
//支持markdown
|
|||
|
ConfigMarkDownPlugin(),
|
|||
|
// 监听配置文件改动重启
|
|||
|
ConfigRestartPlugin(),
|
|||
|
];
|
|||
|
// vite-plugin-svg-icons
|
|||
|
vitePlugins.push(ConfigSvgIconsPlugin(isBuild));
|
|||
|
// vite-plugin-mock
|
|||
|
vitePlugins.push(ConfigMockPlugin(isBuild));
|
|||
|
// rollup-plugin-visualizer
|
|||
|
vitePlugins.push(ConfigVisualizerConfig());
|
|||
|
return vitePlugins;
|
|||
|
}
|
|||
|
```
|
|||
|
而`vite.config.ts`便干净多了
|
|||
|
```typescript
|
|||
|
import { createVitePlugins } from './config/vite/plugins'
|
|||
|
...
|
|||
|
return {
|
|||
|
resolve: {
|
|||
|
alias: {
|
|||
|
"@": path.resolve(__dirname, './src'),
|
|||
|
'@config': path.resolve(__dirname, './config'),
|
|||
|
"@components": path.resolve(__dirname, './src/components'),
|
|||
|
'@utils': path.resolve(__dirname, './src/utils'),
|
|||
|
'@api': path.resolve(__dirname, './src/api'),
|
|||
|
}
|
|||
|
},
|
|||
|
// plugins
|
|||
|
plugins: createVitePlugins(isBuild)
|
|||
|
}
|
|||
|
...
|
|||
|
```
|
|||
|
## 📱支持`Pinia` ,下一代`Vuex5`
|
|||
|
创建文件`src/store/index.ts`
|
|||
|
```typescript
|
|||
|
// 支持模块化,配合plop可以通过命令行一键生成
|
|||
|
import { createPinia } from 'pinia';
|
|||
|
import { useAppStore } from './modules/app';
|
|||
|
import { useUserStore } from './modules/user';
|
|||
|
const pinia = createPinia();
|
|||
|
export { useAppStore, useUserStore };
|
|||
|
export default pinia;
|
|||
|
```
|
|||
|
创建文件`src/store/modules/user/index.ts`
|
|||
|
|
|||
|
```typescript
|
|||
|
import { defineStore } from 'pinia'
|
|||
|
import piniaStore from '@/store'
|
|||
|
export const useUserStore = defineStore(
|
|||
|
// 唯一ID
|
|||
|
'user',
|
|||
|
{
|
|||
|
state: () => ({}),
|
|||
|
getters: {},
|
|||
|
actions: {}
|
|||
|
}
|
|||
|
)
|
|||
|
```
|
|||
|
## 🤖 支持`Plop`自动生成文件
|
|||
|
⚙️ 代码文件自动生成,提供三种预设模板`pages`,`components`,`store`,也可以根据自己需要设计更多自动生成脚本。一般后端同学惯用此形式,十分高效。
|
|||
|
|
|||
|
```shell
|
|||
|
# 安装plop
|
|||
|
pnpm add plop
|
|||
|
```
|
|||
|
根目录创建`plopfile.ts`
|
|||
|
```typescript
|
|||
|
import { NodePlopAPI } from 'plop';
|
|||
|
export default function (plop: NodePlopAPI) {
|
|||
|
plop.setWelcomeMessage('请选择需要创建的模式:')
|
|||
|
plop.setGenerator('page', require('./plop-tpls/page/prompt'))
|
|||
|
plop.setGenerator('component', require('./plop-tpls/component/prompt'))
|
|||
|
plop.setGenerator('store', require('./plop-tpls/store/prompt'))
|
|||
|
}
|
|||
|
```
|
|||
|
|
|||
|
```shell
|
|||
|
# 启动命令
|
|||
|
pnpm run plop
|
|||
|
```
|
|||
|
![image.png](https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/a6756aebd4d6407e8545eed41b6e5864~tplv-k3u1fbpfcp-watermark.image?)
|
|||
|
|
|||
|
|
|||
|
## 🖼️ 支持`SVG`图标
|
|||
|
随着浏览器兼容性的提升,SVG的性能逐渐凸显,很多大厂团队都在创建自己的SVG管理库,后面工具库会有推荐。
|
|||
|
```shell
|
|||
|
# 安装svg依赖
|
|||
|
pnpm add vite-plugin-svg-icons
|
|||
|
```
|
|||
|
配置`vite.config.ts`
|
|||
|
```typescript
|
|||
|
import viteSvgIcons from 'vite-plugin-svg-icons';
|
|||
|
export default defineConfig({
|
|||
|
plugins:[
|
|||
|
...
|
|||
|
viteSvgIcons({
|
|||
|
// 指定需要缓存的图标文件夹
|
|||
|
iconDirs: [path.resolve(process.cwd(), 'src/assets/icons')],
|
|||
|
// 指定symbolId格式
|
|||
|
symbolId: 'icon-[dir]-[name]',
|
|||
|
}),
|
|||
|
]
|
|||
|
...
|
|||
|
})
|
|||
|
```
|
|||
|
|
|||
|
已封装一个简单的`SvgIcon`组件,可以直接读取文件下的`svg`,可以根据文件夹目录自动查找文件。
|
|||
|
|
|||
|
```html
|
|||
|
<template>
|
|||
|
<svg aria-hidden="true" class="svg-icon-spin" :class="calsses">
|
|||
|
<use :xlink:href="symbolId" :fill="color" />
|
|||
|
</svg>
|
|||
|
</template>
|
|||
|
|
|||
|
<script lang="ts" setup>
|
|||
|
const props = defineProps({
|
|||
|
prefix: {
|
|||
|
type: String,
|
|||
|
default: 'icon',
|
|||
|
},
|
|||
|
name: {
|
|||
|
type: String,
|
|||
|
required: true,
|
|||
|
},
|
|||
|
color: {
|
|||
|
type: String,
|
|||
|
default: '#333',
|
|||
|
},
|
|||
|
size: {
|
|||
|
type: String,
|
|||
|
default: 'default',
|
|||
|
},
|
|||
|
})
|
|||
|
const symbolId = computed(() => `#${props.prefix}-${props.name}`)
|
|||
|
const calsses = computed(() => {
|
|||
|
return {
|
|||
|
[`sdms-size-${props.size}`]: props.size,
|
|||
|
}
|
|||
|
})
|
|||
|
const fontSize = reactive({ default: '32px', small: '20px', large: '48px' })
|
|||
|
</script>
|
|||
|
```
|
|||
|
## 📦支持`axios(ts版)`
|
|||
|
已封装了主流的拦截器,请求调用等方法,区分了模块`index.ts`/`status.ts`/`type.ts`
|
|||
|
```typescript
|
|||
|
//封装src/api/user/index.ts
|
|||
|
import request from '@utils/http/axios'
|
|||
|
import { IResponse } from '@utils/http/axios/type'
|
|||
|
import { ReqAuth, ReqParams, ResResult } from './type';
|
|||
|
enum URL {
|
|||
|
login = '/v1/user/login',
|
|||
|
permission = '/v1/user/permission',
|
|||
|
userProfile = 'mock/api/userProfile'
|
|||
|
}
|
|||
|
const getUserProfile = async () => request<ReqAuth>({ url: URL.userProfile });
|
|||
|
const login = async (data: ReqParams) => request({ url: URL.login, data });
|
|||
|
const permission = async () => request<ReqAuth>({ url: URL.permission });
|
|||
|
export default { getUserProfile, login, permission };
|
|||
|
```
|
|||
|
```typescript
|
|||
|
//调用
|
|||
|
import userApi from "@api/user"
|
|||
|
// setup模式下组件可以直接引用
|
|||
|
const res = await userApi.profile()
|
|||
|
```
|
|||
|
## 👽 自动生成`router`,过滤`components`组件
|
|||
|
支持`vue-router4.0`的模块化,通过检索pages文件夹可自动生成路由,并支持动态路由
|
|||
|
|
|||
|
```typescript
|
|||
|
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
|
|||
|
import routes from 'virtual:generated-pages'
|
|||
|
|
|||
|
console.log(routes,'打印生成自动生成的路由')
|
|||
|
//导入生成的路由数据
|
|||
|
const router = createRouter({
|
|||
|
history: createWebHashHistory(),
|
|||
|
routes,
|
|||
|
})
|
|||
|
|
|||
|
export default router
|
|||
|
```
|
|||
|
## 🧬支持Mock数据
|
|||
|
使用`vite-plugin-mock`插件,支持自动区分和启停的环境配置
|
|||
|
|
|||
|
```javascript
|
|||
|
// vite config
|
|||
|
viteMockServe({
|
|||
|
ignore: /^\_/,
|
|||
|
mockPath: 'mock',
|
|||
|
localEnabled: !isBuild,
|
|||
|
prodEnabled: false,
|
|||
|
// https://github.com/anncwb/vite-plugin-mock/issues/9
|
|||
|
injectCode: `
|
|||
|
import { setupProdMockServer } from '../mock/_createProdMockServer';
|
|||
|
setupProdMockServer();
|
|||
|
`
|
|||
|
})
|
|||
|
```
|
|||
|
根目录下创建 `_createProductionServer.ts`文件,非`_`开头文件会被自动加载成mock文件
|
|||
|
|
|||
|
```typescript
|
|||
|
import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer';
|
|||
|
// 批量加载
|
|||
|
const modules = import.meta.globEager('./mock/*.ts');
|
|||
|
|
|||
|
const mockModules: Array<string> = [];
|
|||
|
Object.keys(modules).forEach((key) => {
|
|||
|
if (key.includes('/_')) {
|
|||
|
return;
|
|||
|
}
|
|||
|
mockModules.push(...modules[key].default);
|
|||
|
});
|
|||
|
export function setupProdMockServer() {
|
|||
|
createProdMockServer(mockModules);
|
|||
|
}
|
|||
|
```
|
|||
|
## 🎎Proxy代理
|
|||
|
```typescript
|
|||
|
// vite config
|
|||
|
import proxy from '@config/vite/proxy';
|
|||
|
export default defineConfig({
|
|||
|
...
|
|||
|
server: {
|
|||
|
hmr: { overlay: false }, // 禁用或配置 HMR 连接 设置 server.hmr.overlay 为 false 可以禁用服务器错误遮罩层
|
|||
|
// 服务配置
|
|||
|
port: VITE_PORT, // 类型: number 指定服务器端口;
|
|||
|
open: false, // 类型: boolean | string在服务器启动时自动在浏览器中打开应用程序;
|
|||
|
cors: false, // 类型: boolean | CorsOptions 为开发服务器配置 CORS。默认启用并允许任何源
|
|||
|
host: '0.0.0.0', // IP配置,支持从IP启动
|
|||
|
proxy,
|
|||
|
}
|
|||
|
...
|
|||
|
})
|
|||
|
```
|
|||
|
```typescript
|
|||
|
// proxy.ts
|
|||
|
import {
|
|||
|
API_BASE_URL,
|
|||
|
API_TARGET_URL,
|
|||
|
MOCK_API_BASE_URL,
|
|||
|
MOCK_API_TARGET_URL,
|
|||
|
} from '@config/constant';
|
|||
|
import { ProxyOptions } from 'vite';
|
|||
|
type ProxyTargetList = Record<string, ProxyOptions>;
|
|||
|
|
|||
|
const init: ProxyTargetList = {
|
|||
|
// test
|
|||
|
[API_BASE_URL]: {
|
|||
|
target: API_TARGET_URL,
|
|||
|
changeOrigin: true,
|
|||
|
rewrite: (path) => path.replace(new RegExp(`^${API_BASE_URL}`), ''),
|
|||
|
},
|
|||
|
// mock
|
|||
|
[MOCK_API_BASE_URL]: {
|
|||
|
target: MOCK_API_TARGET_URL,
|
|||
|
changeOrigin: true,
|
|||
|
rewrite: (path) => path.replace(new RegExp(`^${MOCK_API_BASE_URL}`), '/api'),
|
|||
|
},
|
|||
|
};
|
|||
|
|
|||
|
export default init;
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
## 🎉 其他
|
|||
|
|
|||
|
- 🏗 支持`vw/vh`移动端布局兼容,也可以使用`plop`自己配置生成文件
|
|||
|
- 还有更多新功能增在`commiting`,如果你有更好的方案欢迎`PR`
|
|||
|
|
|||
|
|
|||
|
# 使用
|
|||
|
一键三连: Star 或 Fork 或 [可视化仓库](https://github1s.com/tobe-fe-dalao/fast-vue3)
|
|||
|
|
|||
|
```shell
|
|||
|
# 拉取仓库代码
|
|||
|
git clone https://github.com/tobe-fe-dalao/fast-vue3.git
|
|||
|
|
|||
|
# 进入项目文件夹
|
|||
|
cd fast-vue3
|
|||
|
|
|||
|
# 安装项目依赖
|
|||
|
pnpm install
|
|||
|
|
|||
|
# 运行
|
|||
|
pnpm run dev
|
|||
|
```
|
|||
|
如果不报错,恭喜你点火成功。否则,请看下面常见问题。
|
|||
|
|
|||
|
如果你已经了解本模板,建议你拉取 `template` 分支进行项目开发,该分支不含任何示例代码。
|
|||
|
|
|||
|
```
|
|||
|
# clone template 分支
|
|||
|
git clone -b template https://github.com/tobe-fe-dalao/fast-vue3.git
|
|||
|
```
|
|||
|
|
|||
|
# 工具库
|
|||
|
学会使用适当的工具库,让`coding`事半功倍。尤其是开源的工具库,值得每个人学习,因为这本身就是你应该达到的层次。这里推荐一些大厂常用的类库,因为我喜新...,以下工具均可直接引入。
|
|||
|
|
|||
|
## JS库
|
|||
|
- [pnpm](https://pnpm.io/),一个依赖包全局管理的工具,老板再也不用担心我的C盘不够用。Vite官方推荐,字节官方前端团队大规模项目考验
|
|||
|
|
|||
|
![image-20220110125758056](https://cdn.jsdelivr.net/gh/MaleWeb/picture/images/techblog/image-20220110125758056.png)
|
|||
|
- [mitt 全局事件监听库](https://github.com/developit/mitt),Vue3官方推荐
|
|||
|
- [Hammer](http://hammerjs.github.io/),可以识别由触摸、鼠标和指针事件做出的手势,只有 7.34kb
|
|||
|
- [outils](https://github.com/proYang/outils),开发中常用的函数集,也可以使用`lodash`
|
|||
|
|
|||
|
- [tailwindcss](https://tailwindcss.com/),艾玛香的一塌糊涂,一行css不写,3分钟出一个页面。不适合初中级前端,建议还是先踏实学基础再用框架。
|
|||
|
|
|||
|
![tailwindcss-1](https://cdn.jsdelivr.net/gh/MaleWeb/picture/images/techblog/tailwindcss-1.gif)
|
|||
|
|
|||
|
![tailwindcss-2](https://cdn.jsdelivr.net/gh/MaleWeb/picture/images/techblog/tailwindcss-2.gif)
|
|||
|
|
|||
|
- [Vue I18n](https://vue-i18n.intlify.dev/) 是 Vue.js 的国际化插件,如果你想做开源框架,国际化首选插件。
|
|||
|
|
|||
|
- [ViteSSG](https://github.com/antfu/vite-ssg),SEO优化,这个项目有点意思,大家可以玩玩这个方案,之前我都是通过服务端渲染搞SEO,后来了解到这个可以直接在Vue3的服务器上生成。
|
|||
|
|
|||
|
- [Vitest](https://github.com/vitest-dev/vitest),基于Vite的单元测试工具,目前迭代比较快,尤大金牌赞助。可以持续关注,不建议使用在小项目中。
|
|||
|
|
|||
|
![image-20220110125605172](https://cdn.jsdelivr.net/gh/MaleWeb/picture/images/techblog/image-20220110125605172.png)
|
|||
|
|
|||
|
|
|||
|
# UI库
|
|||
|
- [arco-design](https://github.com/arco-design/arco-design),字节团队新出的UI框架,配置层面更为灵活,`fast-vue3`使用的就是这个,不喜欢的小伙伴可以移除
|
|||
|
- [semi-design](https://github.com/DouyinFE/semi-design),抖音前端出的框架,面向经常撕逼UI和FE,可以尝鲜玩玩
|
|||
|
- [nutui](https://github.com/jdf2e/nutui),京东前端团队出的UI框架,已升级到3.X,个人认为颜值最高并接受反驳
|
|||
|
- [naive-ui](https://github.com/TuSimple/naive-ui),尤大推荐,TypeScript语法,主题可调,这家公司挺厉害
|
|||
|
- 暂时就这些吧,困了,回头再补
|
|||
|
|
|||
|
# 资料
|
|||
|
- 官方配置文档入口[vite](https://vitejs.cn/config/)、[pinia](https://pinia.vuejs.org/introduction.html)、[vue-router4](https://next.router.vuejs.org/zh/introduction.html)、[plop](https://github.com/plopjs/plop)...
|
|||
|
- 更详细的配置手册:https://juejin.cn/post/7036745610954801166
|
|||
|
- vu3写组件实践案例:https://juejin.cn/post/7052717075168493598
|
|||
|
|
|||
|
# 贡献者
|
|||
|
|
|||
|
这个项目的存在要感谢所有做出贡献的人。
|
|||
|
|
|||
|
并感谢我们所有的支持者! 🙏
|
|||
|
|
|||
|
<a href="https://github.com/study-vue3/fast-vue3/graphs/contributors">
|
|||
|
<img src="https://contrib.rocks/image?repo=study-vue3/fast-vue3" />
|
|||
|
</a>
|
|||
|
|
|||
|
# 最后
|
|||
|
|
|||
|
- 欢迎加群[前端水友群](https://link.juejin.cn?target=https%3A%2F%2Fp3-juejin.byteimg.com%2Ftos-cn-i-k3u1fbpfcp%2Ff2747d1a5fcf4d9894e997b140b8a0d8~tplv-k3u1fbpfcp-zoom-1.image "https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/f2747d1a5fcf4d9894e997b140b8a0d8~tplv-k3u1fbpfcp-zoom-1.image"),划水,大家一起划水,现在粉丝群甚少讨论技术,那么我们就一起水吧。欢迎关注我的公众号[扫地盲僧](https://link.juejin.cn?target=https%3A%2F%2Fp3-juejin.byteimg.com%2Ftos-cn-i-k3u1fbpfcp%2Fa08fd56556654baa86975b2a5ba6a8f0~tplv-k3u1fbpfcp-watermark.image%2522 "https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/a08fd56556654baa86975b2a5ba6a8f0~tplv-k3u1fbpfcp-watermark.image%22")。
|
|||
|
|
|||
|
- 前沿技术,各类体验、互动相关的技术,各类译文、研报的提前透视。
|
|||
|
- 白嫖,承诺发布的所有付费资源,粉丝群统统免费白嫖,不然大家谁有时间跟你玩,嘿嘿。
|
|||
|
|
|||
|
|
|||
|
<p>
|
|||
|
<img width="360" src="https://cdn.jsdelivr.net/gh/MaleWeb/picture/images/techblog/varqun.jpg">
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<img width="360" src="https://cdn.jsdelivr.net/gh/MaleWeb/picture/images/techblog/扫地盲僧公众号.png">
|
|||
|
</p>
|