Skip to content

Commit 3da332b

Browse files
authored
fix(Slider): Slider 滑块输入条 vertical={true} 会出现一直 render (#237) (#238)
* 编写选项卡组件 * 类型名称请调整,添加组件文档在网站上展示 * #162修复报错 * fix:#162修复报错 * SpeedDial 悬浮标记 * 优化类型 * feat(ActionSheet): Add new component. * fix: ActionSheet 实例优化,组件优化 * feat(SearchInputBar): Add new component. * feat(Pagination): Add new component. * fix(Tooltip): 修复cloud弹出元素位置问题 * doc(Drawer): Update README.md * doc: Update README.md * fix(Rating): Rating 评分组件 使用繁琐(#244) * fix(Rating): Rating 评分组件 使用繁琐(#244) * fix(Slider): 滑块输入条 thumbSize属性没有效果, 滑块输入条 thumbSize 设置很大时然后使用 shownThumb=false 效果如下 (#234 # 233) * fix(Slider): 滑块输入条 thumbSize属性没有效果, 滑块输入条 thumbSize 设置很大时然后使用 shownThumb=false 输入条拉不满 (#234 # 233) * fix(Slider): Slider 滑块 输入条 vertical={true} 会出现一直 render (#237)
1 parent 4c90030 commit 3da332b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/Slider/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ export default class Slider extends Component<SliderProps, SliderState> {
338338
...valueVisibleStyle,
339339
},
340340
{
341-
width: thumbSize.width,
342-
height: thumbSize.height,
341+
width: vertical ? thumbSize.height : thumbSize.width,
342+
height: vertical ? thumbSize.width : thumbSize.height,
343343
borderRadius: thumbSize.width / 2,
344344
},
345345
])}

0 commit comments

Comments
 (0)