mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore: 补充 React Alert 组件的多语言说明
This commit is contained in:
parent
5235f2ef1e
commit
f72734bdda
@ -396,13 +396,14 @@ class MyComponent extends React.Component<any, any> {
|
|||||||
render() {
|
render() {
|
||||||
let amisScoped;
|
let amisScoped;
|
||||||
let theme = 'cxd';
|
let theme = 'cxd';
|
||||||
|
let locale = 'zh-CN';
|
||||||
|
|
||||||
// 请勿使用 React.StrictMode,目前还不支持
|
// 请勿使用 React.StrictMode,目前还不支持
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<p>通过 amis 渲染页面</p>
|
<p>通过 amis 渲染页面</p>
|
||||||
<ToastComponent theme={theme} key="toast" position={'top-right'} />
|
<ToastComponent theme={theme} key="toast" position={'top-right'} locale={locale} />
|
||||||
<AlertComponent theme={theme} key="alert" />
|
<AlertComponent theme={theme} key="alert" locale={locale} />
|
||||||
{renderAmis(
|
{renderAmis(
|
||||||
{
|
{
|
||||||
// 这里是 amis 的 Json 配置。
|
// 这里是 amis 的 Json 配置。
|
||||||
|
Loading…
Reference in New Issue
Block a user