Mobile components for [email protected]+.
If you need to use vmc on vue1.x, check out the @1x branch.
View Demos
VMC is a component library developed for mobile terminals, suitable for [email protected]+ .
$ npm install vmc --saveAdd the following to the entry file:
import VMC from 'vmc/install' ;
Vue . use ( VMC ) ; With LESS variable overlay, some initial styles of components can be customized, so LESS files need to be introduced manually.
@import "vmc/src/styles/vmc.less" ;
@import "assets/less/vmc.custom.less" ; // 自定义变量覆盖,参考styles/base/variable.lessOr use SASS variable override to customize some initial styles of components, and you also need to manually introduce SCSS files.
@import "assets/scss/vmc.custom.scss" ; // 自定义变量覆盖,参考scss/base/variable.scss
@import "vmc/src/scss/vmc.scss" ; import { Navbar } from 'vmc' ; Directly download vmc.css and vmc.js files in dist directory.
< link rel =" stylesheet " href =" vmc.css " >
< div id =" app " >
< v-button type =" success " @click =" $Alert('Hello world!') " >按钮</ v-button >
</ div >
< script src =" vue.js " > </ script >
< script src =" vmc.js " > </ script >
< script >
new Vue ( {
el : '#app'
} ) ;
</ script > This method automatically registers global components and automatically registers all components without additional operations.
icono icon (ICON)
1px border (1px border)
Logo (Badge)
Alignment of both ends (Justify)
Text omission (NoWrap)
Red dot
ActionSheet
Warning box (Alert)
Placeholder box (Box)
Button
Card
Single column (Cell)
CheckBox
Confirm
DialogBox
Pagination refresh (DropLoad)
Grid
Forced input box (mInput)
Prompt input box (vInput)
Alignment of both ends (Justify)
Rolling announcement (Marquee)
Navbar
Digital input (Number)
Overlay
Picker
Popup layer (Popup)
Popup Picker
Popup Date Picker
Progressbar
Prompt input box (Prompt)
Radio box
Rating (Rater)
Title Row
Carousel image (Slider)
Dynamic indicator (Spinner)
Submit button (Submit)
Navigation Bar (Tabbar)
TabControl
TextArea
Switch (Toggle)
Loading prompt
Success prompt (Success)
Error prompt (Error)
Information prompt (Info)
Text prompt (Toast)
Upload component (Upload)
$ npm run dev
After the command is executed, the files in the examples directory will be automatically run for development and debugging.
$ npm run release
After the command is executed, vmc will be published to dist directory.
$ npm run build
After the command is executed, the files in the examples directory will be automatically packaged into docs directory.
$ npm run docs
After the command is executed, the docs directory will be used as a static document server resource and can be accessed directly from the browser.
MIT