README.md

    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';
    import 'mint-ui/lib/style.css';
    
    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

    项目简介

    🚀 Github 镜像仓库 🚀

    源项目地址

    https://github.com/ElemeFE/mint-ui

    发行版本 11

    v2.2.7

    全部发行版

    贡献者 44

    全部贡献者

    开发语言

    • Vue 63.4 %
    • JavaScript 19.1 %
    • CSS 16.9 %
    • Makefile 0.2 %
    • Smarty 0.2 %