Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address地址选择第一个后,第二个开始没滚动到顶部 #2101

Closed
JakeWoki opened this issue Feb 9, 2023 · 2 comments
Closed
Assignees

Comments

@JakeWoki
Copy link

JakeWoki commented Feb 9, 2023

What problem does this feature solve?(这个功能解决的问题)

第二个开始默认滚动到顶部

What does the proposed API look like?(期望的 API)

第二个开始默认滚动到顶部

yangxiaolu1993 added a commit that referenced this issue Feb 13, 2023
* feat: tour更新

* feat: 文档修改

* feat: 插槽修改

* feat: noticebar发布

* feat: 文档更新

* fix: ellipsis修改

* fix: 修改 ellipsis

* feat: tour修改

* fix: 地址组件问题修改

* fix: imagepreview修改

* feat: 新增4.0介绍

* fix: 公告栏修改插槽使用不更新问题

* fix: 公告栏组件 demo 修改

* fix: 地址组件新增功能
@yangxiaolu1993
Copy link
Contributor

已解决,在下一个版本中更新

@JakeWoki
Copy link
Author

JakeWoki commented Feb 13, 2023

你试过了吗?不行吧?

    const scrollTo = () => {
      setTimeout(() => {
        console.log(scrollDis.value, tabIndex.value);
        scrollTop.value = scrollDis.value[tabIndex.value];
      });
    };

要改成

    const scrollTo = () => {
      setTimeout(() => {
        console.log(scrollDis.value, tabIndex.value);
        scrollTop.value = -scrollDis.value[tabIndex.value];
      }, 100);
    };

@yangxiaolu1993

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants