Skip to content

Commit

Permalink
fix lit
Browse files Browse the repository at this point in the history
  • Loading branch information
samunohito committed Mar 2, 2024
1 parent 791e2c5 commit f5fa33d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
3 changes: 0 additions & 3 deletions packages/frontend/src/components/grid/MkGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
8 changes: 1 addition & 7 deletions packages/frontend/src/components/grid/MkHeaderRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-->

<template>
<tr :class="$style.header">
<tr>
<MkNumberCell
v-if="gridSetting.showNumber"
content="#"
Expand Down Expand Up @@ -46,9 +46,3 @@ defineProps<{
}>();

</script>

<style module lang="scss">
.header {

}
</style>
4 changes: 3 additions & 1 deletion packages/frontend/src/components/grid/cell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -64,6 +64,7 @@ export function createCell(
column,
row,
value,
allCells: [],
},
violations: [],
},
Expand All @@ -80,6 +81,7 @@ export function resetCell(cell: GridCell): void {
column: cell.column,
row: cell.row,
value: cell.value,
allCells: [],
},
violations: [],
};
Expand Down

0 comments on commit f5fa33d

Please sign in to comment.