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

[Transfer] search事件所提供的trigger参数永远返回undefined #4578

Open
Klayt11 opened this issue Sep 18, 2024 · 3 comments
Open

[Transfer] search事件所提供的trigger参数永远返回undefined #4578

Klayt11 opened this issue Sep 18, 2024 · 3 comments
Assignees

Comments

@Klayt11
Copy link

Klayt11 commented Sep 18, 2024

tdesign-vue-next-starter 版本

^1.10.1

重现链接

No response

重现步骤

问题一:使用@search事件,监听查询框进行列表查询
473c40695a37359bef310a701879e52
这里打印出来的trigger永远是undefined。让我无法通过trigger判断何时是回车来触发查询;
问题二:search参数,在声明文件中依旧是布尔型。但是文档已经支持对象和数组了。
d869a2b79c943aeefdf61e9a1a4ec30

期望结果

问题一期望结果:组件写了trigger的类型有input和enter,那就应该在我对应的操作下告诉我。而且查询框只要一输入,组件立马就会从当前列表中过滤出数据;而当我想要穿梭框是分页的,我肯定要拿查询框的内容来请求接口获取实际的过滤数据,这种时候组件就不需要给我过滤列表了。

实际结果

问题一实际结果:
1.打印出来的trigger永远是undefined;
2.组件自动过滤了数据(当我是分页的时候,其实是不需要组件帮忙过滤的,而应该是通过后端返回的数据)

框架版本

3.4.25

浏览器版本

No response

系统版本

window10

Node版本

18.20.1

补充说明

No response

Copy link
Contributor

👋 @Klayt11,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Copy link
Contributor

♥️ 有劳 @timi137137 @liweijie0812 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @Klayt11

@uyarn uyarn transferred this issue from Tencent/tdesign-vue-next-starter Sep 18, 2024
Copy link
Contributor

👋 @Klayt11,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants