feat:增加 menu 菜单的列表(新增、修改、删除 80%)

This commit is contained in:
YunaiV
2025-04-02 21:46:43 +08:00
parent 09d0cfa87e
commit 18ac4cb14c
4 changed files with 246 additions and 425 deletions

View File

@@ -133,7 +133,7 @@ function toggleExpand() {
{{ isExpanded ? '收缩' : '展开' }}
</Button>
</template>
<template #title="{ row }">
<template #name="{ row }">
<div class="flex w-full items-center gap-1">
<div class="size-5 flex-shrink-0">
<IconifyIcon
@@ -141,6 +141,7 @@ function toggleExpand() {
icon="carbon:square-outline"
class="size-full"
/>
<!-- TODO @芋艿这里的 空串的情况 -->
<IconifyIcon
v-else-if="row.icon"
:icon="row.icon || 'carbon:circle-dash'"