Skip to content

Commit

Permalink
fix: 修复 utils isFunction 方法,解决部分组件对于 async 函数失效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Apr 25, 2023
1 parent 1b27211 commit b6e4905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
**Fix**

- 修复 `f-tooltip` 组件部分情况 `disabled` 无效
- 修复 utils `isFunction` 方法,解决部分组件对于 `async` 函数失效问题

## 0.32.0 (2023-04-12)

Expand Down
2 changes: 1 addition & 1 deletion packages/fighting-design/_utils/is/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const isObject = (value: unknown): value is object => is(value, 'Object')
* @param { * } value 要检测的值
* @returns { boolean }
*/
export const isFunction = (value: unknown): value is Function => is(value, 'Function')
export const isFunction = (value: unknown): value is Function => typeof value === 'function'

/**
* 判断一个值是否为 array 类型
Expand Down

0 comments on commit b6e4905

Please sign in to comment.