mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-22 15:52:34 +00:00
31 lines
722 B
Vue
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>
|