mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
		
			922 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			922 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <li
 | 
						|
    class="dropdown-menu__item list-none mb-1"
 | 
						|
    :class="{
 | 
						|
      'is-disabled': disabled,
 | 
						|
    }"
 | 
						|
    :tabindex="disabled ? null : -1"
 | 
						|
    :aria-disabled="disabled"
 | 
						|
  >
 | 
						|
    <slot />
 | 
						|
  </li>
 | 
						|
</template>
 | 
						|
<script>
 | 
						|
export default {
 | 
						|
  name: 'WootDropdownItem',
 | 
						|
  componentName: 'WootDropdownMenu',
 | 
						|
  props: {
 | 
						|
    disabled: {
 | 
						|
      type: Boolean,
 | 
						|
      default: false,
 | 
						|
    },
 | 
						|
    className: {
 | 
						|
      type: String,
 | 
						|
      default: '',
 | 
						|
    },
 | 
						|
  },
 | 
						|
};
 | 
						|
</script>
 | 
						|
<style lang="scss" scoped>
 | 
						|
.dropdown-menu__item {
 | 
						|
  ::v-deep {
 | 
						|
    a,
 | 
						|
    .button {
 | 
						|
      @apply inline-flex whitespace-nowrap w-full text-left rtl:text-right;
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
// A hacky fix to remove the background that came from the foundation styles node module file
 | 
						|
// Can be removed once we remove the foundation styles node module
 | 
						|
.dropdown.menu {
 | 
						|
  // Top-level item
 | 
						|
  > li > a {
 | 
						|
    background: transparent;
 | 
						|
    padding: 4px 10.8px;
 | 
						|
  }
 | 
						|
}
 | 
						|
</style>
 |