[vue] 使用vue写一个tab切换
Activity
maozhuo123 commentedon Jul 3, 2019
v-for循环list,根据索引值设置active的样式和显示内容
HeMin0919 commentedon Jul 24, 2019
v-for循环,利用下标和v-show显示
zhengwei1949 commentedon Sep 27, 2019
作用域 插槽+子组件
canwdev commentedon Mar 18, 2020
Guokaiming commentedon May 25, 2020
你们是怎么做到大部分的人的写法都相同的- -
Youth-spirit commentedon Apr 26, 2022
v-for循环数据在使用动态绑定类
const vm=new Vue({
el:'#app',
data(){
return{
tdata:['栏目一','栏目二','栏目三'],
tcdata:['一','二','三'],
num:0
},
methods:{
handoff(index){
this.num=index
}
}
}
})
2860754963 commentedon Jan 10, 2023