¥Example
参考
¥Reference
¥Props
backfaceVisibility
类型 |
---|
enum('visible' , 'hidden' ) |
backgroundColor
borderBottomColor
borderBottomEndRadius
borderBottomLeftRadius
borderBottomRightRadius
borderBottomStartRadius
borderStartEndRadius
borderStartStartRadius
borderEndEndRadius
borderEndStartRadius
borderBottomWidth
borderColor
borderCurve
iOS
在 iOS 13+ 上,可以更改边框的角曲线。
¥On iOS 13+, it is possible to change the corner curve of borders.
类型 |
---|
enum('circular' , 'continuous' ) |
borderEndColor
borderLeftColor
borderLeftWidth
borderRadius
如果圆形边框不可见,请尝试应用 overflow: 'hidden'
。
¥If the rounded border is not visible, try applying overflow: 'hidden'
as well.
borderRightColor
borderRightWidth
borderStartColor
borderStyle
类型 |
---|
enum('solid' , 'dotted' , 'dashed' ) |
borderTopColor
borderTopEndRadius
borderTopLeftRadius
borderTopRightRadius
borderTopStartRadius
borderTopWidth
borderWidth
cursor
iOS
在 iOS 17+ 上,设置为 pointer
允许在指针(例如 iOS 上的触控板或触控笔,或 visionOS 上的用户注视)位于视图上方时实现悬停效果。
¥On iOS 17+, Setting to pointer
allows hover effects when a pointer (such as a trackpad or stylus on iOS, or the users' gaze on visionOS) is over the view.
类型 |
---|
enum('auto' , 'pointer' ) |
elevation
Android
使用 Android 的底层 高程 API 设置视图的高度。这会向项目添加阴影并影响重叠视图的 z 顺序。仅在 Android 5.0+ 上受支持,对早期版本没有影响。
¥Sets the elevation of a view, using Android's underlying elevation API. This adds a drop shadow to the item and affects z-order for overlapping views. Only supported on Android 5.0+, has no effect on earlier versions.
opacity
pointerEvents
控制 View
是否可以作为触摸事件的目标。
¥Controls whether the View
can be the target of touch events.
-
'auto'
:View 可以是触摸事件的目标。
¥'auto'
: The View can be the target of touch events.
-
'none'
:视图永远不是触摸事件的目标。
¥'none'
: The View is never the target of touch events.
-
'box-none'
:View 永远不是触摸事件的目标,但它的子视图可以。
¥'box-none'
: The View is never the target of touch events but its subviews can be.
-
'box-only'
:视图可以是触摸事件的目标,但其子视图不能。
¥'box-only'
: The view can be the target of touch events but its subviews cannot be.
类型 |
---|
enum('auto' , 'box-none' , 'box-only' , 'none' ) |