【代码优化】优化参数命名

This commit is contained in:
卢越
2024-08-12 14:13:11 +08:00
parent e13eedc2c2
commit e9a91b84fc
4 changed files with 9 additions and 8 deletions
@@ -1,6 +1,6 @@
<!-- 装修用户组件用户资产 -->
<template>
<view class="ss-wallet-menu-wrap ss-flex ss-col-center" :style="[style, { marginLeft: `${data.space}px` }]">
<view class="ss-wallet-menu-wrap ss-flex ss-col-center" :style="[bgStyle, { marginLeft: `${data.space}px` }]">
<view class="menu-item ss-flex-1 ss-flex-col ss-row-center ss-col-center"
@tap="sheep.$router.go('/pages/user/wallet/money')">
<view class="value-box ss-flex ss-col-bottom">
@@ -58,7 +58,7 @@
},
});
// 设置背景样式
const style = computed(() => {
const bgStyle = computed(() => {
// 直接从 props.styles 解构
const { bgType, bgImg, bgColor } = props.styles;