1.0.6 • Published 6 years ago

xtooltip v1.0.6

Weekly downloads
7
License
MIT
Repository
-
Last release
6 years ago

xtooltip

The tooltip component built on Vue.js

Install

npm install xtooltip -S

Usage

import in main.js

import xtooltip from 'xtooltip'
import 'xtooltip/dist/styles/xtooltip.css'
Vue.component('x-tooltip', xtooltip)

API

Props

AttributeDescriptionTypeDefault
placementTooltip position. The value could be top, bottom, left and right.Stringtop
contentContents to display.String or Number''
triggerEvents to trigger the tooltip. Could be hover, focus and click.Arrayhover
visibleWhether to display the tooltip.Booleantrue
showDelayDelay to show in millisecond.Number100
hideDelayDelay to hide in millisecond.Number200
offsetOffset of the tooltip relative to its reference.Number0
maxWidthMaximum width. The text will automatically wrap and be aligned.Number or String-

Events

NameDescriptionReturn
on-showEmit when tooltip displays.-
on-hideEmit when tooltip disappear.-

Slots

NameDescription
-Main contents which need to have tooltip.
contentThe contents of the Tooltip.
1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago