docs: fix example code in ui-library.md (#9172)

This commit is contained in:
DB维一(s.y) 2023-12-19 10:24:07 +08:00 committed by GitHub
parent d5ee7b9bec
commit 57ad94a136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {