add (name, component) {
    this.registry.set(name, component)
    this.errors = { ...this.errors, [name]: component.getErrorObject().hasErrors }
    return this
  }
Add an item to the registry.
@param {string|array} key
@param {vue} component