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

13 lines
237 B
JavaScript
Raw Normal View History

2018-11-14 16:26:00 +01:00
export default {
props: ['state', 'version', 'update', 'updateAll'],
methods: {
addChamp() {
this.state.typesDeChamp.push({
type_champ: 'text',
drop_down_list: {},
options: {}
});
}
}
};