Browse Source

restore 'à partir de' label

Olivier Massot 1 năm trước cách đây
mục cha
commit
c50afcddc8

+ 8 - 0
components/Common/Table/Comparatif.vue

@@ -8,6 +8,7 @@
 
             <th>
               <p class="standard">Standard</p>
+              <p v-if="showFrom" class="from">À partir de</p>
               <p class="price">
                 {{ standardPrice }} <span class="ttc">ttc</span>
               </p>
@@ -16,6 +17,7 @@
 
             <th class="premium-column">
               <p class="standard">Premium</p>
+              <p v-if="showFrom" class="from">À partir de</p>
               <p class="price">
                 {{ premiumPrice }} <span class="ttc">ttc</span>
               </p>
@@ -204,6 +206,11 @@ const props = defineProps({
     type: Array as PropType<Array<ComparisonItem>>,
     required: true,
   },
+  showFrom: {
+    type: Boolean,
+    required: false,
+    default: false,
+  },
 })
 
 const height = computed(() => 150 + props.items.length * 48)
@@ -294,6 +301,7 @@ td:first-child {
   margin-bottom: 1rem;
 }
 
+.from,
 .ttc {
   font-weight: 300;
   font-size: 12px;

+ 1 - 0
components/Logiciels/School/Comparatif.vue

@@ -12,6 +12,7 @@
           standard-price="34,90€"
           premium-price="49€"
           :items="comparisonItems"
+          :show-from="true"
         />
 
         <div class="asterisk">