When looking at the button component of Elementui, together with the iview, ant design, the button component
More functional, style, code structure, look at some of their different points, different ways of writing which will be better, button of the opening up of the function of those who will
Which will be relatively good to use.
Let's take a look at these three UI buttons to open up a functional structure:
Elementui button:
iview button:
Ant Design button:
It can be seen that iview and ant desgin the function of the button is very similar, and element button of the function of a less a-label function, feel the button to convert the function of a tag is not much. After looking at the specific button style code will find iview and ant desgin more like, all before saw said iview plagiarism element feel just out of nothing, that iview and Ant desgin who is the reference to who is also no need to delve into, It is normal for an open source project to draw on code style specifications, plus a common component that is often used to toss and then fix.
button style structure for three UI:
Elementui Button.scss
iview button.less
Ant Desgin button.less
I can see that the iview and ant desgin buttons are in the same style with less and the structure includes mixins and buttons, and the names are very similar, and the Elementui button style is written in sass. Follow-up Plan parsing component Elementui, iview, ant Desgin's overall function, style structure, Elementui, iview, ant desgin style detail; Elementui, iview, Ant Desgin function code detailed chapter three parts to start. This article describes the function of the button in the three large UI frames, the style of the day structure. The next piece is to look at the three UI framework style details.