初始化 antd-pro
This commit is contained in:
29
admin-web/src/components/Exception/demo/403.md
Normal file
29
admin-web/src/components/Exception/demo/403.md
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
order: 2
|
||||
title:
|
||||
zh-CN: 403 页面
|
||||
en-US: 403 Page
|
||||
---
|
||||
|
||||
## zh-CN
|
||||
|
||||
403 页面,配合自定义操作。
|
||||
|
||||
## en-US
|
||||
|
||||
403 page with custom operations.
|
||||
|
||||
````jsx
|
||||
import Exception from 'ant-design-pro/lib/Exception';
|
||||
import { Button } from 'antd';
|
||||
|
||||
const actions = (
|
||||
<div>
|
||||
<Button type="primary">Home</Button>
|
||||
<Button>Detail</Button>
|
||||
</div>
|
||||
);
|
||||
ReactDOM.render(
|
||||
<Exception type="403" actions={actions} />
|
||||
, mountNode);
|
||||
````
|
||||
Reference in New Issue
Block a user