mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			42 lines
		
	
	
		
			777 B
		
	
	
	
		
			Vue
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			777 B
		
	
	
	
		
			Vue
		
	
	
		
			Executable File
		
	
	
	
	
| <template>
 | |
|   <button
 | |
|     type="submit"
 | |
|     :disabled="disabled"
 | |
|     class="icon-button flex items-center justify-center ml-1"
 | |
|     @click="onClick"
 | |
|   >
 | |
|     <fluent-icon v-if="!loading" icon="send" :style="`color: ${color}`" />
 | |
|     <spinner v-else size="small" />
 | |
|   </button>
 | |
| </template>
 | |
| 
 | |
| <script>
 | |
| import Spinner from 'shared/components/Spinner.vue';
 | |
| import FluentIcon from 'shared/components/FluentIcon/Index.vue';
 | |
| 
 | |
| export default {
 | |
|   components: {
 | |
|     FluentIcon,
 | |
|     Spinner,
 | |
|   },
 | |
|   props: {
 | |
|     loading: {
 | |
|       type: Boolean,
 | |
|       default: false,
 | |
|     },
 | |
|     disabled: {
 | |
|       type: Boolean,
 | |
|       default: false,
 | |
|     },
 | |
|     onClick: {
 | |
|       type: Function,
 | |
|       default: () => {},
 | |
|     },
 | |
|     color: {
 | |
|       type: String,
 | |
|       default: '#6e6f73',
 | |
|     },
 | |
|   },
 | |
| };
 | |
| </script>
 | 
