@cnamts/vue-dot
Version:
Implementation of our Design System for the French Health Insurance
23 lines (18 loc) • 442 B
text/typescript
import Vue from 'vue';
import Component, { mixins } from 'vue-class-component';
import { GetThemeIcon } from '../../../mixins/getThemeIcon';
const Props = Vue.extend({
props: {
icon: {
type: String,
default: undefined
}
}
});
const MixinsDeclaration = mixins(Props, GetThemeIcon);
export class ThemeIcon extends MixinsDeclaration {
get themeIcon(): string | undefined {
return this.getThemeIcon(this.icon);
}
}