1. Plugins can be used, but without any style
Add import ‘element-ui/lib/theme-chalk/index.css’ to main.js
2. Import keywords on demand
To use a component, import and register.
The registered name is usually similar to the label name, for example:
To use the Table component, use the
and
tags, so register vue.use (Table) in the registry; Vue. Use (the TableColumn);
Similarly, NavMenu uses 4 tags, so register 4 vue.use (Menu); Vue.use(Submenu); Vue.use(MenuItem); Vue.use(MenuItemGroup); .