Vue切换导航菜单、标签切换,实现class切换原创

原创
小哥 2年前 (2022-11-23) 阅读数 119 #技术教程

HTML

 

CSS

.btn-success {color:#fff;background-color:#429842;border-color:#429842}.

JS

    var vm = new Vue({
        el: "#app",
        data: {
            btnList:[
                {text:全部},
                {text:已处理},
                {text:待处理},
            ],
            isActive:0,
        },
        methods: {
            //切换菜单
            changeStatus:function(index){
                this.status = index
                this.getList()
            },
        }
})
版权声明

所有资源都来源于爬虫采集,如有侵权请联系我们,我们将立即删除

热门