Rating pt demo updated
parent
a360a2d3cd
commit
ebab3c2893
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue