%PDF- %PDF-
Mini Shell

Mini Shell

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

import Vue, { mergeData } from '../../vue'
import { NAME_DROPDOWN_FORM } from '../../constants/components'
import { makePropsConfigurable } from '../../utils/config'
import { BForm, props as formControlProps } from '../form/form'

// @vue/component
export const BDropdownForm = /*#__PURE__*/ Vue.extend({
  name: NAME_DROPDOWN_FORM,
  functional: true,
  props: makePropsConfigurable(
    {
      ...formControlProps,
      disabled: {
        type: Boolean,
        default: false
      },
      formClass: {
        type: [String, Object, Array]
        // default: null
      }
    },
    NAME_DROPDOWN_FORM
  ),
  render(h, { props, data, children }) {
    const $attrs = data.attrs || {}
    const $listeners = data.on || {}
    data.attrs = {}
    data.on = {}
    return h('li', mergeData(data, { attrs: { role: 'presentation' } }), [
      h(
        BForm,
        {
          ref: 'form',
          staticClass: 'b-dropdown-form',
          class: [props.formClass, { disabled: props.disabled }],
          props,
          attrs: {
            ...$attrs,
            disabled: props.disabled,
            // Tab index of -1 for keyboard navigation
            tabindex: props.disabled ? null : '-1'
          },
          on: $listeners
        },
        children
      )
    ])
  }
})

Zerion Mini Shell 1.0