【代码优化】商城:拼团装修重构

This commit is contained in:
YunaiV
2024-09-06 20:55:08 +08:00
parent a2091df2df
commit 7d60b5a619
6 changed files with 11 additions and 28 deletions

View File

@ -151,13 +151,8 @@
class="m-[calc(0px-var(--el-card-padding))]"
view-class="p-[var(--el-card-padding)] p-b-[calc(var(--el-card-padding)+var(--el-card-padding))] property"
>
<!--这里的 key 使用时间戳是为了保证每次点击组件都进行刷新-->
<component
:key="
selectedComponent?.uid ||
selectedComponent?.id + new Date().getTime() ||
new Date().getTime().toString()
"
:key="selectedComponent?.uid || selectedComponent?.id"
:is="selectedComponent?.id + 'Property'"
v-model="selectedComponent.property"
/>