ProgressView
确定或不确定的原生 SwiftUI 进度指示器。
#导入
从 @quickgui/solid/swift-ui 导入 ProgressView。
import { Host, ProgressView } from "@quickgui/solid/swift-ui";#用法
<Host matchContents={{ vertical: true }} style={{ width: 320 }}>
<ProgressView
value={completed()}
total={100}
label="Exporting"
currentValueLabel={String(completed()) + "%"}
/>
</Host>#API 参考
展开条目查看说明和完整签名。短横线表示声明中未记录默认值。
ProgressView
查看源码ProgressView(props: ProgressViewProps): NativeNodetestIDstring—
modifiersViewModifier[]—
valuenumber—
totalnumber—
labelstring—
currentValueLabelstring—
Declares currentValueLabel (optional). Reactive JSX expressions update this property in place.
string查看源码ref((node: NativeNode) => void) | NativeNode—
Declares ref (optional). Reactive JSX expressions update this property in place.
((node: NativeNode) => void) | NativeNode查看源码