ModuleChain.vue 1.83 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
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
        <v-card-title class="justify-center py-6">
            <h2 class="display-1">Chaîne de traitement</h2>
        </v-card-title>
        <v-timeline
          class="ma-5"
          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>
                            Lorem ipsum dolor sit amet, consectetur adipisicing elit. 
                            Doloribus vel voluptatibus dolore explicabo delectus rerum possimus nemo rem. 
                            Beatae, dolorum. Aliquid quas doloremque est, dolorem earum voluptatem dignissimos omnis velit!
                        </v-card-text>
                    </v-card>
                </v-timeline-item>
            </div>
Quentin David's avatar
Quentin David committed
37
38
        </v-timeline>
    </v-card>
Quentin David's avatar
Quentin David committed
39
40
41
42
43
44
45
46
47
48
49
50
51
</template>
<script>
  export default {
    data: () => ({
    }),
    methods: {
        deleteModule: function(index) {
            this.$emit("delete-module", index);
        }
    },
    props: ["added_modules"],
  }
</script>