Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Input] 希望支持composition #2134

Open
xmsz-stu opened this issue Mar 19, 2024 · 3 comments
Open

[Input] 希望支持composition #2134

xmsz-stu opened this issue Mar 19, 2024 · 3 comments
Assignees
Labels
feature request Request new feature

Comments

@xmsz-stu
Copy link

Which Component Need Enhancement 期望新增功能的组件

  • Input

What does the proposed API look like 期望支持的API

composition

Feature Description 功能描述

开启后,只有中文输入后才会触发onChange

Additional information 补充说明

因为实时搜索的时候,打拼音的时候触发onChange一方面搜索结果很奇怪,一方面无意义的频繁触发
希望组件直接支持composition,因为自己每次再实现太麻烦了

@xmsz-stu xmsz-stu added the feature request Request new feature label Mar 19, 2024
@DaiQiangReal
Copy link
Collaborator

Input 继承了原生 input 的属性,并且透传了,可以直接使用 onCompositionStart 之类的 api,也有类型提示

@xmsz-stu
Copy link
Author

Input 继承了原生 input 的属性,并且透传了,可以直接使用 onCompositionStart 之类的 api,也有类型提示

希望可以内置处理
https://fusion.design/pc/component/input?themeid=2
image

因为,我们大部分搜索场景都是输入中文,但是输入拼音的时候一直在搜索不是很友好
自己封装可以,但是如果能内置就更方便了

@DaiQiangReal
Copy link
Collaborator

我们兜一下给个API开关吧,这个其实是系统输入法框架的锅。fcitx 和 Ibus 不会有这种问题。

@DaiQiangReal DaiQiangReal self-assigned this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request new feature
Projects
None yet
Development

No branches or pull requests

2 participants