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.
 
 
 
 
 
 

71 lines
1.2 KiB

<template>
<base-card
:title="title"
:agree-text="buttonTrueText"
:cancel-text="buttonFalseText"
@agree="ok"
@cancel="cancel"
>
<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>
<script lang="ts">
import Vue from 'vue'
import BaseCard from './BaseCard.vue'
export default Vue.extend({
components: {
BaseCard
},
props: {
title: {
type: String,
default: '',
required: true
},
message: {
type: String,
default: '',
required: true
},
items: {
type: Array,
default: () => [],
required: false
},
itemKey: {
type: String,
default: '',
required: false
},
buttonTrueText: {
type: String,
default: 'Yes'
},
buttonFalseText: {
type: String,
default: 'Cancel'
}
},
methods: {
ok() {
this.$emit('ok')
},
cancel() {
this.$emit('cancel')
}
}
})
</script>