68 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Vue
		
	
	
	
		
		
			
		
	
	
			68 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Vue
		
	
	
	
| 
								 | 
							
								<!--
							 | 
						||
| 
								 | 
							
								* @description:
							 | 
						||
| 
								 | 
							
								* @component: TabItem
							 | 
						||
| 
								 | 
							
								* @author: wangzhigang11
							 | 
						||
| 
								 | 
							
								* @date: 2023/11/9 11:12
							 | 
						||
| 
								 | 
							
								-->
							 | 
						||
| 
								 | 
							
								<template>
							 | 
						||
| 
								 | 
							
								  <div class="TabItem" :class="{ selected }" v-on="$listeners" v-bind="$attrs">
							 | 
						||
| 
								 | 
							
								    <slot></slot>
							 | 
						||
| 
								 | 
							
								  </div>
							 | 
						||
| 
								 | 
							
								</template>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<script>
							 | 
						||
| 
								 | 
							
								export default {
							 | 
						||
| 
								 | 
							
								  name: 'TabItem',
							 | 
						||
| 
								 | 
							
								  components: {},
							 | 
						||
| 
								 | 
							
								  mixins: [],
							 | 
						||
| 
								 | 
							
								  props: {
							 | 
						||
| 
								 | 
							
								    selected: {
							 | 
						||
| 
								 | 
							
								      type: Boolean,
							 | 
						||
| 
								 | 
							
								      default: false
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  data() {
							 | 
						||
| 
								 | 
							
								    return {}
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  computed: {},
							 | 
						||
| 
								 | 
							
								  watch: {},
							 | 
						||
| 
								 | 
							
								  created() {
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  beforeDestroy() {
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  mounted() {
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  methods: {},
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								</script>
							 | 
						||
| 
								 | 
							
								<style lang='less' scoped>
							 | 
						||
| 
								 | 
							
								.TabItem {
							 | 
						||
| 
								 | 
							
								  background: url('assets/images/sel.png') left top no-repeat;
							 | 
						||
| 
								 | 
							
								  background-size: 100% 100%;
							 | 
						||
| 
								 | 
							
								  width: 64px;
							 | 
						||
| 
								 | 
							
								  height: 23px;
							 | 
						||
| 
								 | 
							
								  display: flex;
							 | 
						||
| 
								 | 
							
								  justify-content: center;
							 | 
						||
| 
								 | 
							
								  align-items: center;
							 | 
						||
| 
								 | 
							
								  opacity: 0.7;
							 | 
						||
| 
								 | 
							
								  font-family: MicrosoftYaHei;
							 | 
						||
| 
								 | 
							
								  font-size: 12px;
							 | 
						||
| 
								 | 
							
								  color: #08EBF5;
							 | 
						||
| 
								 | 
							
								  letter-spacing: 0;
							 | 
						||
| 
								 | 
							
								  text-align: center;
							 | 
						||
| 
								 | 
							
								  font-weight: 400;
							 | 
						||
| 
								 | 
							
								  line-height: 23px;
							 | 
						||
| 
								 | 
							
								  cursor: pointer;
							 | 
						||
| 
								 | 
							
								  &.selected {
							 | 
						||
| 
								 | 
							
								    background: url('assets/images/sel备份.png') left top no-repeat;
							 | 
						||
| 
								 | 
							
								    background-size: 100% 100%;
							 | 
						||
| 
								 | 
							
								    color: #08EBF5;
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								  &:hover {
							 | 
						||
| 
								 | 
							
								    background: url('assets/images/sel备份.png') left top no-repeat;
							 | 
						||
| 
								 | 
							
								    background-size: 100% 100%;
							 | 
						||
| 
								 | 
							
								    color: #08EBF5;
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								</style>
							 |