1.0.1 • Published 6 years ago
@tongdun/react-ui-exception v1.0.1
Install
npm i @tongdun/react-ui-exception
API
基础参数
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
className | 类名 | string | - |
style | 样式 | object | - |
img | 图片地址 | string | - |
type | 错误类型(可自定义) | '403','404','500' | - |
backText | 默认的返回按钮文本 | ReactNode | '返回首页' |
title | 标题 | ReactNode | - |
possibles | 可能原因 | Array/ReactNode | - |