demarches-normaliennes/app/javascript/new_design/administrateur/DraggableList.js

14 lines
247 B
JavaScript

export default {
props: ['state', 'version'],
methods: {
addChamp() {
this.state.typesDeChamp.push({
type_champ: 'text',
types_de_champ: []
});
},
save() {
this.state.flash.success();
}
}
};