mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +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>
40 lines
639 B
Vue
40 lines
639 B
Vue
<template>
|
|
<i
|
|
class="ab-icon"
|
|
:class="{
|
|
'loading-spinner': loading,
|
|
'ab-icon--button': isButton,
|
|
[icon]: true,
|
|
}"
|
|
:title="title"
|
|
:data-builder-interactive="isButton || undefined"
|
|
@click="$emit('click', $event)"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'ABIcon',
|
|
props: {
|
|
loading: {
|
|
type: Boolean,
|
|
required: false,
|
|
default: false,
|
|
},
|
|
isButton: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
icon: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
title: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
},
|
|
emits: ['click'],
|
|
}
|
|
</script>
|