mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
349 B
18 lines
349 B
2 years ago
|
<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>
|