Interface DirectiveBinding<Value, Modifiers, Arg>
interface DirectiveBinding<Value, Modifiers, Arg> { arg?: Arg; dir: ObjectDirective<any, Value, string, string>; instance: null | Record<string, any> | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any>; modifiers: DirectiveModifiers<Modifiers>; oldValue: null | Value; value: Value; } Type Parameters
- Value = any
- Modifiers extends string = string
- Arg extends string = string
Properties
Optional
arg
dir
instance
instance: null | Record<string, any> | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any> modifiers
oldValue
value
Runtime helper for applying directives to a vnode. Example usage:
const comp = resolveComponent('comp') const foo = resolveDirective('foo') const bar = resolveDirective('bar')
return withDirectives(h(comp), [ [foo, this.x], [bar, this.y] ])