【代码优化】代码格式化

This commit is contained in:
卢越
2024-09-05 12:40:53 +08:00
parent b6dd2ae1eb
commit 75e7e58b8d
5 changed files with 42 additions and 32 deletions
+10 -4
View File
@@ -3,7 +3,10 @@
<!-- 商品卡片 -->
<view>
<!-- 布局1. 单列大图上图下内容-->
<view v-if="layoutType === LayoutTypeEnum.ONE_COL_BIG_IMG && state.goodsList.length" class="goods-sl-box">
<view
v-if="layoutType === LayoutTypeEnum.ONE_COL_BIG_IMG && state.goodsList.length"
class="goods-sl-box"
>
<view
class="goods-box"
v-for="item in state.goodsList"
@@ -100,7 +103,10 @@
</view>
<!-- 布局3. 单列小图左图右内容 -->
<view v-if="layoutType === LayoutTypeEnum.ONE_COL_SMALL_IMG && state.goodsList.length" class="goods-lg-box">
<view
v-if="layoutType === LayoutTypeEnum.ONE_COL_SMALL_IMG && state.goodsList.length"
class="goods-lg-box"
>
<view
class="goods-box"
:style="[{ marginBottom: data.space + 'px' }]"
@@ -157,11 +163,11 @@
const props = defineProps({
data: {
type: Object,
default: () => ({})
default: () => ({}),
},
styles: {
type: Object,
default: () => ({})
default: () => ({}),
},
});