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

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

No files matched your search

BIN
View File
Binary file not shown.
+48 -2
View File
@@ -59,7 +59,7 @@
variant="text" variant="text"
icon="mdi-message-text-outline" icon="mdi-message-text-outline"
color="teal" color="teal"
@click="commentShow=!commentShow" @click="commentadd"
/> />
{{ message }} {{ message }}
</v-col> </v-col>
@@ -88,8 +88,46 @@
</div> </div>
</v-expand-transition> </v-expand-transition>
</v-card> </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> </v-container>
</template> </template>
<script> <script>
@@ -113,6 +151,7 @@ export default {
const likedD = ref(false) const likedD = ref(false)
const message = ref(0) const message = ref(0)
const commentShow = ref(false) const commentShow = ref(false)
const dialogCommentShow = ref(false)
const toggleIncrementLike = () => { const toggleIncrementLike = () => {
if (likedI.value) { if (likedI.value) {
@@ -157,6 +196,11 @@ export default {
} }
}, {deep:true}) }, {deep:true})
const commentadd = () => {
dialogCommentShow.value=!dialogCommentShow.value
// commentShow.value =!commentShow.value
}
return { return {
newss, newss,
@@ -168,7 +212,9 @@ export default {
message, message,
commentShow, commentShow,
toggleIncrementLike, toggleIncrementLike,
toggleDecrementLike toggleDecrementLike,
dialogCommentShow,
commentadd
} }
} }