mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 07:49:19 +08:00
fix(ecom-dmb): 调整商品卡片尺寸,优化空图片占位图标
This commit is contained in:
+3
-2
@@ -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>
|
||||
|
||||
+4
-4
@@ -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 },
|
||||
}"
|
||||
|
||||
Reference in New Issue
Block a user