Skip to content

Commit 4982440

Browse files
committed
fix: 修复流程分类组不在拖拽状态下也能拖动的问题,优化样式细节
1 parent d818e33 commit 4982440

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

src/views/bpm/model/CategoryDraggableModel.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
ref="tableRef"
6767
:header-cell-style="{ backgroundColor: isDark ? '' : '#edeff0', paddingLeft: '10px' }"
6868
:cell-style="{ paddingLeft: '10px' }"
69+
:row-style="{ height: '68px' }"
6970
:data="tableData"
7071
row-key="id"
7172
>
@@ -509,9 +510,7 @@ watch(
509510
:deep() {
510511
.el-table__cell {
511512
border-bottom: none !important;
512-
}
513-
.el-table__row {
514-
height: 68px;
513+
overflow: hidden;
515514
}
516515
}
517516
</style>

src/views/bpm/model/index_new.vue

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,19 @@
6161

6262
<!-- 分类卡片组 -->
6363
<div class="px-15px">
64-
<draggable v-model="categoryGroup" item-key="id" :animation="400">
64+
<draggable
65+
:disabled="!isCategorySorting"
66+
v-model="categoryGroup"
67+
item-key="id"
68+
:animation="400"
69+
>
6570
<template #item="{ element }">
66-
<ContentWrap v-loading="loading" :body-style="{ padding: 0 }" :key="element.id">
71+
<ContentWrap
72+
class="rounded-lg transition-all duration-300 ease-in-out hover:shadow-xl"
73+
v-loading="loading"
74+
:body-style="{ padding: 0 }"
75+
:key="element.id"
76+
>
6777
<CategoryDraggableModel
6878
ref="categoryDraggableModelRef"
6979
:isCategorySorting="isCategorySorting"
@@ -202,6 +212,9 @@ onMounted(async () => {
202212

203213
<style lang="scss" scoped>
204214
:deep() {
215+
.el-table--fit .el-table__inner-wrapper:before {
216+
height: 0;
217+
}
205218
.el-card {
206219
border-radius: 8px;
207220
}

0 commit comments

Comments
 (0)