@pistachio.com/element
v1.0.0
Published
基于Vue3封装的ElementPlus组件库
Downloads
1
Readme
v-element
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VSCode + Volar (and disable Vetur).
Type Support for .vue
Imports in TS
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue
types.
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Type-Check, Compile and Minify for Production
npm run build
Lint with ESLint
npm run lint
选择 postcss 作为组件库样式解决方案的原因
- 轻量级(使用 JS 原生开发)
- 插件化(nesting / 循环(each)/ mixin 等)
- Vite 原生支持 postcss,也支持 css module