kyy-ui
v0.0.30
Published
<h1> kyy-ui </h1>
Readme
Install
Run the command below in your terminal to install limeUI first
npm install kyy-ui --saveUsage
Global Use
Import in your entry script file and register it
import KyyUI from 'kyy-ui'
import "lime-ui/lib/styles/kyy-ui.css"
Vue.use(KyyUI)Example
<kyy-button>click</kyy-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: "kyy-ui",
styleLibrary: {
name: "styles",
// same with styleLibraryName
base: false
// if theme package has a base.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 {kyyButton} from 'kyy-ui'
Vue.component('kyy-button', kyyButton)