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.
46 lines
946 B
46 lines
946 B
![]()
5 years ago
|
<template>
|
||
|
<div>
|
||
|
<v-row justify="space-around">
|
||
|
<v-icon v-if="handleShow" small class="mr-2" @click="handleShow">mdi-eye</v-icon>
|
||
|
<v-icon v-if="handleEdit" small class="mr-2" @click="handleEdit">mdi-pencil</v-icon>
|
||
|
<v-icon v-if="handleDelete" small @click="confirmDelete = true">mdi-delete</v-icon>
|
||
|
</v-row>
|
||
|
<ConfirmDelete
|
||
|
v-if="handleDelete"
|
||
|
:visible="confirmDelete"
|
||
|
:handle-delete="handleDelete"
|
||
|
@close="confirmDelete = false"
|
||
|
/>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import ConfirmDelete from './ConfirmDelete';
|
||
|
|
||
|
export default {
|
||
|
name: 'ActionCell',
|
||
|
components: {
|
||
|
ConfirmDelete
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
confirmDelete: false
|
||
|
};
|
||
|
},
|
||
|
props: {
|
||
|
handleShow: {
|
||
|
type: Function,
|
||
|
required: false
|
||
|
},
|
||
|
handleEdit: {
|
||
|
type: Function,
|
||
|
required: false
|
||
|
},
|
||
|
handleDelete: {
|
||
|
type: Function,
|
||
|
required: false
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
</script>
|