1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-01-30 18:36:29 +00:00
bramw_baserow/web-frontend/modules/builder/mixins/containerElement.js
2024-11-28 08:47:54 +00:00

22 lines
531 B
JavaScript

import element from '@baserow/modules/builder/mixins/element'
import { mapGetters } from 'vuex'
import { DIRECTIONS } from '@baserow/modules/builder/enums'
export default {
mixins: [element],
computed: {
...mapGetters({
elementSelected: 'element/getSelected',
}),
DIRECTIONS: () => DIRECTIONS,
children() {
return this.$store.getters['element/getChildren'](
this.elementPage,
this.element
)
},
elementSelectedId() {
return this.elementSelected?.id
},
},
}