mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
f576d5a57b
- Add tooltip-v2 documentation - Complete tooltip-v2 implementation
17 lines
351 B
Vue
17 lines
351 B
Vue
<template>
|
|
<el-tooltip-v2 :aria-label="title">
|
|
<template #trigger>
|
|
<el-button
|
|
><el-icon><Delete /></el-icon
|
|
></el-button>
|
|
</template>
|
|
{{ content }}
|
|
</el-tooltip-v2>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { Delete } from '@element-plus/icons-vue'
|
|
const content = 'Delete'
|
|
const title = 'Delete item'
|
|
</script>
|