Closed
Description
Example:
<test></test>
<script>
new Vue({
el: "body",
components: {
"test": {
props: [
{
name: "prop",
type: Boolean
}
],
data() {
return {
prop: true
};
}
}
}
});
</script>
After initialized, the test
's prop
is set to false
, not the specified value true
, who initialized in data()
. I find that the compiler set the boolean value to false
as default before initializing the default data).
Metadata
Metadata
Assignees
Labels
No labels