ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.
https://mobile.ant.design
MIT License
11.5k stars 2.37k forks source link

feat(TextArea): add `enterkeyhint` and `onEnterPress` #6598

Closed susiwen8 closed 2 months ago

github-actions[bot] commented 2 months ago

PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6598.surge.sh

viko16 commented 1 month ago

看起来这个 PR 对 enterKeyHint 类型写法的修改,会影响 React 16 下的类型引用(如 @types/react 16.14.60)。

原因:enterKeyHint 是 React 17 才开始引入的,之前为了兼容 React 16 才把定义写在内部。

Ref https://github.com/ant-design/ant-design-mobile/issues/4467#issuecomment-982283756

guoyunhe commented 1 month ago

@viko16 React 18 上车的好时机