I want to reuse the pop-up box component, click on different buttons, trigger the pop-up box, and let the pop-up box change different content with the click of different buttons?

I want to change the dom content of the package component by naming slots and passing parameters. Please describe the answer in more detail. Thank you!

Mar.22,2021

have you read all the official Vue documents? First learn and then check, and finally ask not to mess up the order


use two-way binding to directly use variable control in the slot. Pass in a logo to distinguish according to the different locations you click.


friend, I don't want to give you any answers about why you use VUE, this way.

Menu