Skip to content

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

Open
@xiaodemen

Description

@xiaodemen

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions