Mint UI

基于 Vue.js 的移动端组件库。(Mobile UI elements for Vue.js.)

Github stars Tracking Chart

基于 Vue.js 的移动端组件库。

特性
  • Mint UI 包含丰富的 CSS 和 JS 组件,能够满足日常的移动端开发需要。通过它,可以快速构建出风格统一的页面,提升开发效率。
  • 真正意义上的按需加载组件。可以只加载声明过的组件及其样式文件,无需再纠结文件体积过大。
  • 考虑到移动端的性能门槛,Mint UI 采用 CSS3 处理各种动效,避免浏览器进行不必要的重绘和重排,从而使用户获得流畅顺滑的体验。
  • 依托 Vue.js 高效的组件化方案,Mint UI 做到了轻量化。即使全部引入,压缩后的文件体积也仅有 ~30kb (JS + CSS) gzip。

Overview

Name With OwnerElemeFE/mint-ui
Primary LanguageVue
Program languageMakefile (Language Count: 6)
Platform
License:MIT License
Release Count49
Last Release Namev2.2.13 (Posted on 2017-12-11 15:31:12)
First Release Namev0.1.4 (Posted on 2016-06-07 18:12:01)
Created At2016-05-17 09:54:10
Pushed At2022-02-28 17:06:11
Last Commit At2018-01-16 17:38:38
Stargazers Count16.6k
Watchers Count476
Fork Count3.5k
Commits Count304
Has Issues Enabled
Issues Count1225
Issue Open Count239
Pull Requests Count297
Pull Requests Open Count53
Pull Requests Close Count57
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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

To the top