mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-04 10:57:58 +00:00
fix(nc-gui): expand canvas longtext cell on shift+space
This commit is contained in:
@@ -3,13 +3,22 @@ const el = ref<HTMLElement>()
|
||||
|
||||
const cellClickHook = createEventHook()
|
||||
|
||||
provide(CellClickHookInj, cellClickHook)
|
||||
const cellEventHook = createEventHook()
|
||||
|
||||
provide(CellClickHookInj, cellEventHook)
|
||||
|
||||
provide(CellEventHookInj, cellEventHook)
|
||||
|
||||
provide(CurrentCellInj, el)
|
||||
|
||||
const handleClick = (event: MouseEvent) => {
|
||||
cellClickHook.trigger(event)
|
||||
cellEventHook.trigger(event)
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<td ref="el" class="select-none" @click="cellClickHook.trigger($event)">
|
||||
<td ref="el" class="select-none" @click="handleClick" @keydown="cellEventHook.trigger($event)">
|
||||
<slot />
|
||||
</td>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user