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