1.0.0 • Published 6 years ago
hrx-ui v1.0.0
Install
Run the command below in your terminal to install limeUI first
npm install hrx-ui --saveUsage
Global Use
Import in your entry script file and register it
import HrxUI from 'hrx-ui'
import "hrx-ui/lib/styles/hrx-ui.css"
Vue.use(HrxUI)Example
<l-button>click</l-button>On-demand Loading
Firstly, you should install babel-plugin-component in your project.
npm install babel-plugin-componentConfigure your .babelrc file like this
{
"plugins": [
["component", {
"libraryName": "hrx-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 'hrx-ui'
Vue.component('a-button', Button)1.0.0
6 years ago