Skip to content
🏄 A rich interaction, lightweight, high performance UI library based on Weex.
Vue JavaScript HTML
Branch: master
Clone or download

Latest commit

tw93 Merge pull request #497 from ReedSun/dev
fix CHANGELOG href wrong
Latest commit 7ffdac1 May 6, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update FUNDING.yml Nov 15, 2019
bin change license to apache Sep 18, 2019
docs [+] add show-indicator param Feb 12, 2020
example [+] add show-indicator param Feb 12, 2020
packages [+] wxc-swipe-action: add container-style props Apr 22, 2020
.babelrc weex ui is coming Sep 30, 2017
.editorconfig weex ui is coming Sep 30, 2017
.eslintrc [+] loading support mask Mar 2, 2018
.gitignore fix px Sep 18, 2019
.nojekyll add nojekyll Nov 24, 2017
.npmignore [ ! ] update Dec 19, 2017
.travis.yml update Jan 1, 2018
CHANGELOG.md fix CHANGELOG href wrong Apr 20, 2020
CHANGELOG_cn.md fix CHANGELOG href wrong Apr 20, 2020
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Sep 30, 2017
CONTRIBUTING.md docs: replace to apache Nov 25, 2019
CONTRIBUTING_cn.md docs: replace to apache Nov 25, 2019
DISCLAIMER [+] add notice Nov 6, 2019
ISSUE_TEMPLATE.md docs: replace to apache Nov 25, 2019
LICENSE [i] change Nov 6, 2019
NOTICE [+] add notice Nov 6, 2019
README.md docs(update contributors): Nov 25, 2019
README_cn.md docs(update contributors): Nov 25, 2019
index.html docs: add a changelog Nov 25, 2019
index.js change license to apache Sep 18, 2019
package-lock.json [+]update docs Feb 9, 2020
package.json [+] add show-indicator param Feb 12, 2020
postcss.config.js [+] add happypack Jan 13, 2018
webpack.config.js change license to apache Sep 18, 2019

README.md

Weex Ui

中文 | English

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

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

Docs

Demo

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

Installation

npm i weex-ui -S

Usage

<template>
  <div>
    <wxc-button text="Open Popup"
                @wxcButtonClicked="buttonClicked">
    </wxc-button>
    <wxc-popup width="500"
               pos="left"
               :show="isShow"
               @wxcPopupOverlayClicked="overlayClicked">
    </wxc-popup>
  </div>
</template>

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

Before use

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

npm i babel-preset-stage-0 babel-plugin-component -D
{
    "presets": ["es2015", "stage-0"],
    "plugins": [
        [
            "component",
            {
                "libraryName": "weex-ui",
                "libDir": "packages",
                "style": false
            }
        ]
    ]
}

More

  • If babel-loader in webpack.config.js has a exclude for node_modules, please turn on for week-ui as exclude: /node_modules(?!(\/|\\).*(weex).*)/.
  • In order to get the latest features, please focus on the ChangeLog and often update weex-ui to the latest.
  • Many questions can be found from faq and issue list, if you find a new bug, just file a issue.
  • More experience in Weex construction can be learned from Weex + Ui - Weex Conf 2018 ,welcome to translate it.

Development

npm i
npm 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

  • Use Weex Ui in your daily work.
  • Star it if you like.
  • Join the chat at DingTalk to help solve weex problems.

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

  • The Apache License
  • Please feel free to use and contribute to the development.
You can’t perform that action at this time.