123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <template>
- <div>
- <!-- //tab栏 -->
- <div class="naue_tab">
- <p @click="tabClid(index)" v-for="(item,index) in tabNume" :key="index" :class="[tab == index? 'p' : '']">{{item}}</p>
- </div>
- <div>
- <slot></slot>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: "Config",
- data() {
- return {
- // 遮罩层
- loading: true,
- //步骤条
- naueactive:2,
- tab:1,
- tabNume:['线索信息','签约信息','在建信息','投产信息'],
- // 选中数组
- ids: [],
- // 非单个禁用
- single: true,
- // 非多个禁用
- };
- },
- created() {
- },
- methods: {
- //tab
- tabClid(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: 12px;
- font-family: PingFang SC;
- font-weight: 400;
- color: #343434;
- padding: 11px 15px;
- margin: 0;
- }
- .p{
- border-bottom: 2px solid #1C84C6;
- margin-bottom: -1px;
- }
- }
- </style>
|