vue学习笔记(二): 添加 element ui 插件
一、加载 ui element
vue add element
加载过程及成功结果如下
> vue add element
> 📦 Installing vue-cli-plugin-element... > + vue-cli-plugin-element@1.0.1 > added 1 package from 1 contributor in 64.25s > ✔ Successfully installed plugin: vue-cli-plugin-element
> ? How do you want to import Element? Fully import > ? Do you wish to overwrite Element's SCSS variables? No > ? Choose the locale you want to load zh-CN > 🚀 Invoking generator for vue-cli-plugin-element... > 📦 Installing additional dependencies... > added 6 packages from 6 contributors in 47.411s > ⚓ Running completion hooks... > ✔ Successfully invoked generator for plugin: vue-cli-plugin-element
文档结构如下: