fix(ecom-dmb): 调整商品卡片尺寸,优化空图片占位图标

This commit is contained in:
小蟑螂
2026-04-18 01:31:08 +08:00
parent ae9df43482
commit 8b390c921c
2 changed files with 7 additions and 6 deletions
@@ -15,6 +15,7 @@ const router = useRouter();
const EditIcon = createIconifyIcon('lucide:edit');
const TrashIcon = createIconifyIcon('lucide:trash-2');
const ChartIcon = createIconifyIcon('lucide:bar-chart-2');
const ImageOffIcon = createIconifyIcon('lucide:package');
interface Props {
product: ProductVO.Info;
@@ -60,8 +61,8 @@ const goToDetails = (product: ProductVO.Info) => {
v-else
class="flex h-full w-full items-center justify-center text-gray-400 dark:text-gray-500"
>
<div class="text-center">
<div class="mb-2 text-4xl">📦</div>
<div class="text-center flex flex-col items-center justify-center">
<ImageOffIcon class="mb-2 text-4xl text-gray-400 flex" />
<div class="text-sm">暂无图片</div>
</div>
</div>
@@ -284,12 +284,12 @@ onUnmounted(() => {
v-else-if="productList.length > 0"
:list="productList"
row-key="id"
:width="300"
:width="180"
:breakpoints="{
1600: { rowPerView: 4 },
2000: { rowPerView: 5 },
1700: { rowPerView: 4 },
1400: { rowPerView: 3 },
1200: { rowPerView: 3 },
992: { rowPerView: 2 },
1100: { rowPerView: 2 },
768: { rowPerView: 2 },
500: { rowPerView: 1 },
}"