mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
react 增加 amisScoped 说明
This commit is contained in:
parent
10eedff1d0
commit
6acc95df73
@ -290,6 +290,7 @@ import {toast} from 'amis/lib/components/Toast';
|
||||
|
||||
class MyComponent extends React.Component<any, any> {
|
||||
render() {
|
||||
let amisScoped;
|
||||
return (
|
||||
<div>
|
||||
<p>通过 amis 渲染页面</p>
|
||||
@ -305,6 +306,7 @@ class MyComponent extends React.Component<any, any> {
|
||||
{
|
||||
// props...
|
||||
// locale: 'en-US' // 请参考「多语言」的文档
|
||||
// scopeRef: (ref: any) => (amisScoped = ref) // 功能和前面 SDK 的 amisScoped 一样
|
||||
},
|
||||
{
|
||||
// 下面三个接口必须实现
|
||||
|
Loading…
Reference in New Issue
Block a user