mand-mobile/components/tip
MeloHG a2e662032b fix: 修复部分组件找不到 vue 文件问题 2022-07-28 16:54:22 +08:00
..
demo fix(picker): data update exception caused by refresh deferred 2018-12-14 19:54:44 +08:00
test fix(tip): tip组件子组件是没有属性的原生标签时会报错 (#711) 2020-12-08 19:41:21 +08:00
README.en-US.md doc(tip): update readme (#578) 2019-09-20 14:38:41 +08:00
README.md doc: update preview links 2019-01-29 16:31:24 +08:00
component.js feat(code clean up): 2018-09-24 15:48:57 +08:00
index.js fix: 修复部分组件找不到 vue 文件问题 2022-07-28 16:54:22 +08:00
tip.vue feat(tip): add slot 2018-11-23 10:57:21 +08:00

README.en-US.md

title preview
Tip https://didi.github.io/mand-mobile/examples/#/tip

Tooltip

Import

import { Tip } from 'mand-mobile'

Vue.component(Tip.name, Tip)

Code Examples

API

Tip Props

Props Description Type Default Note
name the name of tip String/Number - generally used for special class names
content the content of tip String/Number - -
placement the position of tip String top top, left, bottom, right
icon icon on the left of content String - refer to Icon for optional values
icon-svg use svg icon Boolean false -
fill filled with child elements Boolean false such as button prompts, equal width(top/bottom) or height(left/right) with buttons
offset - Object:{left, top} - -

Tip Events

@show()

Invoked after dialog is shown

@hide()

Invoked after dialog is hidden