Skip to content

Commit 7d34718

Browse files
committed
fix(TextArea): 修复多行输入框文字展示不清楚,没对齐
1 parent 923e471 commit 7d34718

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/core/src/Pagination/DirText.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const DirText = (props: DirTextProps) => {
3838
{
3939
minWidth: containerSize[size],
4040
borderColor: borderColor,
41+
backgroundColor: '#fff',
4142
paddingHorizontal: icon ? 0 : 5,
4243
opacity: disabled ? disabledStyle : disabledStyle - 0.2,
4344
},

packages/core/src/TextArea/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import TextArea from '@uiw/react-native/lib/TextArea';
1313
function Demo() {
1414
return (
1515
<TextArea
16+
fontStyle={{ color:'#aaa' }}
1617
value={"Hello TextArea \nplease input word"}
1718
placeholder='请输入'
1819
/>
@@ -35,6 +36,7 @@ function Demo() {
3536
console.log('输入内容: ', value);
3637
setValue(value);
3738
}}
39+
fontStyle={{ color:'#aaa' }}
3840
value={value}
3941
placeholder='请输入'
4042
/>
@@ -55,6 +57,7 @@ function Demo() {
5557

5658
return (
5759
<TextArea
60+
fontStyle={{ color:'#aaa' }}
5861
editable={false}
5962
value={value}
6063
placeholder='请输入'
@@ -78,6 +81,7 @@ function Demo() {
7881
onChange={(value) => {
7982
setValue(value);
8083
}}
84+
fontStyle={{ color:'#aaa' }}
8185
maxLength={100}
8286
showWords={true}
8387
value={value}
@@ -102,6 +106,7 @@ function Demo() {
102106
onChange={(value) => {
103107
setValue(value);
104108
}}
109+
fontStyle={{ color:'#aaa' }}
105110
numberOfLines={3}
106111
value={value}
107112
placeholder='请输入'
@@ -127,6 +132,7 @@ function Demo() {
127132
onChange={(value) => {
128133
setValue(value);
129134
}}
135+
fontStyle={{ color:'#aaa' }}
130136
placeholder='请输入'
131137
autoSize
132138
/>
@@ -177,6 +183,7 @@ function Demo() {
177183
setValue(value);
178184
}}
179185
textAlignVertical="center"
186+
fontStyle={{ color:'#aaa' }}
180187
value={value}
181188
placeholder='请输入'
182189
/>

0 commit comments

Comments
 (0)