|
@@ -47,7 +47,6 @@ import Trigger from '../trigger';
|
|
|
import TagInput from '../tagInput';
|
|
|
import { isSemiIcon } from '../_utils';
|
|
|
import { OptionProps, TreeProps, TreeState, FlattenNode, TreeNodeData, TreeNodeProps } from '../tree/interface';
|
|
|
-import { Motion } from '../_base/base';
|
|
|
import { IconChevronDown, IconClear, IconSearch } from '@douyinfe/semi-icons';
|
|
|
import CheckboxGroup from '../checkbox/checkboxGroup';
|
|
|
import Popover, { PopoverProps } from '../popover/index';
|
|
@@ -106,7 +105,7 @@ export interface TreeSelectProps extends Omit<BasicTreeSelectProps, OverrideComm
|
|
|
'aria-invalid'?: React.AriaAttributes['aria-invalid'];
|
|
|
'aria-labelledby'?: React.AriaAttributes['aria-labelledby'];
|
|
|
'aria-required'?: React.AriaAttributes['aria-required'];
|
|
|
- motion?: Motion;
|
|
|
+ motion?: boolean;
|
|
|
mouseEnterDelay?: number;
|
|
|
mouseLeaveDelay?: number;
|
|
|
arrowIcon?: React.ReactNode;
|
|
@@ -222,7 +221,7 @@ class TreeSelect extends BaseComponent<TreeSelectProps, TreeSelectState> {
|
|
|
),
|
|
|
dropdownClassName: PropTypes.string,
|
|
|
dropdownStyle: PropTypes.object,
|
|
|
- motion: PropTypes.oneOfType([PropTypes.bool, PropTypes.object, PropTypes.func]),
|
|
|
+ motion: PropTypes.bool,
|
|
|
placeholder: PropTypes.string,
|
|
|
maxTagCount: PropTypes.number,
|
|
|
size: PropTypes.oneOf<TreeSelectProps['size']>(strings.SIZE_SET),
|