I realize that after clicking submit, the selection box pops up. Confirm: submit, cancel: do not submit. Now I have written an outline, but I don"t know how to connect the submission function to the prompt box.
pop-up code:
<transition name="bounce">
<div class="kiko-confirm" v-if="visible">
<div class="bg"></div>
<div class="kiko-container" :style="{width: width}">
<div class="header">
{{title}}
<i @click="close" class="icon-remove icon-large kiko-close-btn" v-if="closeVisible"></i>
</div>
<div class="content">
<slot></slot>
</div>
<slot name="footer">
<div class="kiko-footer" slot="footer">
<a href="javscript:void(0)" class="kiko-btn make-sure" @click="confirmMakeSure"></a>
<a href="javscript:void(0)" class="kiko-btn cancel" @click="confirmVisible = false"></a>
</div>
</slot>
</div>
</div>
</transition>
submit button:
<button v-on:click="submit($event)">submit</button>
how can the pop-up window above appear as soon as you click submit, and then click OK to submit it?