correction :modelValue property for Rating
parent
f5434c89a5
commit
f01ac70526
|
@ -51,7 +51,7 @@
|
|||
<Column field="category" header="Category" :sortable="true"></Column>
|
||||
<Column field="rating" header="Reviews" :sortable="true">
|
||||
<template #body="slotProps">
|
||||
<Rating :value="slotProps.data.rating" :readonly="true" :cancel="false" />
|
||||
<Rating :modelValue="slotProps.data.rating" :readonly="true" :cancel="false" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="inventoryStatus" header="Status" :sortable="true">
|
||||
|
@ -188,7 +188,7 @@
|
|||
<Column field="category" header="Category" :sortable="true"></Column>
|
||||
<Column field="rating" header="Reviews" :sortable="true">
|
||||
<template #body="slotProps">
|
||||
<Rating :value="slotProps.data.rating" :readonly="true" :cancel="false" />
|
||||
<Rating :modelValue="slotProps.data.rating" :readonly="true" :cancel="false" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="inventoryStatus" header="Status" :sortable="true">
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<Column field="category" header="Category" sortable></Column>
|
||||
<Column field="rating" header="Reviews" sortable>
|
||||
<template #body="slotProps">
|
||||
<Rating :value="slotProps.data.rating" :readonly="true" :cancel="false" />
|
||||
<Rating :modelValue="slotProps.data.rating" :readonly="true" :cancel="false" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="inventoryStatus" header="Status" sortable>
|
||||
|
@ -97,7 +97,7 @@
|
|||
<Column field="category" header="Category" sortable></Column>
|
||||
<Column field="rating" header="Reviews" sortable>
|
||||
<template #body="slotProps">
|
||||
<Rating :value="slotProps.data.rating" :readonly="true" :cancel="false" />
|
||||
<Rating :modelValue="slotProps.data.rating" :readonly="true" :cancel="false" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="inventoryStatus" header="Status" sortable>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<Column field="category" header="Category"></Column>
|
||||
<Column field="rating" header="Reviews">
|
||||
<template #body="slotProps">
|
||||
<Rating :value="slotProps.data.rating" :readonly="true" :cancel="false" />
|
||||
<Rating :modelValue="slotProps.data.rating" :readonly="true" :cancel="false" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column header="Status">
|
||||
|
@ -71,7 +71,7 @@
|
|||
<Column field="category" header="Category"></Column>
|
||||
<Column field="rating" header="Reviews">
|
||||
<template #body="slotProps">
|
||||
<Rating :value="slotProps.data.rating" :readonly="true" :cancel="false" />
|
||||
<Rating :modelValue="slotProps.data.rating" :readonly="true" :cancel="false" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column header="Status">
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<div class="product-list-detail">
|
||||
<div class="product-name">{{slotProps.data.name}}</div>
|
||||
<div class="product-description">{{slotProps.data.description}}</div>
|
||||
<Rating :value="slotProps.data.rating" :readonly="true" :cancel="false"></Rating>
|
||||
<Rating :modelValue="slotProps.data.rating" :readonly="true" :cancel="false"></Rating>
|
||||
<i class="pi pi-tag product-category-icon"></i><span class="product-category">{{slotProps.data.category}}</span>
|
||||
</div>
|
||||
<div class="product-list-action">
|
||||
|
@ -54,7 +54,7 @@
|
|||
<img :src="'demo/images/product/' + slotProps.data.image" :alt="slotProps.data.name"/>
|
||||
<div class="product-name">{{slotProps.data.name}}</div>
|
||||
<div class="product-description">{{slotProps.data.description}}</div>
|
||||
<Rating :value="slotProps.data.rating" :readonly="true" :cancel="false"></Rating>
|
||||
<Rating :modelValue="slotProps.data.rating" :readonly="true" :cancel="false"></Rating>
|
||||
</div>
|
||||
<div class="product-grid-item-bottom">
|
||||
<span class="product-price">${{slotProps.data.price}}</span>
|
||||
|
|
|
@ -440,7 +440,7 @@ export default {
|
|||
<div class="product-list-detail">
|
||||
<div class="product-name">{{slotProps.data.name}}</div>
|
||||
<div class="product-description">{{slotProps.data.description}}</div>
|
||||
<Rating :value="slotProps.data.rating" :readonly="true" :cancel="false"></Rating>
|
||||
<Rating :modelValue="slotProps.data.rating" :readonly="true" :cancel="false"></Rating>
|
||||
<i class="pi pi-tag product-category-icon"></i><span class="product-category">{{slotProps.data.category}}</span>
|
||||
</div>
|
||||
<div class="product-list-action">
|
||||
|
@ -466,7 +466,7 @@ export default {
|
|||
<img :src="'demo/images/product/' + slotProps.data.image" :alt="slotProps.data.name"/>
|
||||
<div class="product-name">{{slotProps.data.name}}</div>
|
||||
<div class="product-description">{{slotProps.data.description}}</div>
|
||||
<Rating :value="slotProps.data.rating" :readonly="true" :cancel="false"></Rating>
|
||||
<Rating :modelValue="slotProps.data.rating" :readonly="true" :cancel="false"></Rating>
|
||||
</div>
|
||||
<div class="product-grid-item-bottom">
|
||||
<span class="product-price">${{slotProps.data.price}}</span>
|
||||
|
|
|
@ -16,10 +16,10 @@
|
|||
<Rating v-model="val2" :cancel="false" />
|
||||
|
||||
<h5>ReadOnly</h5>
|
||||
<Rating :value="5" :readonly="true" :stars="10" :cancel="false" />
|
||||
<Rating :modelValue="5" :readonly="true" :stars="10" :cancel="false" />
|
||||
|
||||
<h5>Disabled</h5>
|
||||
<Rating :value="8" :disabled="true" :stars="10" />
|
||||
<Rating :modelValue="8" :disabled="true" :stars="10" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -149,10 +149,10 @@ import Rating from 'primevue/rating';
|
|||
<Rating v-model="val2" :cancel="false" />
|
||||
|
||||
<h3>ReadOnly</h3>
|
||||
<Rating :value="5" :readonly="true" :stars="10" :cancel="false" />
|
||||
<Rating :modelValue="5" :readonly="true" :stars="10" :cancel="false" />
|
||||
|
||||
<h3>Disabled</h3>
|
||||
<Rating :value="8" :disabled="true" :stars="10" />
|
||||
<Rating :modelValue="8" :disabled="true" :stars="10" />
|
||||
</template>
|
||||
</code></pre>
|
||||
|
||||
|
|
Loading…
Reference in New Issue