1.0.0 • Published 4 years ago

@leophen/lp-tooltip v1.0.0

Weekly downloads
1
License
-
Repository
-
Last release
4 years ago

LpTooltip 文字提示组件

用于鼠标移入时显示的文字提示

安装

项目根目录下

npm i @leophen/lp-tooltip

main 文件下

import LpTooltip from '@leophen/lp-tooltip.vue'

Vue.component(Tooltip.name, Tooltip)

使用

<LpTooltip
	content="文字提示"
	theme="light"
	position="bottom"
	:enterable="true"
	transition="ease-in-out"
>
	<button>我是一个按钮</button>
</LpTooltip>

API

Attributes

参数说明类型可选值默认值
content提示内容String-提示内容
theme提示主题Stringlight / darklight
position提示的位置Stringtop / top-start / top-end / bottom / bottom-start / bottom-end / left / left-star t /left-end / right / right-start / right-endbottom
enterable鼠标是否可移入提示框Booleantrue / falsefalse
transition提示动画效果Stringease / ease-in / ease-out / ease-in-out / 贝塞尔曲线ease-in-out