mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
docs: fix example code in ui-library.md (#9172)
This commit is contained in:
parent
d5ee7b9bec
commit
57ad94a136
@ -95,7 +95,7 @@ let amisJSON = {
|
||||
渲染 amis 的时候通过 `onBroadcast` 监听内部广播。
|
||||
|
||||
```tsx
|
||||
import {render as renderAmis} 'amis';
|
||||
import {render as renderAmis} from 'amis';
|
||||
|
||||
function DemoComponent() {
|
||||
function handleBroadcast(type: string, rawEvent: any, data: any) {
|
||||
|
Loading…
Reference in New Issue
Block a user