UNPKG

vue-plugin-helper-decorator

Version:
13 lines 420 B
import { createDecorator } from 'vue-class-component'; /** * Vulidate helper * Reflect the method to component validations option * https://github.com/monterail/vuelidate */ export function Validation() { return createDecorator(function (componentOptions, handler) { const options = componentOptions; options.validations = options.methods[handler]; }); } //# sourceMappingURL=vuelidate.js.map