posva / vue-plugin-template

🚀 Solid foundation to start a Vue plugin with the best developer experience and a focus on performance
MIT License
191 stars 27 forks source link

Passing different propdata to the component #13

Closed wushan closed 7 years ago

wushan commented 7 years ago

How can I pass different props to the component during testing ? like :

const vm = createVM(this, `<my-parser></my-parser>`, { components: { myParser }, props: { prop1: '1', prop2: '2' } })

this doesn't work.

posva commented 7 years ago

You should be able to pass them with propsData