46 lines
1.1 KiB
Vue
46 lines
1.1 KiB
Vue
|
<template>
|
||
|
<div>
|
||
|
<div class="content-section introduction">
|
||
|
<div class="feature-intro">
|
||
|
<h1>Rating</h1>
|
||
|
<p>Rating component is a star based selection input.</p>
|
||
|
</div>
|
||
|
<AppDemoActions />
|
||
|
</div>
|
||
|
|
||
|
<div class="content-section implementation">
|
||
|
<div class="card">
|
||
|
<h5>Basic {{ val1 }}</h5>
|
||
|
<Rating v-model="val1" name="basic" />
|
||
|
|
||
|
<h5>Without Cancel</h5>
|
||
|
<Rating v-model="val2" :cancel="false" name="cancel" />
|
||
|
|
||
|
<h5>ReadOnly</h5>
|
||
|
<Rating :modelValue="5" :readonly="true" :stars="10" :cancel="false" name="readonly" />
|
||
|
|
||
|
<h5>Disabled</h5>
|
||
|
<Rating :modelValue="8" :disabled="true" :stars="10" name="disabled" />
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<RatingDoc />
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import RatingDoc from './RatingDoc';
|
||
|
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
val1: null,
|
||
|
val2: 3
|
||
|
};
|
||
|
},
|
||
|
components: {
|
||
|
RatingDoc: RatingDoc
|
||
|
}
|
||
|
};
|
||
|
</script>
|