The basic use of the Element-UI

The basic use of the Element-UI 

 

Element-UI: a set of developers, designers and desktop component library prepared based product manager of Vue 2.0.

To reduce developers to write UI style, using ready-made style

 

Official website address is: http://element-cn.eleme.io/#/zh-CN

1. Manual command line install 

① install dependencies npm i element-ui -S

② Import Element-UI-related resources

// Import Component Library 

Import from ElementUI 'UI-Element' ; 

// import component related styling 

Import 'UI-Element / lib / Theme-Chalk / index.css' ; 

// configuration Vue plug 

Vue.use (ElementUI);

 

Guess you like

Origin www.cnblogs.com/dlm17/p/12446671.html