fvmu
v0.2.6
Published
基于vue2.5的一套UI及功能组件
Readme
安装
npm install fvmu --save引入
仅支持按需引入,需借助babel-plugin-component
首先,安装 babel-plugin-component
npm install babel-plugin-component -D然后,在 .babelrc 的 plugins 中添加:
"plugins": [
[
"component",
{
"libraryName": "fvmu",
"styleLibraryName": "styles"
}
]
]接着,在你自己的文件中引入,以Toast(plugins)或者Button(components)为例
import Vue from 'vue'
import { Toast, Button } from 'fvmu'
Vue.component(Button)
/**********************
* plugins用法,无需使用Vue.use
Toast.open("fvmu)
* 或者
Toast.open({
content: "fvmu"
})
*/