Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix(wechat): 添加 Textarea 组件 confirmType、confirmHold 类型 (#1532) (#1533)
Browse files Browse the repository at this point in the history
* fix: 添加微信小程序textarea组件confirmType、confirmHold类型 (#1532)

* fix: 修复 wechat 中 anination 定义重复

* fix: 修复 wechat-include 快照测试

Co-authored-by: lijinlong <[email protected]>
  • Loading branch information
wuyine and lijinlong committed Apr 19, 2021
1 parent 7844089 commit b1f8b85
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/remax-wechat/src/hostComponents/Textarea/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export interface TextareaProps extends BaseProps {
adjustPosition?: boolean;
/** focus时,点击页面的时候不收起键盘 */
holdKeyboard?: boolean;
/** 设置键盘右下角按钮的文字 */
confirmType?: string;
/** 点击键盘右下角按钮时是否保持键盘不收起 */
confirmHold?: boolean;
/** 是否去掉 iOS 下的默认内边距 2.10.0 */
disableDefaultPadding?: boolean;

Expand Down
2 changes: 2 additions & 0 deletions packages/remax-wechat/src/hostComponents/Textarea/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export const alias = {
onInput: 'bindinput',
onConfirm: 'bindconfirm',
onKeyboardHeightChange: 'bindkeyboardheightchange',
confirmType: 'confirm-type',
confirmHold: 'confirm-hold',
};

export const props = Object.values(alias);

1 comment on commit b1f8b85

@vercel
Copy link

@vercel vercel bot commented on b1f8b85 Apr 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.