UI视图
Link
交给系统打开 URL。
可点按的视图,轻点后把 destination 交给系统处理:网页在浏览器中打开,URL Scheme 会打开对应的 App。children 是标签。
import { Label, Link } from "onescript/views"
<Link destination={new URL("https://developer.apple.com/documentation/swiftui")}>
<Label symbol="book">SwiftUI 文档</Label>
</Link>| Prop | Type | 说明 |
|---|---|---|
destination | URL | 要打开的 URL。 |
children | ViewChild | 标签。 |
也支持修饰符。仅在 App 和 Action 视图会话中可用;在 Widget 中使用会报「不支持的视图类型」错误。
How is this guide?
最后更新于