【文件属性】:
文件名称:Vue3-Element-Plus
文件大小:98KB
文件格式:ZIP
更新时间:2024-04-30 12:01:56
JavaScript
theme
highlight
channing-cyan
a11y-dark
,欢迎使用、Star。
为何使用 Vite
快速的冷启动
即时的模块热更新
真正的按需编译
初始化项目
使用官网提供的命令快速创建一个 Vue3.0 + Vite2.0 的项目。
# npm 6.x
npm init @vitejs/app my-vue-app --template vue
# npm 7+, 需要额外的双横线:
npm init @vitejs/app my-vue-app -- --template vue
# yarn
yarn create @vitejs/app my-vue-app --template vue
添加 Element-ui
注意:我们需要引入的是 element-plus 而不是 element-ui(element-plus 适配的是 Vue3.0)。
组件全部加
【文件预览】:
Vue3-Element-Plus-main
----.gitignore(76B)
----package.json(1KB)
----vscode-setting.json(2KB)
----commitlint.config.js(661B)
----src()
--------components()
--------main.js(380B)
--------assets()
--------App.vue(574B)
--------router()
--------common()
--------pages()
----public()
--------favicon.ico(4KB)
----vite.config.js(2KB)
----.eslintrc.js(1KB)
----README.md(12KB)
----.eslintignore(37B)
----index.html(369B)
----.lintstagedrc(94B)
----stylelint.config.js(262B)
----.husky()
--------.gitignore(2B)
--------pre-commit(78B)
--------commit-msg(69B)
----yarn.lock(307KB)