tree: 41453c8e63caf6be6e82cadb3b605283e3f88d83 [path history] [tgz]
  1. index.js
  2. index.vue
  3. package.json
  4. part.vue
  5. README.md
  6. README_cn.md
  7. type.js
packages/wxc-loading/README.md

wxc-loading

Loading

Rule

  • Don't stop activity indicator if the task is not completed.
  • By providing meaningful texts under certain circumstances can help user understand which task is in progress.

Demo

    

Code Example

<template>
   <wxc-loading :show="isShow" type="trip"></wxc-loading>
   <wxc-part-loading :show="isShow"></wxc-part-loading>
</template>
<script>
    import { WxcLoading, WxcPartLoading } from 'weex-ui';
      components: { WxcLoading, WxcPartLoading },
      data () {
        return {
          isShow: true
        };
      }
    };
</script>

More details can be found in here

API

Page Loading

PropTypeRequiredDefaultDescription
showBoolYfalsewhether to show the loading
loading-textStringN-loading text behind the indicator
intervalNumberN0display delayed for fast Internet speed
typeStringNdefaultloading image default/trip
need-maskBoolNfalsewhether to need a covered mask
mask-styleObjectN{}mask style
loading-picStringN``Overwrite original image

事件回调

@wxcLoadingMaskClicked="maskClicked"

Part Loading

PropTypeRequiredDefaultDescription
showBoolYfalsewhether to show the loading
widthNumberN36loading width
heightNumberN36loading height