1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-06 22:08:52 +00:00
bramw_baserow/web-frontend/modules/builder/components/theme/ThemeConfigBlock.vue

45 lines
872 B
Vue

<template>
<div
class="theme-config-block"
:class="{
'theme-config-block--no-preview': !preview,
}"
>
<component
:is="themeConfigBlockType.component"
:preview="preview"
:theme="theme"
:extra-args="extraArgs"
:default-values="defaultValues"
@values-changed="$emit('values-changed', $event)"
/>
</div>
</template>
<script>
export default {
name: 'ThemeConfigBlock',
props: {
defaultValues: {
type: Object,
required: false,
default: () => {},
},
theme: { type: Object, required: false, default: null },
themeConfigBlockType: {
type: Object,
required: true,
},
extraArgs: {
type: Object,
required: false,
default: null,
},
preview: {
type: Boolean,
required: false,
default: true,
},
},
}
</script>