UI 组件
活动指示器
用于指示活动的 UI 组件。
<ActivityIndicator>
是一个 UI 组件,它显示一个进度指示器,向用户指示后台正在运行的操作。


xml
<ActivityIndicator busy="true" />
示例
始终繁忙的 ActivityIndicator
xml
<ActivityIndicator busy="true" />
属性
busy
ts
busy: boolean
获取或设置指示器是否繁忙。
...继承
有关其他继承属性,请参阅 API 参考。
事件
busyChange
ts
on('busyChange', (args: EventData) => {
const indicator = args.object as ActivityIndicator
console.log(`indicator.busy changed to: ${indicator.busy}`)
})
当 busy 属性更改时发出。
参见 EventData。