mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
27 lines
465 B
Vue
27 lines
465 B
Vue
<script setup lang="ts">
|
|
import { NTooltip } from 'naive-ui';
|
|
|
|
defineOptions({
|
|
name: 'FormTip'
|
|
});
|
|
|
|
interface Props {
|
|
content: string;
|
|
}
|
|
|
|
defineProps<Props>();
|
|
</script>
|
|
|
|
<template>
|
|
<NTooltip trigger="hover">
|
|
<template #default>
|
|
<span>{{ content }}</span>
|
|
</template>
|
|
<template #trigger>
|
|
<div class="cursor-pointer pr-3px">
|
|
<SvgIcon class="text-15px" icon="ep:warning" />
|
|
</div>
|
|
</template>
|
|
</NTooltip>
|
|
</template>
|