chore: 补充 React Alert 组件的多语言说明

This commit is contained in:
吴多益 2022-01-28 11:03:05 +08:00 committed by GitHub
parent 5235f2ef1e
commit f72734bdda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -396,13 +396,14 @@ class MyComponent extends React.Component<any, any> {
render() {
let amisScoped;
let theme = 'cxd';
let locale = 'zh-CN';
// 请勿使用 React.StrictMode目前还不支持
return (
<div>
<p>通过 amis 渲染页面</p>
<ToastComponent theme={theme} key="toast" position={'top-right'} />
<AlertComponent theme={theme} key="alert" />
<ToastComponent theme={theme} key="toast" position={'top-right'} locale={locale} />
<AlertComponent theme={theme} key="alert" locale={locale} />
{renderAmis(
{
// 这里是 amis 的 Json 配置。