scinote-web/app/javascript/vue/protocol/step_components/text.vue

27 lines
672 B
Vue
Raw Normal View History

<template>
<div class="step-text-container">
Text
<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"/>
</div>
</template>
<script>
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'
export default {
name: 'StepText',
2022-05-04 16:25:53 +08:00
components: { deleteComponentModal },
mixins: [DeleteMixin],
props: {
element: {
type: Object,
required: true
}
}
}
2022-05-03 19:42:43 +08:00
</script>