wdui
Mobile UI Components Library based on Vue 2.0
Last updated a year ago by yangyuliang .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install wdui 
SYNC missed versions from official npm registry.

WDUI

Build Status Coverage Status npm package License: MIT

安装

npm i wdui@latest --save-dev

引入

整体引入

import Vue from 'vue'
import * as wdui from 'wdui' //整体引入
import 'wdui/lib/styles/theme-default/index.css' //引入样式文件

Vue.use(wdui)

按需引入(使用 babel-plugin-component 插件)

npm i babel-plugin-component --save-dev

修改 babel 配置文件 .babelrc, 添加 babel-plugin-component 插件

{
  "plugins": ["transform-vue-jsx", "something else" ,["babel-plugin-component", {
    "libraryName": "wdui",
    "style": false
  }]],
}

按需引入

import {Header} from 'wdui'

export default {
  components: {
    'wd-header': Header
  }
}

Tips

  • 全部组件使用 REM 布局实现多终端适配,使用本组件库时请搭配使用 lib-flexible 方案。
  • 兼容性: Android 4.4 + , iOS 6 +

Contribute

请参考 Contribute Guide 后提交 Pull Request。

Acknowledgements

wdui 开发时曾参考过以下项目:

License

MIT

Current Tags

  • 0.8.2                                ...           latest (a year ago)

21 Versions

  • 0.8.2                                ...           a year ago
  • 0.8.1                                ...           a year ago
  • 0.8.0                                ...           a year ago
  • 0.7.4                                ...           a year ago
  • 0.7.2                                ...           a year ago
  • 0.7.1                                ...           a year ago
  • 0.7.0                                ...           2 years ago
  • 0.6.13                                ...           2 years ago
  • 0.6.12                                ...           2 years ago
  • 0.6.11                                ...           2 years ago
  • 0.6.10                                ...           2 years ago
  • 0.6.9                                ...           2 years ago
  • 0.6.8                                ...           3 years ago
  • 0.6.7                                ...           3 years ago
  • 0.6.6                                ...           3 years ago
  • 0.6.5                                ...           3 years ago
  • 0.6.4                                ...           3 years ago
  • 0.6.3                                ...           3 years ago
  • 0.6.2                                ...           3 years ago
  • 0.6.1                                ...           3 years ago
  • 0.6.0                                ...           3 years ago
Downloads
Today 0
This Week 21
This Month 22
Last Day 0
Last Week 0
Last Month 6
Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |