Common error result pages, which include general errors, no products, no network, and error of locating errors
- Used for error pages to reduce user anxiety.
- You can configure this type.js#L5 for custom errors
<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
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 |
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' }}
@wxcResultButtonClicked="wxcResultButtonClicked"