A
A
Andrej Sharapov2019-08-08 10:28:20
Vue.js
Andrej Sharapov, 2019-08-08 10:28:20

How to fix the appearance of blocks (modal)?

I made a small plate with images and buttons. The buttons should open the window in full screen and display the full image.
Example:

But in my example, when you click on any button, all the images come out, not the one that was clicked.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-08-08
@Madeas

Split the component into two - for the list and the selected item. Pass data to the list, emit the selected element from the list, which is passed to the corresponding component.
https://jsfiddle.net/5kdqema2/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question