refactor: 迁移到 @nuxt/ui@4

- https://ui.nuxt.com/docs/getting-started/migration/v4#changes-from-v3
This commit is contained in:
2026-02-10 21:51:21 +08:00
parent 8198c853c9
commit fa756d8c97
9 changed files with 24 additions and 24 deletions

View File

@@ -79,7 +79,7 @@ const closePreview = () => {
</p>
</div>
<div>
<UButtonGroup
<UFieldGroup
size="xs"
v-if="type === 'system'"
>
@@ -101,7 +101,7 @@ const closePreview = () => {
color="error"
/>
<template #panel="{ close }">
<template #content="{ close }">
<div class="flex flex-col gap-2 p-2">
<p class="text-xs text-gray-500 dark:text-gray-400">
素材删除后不可恢复确认删除
@@ -117,7 +117,7 @@ const closePreview = () => {
</div>
</template>
</UPopover>
</UButtonGroup>
</UFieldGroup>
<div v-if="type === 'user'">
<!-- <UButton
icon="tabler:trash"
@@ -135,7 +135,7 @@ const closePreview = () => {
size="xs"
/>
<template #panel="{ close }">
<template #content="{ close }">
<div class="flex flex-col gap-2 p-2">
<p class="text-xs text-gray-500 dark:text-gray-400">
素材删除后不可恢复确认删除