Skip to content

Commit 25bd564

Browse files
fix: 🐛 修复textarea无法换行的问题
1 parent 72a567c commit 25bd564

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/component/textarea.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const value = ref<string>('')
114114
| fixed | 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true | - | false | - |
115115
| cursorSpacing | 原生属性,指定光标与键盘的距离。取 textarea 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离 | number | - | 0 | - |
116116
| cursor | 原生属性,指定 focus 时的光标位置 | number | - | -1 | - |
117-
| confirm-type | 设置键盘右下角按钮的文字 | string | `done / go / next / search / send` | done | - |
117+
| confirm-type | 设置键盘右下角按钮的文字 | string | `done / go / next / search / send` | - | - |
118118
| confirm-hold | 点击键盘右下角按钮时是否保持键盘不收起 | Boolean | - | false | - |
119119
| show-confirm-bar | 是否显示键盘上方带有”完成“按钮那一栏 | Boolean | - | true | - |
120120
| selection-start | 原生属性,光标起始位置,自动聚集时有效,需与 selection-end 搭配使用 | number | - | -1 | - |

src/uni_modules/wot-design-uni/components/wd-textarea/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const textareaProps = {
9595
* 默认值:'done'
9696
* 可选值有'done', 'go', 'next', 'search', 'send'
9797
*/
98-
confirmType: makeStringProp<ConfirmType>('done'),
98+
confirmType: makeStringProp<ConfirmType | null>(null),
9999

100100
/**
101101
* * 点击键盘右下角按钮时是否保持键盘不收起。

0 commit comments

Comments
 (0)