Elementui, iview, ant Design Source button Structure Chapter

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.