javascript - What is the best combination of vue components and work efficiency
阿神
阿神 2017-05-19 10:46:21
0
1
582

Scenario
: Use three pieces of content (tab switching) in one page, using route. The three pieces of content are very important, and each has its own differences.

Question
: How to make components? How to strike a balance between components and work efficiency?

my thoughts:

1. Put three components into a function, and then pass different things in to build different components.

2. Or just use a component to pass different data sources. By separating the data sources, I feel like there are more things I need to judge this way.

Is there any good solution?

阿神
阿神

闭关修行中......

reply all(1)
phpcn_u1582

Extract the public part.
Use slots to pass in different places, or configure them through props.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template