日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

        歡迎訪問 生活随笔!

        生活随笔

        當前位置: 首頁 > 前端技术 > vue >内容正文

        vue

        tabbar怎么些_vue 做的tabBar组件

        發(fā)布時間:2025/3/19 vue 24 豆豆
        生活随笔 收集整理的這篇文章主要介紹了 tabbar怎么些_vue 做的tabBar组件 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
        • :class="{active:message==item.path}"

          v-for="(item,index) in atabs">

          alt="">

          {{item.title}}

        export default {

        props: {

        selected: String,

        },

        name: 'tabbar',

        data () {

        return {

        message: this.selected,

        atabs: [

        { title: '首頁', path: 'index', icon: require('@/assets/images/index.png'), icon_active: require('@/assets/images/index-active.png') },

        { title: '附近門店', path: 'storeLists', icon: require('@/assets/images/storeLists.png'), icon_active: require('@/assets/images/storeLists-active.png') },

        { title: '我的', path: 'gettheOrder', icon: require('@/assets/images/gettheOrder.png'), icon_active: require('@/assets/images/gettheOrder-active.png') }

        ]

        }

        },

        methods: {

        go (url) {

        this.$router.push(`/${url}`)

        }

        },

        }

        .tabbar {

        position: fixed;

        left: 0;

        bottom: 0;

        width: 100%;

        height: 0.45rem;

        ul {

        width: 100%;

        height: 100%;

        display: flex;

        justify-content: space-around;

        background-color: #fff;

        li {

        display: flex;

        flex-direction: column;

        justify-content: center;

        width: 100%;

        text-align: center;

        // padding: 7px 0;

        border-top: 1px solid #eaeaea;

        font-size: 0.1rem;

        img {

        width: 0.2rem;

        height: 0.2rem;

        margin: 5px auto 0px;

        }

        &.active {

        color: #ff5621;

        font-weight: bold;

        }

        }

        }

        }

        總結(jié)

        以上是生活随笔為你收集整理的tabbar怎么些_vue 做的tabBar组件的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

        如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。