In the process of programming development, it is important to encapsulate ideas, covering the whole aspect without dead Angle; If it is in the front-end development, component encapsulation is also a necessary idea, and the reuse of components is popular, not only convenient development and maintenance, but also greatly improve the development progress, so the use of reuse ideas is very important.

So this blog post will share about the use of front-end reuse ideas, convenient development of the flexible use of reuse ideas, the previous development of a specific simple application to illustrate one aspect of reuse ideas. This blog case to a module under the different state of the popbox reuse to explain, technical point is not difficult, share to the need of people, please go away. The specific demonstration is as follows:

1. First of all, the two places want to share a bullet frame. Before modifying the bullet frame, it is written as follows:

2. Then solve the above requirements, modify the reuse of the frame and the reuse of the operations inside the frame, the specific operations are as follows:

1.

<template>

  <page-header-wrapper>