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组件不支持v-model:value.trim #7658

Open
1 task
tetap opened this issue Jun 15, 2024 · 2 comments · May be fixed by #7662
Open
1 task

input组件不支持v-model:value.trim #7658

tetap opened this issue Jun 15, 2024 · 2 comments · May be fixed by #7662

Comments

@tetap
Copy link

tetap commented Jun 15, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.3

Environment

4.2.3

Reproduction link

Edit on CodeSandbox

Steps to reproduce

input组件不支持v-model:value.trim

What is expected?

支持指令

What is actually happening?

input组件不支持v-model:value.trim

@kovsu
Copy link
Member

kovsu commented Jun 16, 2024

vuejs/vue#5847
ElemeFE/element#9192

所以是不是只有原生 input 才能用 trim 🤔

@tetap
Copy link
Author

tetap commented Jun 16, 2024

vuejs/vue#5847 ElemeFE/element#9192

所以是不是只有原生 input 才能用 trim 🤔

#7658 (comment)

vuejs/vue#5847 ElemeFE/element#9192

所以是不是只有原生 input 才能用 trim 🤔

我在文档中看到是可以处理v-model修饰符的。不知道为什么不处理。
https://cn.vuejs.org/guide/components/v-model.html#component-v-model

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

Successfully merging a pull request may close this issue.

2 participants