123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <template>
- <div>
- <!-- //tab栏 -->
- <div class="naue_tab">
- <p @click="changeTab(tab)" v-for="tab in tabList" :key="tab.index" :class="[tabIndex == tab.index? 'p' : '']">{{tab.name}}</p>
- </div>
- <div>
- <slot></slot>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: "'Mytabs'",
- props:{
- tabList: Array,
- tabIndex: Number,
- queryParams:Object
- },
- data() {
- return {
- // 遮罩层
- loading: true,
- //步骤条
- naueactive:2,
- tabNume:['线索信息','签约信息','在建信息','投产信息'],
- // 选中数组
- ids: [],
- // 非单个禁用
- single: true,
- // 非多个禁用
- };
- },
- created() {
- },
- methods: {
- //tab
- changeTab(index){
- this.$emit('changeTab', index)
- // this.tab = index
- }
- }
- };
- </script>
- <style rel="stylesheet/scss" lang="scss">
- //tab
- .naue_tab{
- border-bottom: 1px solid #CDCDCD;
- display: flex;
- margin-top: 30px;
- padding: 0 10px;
- margin-bottom: 30px;
- p{
- font-size: 16px;
- font-family: PingFang SC;
- font-weight: 700;
- color: #fff !important;
- padding: 11px 15px;
- margin: 0;
- cursor: pointer;
- background-color: #0086c6;
- margin-right: 10px !important;
- // border-radius: 6px;
- }
- p:nth-child(2){
- font-size: 16px;
- font-family: PingFang SC;
- font-weight: 700;
- color: #fff;
- padding: 11px 15px;
- margin: 0;
- cursor: pointer;
- background-color: #02b938;
- margin-right: 10px;
- // border-radius: 6px;
- }
- p:nth-child(3){
- font-size: 16px;
- font-family: PingFang SC;
- font-weight: 700;
- color: #fff;
- padding: 11px 15px;
- margin: 0;
- cursor: pointer;
- background-color: #df3838;
- margin-right: 10px;
- // border-radius: 6px;
- }
- p:nth-child(4){
- font-size: 16px;
- font-family: PingFang SC;
- font-weight: 700;
- color: #fff !important;
- padding: 11px 15px;
- margin: 0;
- cursor: pointer;
- background-color: #f66e00;
- margin-right: 10px !important;
- // border-radius: 6px;
- }
- .p{
- // border-bottom: 2px solid #1C84C6;
- // margin-bottom: -1px;
- // color: #343434;
- opacity: .8;
- }
- }
- </style>
|