@cnamts/vue-dot
Version:
Implementation of our Design System for the French Health Insurance
25 lines (20 loc) • 425 B
text/typescript
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);
export class ErrorProp extends MixinsDeclaration {
get internalErrorProp(): boolean {
return this.error;
}
set internalErrorProp(value: boolean) {
this.$emit('update:error', value);
}
}