CornerOverlay 角标容器
`TxCornerOverlay` 用于在内容右上/右下/左上/左下叠加一个角标(overlay slot),常用于头像状态、徽章、通知数量等。
CornerOverlay 角标容器
TxCornerOverlay 用于在内容右上/右下/左上/左下叠加一个角标(overlay slot),常用于头像状态、徽章、通知数量等。
基础用法
Basic
示例即将加载...
API
Props
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| placement | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | bottom-right | 角标位置 |
| offsetX | string | number | 0 | X 偏移 |
| offsetY | string | number | 0 | Y 偏移 |
| overlayPointerEvents | 'none' | 'auto' | none | overlay 的 pointer-events |