Skip to content

Commit

Permalink
Rewrite MismatchesTable with Vue3 syntax
Browse files Browse the repository at this point in the history
Bug: T354375
  • Loading branch information
guergana committed Jan 8, 2024
1 parent 5049b6b commit d7744b0
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions resources/js/Components/MismatchesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,18 @@
</wikit-table>
</template>

<script lang="ts">
import type { PropType } from 'vue';
import { defineComponent } from 'vue';
<script setup lang="ts">
import { Table as WikitTable } from '@wmde/wikit-vue-components';
import MismatchRow from './MismatchRow.vue';
import { LabelledMismatch } from '../types/Mismatch';
import type { LabelledMismatch } from '../types/Mismatch';
export default defineComponent({
components: {
MismatchRow,
WikitTable,
},
props: {
mismatches: Array as PropType<LabelledMismatch[]>,
disabled: {
type: Boolean,
default: false
}
}
withDefaults(defineProps<{
mismatches: LabelledMismatch[],
disabled: boolean
}>(), {
disabled: false
});
</script>

Expand Down

0 comments on commit d7744b0

Please sign in to comment.