fix: 修复用户新增时,岗位下拉未清空Bug,抽取form-tip组件

This commit is contained in:
AN
2025-04-13 14:43:46 +08:00
parent 375ffa1578
commit c1444346e0
10 changed files with 73 additions and 69 deletions

View File

@ -0,0 +1,26 @@
<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>