1.0.7 • Published 4 years ago

wells-ui v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

demo: https://arronkler.github.io/wells-ui/

Install

Run the command below in your terminal to install limeUI first

npm install wells-ui --save

Usage

Global Use

Import in your entry script file and register it

import LimeUI from 'wells-ui'
import "wells-ui/lib/styles/wells-ui.css"

Vue.use(LimeUI)

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": "wells-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 'wells-ui'

Vue.component('a-button', Button)