Merge branch 'develop' into 'master'
feat(zhst/biz): 修复一些ts报错 See merge request web-project/zhst-lambo!62
This commit is contained in:
commit
a501656907
@ -17,9 +17,10 @@ import {
|
||||
import { IconFont } from '@zhst/icon';
|
||||
import classNames from 'classnames';
|
||||
import './index.less'
|
||||
import { ButtonProps } from 'antd';
|
||||
|
||||
// @ts-ignore
|
||||
export interface IOption {
|
||||
type?: ButtonProps['type'] & 'dropdown';
|
||||
label: string
|
||||
key: string
|
||||
icon?: string | ReactNode
|
||||
@ -128,7 +129,7 @@ const TreePanel: FC<TreePanelProps> = (props) => {
|
||||
open={item.showTooltip}
|
||||
>
|
||||
{WithDropdown(
|
||||
<Button className={classNames(componentName + '-search-btns-btn')} onClick={item.onClick} icon={item.icon} />,
|
||||
<Button className={classNames(componentName + '-search-btns-btn')} type={item.type} onClick={item.onClick} icon={item.icon} />,
|
||||
item.type === 'dropdown',
|
||||
item.dropdownConfig
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user