I believe in this case your validations need to be a function, instead of an object.
validations() {
return {
form: {
amount: { maxValue: maxValue(this.maxValue) }
}
}
}
--EDIT--
Regarding the greater than 0 value, copied from my comment:
I am not entirely sure, but it seems there's no built in validator for this case. You can either write your own validator that will look more or less like this:
const greaterThanZero = (value) => value > 0
validations() {
form: {
amount: {
maxValue: greaterThanZero
}
}
}
or you can use minValue(0.00000001) as a workaround Custom validators can also take parameters, so you can write greaterThan custom validator that will take a dynamic value (relevant documentation here: https://vuelidate.netlify.com/#sub-extra-parameters)