Skip to content

signer/mint-ui

This branch is 1 commit ahead of, 144 commits behind ElemeFE/mint-ui:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

346a1ef · Dec 16, 2016
Oct 13, 2016
Oct 28, 2016
Dec 11, 2016
Dec 13, 2016
Dec 16, 2016
Dec 13, 2016
Sep 27, 2016
Aug 17, 2016
Sep 27, 2016
Sep 27, 2016
Oct 13, 2016
Aug 17, 2016
Sep 27, 2016
Oct 17, 2016
Oct 26, 2016
Aug 17, 2016
Dec 13, 2016

Repository files navigation

Mint UI

Build Status npm NPM downloads JS gzip size CSS gzip size Join the chat at https://gitter.im/ElemeFE/mint-ui

Mobile UI elements for Vue 2.0

Installation

npm i mint-ui -S

# for Vue 1.x
npm i mint-ui@1 -S

Usage

Import all components.

import Vue from 'vue'
import Mint from 'mint-ui';

Vue.use(Mint);

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

import { Cell, Checklist } from 'mint-ui';

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

Equals to

import Vue from 'vue';
import Mint from 'mint-ui';
import 'mint-ui/lib/style.css';

Vue.use(Mint);

// import specified component

import MtRadio from 'mint-ui/lib/radio';
import 'mint-ui/lib/radio/style.css';

Vue.component(MtRadio.name, MtRadio);

babel-plugin-component

  • Auto import css file
  • Modular import component

Installation

npm i babel-plugin-component -D

Usage

.babelrc

{
  "plugins": ["other-plugin", ["component", [
    { "libraryName": "mint-ui", "style": true }
  ]]]
}

CDN

RawGit

NPMCDN

Development

npm run dev

Contribution

Please make sure to read the Contributing Guide before making a pull request.

License

MIT

About

Mobile UI elements for Vue.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 65.7%
  • CSS 18.2%
  • JavaScript 15.4%
  • Other 0.7%