0.0.3 • Published 6 years ago

mw-toolbox v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

mw-toolbox

npm npm vue2

A Vue.js Plugin

Table of contents

Installation

npm install --save mw-toolbox

Default import

Install all the components:

import Vue from 'vue'
import MwToolbox from 'mw-toolbox'

Vue.use(MwToolbox)

Use specific components:

import Vue from 'vue'
import { Test } from 'mw-toolbox'

Vue.component('test', Test)

Distribution import

Install all the components:

import 'mw-toolbox/dist/mw-toolbox.css'
import MwToolbox from 'mw-toolbox/dist/mw-toolbox.common'

Vue.use(MwToolbox)

Use specific components:

import 'mw-toolbox/dist/mw-toolbox.css'
import { Test } from 'mw-toolbox/dist/mw-toolbox.common'

Vue.component('test', Test)

Browser

<link rel="stylesheet" href="mw-toolbox/dist/mw-toolbox.css"/>

<script src="vue.js"></script>
<script src="mw-toolbox/dist/mw-toolbox.browser.js"></script>

The plugin should be auto-installed. If not, you can install it manually with the instructions below. Install all the components:

Vue.use(MwToolbox)

Use specific components:

Vue.component('test', MwToolbox.Test)

Source import

Install all the components:

import Vue from 'vue'
import MwToolbox from 'mw-toolbox/src'

Vue.use(MwToolbox)

Use specific components:

import Vue from 'vue'
import { Test } from 'mw-toolbox/src'

Vue.component('test', Test)

Usage

TODO

License

MIT