qyuan-vur-ui
v1.1.1
Published
another light weight vue.js component library
Downloads
1
Readme
Install
Run the command below in your terminal to install qyuanUI first
npm install qyuan-vur-ui --save
Usage
Global Use
Import in your entry script file and register it
import qyuanUI from 'qyuan-vur-ui'
import "qyuan-vur-ui/lib/styles/qyuan-vur-ui.css"
Vue.use(qyuanUI)
Example
<l-button>click</l-button>
On-demand Loading
Firstly, you should install babel-plugin-component
in your project.
npm install babel-plugin-component
Configure your .babelrc
file like this
{
"plugins": [
["component", {
"libraryName": "qyuan-vur-ui",
"libDir": "lib",
"styleLibrary": {
"name": "styles",
"base": false, // no base.css file
"path": "[module].css"
}
}]
]
}
The you can import component on demand, and you don't need to care about importing styles, the babel plugin will do it automaticly.
import Vue from 'vue'
import { Button } from 'qyuan-vur-ui'
Vue.component('y-button', Button)