perf: add numericProp helper (#9602)

This commit is contained in:
neverland
2021-09-30 16:33:50 +08:00
committed by GitHub
parent 0b71523604
commit d111df8dfa
74 changed files with 351 additions and 418 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ import {
isDef,
isHidden,
truthProp,
numericProp,
getScrollTop,
preventDefault,
createNamespace,
@@ -51,7 +52,7 @@ const [name, bem] = createNamespace('index-bar');
const props = {
sticky: truthProp,
zIndex: [Number, String],
zIndex: numericProp,
teleport: [String, Object] as PropType<TeleportProps['to']>,
highlightColor: String,
stickyOffsetTop: {