Element UI

Time:2020-11-3

Element UI

Element, a set of Vue 2.0-based desktop component library for developers, designers and product managers

Basic use example code:

Title
    
    
    
    
    
    
    
        .el-menu{
            display: flex;
            Align items: Center; / * horizontal center*/
            Justify content: Center; / * vertical center*/
        }
    



    
    


    
        
            home page
            Light lessons
            The course is free of charge
            degree course
            Intelligent question bank
            Processing center
        
    


    let my_header = {
        template:"#header",
        data(){
            return{
                activeIndex:"/"
            }
        }
    };
    let url = [
        {
            path:"/",
            component:{
                template: '<div><h1>home page组件</h1></div>'
            }
        },
        {
            path:"/course",
            component:{
                Template: '< div > < H1 > course component < / H1 > < / div >'
            }
        },
    ];
    let router = new VueRouter({
        routes:url,
    })
    const app = new Vue({
        el:"#app",
        router: router,
        components:{
            my_header:my_header
        }
    })