X Tutup
The Wayback Machine - https://web.archive.org/web/20201203115253/https://github.com/element-plus/element-plus/pull/785
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

fix: picker transition with 'el-zoom-in-top' #785

Merged
merged 1 commit into from Dec 2, 2020

Conversation

@SimonaliaChen
Copy link
Collaborator

@SimonaliaChen SimonaliaChen commented Dec 2, 2020

  • Add prop gpuAcceleration to Popper
  • Fix all picker's transition and styles, including Autocomplete, Dropdown, Select, TimerPicker, DatePicker
    and so on, which transition should be 'el-zoom-in-top' and without duplication
  • Set prop popperAppendToBody's default value to false of Select and Autocomplete to keep consistency with Popper
fix all picker's transition and styles, including select, autocomplete, timer-picker, date-picker
and so on, which transition should be 'el-zoom-in-top' and without duplication.
gpuAcceleration,
adaptive: gpuAcceleration,
Comment on lines +46 to +47

This comment has been minimized.

@JeremyWuuuuu

JeremyWuuuuu Dec 2, 2020
Collaborator

These two were not conflicted?

This comment has been minimized.

@SimonaliaChen

SimonaliaChen Dec 2, 2020
Author Collaborator

When set gpuAcceleration to false, adaptive should also be false, otherwise will get a warning.

This comment has been minimized.

@JeremyWuuuuu

JeremyWuuuuu Dec 2, 2020
Collaborator

Got it

@select-range="setMaxSelectionRange"
/>
</div>
<div v-if="actualVisible" class="el-time-range-picker el-picker-panel">

This comment has been minimized.

@SimonaliaChen

SimonaliaChen Dec 2, 2020
Author Collaborator

Can you take a look? @zazzaz I am not sure whether it is a good solution. I try to remove v-if for better performance, but some errors will be thrown, such as cannot read xx from undefined. I suppose there are something wrong with the default value, but the component are toooo complicated. Could you help me out?

@zazzaz zazzaz merged commit 5db2e97 into element-plus:dev Dec 2, 2020
2 checks passed
2 checks passed
Test
Details
dependabot
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.
X Tutup