UNPKG

@cnamts/vue-dot

Version:

Implementation of our Design System for the French Health Insurance

25 lines (20 loc) 425 B
import Vue from 'vue'; import Component, { mixins } from 'vue-class-component'; const Props = Vue.extend({ props: { error: { type: Boolean, default: false } } }); const MixinsDeclaration = mixins(Props); @Component export class ErrorProp extends MixinsDeclaration { get internalErrorProp(): boolean { return this.error; } set internalErrorProp(value: boolean) { this.$emit('update:error', value); } }