mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4818 - Remove primeflex dependency from DataView
This commit is contained in:
parent
3231777755
commit
2026bb75e4
12 changed files with 690 additions and 661 deletions
|
@ -21,24 +21,26 @@
|
|||
</template>
|
||||
|
||||
<template #list="slotProps">
|
||||
<div class="col-12">
|
||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4">
|
||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="`https://primefaces.org/cdn/primevue/images/product/${slotProps.data.image}`" :alt="slotProps.data.name" />
|
||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
||||
<div class="text-2xl font-bold text-900">{{ slotProps.data.name }}</div>
|
||||
<Rating :modelValue="slotProps.data.rating" readonly :cancel="false"></Rating>
|
||||
<div class="flex align-items-center gap-3">
|
||||
<span class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ slotProps.data.category }}</span>
|
||||
</span>
|
||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data)"></Tag>
|
||||
<div class="grid grid-nogutter">
|
||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4">
|
||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="`https://primefaces.org/cdn/primevue/images/product/${item.image}`" :alt="item.name" />
|
||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
||||
<div class="flex align-items-center gap-3">
|
||||
<span class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ item.category }}</span>
|
||||
</span>
|
||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
||||
<span class="text-2xl font-semibold">${{ item.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
||||
<span class="text-2xl font-semibold">${{ slotProps.data.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="slotProps.data.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -46,23 +48,25 @@
|
|||
</template>
|
||||
|
||||
<template #grid="slotProps">
|
||||
<div class="col-12 sm:col-6 lg:col-12 xl:col-4 p-2">
|
||||
<div class="p-4 border-1 surface-border surface-card border-round">
|
||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
||||
<div class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ slotProps.data.category }}</span>
|
||||
<div class="grid grid-nogutter">
|
||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12 sm:col-6 lg:col-12 xl:col-4 p-2">
|
||||
<div class="p-4 border-1 surface-border surface-card border-round">
|
||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
||||
<div class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ item.category }}</span>
|
||||
</div>
|
||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
||||
</div>
|
||||
<div class="flex flex-column align-items-center gap-3 py-5">
|
||||
<img class="w-9 shadow-2 border-round" :src="`https://primefaces.org/cdn/primevue/images/product/${item.image}`" :alt="item.name" />
|
||||
<div class="text-2xl font-bold">{{ item.name }}</div>
|
||||
<Rating value="{product.rating}" readonly :cancel="false"></Rating>
|
||||
</div>
|
||||
<div class="flex align-items-center justify-content-between">
|
||||
<span class="text-2xl font-semibold">${{ item.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data)"></Tag>
|
||||
</div>
|
||||
<div class="flex flex-column align-items-center gap-3 py-5">
|
||||
<img class="w-9 shadow-2 border-round" :src="`https://primefaces.org/cdn/primevue/images/product/${slotProps.data.image}`" :alt="slotProps.data.name" />
|
||||
<div class="text-2xl font-bold">{{ slotProps.data.name }}</div>
|
||||
<Rating value="{product.rating}" readonly :cancel="false"></Rating>
|
||||
</div>
|
||||
<div class="flex align-items-center justify-content-between">
|
||||
<span class="text-2xl font-semibold">${{ slotProps.data.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="slotProps.data.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -102,24 +106,26 @@ export default {
|
|||
</template>
|
||||
|
||||
<template #list="slotProps">
|
||||
<div class="col-12">
|
||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4">
|
||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.name" />
|
||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
||||
<div class="text-2xl font-bold text-900">{{ slotProps.data.name }}</div>
|
||||
<Rating :modelValue="slotProps.data.rating" readonly :cancel="false"></Rating>
|
||||
<div class="flex align-items-center gap-3">
|
||||
<span class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ slotProps.data.category }}</span>
|
||||
</span>
|
||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data)"></Tag>
|
||||
<div class="grid grid-nogutter">
|
||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4">
|
||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
||||
<div class="flex align-items-center gap-3">
|
||||
<span class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ item.category }}</span>
|
||||
</span>
|
||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
||||
<span class="text-2xl font-semibold">\${{ slotProps.data.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="slotProps.data.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -127,23 +133,25 @@ export default {
|
|||
</template>
|
||||
|
||||
<template #grid="slotProps">
|
||||
<div class="col-12 sm:col-6 lg:col-12 xl:col-4 p-2">
|
||||
<div class="p-4 border-1 surface-border surface-card border-round">
|
||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
||||
<div class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ slotProps.data.category }}</span>
|
||||
<div class="grid grid-nogutter">
|
||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12 sm:col-6 lg:col-12 xl:col-4 p-2">
|
||||
<div class="p-4 border-1 surface-border surface-card border-round">
|
||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
||||
<div class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ item.category }}</span>
|
||||
</div>
|
||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
||||
</div>
|
||||
<div class="flex flex-column align-items-center gap-3 py-5">
|
||||
<img class="w-9 shadow-2 border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||
<div class="text-2xl font-bold">{{ item.name }}</div>
|
||||
<Rating value="{product.rating}" readonly :cancel="false"></Rating>
|
||||
</div>
|
||||
<div class="flex align-items-center justify-content-between">
|
||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data)"></Tag>
|
||||
</div>
|
||||
<div class="flex flex-column align-items-center gap-3 py-5">
|
||||
<img class="w-9 shadow-2 border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.name" />
|
||||
<div class="text-2xl font-bold">{{ slotProps.data.name }}</div>
|
||||
<Rating value="{product.rating}" readonly :cancel="false"></Rating>
|
||||
</div>
|
||||
<div class="flex align-items-center justify-content-between">
|
||||
<span class="text-2xl font-semibold">\${{ slotProps.data.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="slotProps.data.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -173,24 +181,26 @@ export default {
|
|||
</template>
|
||||
|
||||
<template #list="slotProps">
|
||||
<div class="col-12">
|
||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4">
|
||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.name" />
|
||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
||||
<div class="text-2xl font-bold text-900">{{ slotProps.data.name }}</div>
|
||||
<Rating :modelValue="slotProps.data.rating" readonly :cancel="false"></Rating>
|
||||
<div class="flex align-items-center gap-3">
|
||||
<span class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ slotProps.data.category }}</span>
|
||||
</span>
|
||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data)"></Tag>
|
||||
<div class="grid grid-nogutter">
|
||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4">
|
||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
||||
<div class="flex align-items-center gap-3">
|
||||
<span class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ item.category }}</span>
|
||||
</span>
|
||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
||||
<span class="text-2xl font-semibold">\${{ slotProps.data.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="slotProps.data.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -198,23 +208,25 @@ export default {
|
|||
</template>
|
||||
|
||||
<template #grid="slotProps">
|
||||
<div class="col-12 sm:col-6 lg:col-12 xl:col-4 p-2">
|
||||
<div class="p-4 border-1 surface-border surface-card border-round">
|
||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
||||
<div class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ slotProps.data.category }}</span>
|
||||
<div class="grid grid-nogutter">
|
||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12 sm:col-6 lg:col-12 xl:col-4 p-2">
|
||||
<div class="p-4 border-1 surface-border surface-card border-round">
|
||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
||||
<div class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ item.category }}</span>
|
||||
</div>
|
||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
||||
</div>
|
||||
<div class="flex flex-column align-items-center gap-3 py-5">
|
||||
<img class="w-9 shadow-2 border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||
<div class="text-2xl font-bold">{{ item.name }}</div>
|
||||
<Rating value="{product.rating}" readonly :cancel="false"></Rating>
|
||||
</div>
|
||||
<div class="flex align-items-center justify-content-between">
|
||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data)"></Tag>
|
||||
</div>
|
||||
<div class="flex flex-column align-items-center gap-3 py-5">
|
||||
<img class="w-9 shadow-2 border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.name" />
|
||||
<div class="text-2xl font-bold">{{ slotProps.data.name }}</div>
|
||||
<Rating value="{product.rating}" readonly :cancel="false"></Rating>
|
||||
</div>
|
||||
<div class="flex align-items-center justify-content-between">
|
||||
<span class="text-2xl font-semibold">\${{ slotProps.data.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="slotProps.data.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -279,24 +291,26 @@ export default {
|
|||
</template>
|
||||
|
||||
<template #list="slotProps">
|
||||
<div class="col-12">
|
||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4">
|
||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.name" />
|
||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
||||
<div class="text-2xl font-bold text-900">{{ slotProps.data.name }}</div>
|
||||
<Rating :modelValue="slotProps.data.rating" readonly :cancel="false"></Rating>
|
||||
<div class="flex align-items-center gap-3">
|
||||
<span class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ slotProps.data.category }}</span>
|
||||
</span>
|
||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data)"></Tag>
|
||||
<div class="grid grid-nogutter">
|
||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||
<div class="flex flex-column xl:flex-row xl:align-items-start p-4 gap-4">
|
||||
<img class="w-9 sm:w-16rem xl:w-10rem shadow-2 block xl:block mx-auto border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center xl:align-items-start flex-1 gap-4">
|
||||
<div class="flex flex-column align-items-center sm:align-items-start gap-3">
|
||||
<div class="text-2xl font-bold text-900">{{ item.name }}</div>
|
||||
<Rating :modelValue="item.rating" readonly :cancel="false"></Rating>
|
||||
<div class="flex align-items-center gap-3">
|
||||
<span class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ item.category }}</span>
|
||||
</span>
|
||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex sm:flex-column align-items-center sm:align-items-end gap-3 sm:gap-2">
|
||||
<span class="text-2xl font-semibold">\${{ slotProps.data.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="slotProps.data.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -304,23 +318,25 @@ export default {
|
|||
</template>
|
||||
|
||||
<template #grid="slotProps">
|
||||
<div class="col-12 sm:col-6 lg:col-12 xl:col-4 p-2">
|
||||
<div class="p-4 border-1 surface-border surface-card border-round">
|
||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
||||
<div class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ slotProps.data.category }}</span>
|
||||
<div class="grid grid-nogutter">
|
||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12 sm:col-6 lg:col-12 xl:col-4 p-2">
|
||||
<div class="p-4 border-1 surface-border surface-card border-round">
|
||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
||||
<div class="flex align-items-center gap-2">
|
||||
<i class="pi pi-tag"></i>
|
||||
<span class="font-semibold">{{ item.category }}</span>
|
||||
</div>
|
||||
<Tag :value="item.inventoryStatus" :severity="getSeverity(item)"></Tag>
|
||||
</div>
|
||||
<div class="flex flex-column align-items-center gap-3 py-5">
|
||||
<img class="w-9 shadow-2 border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${item.image}\`" :alt="item.name" />
|
||||
<div class="text-2xl font-bold">{{ item.name }}</div>
|
||||
<Rating value="{product.rating}" readonly :cancel="false"></Rating>
|
||||
</div>
|
||||
<div class="flex align-items-center justify-content-between">
|
||||
<span class="text-2xl font-semibold">\${{ item.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="item.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data)"></Tag>
|
||||
</div>
|
||||
<div class="flex flex-column align-items-center gap-3 py-5">
|
||||
<img class="w-9 shadow-2 border-round" :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.name" />
|
||||
<div class="text-2xl font-bold">{{ slotProps.data.name }}</div>
|
||||
<Rating value="{product.rating}" readonly :cancel="false"></Rating>
|
||||
</div>
|
||||
<div class="flex align-items-center justify-content-between">
|
||||
<span class="text-2xl font-semibold">\${{ slotProps.data.price }}</span>
|
||||
<Button icon="pi pi-shopping-cart" rounded :disabled="slotProps.data.inventoryStatus === 'OUTOFSTOCK'"></Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -359,7 +375,7 @@ const getSeverity = (product) => {
|
|||
<\/script>
|
||||
`,
|
||||
data: `
|
||||
/* ProductService */
|
||||
/* ProductService */
|
||||
{
|
||||
id: '1000',
|
||||
code: 'f230fh0g3',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue