vuejs/vue-web-component-wrapper

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

xiaodemen opened this issue · 0 comments

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' }"/>

vue@2.7.14
@vue/cli-service@4.5.19
@vue/web-component-wrapper@1.3.0