Skip to content

Commit 2f14505

Browse files
committed
Rewrite MismatchesTable with Vue3 syntax
Bug: T354375
1 parent f7cfcc0 commit 2f14505

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

resources/js/Components/MismatchesTable.vue

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,18 @@
2222
</wikit-table>
2323
</template>
2424

25-
<script lang="ts">
26-
import type { PropType } from 'vue';
27-
import { defineComponent } from 'vue';
25+
<script setup lang="ts">
2826
import { Table as WikitTable } from '@wmde/wikit-vue-components';
2927
3028
import MismatchRow from './MismatchRow.vue';
3129
32-
import { LabelledMismatch } from '../types/Mismatch';
30+
import type { LabelledMismatch } from '../types/Mismatch';
3331
34-
export default defineComponent({
35-
components: {
36-
MismatchRow,
37-
WikitTable,
38-
},
39-
props: {
40-
mismatches: Array as PropType<LabelledMismatch[]>,
41-
disabled: {
42-
type: Boolean,
43-
default: false
44-
}
45-
}
32+
withDefaults(defineProps<{
33+
mismatches: LabelledMismatch[],
34+
disabled: boolean
35+
}>(), {
36+
disabled: false
4637
});
4738
</script>
4839

0 commit comments

Comments
 (0)