It is also necessary for users to provide some navigation processes when they carry out some new operation processes. The project uses the iview dialog box to implement it.
demo:
<Modal v-if="modalOFF === 1"> <p>Here is the dialog box one</p> <button @click="modalOFF = 2"></button> </Modal> <Modal v-if="modalOFF === 2"> <p>Here is dialog box two</p> <button @click="modalOFF = 3"></button> </Modal> <Modal v-if="modalOFF === 3"> <p>Here is dialog box two</p> <button @click="modalOFF = null"></button> </Modal>
js code:
Let who show it first,Just nowdataDefinition inmodalOFFattribute value。The default is modalOFF: 1,
When modalOFF is null, the dialog box disappears.
The above method of implementing page navigation prompt guidance in vue2.0 is all the content I share with you. I hope you can give you a reference and I hope you can support me more.