Sfoglia il codice sorgente

:bug: move aspect bar off prop and unblock build

tags/0.0.4
j 2 anni fa
parent
commit
5b983424df
1 ha cambiato i file con 22 aggiunte e 17 eliminazioni
  1. 22
    17
      frontend/src/components/AspectBar.vue

+ 22
- 17
frontend/src/components/AspectBar.vue Vedi File

1
 <template lang="pug">
1
 <template lang="pug">
2
 figure.w-flex.column
2
 figure.w-flex.column
3
     figcaption.w-flex.xs12.justify-space-between.align-center
3
     figcaption.w-flex.xs12.justify-space-between.align-center
4
-        p(v-for="(label, index) in labels" :key="label" :class="{ 'main': index === 1 }")  {{ label }}
5
-    w-progress(v-model="percentage" size="0.5em" round).mb7
4
+        p(
5
+            :class='{ main: index === 1 }'
6
+            :key='label'
7
+            v-for='(label, index) in labels'
8
+        ) {{ label }}
9
+    w-progress.mb7(round size='0.5em' v-model='progress')
6
 </template>
10
 </template>
7
 
11
 
8
 <script>
12
 <script>
18
             default: 50,
22
             default: 50,
19
         },
23
         },
20
     },
24
     },
21
-    data: () => ({}),
25
+    data: () => ({
26
+        progress: props.percentage,
27
+    }),
22
 }
28
 }
23
 </script>
29
 </script>
24
 <style lang="sass">
30
 <style lang="sass">
25
-    figure
26
-        figcaption
27
-            font-family: Century Gothic, CenturyGothic, AppleGothic, sans-serif
28
-            text-transform: capitalize
29
-            .main
30
-                color: #4D9127
31
-                font-weight: bold
32
-                text-transform: uppercase
31
+figure
32
+    figcaption
33
+        font-family: Century Gothic, CenturyGothic, AppleGothic, sans-serif
34
+        text-transform: capitalize
35
+        .main
36
+            color: #4D9127
37
+            font-weight: bold
38
+            text-transform: uppercase
33
 
39
 
34
 
40
 
35
-        .w-progress
36
-            background-color: #4C5264
37
-            .w-progress__progress
38
-                color: #4D9127
39
-        
40
-</style>
41
+    .w-progress
42
+        background-color: #4C5264
43
+        .w-progress__progress
44
+            color: #4D9127
45
+</style>

Loading…
Annulla
Salva