packages/vuikit/src/core/v-position/directive.js
function getOptions (ctx) {
  const { vnode } = ctx
  const { value } = ctx.binding

  if (process.env.NODE_ENV !== 'production' && (isUndefined(value) || !isObject(value))) {
    warn('v-position -> configuration is missing or is not an Object', vnode.context)
  }

  const options = assign({
    target: null,
    position: 'top-center',
    boundary: window,
    flip: true,
    offset: false,
    mainClass: ''
  }, value)

  return options
}
function getOptions (ctx) {
  const { vnode } = ctx
  const { value } = ctx.binding

  if (process.env.NODE_ENV !== 'production' && (isUndefined(value) || !isObject(value))) {
    warn('v-position -> configuration is missing or is not an Object', vnode.context)
  }

  const options = assign({
    target: null,
    position: 'top-center',
    boundary: window,
    flip: true,
    offset: false,
    mainClass: ''
  }, value)

  return options
}
function getOptions ( ctx ) { const { vnode } = ctx const { value } = ctx . binding if ( process . env . NODE_ENV !== 'production' && ( isUndefined ( value ) || ! isObject ( value ) ) ) { warn ( 'v-position -> configuration is missing or is not an Object' , vnode . context ) } const options = assign ( { target : null , position : 'top-center' , boundary : window , flip : true , offset : false , mainClass : '' } , value ) return options }
Get the directive props
Get the directive props