Skip to content

Popup和Dialog等组件允许配置显示隐藏动画的速度? #6845

Open
@tommyZZM

Description

@tommyZZM

Version of antd-mobile

No response

What is this feature about?

感觉现在的显示隐藏太慢了,效果不满意

https://github.com/ant-design/ant-design-mobile/blob/master/src/components/popup/popup.tsx#L54

  const { percent } = useSpring({
    percent: props.visible ? 0 : 100,
    config: {
      precision: 0.1,
      mass: 0.4,
      tension: 300,
      friction: 30,
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions