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

[tagInput] :value语法糖无法使用 #4805

Closed
Wesley-0808 opened this issue Dec 2, 2024 · 7 comments
Closed

[tagInput] :value语法糖无法使用 #4805

Wesley-0808 opened this issue Dec 2, 2024 · 7 comments

Comments

@Wesley-0808
Copy link
Contributor

Wesley-0808 commented Dec 2, 2024

tdesign-vue-next 版本

1.10.4

重现链接

https://codesandbox.io/p/devbox/yyq8sk

重现步骤

重现链接可复现

期望结果

image

实际结果

使用了:value 输入内容按下回车后只会清空输入框

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented Dec 2, 2024

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

@PengYYYYY
Copy link
Collaborator

PengYYYYY commented Dec 3, 2024

这个 value 值是 tagInput 的值,不是 tagInput 里面的输入框的值,输入框的值,请用 inputValue

@Wesley-0808
Copy link
Contributor Author

@PengYYYYY 不是啊 你看看复现链接 就是使用:value的话 taginput就无法使用了 你理解错意思了吧

@PengYYYYY PengYYYYY reopened this Dec 3, 2024
@PengYYYYY
Copy link
Collaborator

PengYYYYY commented Dec 3, 2024

Screen.Recording.2024-12-03.at.23.21.05.mov

这个 demo 没问题,如果你只是用 :value 的话,就需要结合 change 事件了

https://stackblitz.com/edit/fqxjvv?file=src%2Fdemo.vue

@Wesley-0808
Copy link
Contributor Author

了解了,还是建议在文档中同时说明一下哈

@PengYYYYY
Copy link
Collaborator

image

第一个 demo 就有相关使用方法了哈

@Wesley-0808
Copy link
Contributor Author

okay~

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

2 participants