Skip to content

Latest commit

 

History

History
 
 

wxc-result

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

wxc-result

Common error result pages, which include general errors, no products, no network, and error of locating errors

Rule

  • Used for error pages to reduce user anxiety.
  • You can configure this type.js#L5 for custom errors

    

Code Example

<template>
  <wxc-result type="errorPage"
              :show="show"
              padding-top="232"
              @wxcResultButtonClicked="wxcResultButtonClicked"></wxc-result>
</template>
<script>
  import { WxcResult } from 'weex-ui';
  export default {
    components: { WxcResult },
    data: () => ({
        show: true
    }),
    methods: {
      wxcResultButtonClicked(e){
        modal.toast({
          'message': e.type,
          'duration': 1,
        })
      }
    }
  };
</script>

More details can be found in here

API

Prop Type Required Default Description
type String N errorPage errorPage、noNetwork、noGoods、errorLocation
show Boolean N true whether to show
padding-top Number N 240 padding top from screen
custom-set Object N {} custom config type.js#L4
wrap-style Object N {} custom wrap style

Custom Config

this.customSet={errorPage: { button: null, desc: 'You can try to reduce the filter content', content: 'I'm sorry, Sir. I haven't found the recommended conditions' }}

Event

@wxcResultButtonClicked="wxcResultButtonClicked"