Git Product home page Git Product logo

uni-tooltips-example's Introduction

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 按钮点击 按钮名称

uni-tooltips-example's People

Contributors

bianmaren avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.