Mobile UI Components, based on Vue.js and ionic CSS

Overview

Mobile UI Components, based on Vue.js and ionic CSS.

Demo

https://wangdahoo.github.io/vonic/docs/

Notice

  • v2.0.0-beta.15 released.
$ npm install [email protected]
  • for vue 1.0, please refer to branch 1.x.

Features

  • Equip with Vue.js, Vue-Router, ES6 & Babel 6
  • Cool with Webpack 2.0 & Vue Loader
  • Ionic CSS Components
  • Stylesheets in Sass
  • Starter Project for Development Quick Start

Components

  • Material Design Button
  • Input
  • Search
  • Radio
  • Checkbox
  • Toggle
  • RangeSlider
  • Badge
  • Toast
  • Loading
  • Header
  • List
  • Cells
  • Tabs
  • ButtonBar
  • Scalable
  • Swiper
  • Scroll
  • VueScroller
  • Cascade
  • Accordion
  • Datepicker
  • Dialog
  • Popup
  • Modal
  • ActionSheet
  • Sidebar
  • TabBar

Getting started

quick start with vue-cli.

$ npm i vue-cli -g
$ vue init wangdahoo/vonic-template#2.0 my-vonic-app
$ cd my-vonic-app
$ yarn install

Run project

$ npm run dev

That's it.

And if you start with vue-webpack-boilerplate by vue-cli, check the following starter for your reference. https://github.com/wangdahoo/vonic-webpack-starter

Documents

Thanks to

LICENSE

MIT

Comments
  • Tabbar与modal混用时的bug

    Tabbar与modal混用时的bug

    主入口app.vue,这里设置了Tabbar,然后再在这个app.vue渲染其他子页面

    <template>
      <div class="page" v-tabbar="{'menus': menus, menuColor: '#808080', activeMenuColor: '#D0AE81', onMenuClick: menuClicked}">
        <router-view class="child-view"></router-view>
      </div>
    </template>
    

    然后子页面调用了一个modal,假设这个子页面是 sub.vue,弹出了 modal.vue,

    通过Tabbar切换到 sub.vue ,再点击按钮弹出 modal.vue,正常! 但是在 sub.vue刷新页面,点击按钮弹出 modal.vue,不正常。

    原因是dom插入的位置不对。正常情况下<div von-modal="" class="modal-backdrop hide">应该在<div class="tabbar">之后,但是刷新页面时候却不是这样。通过tabbar切换是才会恢复正常。

    目前我这里的解决办法是tabbar的z-index: 2;

    opened by webees 7
  • API里的控件用法怎么用?

    API里的控件用法怎么用?

    HellowWorld可以运行了,但是API里的写法和HellowWorld的写法不一样啊,