mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
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.
80 lines
1.5 KiB
80 lines
1.5 KiB
<template>
|
|
<base-modal
|
|
:disabled="disabled"
|
|
text="Delete"
|
|
>
|
|
<template v-slot="slotProps">
|
|
<base-card
|
|
:title="title"
|
|
:agree-text="buttonTrueText"
|
|
:cancel-text="buttonFalseText"
|
|
@agree="ok(); slotProps.close()"
|
|
@cancel="slotProps.close"
|
|
>
|
|
<template #content>
|
|
{{ message }}
|
|
<v-list dense>
|
|
<v-list-item v-for="(item, i) in items" :key="i">
|
|
<v-list-item-content>
|
|
<v-list-item-title>{{ item[itemKey] }}</v-list-item-title>
|
|
</v-list-item-content>
|
|
</v-list-item>
|
|
</v-list>
|
|
</template>
|
|
</base-card>
|
|
</template>
|
|
</base-modal>
|
|
</template>
|
|
|
|
<script>
|
|
import BaseCard from '@/components/molecules/BaseCard'
|
|
import BaseModal from '@/components/molecules/BaseModal'
|
|
|
|
export default {
|
|
components: {
|
|
BaseCard,
|
|
BaseModal
|
|
},
|
|
|
|
props: {
|
|
title: {
|
|
type: String,
|
|
default: '',
|
|
required: true
|
|
},
|
|
message: {
|
|
type: String,
|
|
default: '',
|
|
required: true
|
|
},
|
|
items: {
|
|
type: Array,
|
|
default: () => [],
|
|
required: true
|
|
},
|
|
itemKey: {
|
|
type: String,
|
|
default: '',
|
|
required: true
|
|
},
|
|
disabled: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
buttonTrueText: {
|
|
type: String,
|
|
default: 'Yes'
|
|
},
|
|
buttonFalseText: {
|
|
type: String,
|
|
default: 'Cancel'
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
ok() {
|
|
this.$emit('ok')
|
|
}
|
|
}
|
|
}
|
|
</script>
|