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

Closed
1 task
tetap opened this issue Jun 15, 2024 · 3 comments
Closed
1 task

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

tetap opened this issue Jun 15, 2024 · 3 comments
Labels

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

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

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

Successfully merging a pull request may close this issue.

2 participants