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: slider #722

Merged
merged 1 commit into from
May 15, 2023
Merged

fix: slider #722

merged 1 commit into from
May 15, 2023

Conversation

jc9702507
Copy link
Collaborator

  • 修改slider滑动问题

@github-actions
Copy link
Contributor

github-actions bot commented May 15, 2023

🎊 PR Preview ace94e9 has been successfully built and deployed to https://ant-design-ant-design-mini-preview-pr-722.surge.sh

🕐 Build time: 245.939s

🤖 By surge-preview

@@ -2,7 +2,7 @@

<template name='slider-handler'>
<view class="ant-slider-handler" style="left: {{position}}%">
<popover placement="top" visible="{{showTooltip}}">
<popover placement="top" visible="{{showTooltip}}" showMask="{{false}}">
<slot name="slider">
<view class="ant-slider-handler-block">
<view class="ant-slider-handler-icon-default">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个代码补丁只有一行修改。

修改前是没有定义 showMask 属性的,而修改后在 <popover> 中增加了此属性并且赋值为 false

根据上下文看,我们可以猜测这个属性表示是否显示弹出框背景遮罩。如果不需要这个遮罩,那么将其设置为 false 可以提高用户体验并减轻系统开销。

至于问题和改进建议,目前没有显然的风险或者明显的优化点可以挑选,但是需要根据整个工程的结构和目标来综合考虑补丁的正确性,可读性和完整性。

@codecov
Copy link

codecov bot commented May 15, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (9f65cc5) 24.01% compared to head (ace94e9) 24.01%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #722   +/-   ##
=======================================
  Coverage   24.01%   24.01%           
=======================================
  Files         158      158           
  Lines        3339     3339           
  Branches      875      875           
=======================================
  Hits          802      802           
  Misses       2206     2206           
  Partials      331      331           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jc9702507 jc9702507 merged commit b42c7a9 into master May 15, 2023
@github-actions github-actions bot mentioned this pull request May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant