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

Using domProp to pass non-string props to a web component doesn't seem to work #132

Open
xiaodemen opened this issue Apr 20, 2023 · 0 comments · May be fixed by #133
Open

Using domProp to pass non-string props to a web component doesn't seem to work #132

xiaodemen opened this issue Apr 20, 2023 · 0 comments · May be fixed by #133

Comments

@xiaodemen
Copy link

Hello all,

I'm having generating web components using vue-cli, but using domProp to pass non-string props to a web component doesn't seem to work, here is my use case:

// my-web-component.vue
<script lang="ts" setup>
const props = defineProps({
  value: Object
});

console.log(props.value) // got undefined.
</script>
Vue.config.ignoredElements = ['my-web-component'];

// in the template of a vue component
<my-web-component :value.prop="{ foo: 'bar' }"/>

[email protected]
@vue/[email protected]
@vue/[email protected]

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

Successfully merging a pull request may close this issue.

1 participant