react 增加 amisScoped 说明

This commit is contained in:
吴多益 2021-04-21 10:21:27 +08:00 committed by GitHub
parent 10eedff1d0
commit 6acc95df73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 一样
},
{
// 下面三个接口必须实现