# 这就是一个vue的组件,直接引入
# 父组件如下使用
<style scoped>
</style>
<template>
<div>
<ScrollTab :titleArr="list">
<div slot="item1">11</div>
<div slot="item2">222</div>
<div slot="item3">333</div>
</ScrollTab>
</div>
</template>
<script>
import ScrollTab from './ScorllTab.vue'
export default {
components:{ScrollTab},
data () {
return{
list:['第一页','第二页','第三页']
}
}
}
</script>
#可设置height
#也可以自己修改源码
-
Notifications
You must be signed in to change notification settings - Fork 1
mySkey/vue-scroll-tab
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
基于vue的滑动tab,开源不易,如果不错可以点个星星
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published