Skip to content

Commit 7127f74

Browse files
authored
fix(Pagination): 优化分页器在安卓上文字显示 (#254)
* 编写选项卡组件 * 类型名称请调整,添加组件文档在网站上展示 * #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) * feat: Upgrade react-native to v0.65.1 * fix(Pagination): android文字被挤压问题 * fix(Pagination): 优化分页器在安卓上文字现实 * fix(Pagination): 优化分页器在安卓上文字显示 * fix(Pagination): 优化分页器在安卓上文字显示
1 parent 43e69c3 commit 7127f74

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/core/src/Pagination/DirText.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,19 @@ const DirText = (props: DirTextProps) => {
3131
}, [disabled]);
3232

3333
return (
34-
<View
35-
style={[
36-
styles.containerStyle,
37-
{ minWidth: containerSize[size], height: containerSize[size], paddingHorizontal: icon ? 0 : 5 },
38-
]}
39-
>
34+
<View style={[styles.containerStyle, { minWidth: containerSize[size], paddingHorizontal: icon ? 0 : 5 }]}>
4035
<Button
4136
bordered={false}
4237
disabled={disabled}
38+
size={props.size}
4339
onPress={() => {
4440
onPageChange(direction === 'left' ? 'prev' : 'next');
4541
}}
4642
>
4743
{icon ? (
4844
<Icon name={direction} size={contentSize[size]} color={disabledStyle} />
4945
) : (
50-
<Text style={{ fontSize: contentSize[size], color: disabledStyle }}>{dirText}</Text>
46+
<Text style={{ color: disabledStyle }}>{dirText}</Text>
5147
)}
5248
</Button>
5349
</View>

0 commit comments

Comments
 (0)