Skip to content

Commit 8049ca8

Browse files
sreenathsJohanAhlen
authored andcommitted
[ui] Vue 3 - Migrated HueIcon component
1 parent a6cf867 commit 8049ca8

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

desktop/core/src/desktop/js/components/HueIcon.vue

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,22 @@
2323
</template>
2424

2525
<script lang="ts">
26-
import Vue from 'vue';
27-
import Component from 'vue-class-component';
28-
import { Prop } from 'vue-property-decorator';
26+
import { defineComponent } from 'vue';
2927
30-
@Component
31-
export default class HueIcon extends Vue {
32-
@Prop({ required: true })
33-
type!: string;
28+
export default defineComponent({
29+
props: {
30+
type: {
31+
type: String,
32+
required: true
33+
}
34+
},
3435
35-
get xlinkAttr(): string {
36-
return '#' + this.type;
36+
computed: {
37+
xlinkAttr(): string {
38+
return '#' + this.type;
39+
}
3740
}
38-
}
41+
});
3942
</script>
4043

4144
<style lang="scss" scoped>

0 commit comments

Comments
 (0)