kodadot/nft-gallery

View on GitHub
libs/ui/src/components/NeoDropdown/NeoDropdownItem.vue

Summary

Maintainability
Test Coverage
<script>
import { ODropdownItem } from '@oruga-ui/oruga-next'

export default {
  mixins: [ODropdownItem],
  computed: {
    rootClasses() {
      return [
        'neo-dropdown-item',
        this.computedClass('itemClass', 'o-drop__item'),
        {
          [this.computedClass('itemDisabledClass', 'o-drop__item--disabled')]:
            this.parent.disabled || this.disabled,
        },
      ]
    },
  },
}
</script>

<style lang="scss">
@import './NeoDropdown.scss';
</style>