1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-22 07:42:36 +00:00
bramw_baserow/web-frontend/modules/builder/components/theme/ThemeProvider.vue
2024-07-03 12:05:50 +00:00

25 lines
534 B
Vue

<template>
<div :style="style" @click.self="$emit('click', $event)">
<slot></slot>
</div>
</template>
<script>
import { ThemeConfigBlockType } from '@baserow/modules/builder/themeConfigBlockTypes'
export default {
name: 'ThemeProvider',
inject: ['builder'],
computed: {
themeConfigBlocks() {
return this.$registry.getOrderedList('themeConfigBlock')
},
style() {
return ThemeConfigBlockType.getAllStyles(
this.themeConfigBlocks,
this.builder.theme
)
},
},
}
</script>