vux– Vue.js 移动端 UI 组件库

1.使用

安装或更新:

 npm install vux --save

  npm install vux-loader –save

 如果没有安装less:

   npm install less less-loader –save-dev

2.使用

  在main.js里面:

   import { AlertPlugin } from “vux”;

   Vue.use(AlertPlugin)

  组件里: 

methods: {
vuealert(msg) {
this.$vux.alert.show({
content: msg,
buttonText: "好的",
hideOnBlur: true
});
}
},