mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 02:57:57 +00:00 
			
		
		
		
	 35702457ed
			
		
	
	35702457ed
	
	
	
		
			
			<img width="1440" alt="Screenshot 2024-11-26 at 8 38 57 PM" src="https://github.com/user-attachments/assets/f752157c-6134-42cb-8211-ce636ea9e4d6"> <img width="1439" alt="Screenshot 2024-11-26 at 8 40 47 PM" src="https://github.com/user-attachments/assets/580b1f61-68bc-489b-9081-b0aeb402f31d"> --------- Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
		
			
				
	
	
		
			40 lines
		
	
	
		
			931 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			931 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <script setup>
 | |
| import { computed } from 'vue';
 | |
| const props = defineProps({
 | |
|   span: {
 | |
|     type: Number,
 | |
|     required: true,
 | |
|   },
 | |
|   label: {
 | |
|     type: String,
 | |
|     required: true,
 | |
|   },
 | |
| });
 | |
| 
 | |
| const spanClass = computed(() => {
 | |
|   if (props.span === 1) return 'col-span-1';
 | |
|   if (props.span === 2) return 'col-span-2';
 | |
|   if (props.span === 3) return 'col-span-3';
 | |
|   if (props.span === 4) return 'col-span-4';
 | |
|   if (props.span === 5) return 'col-span-5';
 | |
|   if (props.span === 6) return 'col-span-6';
 | |
|   if (props.span === 7) return 'col-span-7';
 | |
|   if (props.span === 8) return 'col-span-8';
 | |
|   if (props.span === 9) return 'col-span-9';
 | |
|   if (props.span === 10) return 'col-span-10';
 | |
| 
 | |
|   return 'col-span-1';
 | |
| });
 | |
| </script>
 | |
| 
 | |
| <template>
 | |
|   <div
 | |
|     class="flex items-center px-0 py-2 text-xs font-medium text-right uppercase text-n-slate-11 rtl:text-left"
 | |
|     :class="spanClass"
 | |
|   >
 | |
|     <slot>
 | |
|       {{ label }}
 | |
|     </slot>
 | |
|   </div>
 | |
| </template>
 |