fix(iot):设备管理、产品管理的操作按钮,间隙过大问题

pull/349/head
YunaiV 2026-05-25 09:32:57 +08:00
parent 80a25ca767
commit 995666e4ce
2 changed files with 16 additions and 2 deletions

View File

@ -205,7 +205,7 @@ onMounted(() => {
</div>
</div>
<!-- 按钮组 -->
<div class="mt-auto flex gap-2 border-t border-border pt-3">
<div class="card-action-group mt-auto flex gap-2 border-t border-border pt-3">
<ElButton
v-if="hasAccessByCodes(['iot:device:update'])"
size="small"
@ -274,3 +274,10 @@ onMounted(() => {
</div>
</div>
</template>
<style scoped>
/* Element Plus 默认会在相邻按钮之间加 margin-left:12px与父容器的 gap-2 叠加导致按钮间距过大,这里清掉 */
.card-action-group :deep(.el-button + .el-button) {
margin-left: 0;
}
</style>

View File

@ -201,7 +201,7 @@ onMounted(() => {
</div>
</div>
<!-- 按钮组 -->
<div class="mt-auto flex gap-2 border-t border-border pt-3">
<div class="card-action-group mt-auto flex gap-2 border-t border-border pt-3">
<ElButton
v-if="hasAccessByCodes(['iot:product:update'])"
size="small"
@ -284,3 +284,10 @@ onMounted(() => {
</div>
</div>
</template>
<style scoped>
/* Element Plus 默认会在相邻按钮之间加 margin-left:12px与父容器的 gap-2 叠加导致按钮间距过大,这里清掉 */
.card-action-group :deep(.el-button + .el-button) {
margin-left: 0;
}
</style>