修复首页地图显示问题和版本管理页面错误

This commit is contained in:
2026-05-08 18:44:04 +08:00
parent cbeca8fbf1
commit 441eeb03a7
6 changed files with 7 additions and 7 deletions
@@ -15,7 +15,7 @@ interface BulkActionsProps<T> {
const { table, entityName: _entityName } = defineProps<BulkActionsProps<T>>()
const selectedRows = computed(() => table.getSelectedRowModel().rows)
const selectedRows = computed(() => table.getSelectedRowModel().rows || [])
const selectedCount = computed(() => selectedRows.value.length || 0)
function handleClearSelection() {
@@ -40,7 +40,7 @@ function getCommonPinningStyles(column: Column<T>): CSSProperties {
<template>
<div class="space-y-4">
<slot name="toolbar" :selected-count="table.getSelectedRowModel().rows.length" />
<slot name="toolbar" :selected-count="table.getSelectedRowModel().rows?.length || 0" />
<slot name="filters" />
<div class="border rounded-md">
<Table>
@@ -58,7 +58,7 @@ const canNextPage = computed(() => {
return props.table.getCanNextPage()
})
const selectedCount = computed(() => props.table.getSelectedRowModel().rows.length)
const selectedCount = computed(() => props.table.getSelectedRowModel().rows?.length || 0)
const jumpPage = ref<string>('')
const isEditingPage = ref(false)