Skip to content

bianmaren/uni-tooltips-example

Repository files navigation

uni-tooltips 工具提示组件 DEMO

兼容微信小程序,h5,uni-app。暂不支持nvue

工具提示组件,为了解决工具提示的问题。 组件名:bianmaren-tooltips,代码块: bianmarenTooltips。

案例

demo 项目地址:https://github.com/bianmaren/uni-tooltips-example,

demo.png

使用方式

script 中引用组件

import bianmarenTooltip from '@/components/bianmaren-tooltips/bianmaren-tooltips.vue'
export default {
    components: {bianmarenTooltip}
}

template 中使用组件

<bianmarenTooltip
    :gravity="gravity"
    :tooltipShow="tooltipShow"
    :btns="tooltipBtns"
    :eleId="eleId"
    @btnClick="click"></bianmarenTooltip>

属性说明

属性名 类型 默认值 说明
tooltipShow Boolean false 是否显示
textColor String #ffffff 字体颜色
fontSize String 28rpx 字体大小
backgroundColor String #000000 背景颜色
splitColor String #ffffff 分隔符颜色
btns Array ['HelloWorld'] 提示里面显示的按钮
eleId String 挂载元素ID
gravity String bottom,top,left,right 方向
distance Number 10 工具提示距离挂载元素距离

事件说明

事件称名 说明 返回值
btnClick 按钮点击 按钮名称

About

uni-tooltips-example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published