perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
||||
import {
|
||||
isDef,
|
||||
isHidden,
|
||||
truthProp,
|
||||
getScrollTop,
|
||||
preventDefault,
|
||||
createNamespace,
|
||||
@@ -46,12 +47,9 @@ const [name, bem] = createNamespace('index-bar');
|
||||
export const INDEX_BAR_KEY = Symbol(name);
|
||||
|
||||
const props = {
|
||||
sticky: truthProp,
|
||||
zIndex: [Number, String],
|
||||
highlightColor: String,
|
||||
sticky: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
stickyOffsetTop: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
|
||||
Reference in New Issue
Block a user