fix lit
This commit is contained in:
parent
791e2c5835
commit
f5fa33d2b9
|
@ -274,9 +274,6 @@ function onKeyDown(ev: KeyboardEvent) {
|
||||||
const bounds = rangedBounds.value;
|
const bounds = rangedBounds.value;
|
||||||
|
|
||||||
handleKeyEvent(ev, [
|
handleKeyEvent(ev, [
|
||||||
{
|
|
||||||
code: 'any', handler: () => emitGridEvent({ type: 'keydown', event: ev }),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
code: 'Delete', handler: () => {
|
code: 'Delete', handler: () => {
|
||||||
if (rangedRows.value.length > 0) {
|
if (rangedRows.value.length > 0) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<tr :class="$style.header">
|
<tr>
|
||||||
<MkNumberCell
|
<MkNumberCell
|
||||||
v-if="gridSetting.showNumber"
|
v-if="gridSetting.showNumber"
|
||||||
content="#"
|
content="#"
|
||||||
|
@ -46,9 +46,3 @@ defineProps<{
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style module lang="scss">
|
|
||||||
.header {
|
|
||||||
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { GridRow } from '@/components/grid/row.js';
|
||||||
import { MenuItem } from '@/types/menu.js';
|
import { MenuItem } from '@/types/menu.js';
|
||||||
import { GridContext } from '@/components/grid/grid-event.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 = {
|
export type CellAddress = {
|
||||||
row: number;
|
row: number;
|
||||||
|
@ -64,6 +64,7 @@ export function createCell(
|
||||||
column,
|
column,
|
||||||
row,
|
row,
|
||||||
value,
|
value,
|
||||||
|
allCells: [],
|
||||||
},
|
},
|
||||||
violations: [],
|
violations: [],
|
||||||
},
|
},
|
||||||
|
@ -80,6 +81,7 @@ export function resetCell(cell: GridCell): void {
|
||||||
column: cell.column,
|
column: cell.column,
|
||||||
row: cell.row,
|
row: cell.row,
|
||||||
value: cell.value,
|
value: cell.value,
|
||||||
|
allCells: [],
|
||||||
},
|
},
|
||||||
violations: [],
|
violations: [],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue