makeit-tooltip
Makeit Tooltip 气泡浮层组件,基于 Vue3.0 + Vite + JSX 开发,不承载复杂的文本信息,可以替代系统默认的 title 显示。
4,221
3
| Install | |
|---|---|
npm install makeit-tooltip |
|
| Latest Version: | 1.1.2 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Jun 28, 2021 |
| Links: | GitHub · npm |
Maintainer: makeit.vip
Makeit Tooltip
关于
Makeit Tooltip 气泡浮层组件,基于 Vue3.0 + Vite + JSX 开发,不承载复杂的文本信息,可以替代系统默认的 title 显示,且能支持更多定制化的样式需求。
安装
npm i makeit-tooltip
使用
import { createApp } from 'vue'
import MakeitTooltip from 'makeit-tooltip'
import 'makeit-tooltip/dist/tooltip.min.css'
import App from './app.vue'
const app = createApp(App)
app.use(MakeitTooltip)
app.mount('#app')
示例
<!-- 基础效果 -->
<template>
<mi-tooltip title="提示信息"></mi-tooltip>
</template>
<!-- 自定义 Title -->
<template>
<mi-tooltip>
<template v-slot:title>
<p>提示信息</p>
</template>
</mi-tooltip>
</template>
<!-- 定制 Trigger 触发事件 -->
<template>
<mi-tooltip title="提示信息" trigger="click"></mi-tooltip>
</template>
<!-- 自定义背景色 -->
<template>
<mi-tooltip title="提示信息" bg-color="#f6ca9d"></mi-tooltip>
</template>
<!-- 自定义字体颜色 -->
<template>
<mi-tooltip title="提示信息" text-color="#f6ca9d"></mi-tooltip>
</template>
更多
更多定制化内容及使用请查看在线示例:https://admin.makeit.vip/components/tooltip
Related Packages
makeit-admin-pro
A unified template used to backend management built on Vue3.x + Vite4.x + Ant De...
41,697
351
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.1.2 | ^3.0.4 | MIT | |
| 1.1.1 | ^3.0.4 | MIT | |
| 1.1.0 | ^3.0.4 | MIT | |
| 1.0.9 | ^3.0.4 | MIT | |
| 1.0.8 | ^3.0.4 | MIT | |
| 1.0.7 | ^3.0.4 | MIT | |
| 1.0.6 | ^3.0.4 | MIT | |
| 1.0.5 | ^3.0.4 | MIT | |
| 1.0.4 | ^3.0.4 | MIT | |
| 1.0.3 | ^3.0.4 | MIT | |
| 1.0.2 | ^3.0.4 | MIT | |
| 1.0.1 | ^3.0.4 | MIT |