mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
docs: update demos
This commit is contained in:
parent
998fa8816e
commit
b110b8787b
@ -51,37 +51,10 @@ function confirm() {
|
||||
});
|
||||
}
|
||||
|
||||
function info() {
|
||||
Modal.info({
|
||||
title: 'Info',
|
||||
content: 'Bla bla ...',
|
||||
okText: 'OK'
|
||||
});
|
||||
}
|
||||
|
||||
function success() {
|
||||
Modal.success({
|
||||
title: 'Success',
|
||||
content: 'Bla bla ...',
|
||||
okText: 'OK'
|
||||
});
|
||||
}
|
||||
|
||||
function error() {
|
||||
Modal.error({
|
||||
title: 'Error',
|
||||
content: 'Bla bla ...',
|
||||
okText: 'OK'
|
||||
});
|
||||
}
|
||||
|
||||
ReactDOM.render(<div>
|
||||
<LocalizedModal />
|
||||
<br />
|
||||
<Button onClick={confirm}>confirm</Button>
|
||||
<Button onClick={info}>Info</Button>
|
||||
<Button onClick={success}>Success</Button>
|
||||
<Button onClick={error}>Error</Button>
|
||||
</div>, document.getElementById('components-modal-demo-locale'));
|
||||
````
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# 国际化
|
||||
|
||||
- order: 15
|
||||
- hidden: true
|
||||
|
||||
用 `locale` 设置表格的排序、过滤按钮的文字或 `title`。
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user