1.0.1 • Published 5 months ago
xverse-components-tooltips v1.0.1
API
参数名 | 类型 | 说明 | 默认值 | 是否必填 | 备注 |
---|---|---|---|---|---|
content | string | 需要提示内容 | - | false | - |
tipsPosition | 'top' | ||||
'top-end' | |||||
'top-start' | |||||
'right' | |||||
'right-start' | |||||
'right-end' | |||||
'left' | |||||
'left-start' | |||||
'left-end' | |||||
'bottom' | |||||
'bottom-end' | |||||
'bottom-start' | 文字提示位置 | right | true | - | |
contentTextStyle | CSSProperties | 文案样式 | - | false | 目前只支持文字颜色和背景颜色 |
className | string | 组件自定义类名 | - | false | - |
disappear | boolean | 是否自动消失 | true | false | - |
disappearTime | number | 多少秒后消失 | 3000 | false | - |
children | ReactNode | 文字环绕的容器 | - | false | - |
style | any | - | false | - | |
onNext | () => void | 消失后的回调 | - | false | - |
isShow | boolean | 是否显示 | true | false | - |