Skip to content

Commit

Permalink
fix(pro:search): remove transition for overlay (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Feb 15, 2023
1 parent 968f9a3 commit 4c28a78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion packages/pro/search/src/ProSearch.tsx
Expand Up @@ -58,7 +58,7 @@ export default defineComponent({
searchItems,
searchStateContext.tempSearchStateAvailable,
)
const commonOverlayProps = useCommonOverlayProps(props, config, componentCommon, mergedPrefixCls)
const commonOverlayProps = useCommonOverlayProps(props, config, mergedPrefixCls)
const { focused, focus, blur } = useFocusedState(
props,
elementRef,
Expand Down
3 changes: 0 additions & 3 deletions packages/pro/search/src/composables/useCommonOverlayProps.ts
Expand Up @@ -8,22 +8,19 @@
import { type ComputedRef, computed } from 'vue'

import { type ɵOverlayProps } from '@idux/components/_private/overlay'
import { type CommonConfig } from '@idux/components/config'
import { type ProSearchConfig } from '@idux/pro/config'

import { type ProSearchProps } from '../types'

export function useCommonOverlayProps(
props: ProSearchProps,
config: ProSearchConfig,
componentCommonConfig: CommonConfig,
mergedPrefixCls: ComputedRef<string>,
): ComputedRef<ɵOverlayProps> {
return computed(() => ({
container: props.overlayContainer ?? config.overlayContainer,
containerFallback: `.${mergedPrefixCls.value}-overlay-container`,
placement: 'bottomStart',
transitionName: `${componentCommonConfig.prefixCls}-slide-auto`,
offset: [0, 4],
}))
}

0 comments on commit 4c28a78

Please sign in to comment.