Do adaptation of personality development based on third-party component libraries vuejs

I believe we will be used when using vuejs many third-party libraries, can find their own libraries and use them can greatly accelerate progress to reduce the bug. But many times there will be such an awkward position:

Third-party components of the baseline and can not meet the needs of our own, then it should in the end how to do?

This paper attempts to talk about my method.

I used one of the el-steps / el-step when using the element-ui as a standard component library, UI is able to display a different step. But I want to be able to support directly click step to switch back to do modification step has been completed, it is quite normal demand. meiyi

For example, when doing a job system, to submit a new exercise must go through multiple steps, and after each step is completed, we may want to go back and do modified.

 

 

The native el-step does not support this feature, and hope to achieve this functionality based on ready-made components elementui, my idea is:

Defined as 1. own my-el-step assembly extends el-step by

2. template must be used el-step exactly the same, at least there are not big changes

3. Use el-steps and my-el-step to achieve with this step shows and fallback UI features

 

Guess you like

Origin www.cnblogs.com/kidsitcn/p/11613250.html
Recommended