899 lines
13 KiB
JavaScript
899 lines
13 KiB
JavaScript
|
|
export const basic = { ts: `<script setup lang="ts">
|
||
|
|
const desserts = [
|
||
|
|
{
|
||
|
|
dessert: 'Frozen Yogurt',
|
||
|
|
calories: 159,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Ice cream sandwich',
|
||
|
|
calories: 237,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Eclair',
|
||
|
|
calories: 262,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Cupcake',
|
||
|
|
calories: 305,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Gingerbread',
|
||
|
|
calories: 356,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
]
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<VTable class="text-no-wrap">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>
|
||
|
|
Desserts(100g Servings)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
calories
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Fat(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Carbs(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
protein(g)
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
|
||
|
|
<tbody>
|
||
|
|
<tr
|
||
|
|
v-for="item in desserts"
|
||
|
|
:key="item.dessert"
|
||
|
|
>
|
||
|
|
<td>
|
||
|
|
{{ item.dessert }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.calories }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.fat }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.carbs }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.protein }}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</VTable>
|
||
|
|
</template>
|
||
|
|
`, js: `<script setup>
|
||
|
|
const desserts = [
|
||
|
|
{
|
||
|
|
dessert: 'Frozen Yogurt',
|
||
|
|
calories: 159,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Ice cream sandwich',
|
||
|
|
calories: 237,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Eclair',
|
||
|
|
calories: 262,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Cupcake',
|
||
|
|
calories: 305,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Gingerbread',
|
||
|
|
calories: 356,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
]
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<VTable class="text-no-wrap">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>
|
||
|
|
Desserts(100g Servings)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
calories
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Fat(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Carbs(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
protein(g)
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
|
||
|
|
<tbody>
|
||
|
|
<tr
|
||
|
|
v-for="item in desserts"
|
||
|
|
:key="item.dessert"
|
||
|
|
>
|
||
|
|
<td>
|
||
|
|
{{ item.dessert }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.calories }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.fat }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.carbs }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.protein }}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</VTable>
|
||
|
|
</template>
|
||
|
|
` }
|
||
|
|
|
||
|
|
export const density = { ts: `<script setup lang="ts">
|
||
|
|
const desserts = [
|
||
|
|
{
|
||
|
|
dessert: 'Frozen Yogurt',
|
||
|
|
calories: 159,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Ice cream sandwich',
|
||
|
|
calories: 237,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Eclair',
|
||
|
|
calories: 262,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Cupcake',
|
||
|
|
calories: 305,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Gingerbread',
|
||
|
|
calories: 356,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
]
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<VTable
|
||
|
|
density="compact"
|
||
|
|
class="text-no-wrap"
|
||
|
|
>
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>
|
||
|
|
Desserts(100g Servings)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
calories
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Fat(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Carbs(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
protein(g)
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
|
||
|
|
<tbody>
|
||
|
|
<tr
|
||
|
|
v-for="item in desserts"
|
||
|
|
:key="item.dessert"
|
||
|
|
>
|
||
|
|
<td>
|
||
|
|
{{ item.dessert }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.calories }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.fat }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.carbs }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.protein }}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</VTable>
|
||
|
|
</template>
|
||
|
|
`, js: `<script setup>
|
||
|
|
const desserts = [
|
||
|
|
{
|
||
|
|
dessert: 'Frozen Yogurt',
|
||
|
|
calories: 159,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Ice cream sandwich',
|
||
|
|
calories: 237,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Eclair',
|
||
|
|
calories: 262,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Cupcake',
|
||
|
|
calories: 305,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Gingerbread',
|
||
|
|
calories: 356,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
]
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<VTable
|
||
|
|
density="compact"
|
||
|
|
class="text-no-wrap"
|
||
|
|
>
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>
|
||
|
|
Desserts(100g Servings)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
calories
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Fat(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Carbs(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
protein(g)
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
|
||
|
|
<tbody>
|
||
|
|
<tr
|
||
|
|
v-for="item in desserts"
|
||
|
|
:key="item.dessert"
|
||
|
|
>
|
||
|
|
<td>
|
||
|
|
{{ item.dessert }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.calories }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.fat }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.carbs }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.protein }}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</VTable>
|
||
|
|
</template>
|
||
|
|
` }
|
||
|
|
|
||
|
|
export const fixedHeader = { ts: `<script setup lang="ts">
|
||
|
|
const desserts = [
|
||
|
|
{
|
||
|
|
dessert: 'Frozen Yogurt',
|
||
|
|
calories: 159,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Ice cream sandwich',
|
||
|
|
calories: 237,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Eclair',
|
||
|
|
calories: 262,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Cupcake',
|
||
|
|
calories: 305,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Gingerbread',
|
||
|
|
calories: 356,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
]
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<VTable
|
||
|
|
height="250"
|
||
|
|
fixed-header
|
||
|
|
class="text-no-wrap"
|
||
|
|
>
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>
|
||
|
|
Desserts(100g Servings)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
calories
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Fat(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Carbs(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
protein(g)
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
|
||
|
|
<tbody>
|
||
|
|
<tr
|
||
|
|
v-for="item in desserts"
|
||
|
|
:key="item.dessert"
|
||
|
|
>
|
||
|
|
<td>
|
||
|
|
{{ item.dessert }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.calories }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.fat }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.carbs }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.protein }}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</VTable>
|
||
|
|
</template>
|
||
|
|
`, js: `<script setup>
|
||
|
|
const desserts = [
|
||
|
|
{
|
||
|
|
dessert: 'Frozen Yogurt',
|
||
|
|
calories: 159,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Ice cream sandwich',
|
||
|
|
calories: 237,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Eclair',
|
||
|
|
calories: 262,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Cupcake',
|
||
|
|
calories: 305,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Gingerbread',
|
||
|
|
calories: 356,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
]
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<VTable
|
||
|
|
height="250"
|
||
|
|
fixed-header
|
||
|
|
class="text-no-wrap"
|
||
|
|
>
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>
|
||
|
|
Desserts(100g Servings)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
calories
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Fat(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Carbs(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
protein(g)
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
|
||
|
|
<tbody>
|
||
|
|
<tr
|
||
|
|
v-for="item in desserts"
|
||
|
|
:key="item.dessert"
|
||
|
|
>
|
||
|
|
<td>
|
||
|
|
{{ item.dessert }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.calories }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.fat }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.carbs }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.protein }}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</VTable>
|
||
|
|
</template>
|
||
|
|
` }
|
||
|
|
|
||
|
|
export const height = { ts: `<script setup lang="ts">
|
||
|
|
const desserts = [
|
||
|
|
{
|
||
|
|
dessert: 'Frozen Yogurt',
|
||
|
|
calories: 159,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Ice cream sandwich',
|
||
|
|
calories: 237,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Eclair',
|
||
|
|
calories: 262,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Cupcake',
|
||
|
|
calories: 305,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Gingerbread',
|
||
|
|
calories: 356,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
]
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<VTable
|
||
|
|
height="250"
|
||
|
|
class="text-no-wrap"
|
||
|
|
>
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>
|
||
|
|
Desserts(100g Servings)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
calories
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Fat(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Carbs(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
protein(g)
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
|
||
|
|
<tbody>
|
||
|
|
<tr
|
||
|
|
v-for="item in desserts"
|
||
|
|
:key="item.dessert"
|
||
|
|
>
|
||
|
|
<td>
|
||
|
|
{{ item.dessert }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.calories }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.fat }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.carbs }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.protein }}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</VTable>
|
||
|
|
</template>
|
||
|
|
`, js: `<script setup>
|
||
|
|
const desserts = [
|
||
|
|
{
|
||
|
|
dessert: 'Frozen Yogurt',
|
||
|
|
calories: 159,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Ice cream sandwich',
|
||
|
|
calories: 237,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Eclair',
|
||
|
|
calories: 262,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Cupcake',
|
||
|
|
calories: 305,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Gingerbread',
|
||
|
|
calories: 356,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
]
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<VTable
|
||
|
|
height="250"
|
||
|
|
class="text-no-wrap"
|
||
|
|
>
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>
|
||
|
|
Desserts(100g Servings)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
calories
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Fat(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Carbs(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
protein(g)
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
|
||
|
|
<tbody>
|
||
|
|
<tr
|
||
|
|
v-for="item in desserts"
|
||
|
|
:key="item.dessert"
|
||
|
|
>
|
||
|
|
<td>
|
||
|
|
{{ item.dessert }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.calories }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.fat }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.carbs }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.protein }}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</VTable>
|
||
|
|
</template>
|
||
|
|
` }
|
||
|
|
|
||
|
|
export const theme = { ts: `<script setup lang="ts">
|
||
|
|
const desserts = [
|
||
|
|
{
|
||
|
|
dessert: 'Frozen Yogurt',
|
||
|
|
calories: 159,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Ice cream sandwich',
|
||
|
|
calories: 237,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Eclair',
|
||
|
|
calories: 262,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Cupcake',
|
||
|
|
calories: 305,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Gingerbread',
|
||
|
|
calories: 356,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
]
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<VTable
|
||
|
|
|
||
|
|
theme="dark"
|
||
|
|
class="text-no-wrap rounded-0"
|
||
|
|
>
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>
|
||
|
|
Desserts(100g Servings)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
calories
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Fat(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Carbs(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
protein(g)
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
|
||
|
|
<tbody>
|
||
|
|
<tr
|
||
|
|
v-for="item in desserts"
|
||
|
|
:key="item.dessert"
|
||
|
|
>
|
||
|
|
<td>
|
||
|
|
{{ item.dessert }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.calories }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.fat }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.carbs }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.protein }}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</VTable>
|
||
|
|
</template>
|
||
|
|
`, js: `<script setup>
|
||
|
|
const desserts = [
|
||
|
|
{
|
||
|
|
dessert: 'Frozen Yogurt',
|
||
|
|
calories: 159,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Ice cream sandwich',
|
||
|
|
calories: 237,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Eclair',
|
||
|
|
calories: 262,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Cupcake',
|
||
|
|
calories: 305,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
dessert: 'Gingerbread',
|
||
|
|
calories: 356,
|
||
|
|
fat: 6,
|
||
|
|
carbs: 24,
|
||
|
|
protein: 4,
|
||
|
|
},
|
||
|
|
]
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<VTable
|
||
|
|
|
||
|
|
theme="dark"
|
||
|
|
class="text-no-wrap rounded-0"
|
||
|
|
>
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>
|
||
|
|
Desserts(100g Servings)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
calories
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Fat(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
Carbs(g)
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
protein(g)
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
|
||
|
|
<tbody>
|
||
|
|
<tr
|
||
|
|
v-for="item in desserts"
|
||
|
|
:key="item.dessert"
|
||
|
|
>
|
||
|
|
<td>
|
||
|
|
{{ item.dessert }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.calories }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.fat }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.carbs }}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{{ item.protein }}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</VTable>
|
||
|
|
</template>
|
||
|
|
` }
|
||
|
|
|