review:【antd/ele】【mall】商品模块的迁移

This commit is contained in:
YunaiV
2025-12-15 19:44:11 +08:00
parent 4ec82f0fd0
commit e3c1676523
12 changed files with 32 additions and 23 deletions

View File

@@ -110,7 +110,7 @@ function emitSpuChange() {
class="h-full w-full rounded-lg object-cover"
/>
<!-- 删除按钮 -->
<!-- TODO @AI还是使用 IconifyIcon使用自己的 + 图标 -->
<!-- TODO @puhui999还是使用 IconifyIcon使用自己的中立的图标方便 antd ele 共享 -->
<CloseCircleFilled
v-if="!disabled"
class="absolute -right-2 -top-2 cursor-pointer text-xl text-red-500 opacity-0 transition-opacity hover:text-red-600 group-hover:opacity-100"
@@ -126,7 +126,7 @@ function emitSpuChange() {
class="flex h-[60px] w-[60px] cursor-pointer items-center justify-center rounded-lg border-2 border-dashed transition-colors hover:border-primary hover:bg-primary/5"
@click="handleOpenSpuSelect"
>
<!-- TODO @AI还是使用 IconifyIcon使用自己的 + 图标 -->
<!-- TODO @puhui999还是使用 IconifyIcon使用自己的中立的图标方便 antd ele 共享 -->
<PlusOutlined class="text-xl text-gray-400" />
</div>
</Tooltip>

View File

@@ -32,6 +32,7 @@ const spuId = ref<number>();
const { params, name } = useRoute();
const { closeCurrentTab } = useTabs();
const activeTabName = ref('info');
// TODO @puhui999这个要不要类似 ele 里,直接写到 html 里?
const tabList = ref([
{
key: 'info',

View File

@@ -130,7 +130,6 @@ const [Modal, modalApi] = useVbenModal({
await modalApi.close();
emit('success');
},
async onOpenChange(isOpen: boolean) {
if (!isOpen) {
return;