mirror of https://github.com/vuejs/core.git
fix: prop value is symbol and invalid type error
This commit is contained in:
parent
98f1934811
commit
b0951ef8a2
|
@ -712,6 +712,9 @@ function getInvalidTypeMessage(
|
|||
* dev only
|
||||
*/
|
||||
function styleValue(value: unknown, type: string): string {
|
||||
if (typeof value === 'symbol') {
|
||||
value = value.toString()
|
||||
}
|
||||
if (type === 'String') {
|
||||
return `"${value}"`
|
||||
} else if (type === 'Number') {
|
||||
|
|
Loading…
Reference in New Issue