Диалог комментариев

This commit is contained in:
iriska-gri committed 2023-09-29 15:39:40 +03:00
1 parent 036853e4cb
commit e3b1188683
2 files changed
+49 -3

No files matched your search

BIN
View File
Binary file not shown.
+49 -3
View File
@@ -59,7 +59,7 @@
variant="text"
icon="mdi-message-text-outline"
color="teal"
@click="commentShow=!commentShow"
@click="commentadd"
/>
{{ message }}
</v-col>
@@ -88,8 +88,46 @@
</div>
</v-expand-transition>
</v-card>
<v-row justify="center">
<v-dialog
v-model="dialogCommentShow"
persistent
width="550"
>
<v-card>
<v-card-title class="text-h5">
Прокоментировать новость
</v-card-title>
<v-card-text>
<v-textarea
variant="solo"
hide-details
rows="5"
></v-textarea>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="green-darken-1"
variant="text"
@click="dialogCommentShow = false"
>
Отмена
</v-btn>
<v-btn
color="green-darken-1"
variant="text"
@click="dialogCommentShow = false"
>
Отправить
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-row>
</v-container>
</template>
<script>
@@ -113,6 +151,7 @@ export default {
const likedD = ref(false)
const message = ref(0)
const commentShow = ref(false)
const dialogCommentShow = ref(false)
const toggleIncrementLike = () => {
if (likedI.value) {
@@ -157,6 +196,11 @@ export default {
}
}, {deep:true})
const commentadd = () => {
dialogCommentShow.value=!dialogCommentShow.value
// commentShow.value =!commentShow.value
}
return {
newss,
@@ -168,7 +212,9 @@ export default {
message,
commentShow,
toggleIncrementLike,
toggleDecrementLike
toggleDecrementLike,
dialogCommentShow,
commentadd
}
}