Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Vue 3.0 #13

Open
kevmansa opened this issue Jan 4, 2021 · 2 comments
Open

Update to Vue 3.0 #13

kevmansa opened this issue Jan 4, 2021 · 2 comments

Comments

@kevmansa
Copy link

kevmansa commented Jan 4, 2021

This doesn't appear to function with vue 3.0. I believe the issue is related to this - From the documentation:
Render Function Argument

2.x Syntax

In 2.x, the render function would automatically receive the h function (which is a conventional alias for createElement) as an argument:

// Vue 2 Render Function Example
export default {
render(h) {
return h('div')
}
}

3.x Syntax

In 3.x, h is now globally imported instead of being automatically passed as an argument.

// Vue 3 Render Function Example
import { h } from 'vue'

export default {
render() {
return h('div')
}
}

@Nitwel
Copy link

Nitwel commented May 20, 2021

You can go around this issue by importing import Avataaars from 'vuejs-avataaars/src/Avataaars.vue' directly.

@shadowqcom
Copy link

特别需要vue3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants