Files
directus/src/utils/register-component
Rijk van Zanten 70c3f05050 Interface many to one (#524)
* 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
2020-05-05 14:22:01 -04:00
..

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.