|
@@ -522,7 +522,7 @@ export function normalizePropsOptions(
|
|
|
if (validatePropName(normalizedKey)) {
|
|
if (validatePropName(normalizedKey)) {
|
|
|
const opt = raw[key]
|
|
const opt = raw[key]
|
|
|
const prop: NormalizedProp = (normalized[normalizedKey] =
|
|
const prop: NormalizedProp = (normalized[normalizedKey] =
|
|
|
- isArray(opt) || isFunction(opt) ? { type: opt } : opt)
|
|
|
|
|
|
|
+ isArray(opt) || isFunction(opt) ? { type: opt } : { ...opt })
|
|
|
if (prop) {
|
|
if (prop) {
|
|
|
const booleanIndex = getTypeIndex(Boolean, prop.type)
|
|
const booleanIndex = getTypeIndex(Boolean, prop.type)
|
|
|
const stringIndex = getTypeIndex(String, prop.type)
|
|
const stringIndex = getTypeIndex(String, prop.type)
|