<template>
  <div class="thirdMenu">
    <a-tabs default-active-key="1" @change="callback">
      <a-tab-pane key="1" tab="一口价挂牌">
      </a-tab-pane>
      <a-tab-pane key="2" tab="浮动价挂牌">
      </a-tab-pane>
      <!-- <a-tab-pane key="3" tab="Tab 3">
      </a-tab-pane> -->
    </a-tabs>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref, PropType } from 'vue';

interface Key {
    [propName: string]: string;
}

export default defineComponent({
    name: 'third-menu',
    props: {
        list: {
            default: [],
            type: Object as PropType<Key[]>,
        },
        value: {
            // 需要绑定的值得 key
            default: '',
            type: String,
        },
    },
    components: {},
    setup(props, context) {
        function callback(key: any) {
            console.log(key);
        };
        return {
            callback,
        };
    },
});
</script>

<style lang="less">
.noBorderBottom {
    border-bottom: none;
}
.thirdMenu {
    width: 100%;
    height: 28px;
    padding-bottom: 2px;
    background-color: @m-black5;
    .ant-tabs {
        line-height: 26px;
        .flex;
        .ant-tabs-bar {
            margin-bottom: 0;
            border-bottom: 0;
            .ant-tabs-nav-container {
                margin-bottom: 0;
                line-height: 100%;
                .ant-tabs-nav-wrap {
                    margin-bottom: 0;
                    .ant-tabs-nav-scroll {
                        .ant-tabs-nav {
                            .ant-tabs-tab {
                                width: 121px;
                                height: 26px;
                                line-height: 26px;
                                text-align: center;
                                color: @m-grey1;
                                padding: 0;
                                margin: 0;
                                background: url(../../assets/images/tabbg.png) center center no-repeat;
                                background-size: cover;
                            }
                            .ant-tabs-tab-active.ant-tabs-tab {
                                color: @m-white0;
                                background: url(../../assets/images/tabbgActive.png) center center no-repeat;
                                background-size: cover;
                                z-index: 2;
                            }
                            .ant-tabs-tab+.ant-tabs-tab {
                                margin-left: -14px;
                            }
                            .ant-tabs-ink-bar {
                                width: 0px !important;
                            }
                        }
                    }
                }
            }
        }
    }
}
</style>;
