Skip to content

Commit

Permalink
fix(Input): 文字和前缀没对齐问题
Browse files Browse the repository at this point in the history
  • Loading branch information
nullptr-z committed Mar 2, 2023
1 parent ab379e3 commit bc67588
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions packages/core/src/CardCollapse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ function Demo() {
}
return (
<ScrollView style={{ flex: 1 }}>
<Header description={'基本使用'} />
<CardCollapse
isCollapsed={true}//是否折叠
disablePresses={true}//卡片是否可以点击
Expand Down Expand Up @@ -78,7 +77,6 @@ function Demo() {
}
return (
<ScrollView style={{ flex: 1 }}>
<Header description={'基本使用'} />
<CardCollapse
isCollapsed={false}//是否折叠
disablePresses={true}//卡片是否可以点击
Expand Down Expand Up @@ -124,7 +122,6 @@ function Demo() {
}
return (
<ScrollView style={{ flex: 1 }}>
<Header description={'基本使用'} />
<CardCollapse
isCollapsed={true}//是否折叠
disablePresses={true}//卡片是否可以点击
Expand Down
4 changes: 0 additions & 4 deletions packages/core/src/Input/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ import { Input } from '@uiw/react-native';
class BasicInputExample extends Component {
render() {
return <View>
<Text>禁用输入框</Text>
<Input disabled/>
</View>
}
Expand All @@ -73,7 +72,6 @@ import { Input } from '@uiw/react-native';
class BasicInputExample extends Component {
render() {
return <View>
<Text>禁用输入框</Text>
<Input maxLength='5'/>
</View>
}
Expand All @@ -90,7 +88,6 @@ import { Input } from '@uiw/react-native';

const Demo = () => {
return <View>
<Text>清除按钮</Text>
<Input clear />
</View>
}
Expand All @@ -107,7 +104,6 @@ import { Input } from '@uiw/react-native';

const Demo = () => {
return <View>
<Text>每次输入清除内容</Text>
<Input clearText={true} />
</View>
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/Input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const inputStyles = StyleSheet.create({
color: '#000',
backgroundColor: 'transparent',
paddingVertical: 0,
paddingTop: 5,
paddingTop: 0,
},
always: {
borderWidth: 1,
Expand Down

0 comments on commit bc67588

Please sign in to comment.