HTML pages use vue for single page development, package components and pass values between parent and child components

1. First introduce vue.js in the html page

2. Since multiple pages use the same component cell in the same vant, write a common component as follows:

 Subassembly:

 Parent component:

 

 effect:

 

Guess you like

Origin blog.csdn.net/qq_41588568/article/details/106331619