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

feat: Support getComputedStyle API #183

Merged
merged 46 commits into from
Jan 24, 2023
Merged

feat: Support getComputedStyle API #183

merged 46 commits into from
Jan 24, 2023

Conversation

devjiangzhou
Copy link
Contributor

@devjiangzhou devjiangzhou commented Dec 6, 2022

#80

TODO:

  • valueForPropertyInStyle
    • Font
    • Margin
    • Padding
    • Background
    • Border
    • Text
    • Animation
  • Test Spec
    • background
    • Font
    • Border
  • JS API

vant:
transition-property
transition-delay
transition-duration
animation-delay
animation-duration

@devjiangzhou devjiangzhou force-pushed the getcomputedstyle-support branch 2 times, most recently from 5f2545f to 1fd269d Compare December 6, 2022 09:12
@devjiangzhou devjiangzhou marked this pull request as draft December 6, 2022 09:39
@devjiangzhou devjiangzhou changed the title [WIP] Support getComputedStyle API [WIP] feat: Support getComputedStyle API Dec 6, 2022
@devjiangzhou devjiangzhou force-pushed the getcomputedstyle-support branch 2 times, most recently from db0467d to e36a41f Compare December 14, 2022 12:14
@devjiangzhou devjiangzhou added enhancement New feature or request CSS w3c css standard features and removed enhancement New feature or request labels Jan 16, 2023
@devjiangzhou devjiangzhou force-pushed the getcomputedstyle-support branch 2 times, most recently from 5a1b5d7 to 946afdd Compare January 16, 2023 15:37
@devjiangzhou devjiangzhou force-pushed the getcomputedstyle-support branch 2 times, most recently from d6771b5 to 6a28b2d Compare January 17, 2023 04:29
@andycall andycall merged commit 89868c6 into main Jan 24, 2023
@suyulin
Copy link
Contributor

suyulin commented Feb 8, 2023

vant-picker need transform

function getElementTranslateY(element: Element) {
  const { transform } = window.getComputedStyle(element);
  const translateY = transform.slice(7, transform.length - 1).split(', ')[5];
  return Number(translateY);
}

looseyi pushed a commit that referenced this pull request Nov 11, 2024
[FIX][NEZ][1.86.0] fix gesture conflict on platoform webview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS w3c css standard features
Projects
Status: Done
4 participants