mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-01-30 18:36:29 +00:00
22 lines
531 B
JavaScript
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
|
|
},
|
|
},
|
|
}
|