0.8.6 • Published 3 years ago

weex-ui v0.8.6

Weekly downloads
1,108
License
Apache-2.0
Repository
github
Last release
3 years ago

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, it's 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 weex-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 in the faq and issue list, if you find a new bug, just file an 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.
0.8.6

3 years ago

0.8.5

4 years ago

0.8.4

4 years ago

0.8.3

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.1

4 years ago

0.7.0

5 years ago

0.6.17

5 years ago

0.6.16

5 years ago

0.6.15

5 years ago

0.6.14

5 years ago

0.6.13

5 years ago

0.6.12

5 years ago

0.6.11

5 years ago

0.6.10

5 years ago

0.6.9

5 years ago

0.6.8

5 years ago

0.6.7

6 years ago

0.6.6

6 years ago

0.6.5

6 years ago

0.6.4

6 years ago

0.6.4-beta2

6 years ago

0.6.4-beta1

6 years ago

0.6.4-beta

6 years ago

0.6.3

6 years ago

0.6.3-beta3

6 years ago

0.6.3-beta2

6 years ago

0.6.3-beta1

6 years ago

0.6.3-beta

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.1-beta

6 years ago

0.6.0

6 years ago

0.6.0-beta-4

6 years ago

0.6.0-beta-3

6 years ago

0.6.0-beta-2

6 years ago

0.6.0-beta

6 years ago

0.5.4-beta-1

6 years ago

0.5.4-beta

6 years ago

0.5.3

6 years ago

0.5.3-beta

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.5.0-beta1

6 years ago

0.5.0-beta

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.13

6 years ago

0.3.13-beta3

6 years ago

0.3.13-beta2

6 years ago

0.3.13-beta1

6 years ago

0.3.13-beta

6 years ago

0.3.12

6 years ago

0.3.12-beta

6 years ago

0.3.11

6 years ago

0.3.11-beta2

6 years ago

0.3.11-beta1

6 years ago

0.3.11-beta

6 years ago

0.3.10

6 years ago

0.3.10-beta3

6 years ago

0.3.10-beta2

6 years ago

0.3.10-beta1

6 years ago

0.3.10-beta

6 years ago

0.3.9

6 years ago

0.3.9-beta1

6 years ago

0.3.9-beta

6 years ago

0.3.8

6 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.4-beta

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.2-beta

6 years ago

0.3.1

6 years ago

0.3.1-beta

6 years ago

0.3.0

6 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.2.0-beta

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago