Przeglądaj źródła

:bug: move aspect bar off prop and unblock build

tags/0.0.4
j 2 lat temu
rodzic
commit
5b983424df
1 zmienionych plików z 22 dodań i 17 usunięć
  1. 22
    17
      frontend/src/components/AspectBar.vue

+ 22
- 17
frontend/src/components/AspectBar.vue Wyświetl plik

@@ -1,8 +1,12 @@
1 1
 <template lang="pug">
2 2
 figure.w-flex.column
3 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 10
 </template>
7 11
 
8 12
 <script>
@@ -18,23 +22,24 @@ export default {
18 22
             default: 50,
19 23
         },
20 24
     },
21
-    data: () => ({}),
25
+    data: () => ({
26
+        progress: props.percentage,
27
+    }),
22 28
 }
23 29
 </script>
24 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>

Ładowanie…
Anuluj
Zapisz