Skip to content

Commit

Permalink
chore(dynamic-component): convert props with type numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed May 8, 2022
1 parent cd07c77 commit 83267b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/docs/dynamic-component-display.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ function castAndSet(prop, event) {
} else {
componentProps.value[prop.name] = Boolean(value)
}
} else if (prop.type === 'Number') {
componentProps.value[prop.name] = Number(value)
} else {
componentProps.value[prop.name] = value
}
Expand Down

0 comments on commit 83267b6

Please sign in to comment.