gq-ui

1.0.2 • Public • Published

axzUI

A lightweight Vue.js UI toolkit

Install

Run the command below in your terminal to install axzUI first

npm install axz-ui --save

Usage

Global Use

Import in your entry script file and register it

import axzUI from 'axz-ui'
import "axz-ui/lib/styles/axz-ui.css"

Vue.use(axzUI)

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

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

Readme

Keywords

none

Package Sidebar

Install

npm i gq-ui

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

875 kB

Total Files

61

Last publish

Collaborators

  • gqwudi