mirror of https://github.com/nocodb/nocodb
Raju Udava
2 years ago
committed by
GitHub
5 changed files with 37 additions and 18 deletions
@ -0,0 +1,17 @@
|
||||
<script lang="ts" setup> |
||||
import { CellClickHookInj, CurrentCellInj, createEventHook, ref } from '#imports' |
||||
|
||||
const el = ref() |
||||
|
||||
const cellClickHook = createEventHook() |
||||
|
||||
provide(CellClickHookInj, cellClickHook) |
||||
|
||||
provide(CurrentCellInj, el) |
||||
</script> |
||||
|
||||
<template> |
||||
<div ref="el" @click="cellClickHook.trigger($event)"> |
||||
<slot /> |
||||
</div> |
||||
</template> |
Loading…
Reference in new issue