mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 00:08:25 +00:00
* feat(builder): add click events to images, text and headings * fix(builder): allow element clicks to dismiss menus * feat(builder): add click actions to columns and containers * fix(builder): isolate nested interactive controls * feat(builder): add selection change events * test(builder): complete event fixtures for CI * fix: keep heading semantics and limit click areas on clickable builder elements --------- Co-authored-by: peter_baserow <peter@baserow.io>
21 lines
420 B
Vue
21 lines
420 B
Vue
<template>
|
|
<div
|
|
v-bind="clickableElementAttributes"
|
|
:class="{ 'element--clickable': isClickable }"
|
|
@click="onElementClick"
|
|
@keydown="onElementKeydown"
|
|
@keyup="onElementKeyup"
|
|
>
|
|
<slot />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import clickableElement from '@baserow/modules/builder/mixins/clickableElement'
|
|
|
|
export default {
|
|
name: 'ClickableElementWrapper',
|
|
mixins: [clickableElement],
|
|
}
|
|
</script>
|