不得不说naive-ui用过最难用的组件,在此记录一下naive的各种疑难杂症;
即报错,但不显示具体错误内容的bug
[naive/getFirstSlotVNode]: slot[trigger] should have exactly one child
Uncaught (in promise) Error: [vueuc/follower]: slot[default] should have exactly one child.
<n-popover trigger="hover" v-if="hasPermission(['project*list*create'])">
<template #trigger>
<!--template中至少包含一个标签-->
</template>
<span> 新建 </span>
</n-popover>
template中至少包含一个标签