Compare commits
2 commits
c2804b4c91
...
3448b07609
Author | SHA1 | Date | |
---|---|---|---|
3448b07609 | |||
0aa4f8aad9 |
1 changed files with 6 additions and 0 deletions
|
@ -31,6 +31,9 @@ function lojas(jogos: Jogo[]): string[] {
|
|||
<template #filter="{ filterModel, filterCallback }">
|
||||
<InputText type="text" v-model="filterModel.value" @input="filterCallback()" />
|
||||
</template>
|
||||
<template #body="{ data }">
|
||||
{{ data.nome }} <span v-if="data.ano">({{ data.ano }})</span>
|
||||
</template>
|
||||
</Column>
|
||||
|
||||
<Column field="estado" sortable header="Estado" :show-filter-menu="false">
|
||||
|
@ -56,6 +59,9 @@ function lojas(jogos: Jogo[]): string[] {
|
|||
<Column field="preco" sortable header="Preço">
|
||||
<template #filter="{ filterModel, filterCallback }">
|
||||
<Select v-model="filterModel.value" @change="filterCallback()" :options="precos" :show-clear="true">
|
||||
<template #value="{ value }">
|
||||
<ComponenteDePreco v-if="value" :preco="value" />
|
||||
</template>
|
||||
<template #option="slotProps">
|
||||
<ComponenteDePreco :preco="slotProps.option" />
|
||||
</template>
|
||||
|
|
Loading…
Reference in a new issue