mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 13:07:55 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			479 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			479 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <div
 | 
						|
    class="small-2 report-card"
 | 
						|
    :class="{ active: selected }"
 | 
						|
    @click="onClick(index)"
 | 
						|
  >
 | 
						|
    <h3 class="heading">
 | 
						|
      {{ heading }}
 | 
						|
    </h3>
 | 
						|
    <h4 class="metric">
 | 
						|
      {{ point }}
 | 
						|
    </h4>
 | 
						|
    <p class="desc">
 | 
						|
      {{ desc }}
 | 
						|
    </p>
 | 
						|
  </div>
 | 
						|
</template>
 | 
						|
<script>
 | 
						|
export default {
 | 
						|
  props: {
 | 
						|
    heading: String,
 | 
						|
    point: [Number, String],
 | 
						|
    index: Number,
 | 
						|
    desc: String,
 | 
						|
    selected: Boolean,
 | 
						|
    onClick: Function,
 | 
						|
  },
 | 
						|
};
 | 
						|
</script>
 |