Skip to content
New issue

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

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

Already on GitHub? # to your account

CollapseTransition组件字段定义不严谨,表意反转 #1407

Closed
conanliuhuan opened this issue Oct 21, 2021 · 0 comments
Closed

CollapseTransition组件字段定义不严谨,表意反转 #1407

conanliuhuan opened this issue Oct 21, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@conanliuhuan
Copy link

TuSimple/naive-ui version (版本)

2.19.9

Vue version (Vue 版本)

3.2.20

Browser and its version (浏览器及其版本)

Any

System and its version (系统及其版本)

Latest

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/hungry-curie-ioldq

Reappearance steps (重现步骤)

直接打开现有Collapse示例文档,在codesandbox中编辑即可

Expected results (期望的结果)

collapsed本身是“折叠”的意思,那么,当它为true的时候,就应该是“已折叠”状态。false的时候是“未折叠”状态

Actual results (实际的结果)

组件在使用这个字段的时候,把collapsed当做show来考虑了,true的时候组件的效果反而是“未折叠”了。这个问题与设计组件时的字段表意完全相反了

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Oct 21, 2021
@Talljack Talljack added bug Something isn't working and removed untriaged need to sort labels Oct 21, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants