Skip to content

Commit 5bd05f4

Browse files
guerganachukarave
authored andcommitted
Rewrite WikidataToolFooter in Vue3 script setup syntax (#824)
* Rewrite WikidataToolFooter in Vue3 script setup syntax Bug: T354283
1 parent 75625e5 commit 5bd05f4

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

resources/js/Components/WikidataToolFooter.vue

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@
3030
</div>
3131
</template>
3232

33-
<script lang="ts">
34-
import type { PropType } from 'vue';
35-
import { defineComponent } from 'vue';
36-
33+
<script setup lang="ts">
3734
interface FooterLabels {
3835
tool: string;
3936
license: string;
@@ -45,22 +42,12 @@ interface FooterUrls {
4542
issues: string;
4643
}
4744

48-
export default defineComponent({
49-
name: 'WikidataToolFooter',
50-
props: {
51-
contentClass: {
52-
type: String,
53-
default: '',
54-
},
55-
labels: {
56-
type: Object as PropType<FooterLabels>,
57-
required: true,
58-
},
59-
urls: {
60-
type: Object as PropType<FooterUrls>,
61-
required: true,
62-
},
63-
}
45+
withDefaults(defineProps<{
46+
contentClass: string,
47+
labels: { type: FooterLabels, required: true },
48+
urls: { type: FooterUrls, required: true }
49+
}>(), {
50+
contentClass: ''
6451
});
6552
</script>
6653

0 commit comments

Comments
 (0)