The problem of implementing general dialog with vue: can it be called in an imperative manner, and can be dynamically added to the part of the body?

the function of the outer layer of dialog is very simple. It is OK to confirm and close and issue events, but the middle body is dynamic and can be added through slot, but if this is the case, I need to register and reference the components every time. This is very troublesome. Is there any way to make imperative calls and dynamically add parts of body

?
Mar.04,2021
Menu