Rating pt demo updated

pull/3938/head
Bahadır Sofuoğlu 2023-05-08 15:39:26 +03:00
parent a360a2d3cd
commit ebab3c2893
1 changed files with 32 additions and 4 deletions

View File

@ -1,7 +1,14 @@
<template> <template>
<DocSectionText v-bind="$attrs"> </DocSectionText> <DocSectionText v-bind="$attrs"> </DocSectionText>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<Rating v-model="value" /> <Rating
v-model="value"
:pt="{
onIcon: () => ({
class: 'text-orange-400'
})
}"
/>
</div> </div>
<DocSectionCode :code="code" /> <DocSectionCode :code="code" />
</template> </template>
@ -13,11 +20,25 @@ export default {
value: null, value: null,
code: { code: {
basic: ` basic: `
<Rating v-model="value" />`, <Rating
v-model="value"
:pt="{
onIcon: () => ({
class: 'text-orange-400'
})
}"
/>`,
options: ` options: `
<template> <template>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<Rating v-model="value" /> <Rating
v-model="value"
:pt="{
onIcon: () => ({
class: 'text-orange-400'
})
}"
/>
</div> </div>
</template> </template>
@ -33,7 +54,14 @@ export default {
composition: ` composition: `
<template> <template>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<Rating v-model="value" /> <Rating
v-model="value"
:pt="{
onIcon: () => ({
class: 'text-orange-400'
})
}"
/>
</div> </div>
</template> </template>