update
This commit is contained in:
@@ -43,10 +43,10 @@
|
||||
/>
|
||||
</svg>
|
||||
</h2>
|
||||
<span v-if="props.props.completionPercentage > 99" class="text-[2.836vw] md:text-[0.741vw] text-[#878787]"
|
||||
<span v-if="props?.props?.completionPercentage > 99" class="text-[2.836vw] md:text-[0.741vw] text-[#878787]"
|
||||
>تکمیل شده</span
|
||||
>
|
||||
<span v-else-if="props.props.completionPercentage > 1 && props.props.completionPercentage < 99" class="text-[2.836vw] md:text-[0.741vw] text-[#878787]"
|
||||
<span v-else-if="props?.props?.completionPercentage > 1 && props?.props?.completionPercentage < 99" class="text-[2.836vw] md:text-[0.741vw] text-[#878787]"
|
||||
>در حال تکمیل</span
|
||||
>
|
||||
<span v-else class="text-[2.836vw] md:text-[0.741vw] text-[#878787]">در حال تولید</span>
|
||||
@@ -54,7 +54,7 @@
|
||||
<div>
|
||||
<div class="flex justify-between text-[3.19vw] md:text-[0.833vw]">
|
||||
<span class="text-[#383E43]">درصد تکمیل دوره</span>
|
||||
<span>{{props.props.completionPercentage}}٪</span>
|
||||
<span>{{props?.props?.completionPercentage}}٪</span>
|
||||
</div>
|
||||
<div
|
||||
id="progressbar"
|
||||
@@ -75,7 +75,7 @@
|
||||
<script setup>
|
||||
const adad = 2;
|
||||
const props = defineProps(['props'])
|
||||
const activeClass = ref(props.props.completionPercentage);
|
||||
const activeClass = ref(props?.props?.completionPercentage);
|
||||
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user