This commit is contained in:
samunohito 2024-03-03 06:51:26 +09:00
parent 791e2c5835
commit f5fa33d2b9
3 changed files with 4 additions and 11 deletions

View File

@ -274,9 +274,6 @@ function onKeyDown(ev: KeyboardEvent) {
const bounds = rangedBounds.value;
handleKeyEvent(ev, [
{
code: 'any', handler: () => emitGridEvent({ type: 'keydown', event: ev }),
},
{
code: 'Delete', handler: () => {
if (rangedRows.value.length > 0) {

View File

@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
<tr :class="$style.header">
<tr>
<MkNumberCell
v-if="gridSetting.showNumber"
content="#"
@ -46,9 +46,3 @@ defineProps<{
}>();
</script>
<style module lang="scss">
.header {
}
</style>

View File

@ -10,7 +10,7 @@ import { GridRow } from '@/components/grid/row.js';
import { MenuItem } from '@/types/menu.js';
import { GridContext } from '@/components/grid/grid-event.js';
export type CellValue = string | boolean | number | undefined | null | Array<unknown> | Object;
export type CellValue = string | boolean | number | undefined | null | Array<unknown> | NonNullable<unknown>;
export type CellAddress = {
row: number;
@ -64,6 +64,7 @@ export function createCell(
column,
row,
value,
allCells: [],
},
violations: [],
},
@ -80,6 +81,7 @@ export function resetCell(cell: GridCell): void {
column: cell.column,
row: cell.row,
value: cell.value,
allCells: [],
},
violations: [],
};