2022-04-29 18:29:42 +08:00
|
|
|
<template>
|
|
|
|
<div class="step-text-container">
|
|
|
|
Text
|
2022-05-03 21:15:49 +08:00
|
|
|
<button class="btn icon-btn btn-light" @click="showDeleteModal">
|
|
|
|
<i class="fas fa-trash"></i>
|
|
|
|
</button>
|
2022-05-04 16:25:53 +08:00
|
|
|
<deleteComponentModal v-if="confirmingDelete" @confirm="deleteComponent" @cancel="closeDeleteModal"/>
|
2022-04-29 18:29:42 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-05-03 21:15:49 +08:00
|
|
|
import DeleteMixin from 'vue/protocol/mixins/components/delete.js'
|
2022-05-04 16:25:53 +08:00
|
|
|
import deleteComponentModal from 'vue/protocol/modals/delete_component.vue'
|
|
|
|
|
2022-04-29 18:29:42 +08:00
|
|
|
export default {
|
2022-05-03 21:15:49 +08:00
|
|
|
name: 'StepText',
|
2022-05-04 16:25:53 +08:00
|
|
|
components: { deleteComponentModal },
|
2022-05-03 21:15:49 +08:00
|
|
|
mixins: [DeleteMixin],
|
|
|
|
props: {
|
|
|
|
element: {
|
|
|
|
type: Object,
|
|
|
|
required: true
|
|
|
|
}
|
|
|
|
}
|
2022-04-29 18:29:42 +08:00
|
|
|
}
|
2022-05-03 19:42:43 +08:00
|
|
|
</script>
|