chore:表达式编辑器函数选择交互还原 (#7341)

This commit is contained in:
hsm-lv 2023-07-04 12:12:33 +08:00 committed by GitHub
parent 8630430dd4
commit 4dfad58178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,8 +80,8 @@ export function FuncList(props: FuncListProps) {
className={cx('FormulaEditor-FuncList-item', {
'is-active': item.name === activeFunc?.name
})}
onClick={() => setActiveFunc(item)}
onDoubleClick={() => props.onSelect?.(item)}
onMouseEnter={() => setActiveFunc(item)}
onClick={() => props.onSelect?.(item)}
key={item.name}
>
{item.name}