-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
60 additions
and
7 deletions.
There are no files selected for viewing
23 changes: 21 additions & 2 deletions
23
web-app-vue/src/components/recorrencia/detalhe-recorrencia.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
<template> | ||
<p>detalhe </p> | ||
|
||
<v-chip | ||
v-if="!edit" | ||
rounded | ||
variant="outlined" | ||
color="green-accent-2" | ||
class="ma-2" | ||
size="x-large" | ||
:append-icon="props.recorrencia?.id ? 'mdi-playlist-edit' : 'mdi-playlist-plus'" | ||
@click="edit = !edit" | ||
> | ||
{{ props.recorrencia?.descricao || "Nova recorrência" }} | ||
</v-chip> | ||
</template> | ||
<script setup></script> | ||
<script setup> | ||
import {ref} from "vue"; | ||
const props = defineProps(['recorrencia']) | ||
const emit = defineEmits(['onSave', 'onCancel', 'onDel']) | ||
const edit = ref(false) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters