mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-27 06:00:37 +00:00
22 lines
521 B
JavaScript
22 lines
521 B
JavaScript
import { mapActions } from 'vuex'
|
|
import element from '@baserow/modules/builder/mixins/element'
|
|
|
|
export default {
|
|
mixins: [element],
|
|
methods: {
|
|
...mapActions({
|
|
actionSetFormData: 'formData/setFormData',
|
|
actionRemoveFormData: 'formData/removeFormData',
|
|
}),
|
|
setFormData(value) {
|
|
return this.actionSetFormData({
|
|
page: this.page,
|
|
elementId: this.element.id,
|
|
payload: {
|
|
value,
|
|
type: this.elementType.formDataType,
|
|
},
|
|
})
|
|
},
|
|
},
|
|
}
|