add/make 4 rating examples
This commit is contained in:
18
docs/components/rating/examples/RatingCountExample.vue
Normal file
18
docs/components/rating/examples/RatingCountExample.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<div class="vp-raw flex flex-col">
|
||||
<Rating
|
||||
rating=1
|
||||
scale=1
|
||||
review-text="73 reviews"
|
||||
review-link="#"
|
||||
>
|
||||
<template #besideText>
|
||||
<p class="ml-2 text-sm font-bold text-gray-900 dark:text-white">4.95</p>
|
||||
</template>
|
||||
|
||||
</Rating>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { Rating } from '../../../../src/index'
|
||||
</script>
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="vp-raw flex flex-col">
|
||||
<Rating></Rating>
|
||||
<Rating rating=4></Rating>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
|
||||
13
docs/components/rating/examples/RatingStarSizesExample.vue
Normal file
13
docs/components/rating/examples/RatingStarSizesExample.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div class="vp-raw flex flex-col gap-5">
|
||||
<!-- Small -->
|
||||
<Rating size="sm" rating=4 ></Rating>
|
||||
<!-- Medium -->
|
||||
<Rating size="md" rating=4></Rating>
|
||||
<!-- Large -->
|
||||
<Rating size="lg" rating=4></Rating>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { Rating } from '../../../../src/index'
|
||||
</script>
|
||||
12
docs/components/rating/examples/RatingWithTextExample.vue
Normal file
12
docs/components/rating/examples/RatingWithTextExample.vue
Normal file
@@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<div class="vp-raw flex flex-col">
|
||||
<Rating rating=4>
|
||||
<template #besideText>
|
||||
<p class="ml-2 text-sm font-medium text-gray-500 dark:text-gray-400">4.95 out of 5</p>
|
||||
</template>
|
||||
</Rating>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { Rating } from '../../../../src/index'
|
||||
</script>
|
||||
Reference in New Issue
Block a user