Go to file
remote_star 999a35559c doc(site): add code copy function. 2018-04-26 14:22:52 +08:00
.github build:update issue template 2018-04-17 11:03:43 +08:00
build fix: fix comonjs export module 2018-04-19 14:05:33 +08:00
components feat(tip, toast): enable passing number instead of string. 2018-04-26 11:00:53 +08:00
config Initial commit 2018-03-26 16:04:04 +08:00
docs doc(site): add code copy function. 2018-04-26 14:22:52 +08:00
examples fix: fix fastclick export error[#1] 2018-04-12 20:23:58 +08:00
site doc(site): add code copy function. 2018-04-26 14:22:52 +08:00
static Initial commit 2018-03-26 16:04:04 +08:00
test/unit fix(build): unit test script 2018-04-02 16:10:29 +08:00
types Initial commit 2018-03-26 16:04:04 +08:00
.babelrc Initial commit 2018-03-26 16:04:04 +08:00
.editorconfig Initial commit 2018-03-26 16:04:04 +08:00
.eslintignore Initial commit 2018-03-26 16:04:04 +08:00
.eslintrc.js Initial commit 2018-03-26 16:04:04 +08:00
.gitignore fix:ignore package lock file🤞 2018-03-31 22:30:07 +08:00
.travis.yml Update CI 2018-04-11 16:41:58 +08:00
CHANGELOG.md Bump version up to 1.0.8 2018-04-24 23:10:33 +08:00
CONTRIBUTING.md Initial commit 2018-03-26 16:04:04 +08:00
LICENSE Initial commit 2018-03-26 16:04:04 +08:00
README.md update README 2018-04-11 15:26:26 +08:00
gulpfile.js Initial commit 2018-03-26 16:04:04 +08:00
package.json Bump version up to 1.0.8 2018-04-24 23:10:33 +08:00
postcss.config.js fix: css nano change keyframes name 2018-04-10 16:43:33 +08:00

README.md


mand-mobile

Build Status codecov npm package NPM downloads

A mobile UI toolkit, based on Vue.js 2, designed for financial scenes.

Examples Link

Install & Usage

Install

npm install mand-mobile --save

Import

import { Button } from 'mand-mobile'
  • Manually import
import Button from 'mand-mobile/lib/button'
  • Totally import
import Vue from 'vue'
import mandMobile from 'mand-mobile'
import 'mand-mobile/lib/mand-mobile.css'

Vue.use(mandMobile)

Usage

Select the components that you need to build your webapp. Find more details in component preview.

<template>
  <div id="app">
    <md-field title="form" class="block">
      <md-input-item
        title="name"
        placeholder="Please input your name."
      ></md-input-item>
      <md-field-item
        title="sex"
        arrow="arrow-right"
        :value="sex"
        @click="isPickerShow = true"
        solid
      ></md-field-item>
      <md-picker
        v-model="isPickerShow"
        :data="pickerData"
        title="sex"
      ></md-picker>
    </md-field>
    <md-agree class="agree">
      Agree to the privacy policy.
    </md-agree>
    <md-action-bar :actions="actionBarData">
      &yen;128.00
    </md-action-bar>
  </div>
</template>

<script>
import {
  Agree,
  ActionBar,
  Field,
  FieldItem,
  InputItem,
  Picker
} from 'mand-mobile'

export default {
  name: 'app',

  components: {
    [Agree.name]: Agree,
    [ActionBar.name]: ActionBar,
    [Field.name]: Field,
    [FieldItem.name]: FieldItem,
    [InputItem.name]: InputItem,
    [Picker.name]: Picker
  },

  data () {
    return {
      isPickerShow: false,
      actionBarData: [{
        text: 'confirm'
      }],
      pickerData: [
        [
          { text: 'male' },
          { text: 'female' }
        ]
      ]
    }
  }
}
</script>

Development

git clone git@github.com:didi/mand-mobile.git
cd mand-mobile
npm install
npm run dev

Open your browser and visit http://127.0.0.1:4000. Find more details in development guide.

Contributing

Welcome to contribute by creating issues or sending pull requests. See Contributing Guide for guidelines.

License

Mand Mobile is licensed under the Apache License 2.0. See the LICENSE file.