Server section all done

This commit is contained in:
MattIPv4
2020-04-28 19:53:59 +01:00
parent 97b28323c5
commit fc6fd025b7
7 changed files with 253 additions and 4 deletions

View File

@@ -9,6 +9,21 @@ export default (defaults) => {
this.$props.data[key].computed = value;
},
};
prev[key + 'Default'] = {
get() {
return this.$props.data[key].default;
},
};
prev[key + 'Enabled'] = {
get() {
return this.$props.data[key].enabled;
},
};
prev[key + 'Changed'] = {
get() {
return this.$props.data[key].enabled && this.$props.data[key].value !== this.$props.data[key].default;
},
};
return prev;
}, {});
};