1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-22 15:52:34 +00:00
bramw_baserow/web-frontend/modules/builder/components/page/sidePanels/GeneralSidePanel.vue
2024-07-18 13:10:31 +00:00

31 lines
722 B
Vue

<template>
<component
:is="elementType.generalFormComponent"
:key="element.id"
ref="panelForm"
class="element-form"
:default-values="defaultValues"
@values-changed="onChange($event)"
/>
</template>
<script>
import elementSidePanel from '@baserow/modules/builder/mixins/elementSidePanel'
import { DATA_PROVIDERS_ALLOWED_ELEMENTS } from '@baserow/modules/builder/enums'
export default {
name: 'GeneralSidePanel',
mixins: [elementSidePanel],
inject: ['applicationContext'],
provide() {
return {
applicationContext: {
...this.applicationContext,
element: this.element,
},
dataProvidersAllowed: DATA_PROVIDERS_ALLOWED_ELEMENTS,
}
},
}
</script>