added auto save and save button

This commit is contained in:
ori agranat
2019-10-29 23:58:06 +02:00
parent a72336270b
commit 1e02f114e1
21 changed files with 545 additions and 474 deletions

View File

@@ -5,7 +5,8 @@
<span>{{name}}</span>
</v-col>
<v-col>
<v-text-field dark v-model="localValue" class="mt-0 pt-0" hide-details single-line type="number" style="width: 70px"></v-text-field>
<v-text-field dark v-model="localValue" class="mt-0 pt-0" hide-details single-line type="number"
style="width: 70px"/>
</v-col>
</v-row>
</div>
@@ -14,18 +15,16 @@
<script>
export default {
name: 'NumberInput',
props:['name','value'],
props: ['name', 'value'],
data() {
return {
}
return {}
},
computed:{
localValue:{
get(){
computed: {
localValue: {
get() {
return this.value;
},
set(value){
set(value) {
this.$emit('input', parseInt(value));
}
}
@@ -34,5 +33,5 @@
</script>
<style lang="" scoped>
</style>