%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/3vfm3/node_modules/bootstrap-vue/src/components/navbar/
Upload File :
Create Path :
Current File : /home/ugotscom/3vfm3/node_modules/bootstrap-vue/src/components/navbar/navbar-nav.js

import Vue, { mergeData } from '../../vue'
import { NAME_NAVBAR_NAV } from '../../constants/components'
import { makePropsConfigurable } from '../../utils/config'
import { pluckProps } from '../../utils/props'
import { props as BNavProps } from '../nav/nav'

// -- Constants --

export const props = makePropsConfigurable(
  pluckProps(['tag', 'fill', 'justified', 'align', 'small'], BNavProps),
  NAME_NAVBAR_NAV
)

// -- Utils --

const computeJustifyContent = value => {
  // Normalize value
  value = value === 'left' ? 'start' : value === 'right' ? 'end' : value
  return `justify-content-${value}`
}

// @vue/component
export const BNavbarNav = /*#__PURE__*/ Vue.extend({
  name: NAME_NAVBAR_NAV,
  functional: true,
  props,
  render(h, { props, data, children }) {
    return h(
      props.tag,
      mergeData(data, {
        staticClass: 'navbar-nav',
        class: {
          'nav-fill': props.fill,
          'nav-justified': props.justified,
          [computeJustifyContent(props.align)]: props.align,
          small: props.small
        }
      }),
      children
    )
  }
})

Zerion Mini Shell 1.0