alibaba/weex-ui

Name: weex-ui

Owner: Alibaba

Description: ? A rich interaction, lightweight, high performance UI library based on Weex.

Created: 2017-09-27 10:41:36.0

Updated: 2018-05-24 16:42:18.0

Pushed: 2018-05-24 10:57:40.0

Homepage: https://alibaba.github.io/weex-ui

Size: 5403

Language: Vue

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Weex Ui

Build Status npm NPM downloads NPM all downloads GitHub last commit GitHub closed issues Package Quality Join the chat at https://gitter.im/alibaba-weex-ui/chat

A rich interaction, lightweight, high performance UI library based on Weex.

Docs
Demo

Try it with Fliggy?Taobao?Tmall?Weex Playground or any browsers now!

Installation
i weex-ui -S
Usage
plate>
iv>
<wxc-button text="Open Popup"
            @wxcButtonClicked="buttonClicked">
</wxc-button>
<wxc-popup width="500"
           pos="left"
           :show="isShow"
           @wxcPopupOverlayClicked="overlayClicked">
</wxc-popup>
div>
mplate>

ipt>
port { WxcButton, WxcPopup } from 'weex-ui';
 or
 import WxcButton from 'weex-ui/packages/wxc-button';
 import WxcPopup from 'weex-ui/packages/wxc-popup';
dule.exports = {
components: { WxcButton, WxcPopup },
data: () => ({
  isShow: false
}),
methods: {
  buttonClicked () {
    this.isShow = true;
  },
  overlayClicked () {
    this.isShow = false;
  }
}

ript>
Before use

In order not to pack all the components, you need use babel-plugin-component to import specified component. At the same time, if you don't install babel-preset-stage-0, also need to install it.

i babel-preset-stage-0 babel-plugin-component  -D
son

"presets": ["es2015", "stage-0"],
"plugins": [
    [
        "component",
        {
            "libraryName": "weex-ui",
            "libDir": "packages",
            "style": false
        }
    ]
]

More
Development
i
run start

Once it has been compiled, a browser window will be opened automatically. You can switch to developer mode to see the demo. And there will be a QR code that you can use to try the demo on your phone in the console.

Support
Contribution

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our Contributing Guide before making a pull request.

Thank you to all the people who already contributed to Weex Ui!

License

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.