feat: 流程模型分类排序按钮显示逻辑完善

This commit is contained in:
GoldenZqqq
2024-10-15 16:29:45 +08:00
parent 57820cb3e1
commit 2db1f726c3
2 changed files with 47 additions and 5 deletions

View File

@ -36,6 +36,13 @@
</template>
<template #title>
<div class="flex items-center">
<el-tooltip content="拖动排序" v-if="isCategorySorting">
<Icon
:size="22"
icon="ic:round-drag-indicator"
class="ml-10px category-drag-icon cursor-move text-#8a909c"
/>
</el-tooltip>
<h3 class="ml-20px mr-8px text-18px">{{ title }}</h3>
<div class="color-gray-600 text-16px"> ({{ dataList?.length || 0 }}) </div>
</div>
@ -228,7 +235,8 @@ const renameVisible = ref(false)
const props = defineProps({
// 分类后的数据
dataList: propTypes.object.def([]),
title: propTypes.string.def('')
title: propTypes.string.def(''),
isCategorySorting: propTypes.bool.def(false)
})
const emit = defineEmits(['success'])
const appStore = useAppStore()