Skip to content

Commit f5c093b

Browse files
committed
feat: 底部操作栏固定fixed在el-card底部
1 parent e294520 commit f5c093b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/views/bpm/processInstance/detail/index_new.vue

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<ContentWrap :bodyStyle="{ padding: '10px 20px' }" class="position-relative">
33
<Icon
4-
class="!position-absolute right-20px"
4+
class="!position-fixed right-80px"
55
:size="130"
66
:icon="`svg-icon:audit${processInstance.status}`"
77
/>
@@ -24,7 +24,7 @@
2424
<!-- 表单信息 -->
2525
<el-tab-pane label="表单信息">
2626
<el-row :gutter="10">
27-
<el-col :span="18" class="!flex !flex-col">
27+
<el-col :span="18" class="!flex !flex-col formCol">
2828
<!-- 表单信息 -->
2929
<div v-loading="processInstanceLoading" class="form-box flex flex-col mb-30px flex-1">
3030
<!-- 情况一:流程表单 -->
@@ -46,10 +46,10 @@
4646
</div>
4747
</div>
4848

49-
<div class="h-60px" v-if="runningTask?.id">
50-
<el-divider class="!my-8px" />
49+
<el-affix target=".formCol" position="bottom" class="h-50px" v-if="runningTask?.id">
50+
<el-divider class="!mb-8px !mt-0" />
5151
<div
52-
class="text-14px flex items-center color-#32373c dark:color-#fff font-bold btn-container"
52+
class="pl-50px text-14px flex items-center color-#32373c dark:color-#fff font-bold btn-container"
5353
>
5454
<el-popover :visible="passVisible" placement="top-end" :width="500" trigger="click">
5555
<template #reference>
@@ -210,7 +210,7 @@
210210
<div @click="handleSign"> <Icon :size="14" icon="ep:plus" />&nbsp;加签 </div>
211211
<div @click="handleBack"> <Icon :size="14" icon="fa:mail-reply" />&nbsp;退回 </div>
212212
</div>
213-
</div>
213+
</el-affix>
214214
</el-col>
215215
<el-col :span="6">
216216
<el-timeline class="pt-20px">
@@ -566,6 +566,9 @@ onMounted(async () => {
566566
border: none;
567567
}
568568
}
569+
:deep(.el-affix--fixed) {
570+
background-color: var(--el-bg-color);
571+
}
569572
570573
.btn-container {
571574
> div {

0 commit comments

Comments
 (0)