Its been long but here is a solution which worked for me.
//Javascript File
import { min, max, numeric } from "vee-validate/dist/rules";
import { extend, validate, localize } from "vee-validate";
import en from "vee-validate/dist/locale/en.json";
localize({
en
});
extend("min", min);
extend("max", max);
extend("numeric", numeric);
extend('digits_between', {
async validate(value, { min, max }) {
const res = await validate(value, `numeric|min:${min}|max:${max}`,)
return res.valid;
},
params: ['min', 'max'],
message: 'The {_field_} must be between {min} and {max} digits'
});
<!-- vue file -->
<ValidationProvider
rules="digits_between:3,8"
v-slot="{ errors }"
name="Country"
>
<input v-model="value" type="text">
<span>{{ errors[0] }}</span>
</ValidationProvider>