@daflow-ui/ui-tooltip
v0.1.0
Published
Tooltip component for DaFlow UI
Downloads
23
Readme
@daflow-ui/ui-tooltip
Tooltip component for DaFlow UI component library.
Installation
pnpm add @daflow-ui/ui-tooltipUsage
全局引入样式(在 main.ts 中):
import '@daflow-ui/ui-tooltip/style.css';在组件中使用:
<script setup lang="ts">
import { DfTooltip } from '@daflow-ui/ui-tooltip';
</script>
<template>
<DfTooltip content="提示内容">
<button>Hover me</button>
</DfTooltip>
</template>Development
Install dependencies
pnpm installStart playground (at monorepo root)
cd ../.. # 回到 monorepo 根目录
pnpm dev # 启动统一 playground,自动发现组件组件会自动出现在 playground 导航中(通过 dev/index.vue)。
Build
pnpm buildType check
pnpm typecheckLint
pnpm lint
pnpm lint:fixLicense
MIT
