Modify the source code ElementUI summary

1, create a new folder, to clone a local official repository:

git clone https://github.com/ElemeFE/element
cd element && npm install
npm run dev

After the package is installed to rely on the default  http: // localhost: 8085 / open the local page, you will see element Home

Into the element folders, packages folder that we want to modify the source code directory folder

For example, multi-select select remote search of the latest version 2.12.0 has a bug: When the value is bound to an object, the previous text search option to confirm later it was gone,

Modify the source code as follows:

Html modify some views, local switching element First, find select components, elements can be viewed using the review, you will see changes.

After the complete source code modification in the command line:

npm run dist

  Command line is finished, the element will generate a lib folder inside the folder

Copy the lib folder into your project directory and find node_modules enter, find the element-ui folder inside replace the lib folder, source code to modify a success

 

 

 

 

Guess you like

Origin www.cnblogs.com/paradise-of-sunshine/p/11890689.html