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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ba53-4d94b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ba53-4d94b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?