Unstyled demo fixes

This commit is contained in:
Tuğçe Küçükoğlu 2023-08-02 15:30:28 +03:00
parent 3d5222ee93
commit 9f1cb2e193
51 changed files with 20 additions and 1043 deletions

View file

@ -6,11 +6,9 @@
</template>
<script>
import { ProductService } from '@/service/ProductService';
export default {
data() {
return {
products: null,
code: {
composition: `
<template>
@ -43,27 +41,9 @@ const products = ref(null);
onMounted(() => {
ProductService.getProductsSmall().then((data) => (products.value = data));
});
<\/script>`,
data: `
/* ProductService */
{
id: '1000',
code: 'f230fh0g3',
name: 'Bamboo Watch',
description: 'Product Description',
image: 'bamboo-watch.jpg',
price: 65,
category: 'Accessories',
quantity: 24,
inventoryStatus: 'INSTOCK',
rating: 5
},
...`
<\/script>`
}
};
},
mounted() {
ProductService.getProductsSmall().then((data) => (this.products = data));
}
};
</script>