We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6cf867 commit 8049ca8Copy full SHA for 8049ca8
desktop/core/src/desktop/js/components/HueIcon.vue
@@ -23,19 +23,22 @@
23
</template>
24
25
<script lang="ts">
26
- import Vue from 'vue';
27
- import Component from 'vue-class-component';
28
- import { Prop } from 'vue-property-decorator';
+ import { defineComponent } from 'vue';
29
30
- @Component
31
- export default class HueIcon extends Vue {
32
- @Prop({ required: true })
33
- type!: string;
+ export default defineComponent({
+ props: {
+ type: {
+ type: String,
+ required: true
+ }
34
+ },
35
- get xlinkAttr(): string {
36
- return '#' + this.type;
+ computed: {
37
+ xlinkAttr(): string {
38
+ return '#' + this.type;
39
40
}
- }
41
+ });
42
</script>
43
44
<style lang="scss" scoped>
0 commit comments