diff --git a/frontend/src/components/common/DataTable.vue b/frontend/src/components/common/DataTable.vue index 27eb61cc..c160da26 100644 --- a/frontend/src/components/common/DataTable.vue +++ b/frontend/src/components/common/DataTable.vue @@ -271,26 +271,6 @@ const sortedData = computed(() => { }) }) -// 检查是否有可展开的操作列 -const hasExpandableActions = computed(() => { - // 如果明确指定了actionsCount,使用它来判断 - if (props.actionsCount !== undefined) { - return props.expandableActions && props.columns.some((col) => col.key === 'actions') && props.actionsCount > 2 - } - - // 否则使用原来的检测逻辑 - return ( - props.expandableActions && - props.columns.some((col) => col.key === 'actions') && - actionsColumnNeedsExpanding.value - ) -}) - -// 切换操作列展开/折叠状态 -const toggleActionsExpanded = () => { - actionsExpanded.value = !actionsExpanded.value -} - // 检查第一列是否为勾选列 const hasSelectColumn = computed(() => { return props.columns.length > 0 && props.columns[0].key === 'select'