I believe that when you use Ele. me components, there will certainly be many business requirements that do not meet your own needs. At this time, you have to package your own business components that meet your own company.

element-form

Form based on ele. me UI encapsulation

The installation

NPM install

npm i element-form -S
Copy the code

src/main.js

import ElementForm from 'element-form'
import 'element-form/lib/element-form.css'

Vue.use(ElementForm)
Copy the code

Rely on

Since it is a secondary wrapper based on Element-UI, you need to install element-UI first

npm i element-ui -S
Copy the code

src/main.js

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)
Copy the code