0.1.0 • Published 8 years ago

oui-vue v0.1.0

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

oui-vue

Mobile UI elements for vue.js

Installation

npm i oui-vue -S

Usage

import all components.

import Vue from 'vue'
import Oui from 'oui-vue';

Vue.use(Oui);

Or import specified component. (Use babel-plugin-component)

import { Cell, Checklist } from 'oui-vue';

Vue.component(Cell.name, Cell);
Vue.component(Checklist.name, Checklist);

Equal to

import Vue from 'vue';
import Oui from 'oui-vue';
import 'oui-vue/lib/style.css';

Vue.use(Oui);

// import specified component

import Radio from 'oui-vue/lib/radio';
import 'oui-vue/lib/radio/style.css';

Vue.component(Radio.name, Radio);

babel-plugin-component

  • Auto import css file
  • Modular import component

Installation

npm i babel-plugin-component -D

Usage

.babelrc

{
  "plugins": ["other-plugin", ["component", [
    { "libraryName": "oui-vue", "style": true }
  ]]]
}

Development

npm i cooking -g
make dev

Production

make dist

Deploy Example

make deploy

License

MIT

0.1.0

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago