Skip to content

ExpandIcon of the A-table in the production environment returns the expanded parameter props cannot be changed by clicking the extra expand button #4223

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
saiyoulala opened this issue Jun 18, 2021 · 11 comments

Comments

@saiyoulala
Copy link

saiyoulala commented Jun 18, 2021

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

Version

1.7.3

Environment

windows7 and windows 10, Chrome91.0.4472.106,vue 2.9.6

Reproduction link

Edit on CodeSandbox

Steps to reproduce

In 1.7.5, click the extra expansion button of the table. There are no expansion lines and the button has not changed to minus-square

What is expected?

In 1.7.5, if you click the extra expansion button in Table, the extra row will expand normally, and the extra expansion button will be changed to minus-square

What is actually happening?

In 1.7.5 version of component A-table, using the expandIcon parameter, the function's callback parameter 'expanded' in 'props' always returns false when the button is clicked. This only happens in production, not test or local. This was ultimately resolved by lowering the version to 1.7.2. Since 1.7.5 is not available in your version selection that raised the question, I can only choose 1.7.3 as a substitute.


Both the local environment and the test environment are fine, only the online environment has problems

@tangjinzhou
Copy link
Member

Please provide a working example

@tangjinzhou tangjinzhou added the 🤔 Need Reproduce We cannot reproduce your problem label Jun 19, 2021
@github-actions
Copy link

Hello @saiyoulala. Please provide a online reproduction by forking this link for vue2link for vue3 or a minimal GitHub repository. Make sure to choose the correct version.

你好 @saiyoulala, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 for vue2此处 for vue3 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。

@saiyoulala
Copy link
Author

Please provide a working example

I have provided a new work example, please check it.

@ajuner
Copy link
Member

ajuner commented Jun 23, 2021

I have provided a new work example, please check it.

Is this link?
It looks like there is nothing wrong with it

@saiyoulala
Copy link
Author

I have provided a new work example, please check it.

Is this link?
It looks like there is nothing wrong with it

I had no problems with the test environment locally, but the production environment did

@ajuner
Copy link
Member

ajuner commented Jun 24, 2021

Sorry, I have not reproduced it in the production environment, but I think there may be a problem of specifying the row-key, please try it

@saiyoulala
Copy link
Author

Sorry, I have not reproduced it in the production environment, but I think there may be a problem of specifying the row-key, please try it

Sorry, I forgot to add rowkey to the fake data, now I have added it, but it is added in my online project, so I think it is not the problem.

@ajuner
Copy link
Member

ajuner commented Jun 24, 2021

image
It seems no problem

@saiyoulala
Copy link
Author

image
It seems no problem

I don't know why my project has this problem. Thank you. Let me check why my project causes this problem

@ajuner ajuner closed this as completed Jun 25, 2021
@ajuner ajuner reopened this Jun 25, 2021
@tangjinzhou
Copy link
Member

set alias for vue

tangjinzhou pushed a commit that referenced this issue Jun 26, 2021
@tangjinzhou tangjinzhou added enhancement and removed 🤔 Need Reproduce We cannot reproduce your problem labels Jun 26, 2021
@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 Jun 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants