mirror of
https://github.com/directus/directus.git
synced 2026-01-29 23:47:57 -05:00
* Start on m2o * Render preview in m2o * Add icons * Style inline icons * Add editing modal * Disable any linter * Add add-new button * Pass existing selection on to layout * Update v-table to allow for keys-only-selection * Fix batch on tabular
registerComponent
Registers a component into the global Vue context.
Usage
registerComponent('v-button', VButton);
Vue.component() vs registerComponent()
registerComponent internally calls Vue.component() directly, and doesn't do anything else. The
function is purely to extend the accepted TypeScript type for the second parameter. Vue accepts the
second parameter to be of type Component, yet it's Vue.component() function doesn't actually have
that type in it's definition.