58 lines
		
	
	
		
			941 B
		
	
	
	
		
			Vue
		
	
	
	
		
		
			
		
	
	
			58 lines
		
	
	
		
			941 B
		
	
	
	
		
			Vue
		
	
	
	
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<template>
							 | 
						||
| 
								 | 
							
								  <div class="miaoshu">
							 | 
						||
| 
								 | 
							
								    <div class="tit">{{ title }}</div>
							 | 
						||
| 
								 | 
							
								    <div class="value" :style="{ color }">{{ value || 0 }}</div>
							 | 
						||
| 
								 | 
							
								  </div>
							 | 
						||
| 
								 | 
							
								</template>
							 | 
						||
| 
								 | 
							
								<script>
							 | 
						||
| 
								 | 
							
								export default {
							 | 
						||
| 
								 | 
							
								  name: "miaoshu",
							 | 
						||
| 
								 | 
							
								  props: {
							 | 
						||
| 
								 | 
							
								    title: {
							 | 
						||
| 
								 | 
							
								      type: String,
							 | 
						||
| 
								 | 
							
								      default: ''
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								    value: {
							 | 
						||
| 
								 | 
							
								      type: [String, Number],
							 | 
						||
| 
								 | 
							
								      default: ''
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								    color: {
							 | 
						||
| 
								 | 
							
								      type: String,
							 | 
						||
| 
								 | 
							
								      default: ''
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								</script>
							 | 
						||
| 
								 | 
							
								<style scoped lang="less">
							 | 
						||
| 
								 | 
							
								.miaoshu {
							 | 
						||
| 
								 | 
							
								  text-align: center;
							 | 
						||
| 
								 | 
							
								  height: 100%;
							 | 
						||
| 
								 | 
							
								  width: 100%;
							 | 
						||
| 
								 | 
							
								  box-sizing: border-box;
							 | 
						||
| 
								 | 
							
								  .tit {
							 | 
						||
| 
								 | 
							
								    /** 文本1 */
							 | 
						||
| 
								 | 
							
								    font-size: 18px;
							 | 
						||
| 
								 | 
							
								    font-weight: 400;
							 | 
						||
| 
								 | 
							
								    letter-spacing: 0px;
							 | 
						||
| 
								 | 
							
								    line-height: 26.06px;
							 | 
						||
| 
								 | 
							
								    color: rgba(255, 255, 255, 1);
							 | 
						||
| 
								 | 
							
								    text-align: center;
							 | 
						||
| 
								 | 
							
								    vertical-align: middle;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								  .value {
							 | 
						||
| 
								 | 
							
								    /** 文本1 */
							 | 
						||
| 
								 | 
							
								    font-size: 40px;
							 | 
						||
| 
								 | 
							
								    font-weight: 700;
							 | 
						||
| 
								 | 
							
								    letter-spacing: 0px;
							 | 
						||
| 
								 | 
							
								    line-height: 46.88px;
							 | 
						||
| 
								 | 
							
								    text-align: center;
							 | 
						||
| 
								 | 
							
								    vertical-align: middle;
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								</style>
							 |