| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <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-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;
- z-index: 2;
- .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>;
|