<div class="modal" v-if="modalStep === 1">
            <p>第一个对话框</p>
            <button @click="modalStep =2">下一步</button>
        </div>
        <div class="modal" v-if="modalStep === 2">
            <p>第二个对话框</p>
            <button @click="modalStep =3">下一步</button>
        </div>
        <div class="modal" v-if="modalStep === 3">
            <p>第三个对话框</p>
            <button @click="modalStep =0">下一步</button>
        </div>

data: modalStep: 1,

效果:

Logo

前往低代码交流专区

更多推荐