Skip to content

Dropdown 弹窗的宽度显示异常 #2559

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

Closed
1 task
yvywang opened this issue Jul 14, 2020 · 5 comments
Closed
1 task

Dropdown 弹窗的宽度显示异常 #2559

yvywang opened this issue Jul 14, 2020 · 5 comments
Labels
🤔 Need Reproduce We cannot reproduce your problem outdated

Comments

@yvywang
Copy link

yvywang commented Jul 14, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

undefined

Environment

http://gzdxda.vicp.io:9912/,任何一个环境都可以复现,账号:15813374073 密码:123456

Reproduction link

http://gzdxda.vicp.io:9912/

Steps to reproduce

下拉菜单平分父级元素的宽度自适应,当宽度从小变大后再变小,弹窗的宽度显示异常

What is expected?

下拉菜单弹窗的宽度能与菜单宽度一致

What is actually happening?

下拉菜单弹窗的宽度只能变大,不能缩小

@yvywang yvywang changed the title Dropdown 弹窗位置异常!!!!! Dropdown 弹窗的宽度显示异常 Jul 14, 2020
@xrkffgg xrkffgg added the 🤔 Need Reproduce We cannot reproduce your problem label Jul 14, 2020
@xrkffgg
Copy link
Member

xrkffgg commented Jul 14, 2020

可使用: https://codesandbox.io/s/vue-antd-template-e22bh?file=/src/App.vue 提供复现。

@yvywang
Copy link
Author

yvywang commented Jul 15, 2020

可使用: https://codesandbox.io/s/vue-antd-template-e22bh?file=/src/App.vue 提供复现。
谢谢,已经还原问题场景,请使用 https://codesandbox.io/s/billowing-haze-d7bbs?file=/src/App.vue:0-4314 查看

@xrkffgg
Copy link
Member

xrkffgg commented Jul 15, 2020

1. 弹窗错位

更新 ant-design-vue 版本,使用 1.6.3 正常。

2. DropDown 宽度

v-for 中 key 一样,导致不会重新渲染 DOM,将 key 变成唯一即可。

具体查看:

https://codesandbox.io/s/blissful-austin-e56hz?file=/src/App.vue

@yvywang
Copy link
Author

yvywang commented Jul 15, 2020

1. 弹窗错位

更新 ant-design-vue 版本,使用 1.6.3 正常。

2. DropDown 宽度

v-for 中 key 一样,导致不会重新渲染 DOM,将 key 变成唯一即可。

具体查看:

https://codesandbox.io/s/blissful-austin-e56hz?file=/src/App.vue

多谢,已解决,打扰了

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🤔 Need Reproduce We cannot reproduce your problem outdated
Projects
None yet
Development

No branches or pull requests

2 participants