From 604d3ad0f1f7ab00236a62e27c24a6724a5941bc Mon Sep 17 00:00:00 2001 From: huhuanming Date: Sat, 12 Oct 2024 09:13:33 +0800 Subject: [PATCH] fix: fix type --- src/PageHeaderCursor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PageHeaderCursor.tsx b/src/PageHeaderCursor.tsx index d58eb7b..2cd7789 100644 --- a/src/PageHeaderCursor.tsx +++ b/src/PageHeaderCursor.tsx @@ -44,7 +44,7 @@ export default class PageHeaderCursor extends Component { private _findPercentCursorWidth = () => { const { width } = this.props.cursorStyle as any; - if (typeof width == 'string') { + if (typeof width === 'string') { return width.match(/(\d+(\.\d+)?)%/)?.[1]; } return null; @@ -149,7 +149,7 @@ export default class PageHeaderCursor extends Component { {this.props.renderCursor ? ( this.props.renderCursor() ) : ( - + )}