Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 549 Bytes

README.md

File metadata and controls

43 lines (31 loc) · 549 Bytes

Installation

npm

npm i oc-mina-ui -S

yarn

yarn add oc-mina-ui

Import components

Fully import

// main.js

import Vue from 'vue';
import OcMinaUi from 'oc-mina-ui';
import 'oc-mina-ui/dist/mina-ui.css';

Vue.use(OcMinaUi);

On demand

// main.js

import Vue from 'vue';
import { MButton, MSelectbox } from 'oc-mina-ui';
import 'oc-mina-ui/dist/mina-ui.css';

Vue.component('MButton', MButton);
Vue.component('MSelectbox', MSelectbox);

new Vue({
  el: '#app',
  render: h => h(App)
});