Skip to content

Instantly share code, notes, and snippets.

@andradefil
Created November 21, 2019 12:31
Show Gist options
  • Save andradefil/fe9b918432c7a15b591d45f294461574 to your computer and use it in GitHub Desktop.
Save andradefil/fe9b918432c7a15b591d45f294461574 to your computer and use it in GitHub Desktop.
if (options && options.component) {
instance.$slots.default = instance.$createElement(options.component, {
props: options.props,
});
}
instance.$mount(`#${refId}`);
instance.$on('onClose', this.close);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment