Skip to content

Commit

Permalink
feat: 优化动画效果
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrove committed Jan 9, 2025
1 parent df55cfa commit bc6d1ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/bui-core/src/Select/Select.less
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
font-size: var(--bui-select-font-size, var(--bui-title-size-3));
z-index: var(--bui-z-index-tooltip);
border-radius: 3px;
background-color: var(--bui-color-bg-view);
padding: 2px;
overflow: hidden;

Expand All @@ -85,6 +84,7 @@
border-radius: 3px;
padding: var(--bui-select-option-container-padding, 3px 0);
box-shadow: 0 0 0 2px var(--bui-color-bg-default);
background-color: var(--bui-color-bg-view);
overflow: hidden;
}

Expand Down
8 changes: 4 additions & 4 deletions packages/bui-core/src/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ const Select = React.forwardRef<HTMLDivElement, SelectProps>((props, ref) => {
<Fade
in={isOpen}
timeout={{
enter: 150,
exit: 150,
enter: 167,
exit: 167,
}}
>
<div
Expand All @@ -162,8 +162,8 @@ const Select = React.forwardRef<HTMLDivElement, SelectProps>((props, ref) => {
in={isOpen}
direction={placement === 'bottom' ? 'down' : 'up'}
timeout={{
enter: 150,
exit: 150,
enter: 167,
exit: 167,
}}
>
<div className={clsx(`${prefixCls}-option-main`)}>{children}</div>
Expand Down

0 comments on commit bc6d1ad

Please sign in to comment.