mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
849 B
54 lines
849 B
<template>
|
|
<v-data-table
|
|
:headers="headers"
|
|
:items="metaArray"
|
|
item-key="key"
|
|
hide-default-footer
|
|
disable-pagination
|
|
class="elevation-1"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
metadata: {
|
|
type: Object,
|
|
default: () => ({}),
|
|
required: true
|
|
}
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
headers: [
|
|
{
|
|
text: 'Key',
|
|
align: 'left',
|
|
value: 'key',
|
|
sortable: false
|
|
},
|
|
{
|
|
text: 'Value',
|
|
align: 'left',
|
|
value: 'value',
|
|
sortable: false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
|
|
computed: {
|
|
metaArray() {
|
|
const items = []
|
|
for (const [key, value] of Object.entries(this.metadata)) {
|
|
items.push({
|
|
key,
|
|
value
|
|
})
|
|
}
|
|
return items
|
|
}
|
|
}
|
|
}
|
|
</script>
|