Skip to content
Mobile UI elements for Vue.js
Branch: master
Clone or download
云淇淋
云淇淋 Merge pull request #1250 from firesh/dev-action-sheet
[action-sheet] long action sheet support scrolling
Latest commit c875541 Jan 16, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update ISSUE_TEMPLATE.md Mar 27, 2017
build fix: … will transform to Object.assign by buble (#860) May 6, 2017
example feat(datetime-picker): add visible-change and closeOnClickModal Dec 11, 2017
lib [build] 2.2.13 Dec 11, 2017
packages Merge pull request #1250 from firesh/dev-action-sheet Jan 16, 2018
src [build] 2.2.13 Dec 11, 2017
.eslintignore (next)Refactor build scripts Sep 27, 2016
.eslintrc
.gitignore add translate changed method to loadmore component (#812) Apr 20, 2017
.travis.yml (next)Refactor build scripts Sep 27, 2016
FAQ.md add FAQ Oct 13, 2016
LICENSE Init Aug 17, 2016
Makefile (next)Refactor build scripts Sep 27, 2016
README.md remove codesponsor Jan 5, 2018
components.json add Palette Button component Oct 26, 2016
lerna.json Init Aug 17, 2016
package.json [release] 2.2.13 Dec 11, 2017
yarn.lock fix: breaking changes from vue@2.3.0 (#859) May 6, 2017

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

You can’t perform that action at this time.