docs: update demos

This commit is contained in:
Benjy Cui 2015-11-24 16:39:16 +08:00
parent 998fa8816e
commit b110b8787b
2 changed files with 1 additions and 28 deletions

View File

@ -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'));
````

View File

@ -1,6 +1,6 @@
# 国际化
- order: 15
- hidden: true
`locale` 设置表格的排序、过滤按钮的文字或 `title`