index.js 307 B

1234567891011121314151617
  1. import { connect } from 'herculex';
  2. Component(connect({
  3. mapStateToProps: {}
  4. })({
  5. props: {
  6. title: '数据加载失败',
  7. subTitle: '待会来试试,或者',
  8. btnText: '继续刷新',
  9. onBtnHandle: () => {}
  10. },
  11. methods: {
  12. handleBtn() {
  13. this.props.onBtnHandle();
  14. }
  15. }
  16. }));