修复首页地图显示问题和版本管理页面错误
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user