How does the modal dialog button be used again without closing the dialog box?

problem description

there are two methods, the first is to delay operation, and the second is to use slot,. What are the principles of these two methods respectively? And why did this error occur, and what is the reason for source code analysis? Thank you all

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

        <div slot="footer">
            <Button type="text" size="large" @click="modalCancel"></Button>
            <Button type="primary" size="large" @click="modalOk"></Button>
        </div>
        
    this.ModalLoading = false
        this.$nextTick(() => {
          this.ModalLoading = true
     })

what result do you expect? What is the error message actually seen?

Oct.27,2021

viewers don't know what to say ~

Menu