description: mobile web uses vue to implement the left and right column layout. The left side is a list of various information table names, and the right side is the content that is loaded dynamically after clicking the left menu. The content on the right is mainly a variety of forms, and there are default values (users can modify and submit).
implementation method:
idea 1. The list on the left and the content on the right are different components, such as left.vue right.vue, which consists of two single files.
idea 2. The list on the left and the content on the right are inside the same component. The switching of content is achieved by dynamic component switching.
which implementation is better? Personally, I think the second kind is better and more holistic!
added: passing values between sibling components, that is, updating different forms of the right component according to the different items clicked on the left menu, is it better to use event bus than vuex? when the project is small?