ModuleChain.vue 1.78 KB
Newer Older
Quentin David's avatar
Quentin David committed
1
2
<template>
    <v-card outlined>
Quentin David's avatar
Quentin David committed
3
4
5
        <v-card-title class="justify-center py-6">
            <h2 class="display-1">Chaîne de traitement</h2>
        </v-card-title>
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
        <div>
            <v-timeline
            class="ma-5 align-center"
            dense
            >
                <div
                v-for="(module, index) in added_modules"
                :key="module.name">
                    <v-timeline-item icon="mdi-arrow-down">
                    </v-timeline-item>
                    <v-timeline-item icon="fa-cubes" fill-dot>
                        <v-card outlined elevation="6">
                            <v-row align="center">
                                <v-col>
                                    <v-card-title>
                                        {{ module.name }}
                                    </v-card-title>
                                </v-col>
                                <v-col class="text-right mr-3">
                                    <v-btn icon @click="deleteModule(index)">
                                        <v-icon>fa-times-circle</v-icon>
                                    </v-btn>
                                </v-col>
                            </v-row>
                            <v-card-text>
                                
                            </v-card-text>
                        </v-card>
                    </v-timeline-item>
                </div>
            </v-timeline>
        </div>
Quentin David's avatar
Quentin David committed
38
    </v-card>
Quentin David's avatar
Quentin David committed
39
40
41
42
43
44
45
46
47
48
49
50
</template>
<script>
  export default {
    data: () => ({
    }),
    methods: {
        deleteModule: function(index) {
            this.$emit("delete-module", index);
        }
    },
    props: ["added_modules"],
  }
51
52
53
54
55
56
57
</script>
<style scoped>
.timeline {
    max-width: 50%;
    justify-content: center;
}
</style>