Browse Source

refactor(shared): merge if statements (#8394)

pull/3848/head
丶远方 2 years ago
committed by GitHub
parent
commit
00e0766934
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/shared/src/normalizeProp.ts

4
packages/shared/src/normalizeProp.ts

@ -19,9 +19,7 @@ export function normalizeStyle(
}
}
return res
} else if (isString(value)) {
return value
} else if (isObject(value)) {
} else if (isString(value) || isObject(value)) {
return value
}
}

Loading…
Cancel
Save