Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

weex-ui

apache1.2kApache-2.00.8.6

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

Weex Ui, Weex, Vue, Mobile, Ul Components, UI library

readme

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.

changelog

Change Log

0.8.6

0.8.5

  • [!] wxc-dialog: supplement missing parameters show in document
  • [!] wxc-mask: fix bug that inconsistent behavior between clicking close button and clicking overlay
  • [+] wxc-pan-item: add judgment before using element

0.8.4

  • [+] wxc-lightbox add show-indicator param to show indicator

0.8.3

0.8.0

0.7.1

  • [+] wxc-slider-bar add wxcSliderBarTouchEnd event.
  • [!] Fixed wxc-mask jitter bug when inputting.
  • [!] Fixed the problem that the QR code does not display when debugging.

0.7.0

0.6.16

0.6.15

  • [!] wxc-swipe-actionfix delete the last data item, then click on another item to report the error.
  • [!] wxc-slider-bar fix dynamically assign value to value, then slide back to return value
  • [!] wxc-radio fix the selected item cannot be modified when modifying the list array

0.6.14

0.6.13

  • [!] Fixedwxc-overlayproblem onwxc-tab-bar
  • [+] add a new componet named wxc-swipe-action
  • [!] Fix wxc-button displaying style problem, add isHighlight attribute to control whether button is highlighted or not.

0.6.12

0.6.11

0.6.10

0.6.9

0.6.8

0.6.7

0.6.6

0.6.5

0.6.4

0.6.3

0.6.2

0.6.1

  • [+] wxc-tab-page add wxc-full-page of immersion full screen effect, more you can see the component document.
  • [+] wxc-tab-page add a param about need-slider.
  • [!] Fixed the bug about import {BindEnv} from 'weex-ui'.
  • [!] wxc-cell supports setting extra content.
  • [!] Fixed the show about wxc-slider-bar in web and iOS
  • [+] wxc-refresher supports refresh and pullingdown event.

0.6.0

  • [+] wxc-button supports more type settings, remove normal/ highlight,add new type ahout white and blue,new button size settings, pay attention to the upgrade.
  • [!] Solve the problem of too big packaging bundle of bindingx,Binding related judgments are transferred from Utils.env to BindEnv,pay attention to the upgrade. issue 191
  • [+] New Binding component: wxc-refresh, at the present stage of beta, suggestions are welcome.
  • [-] Remove the hints for default style of the component in weex-vue-loader high version. issue 198
  • [+] wxc-popover support animation. pr 184
  • [+] wxc-searchbar support setting bar-style style to cover theme color.
  • [!] wxc-rich-text enhanced compatibility with iPad and Android.
  • [+] Document update for Faq and Binding.

0.5.3

  • [!] wxc-city support not to display the location, direct incoming currentLocation is empty.
  • [+] wxc-checkbox add has-top-border/has-bottom-border for whether show top-border or bottom-border.
  • [+] wxc-progress add bar-radius for setting border-radius.

0.5.2

  • [!] Using rebind() to be compatible older version about wxc-ep-slider.
  • [+] wxc-searchbar allow translation of "cancel" button label
  • [!] Fix the overlay-can-close bug about wxc-mask.

0.5.0

0.4.1

0.4.0

  • [+] Stronger about wxc-city,it's easier to use, no need to configure a lot of parameters.
  • [!] Optimization of GitHub Readme.
  • [+] Add a Chinese version of Changelog
  • [+] Add more FQA.
  • [+] Merge pull request from committer.

0.3.13

0.3.12

0.3.11

  • [+]wxc-tab-bar supports fully customizable navigation header using slot
  • [!] Fixed the dynamic update bug about wxc-radio.
  • [!] Fixed the example code error about wxc-result. issue112.
  • [!] Fix the bug about wxc-mask that will hidden when updating. issue111.
  • [!] Fix the iconfont bug about wxc-tab-bar.
  • [+] The official website supports user editing and directly copy example code.

0.3.10

0.3.9

  • [+] wxc-minibar supports slot.
  • [+] Stronger about wxc-rich-text,do not need post the width and height for a icon.
  • [+] Add a FQA.

0.3.8

0.3.7

  • [!] Fixed the height calculation error aboutwxc-tab-bar.
  • [+] Util function Enhancement.
  • [!] Modify the configuration of webpack.

0.3.4

  • [+]wxc-radiowxc-checkbox add a config param for changing the style and icon.
  • [!]wxc-result using general theme instead of fliggy theme.
  • [!][wxc-button] using red/yellow instead of taobao/fliggy.
  • [+] Add a chat of the website.

0.3.3

0.3.2

  • [!] Organize all component documents.
  • [!] Some of the optimizations on the website.
  • [!] Fixed some component export error in some env issue 70.

0.3.1

  • [+] wxc-page-calendar add a showHeader params.
  • [!] Correct the minibar function callback.

0.3.0

  • [+] New component: wxc-tab-bar 🎉🎉
  • [-] Remove all demo Internal characteristics of Alibaba.

0.2.9

  • [+] Support for IPhoneX.
  • [!] The code format follows ESlint.
  • [+] Stronger about wxc-page-calendar.
  • [+] Document official website. 🎉🎉

0.2.8

  • [+] Accessibility of components. 🎉🎉

0.2.7

  • [+] Stronger about wxc-tab-page.
  • [!] Updated the development packages.
  • [!] Supplement the README.

0.2.6

  • [!] Fixed the wxc-dialog bug.

0.2.3

  • [-]#44 Remove the overlay-can-close prop in wxc-mask.
  • [-]#45 Remove the useless style in wxc-cell.
  • [!] Fixed the npm run start .

0.2.2

  • [!] Fix image link problem.

0.2.1

0.2.0

  • [!] Update reference mode.
  • [!] Normalized structure.
  • [!] Fixed part of the component in some environments that cannot be used.

0.1.3

  • [+] Fix syntax highlighting.
  • [!] Fixed wxc-indexlist bug from issues/16.
  • [!] Normalize wxc-searchbar,wxc-minibar function name.

0.1.2

  • [!] fixed the link jump bug.
  • [!] Modify the usage documentation for some components.

0.1.1

  • [!] Improve component usage documentation.

0.1.0

  • [+] The first full version. 🎉🎉