element-ui component library source of secondary development
Use vue has been more than a year, has also been a soft spot for this element-ui vue component library. Read element-ui source code, I learned more than imagined. The source of the element-ui is out of reform compatible with our existing systems. I went to my current Secretary of the time, the project has entered the operation and maintenance of the front end with the old jsp + jquery + original js. In the efficient development of the field, I had the original volume of overtime are able to fulfill the original js continuous operation html tags. It was decided to introduce such a thing vue, but also to the team who can learn something new now.
1, export element-ui source
https://github.com/ElemeFE/element
2, dependent on the introduction of
npm install
3, the modified source code package assembly packages
For example:
Then save.
4, packing
npm run dist
The resulting directory as follows:
5, the replacement of elementui node_modules
Finally restart the project, you can see the effects.