ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

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

Open tetap opened this issue 1 year ago • 2 comments
trafficstars

  • [ ] 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

tetap avatar Jun 15 '24 16:06 tetap

https://github.com/vuejs/vue/issues/5847 https://github.com/ElemeFE/element/issues/9192

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

kovsu avatar Jun 16 '24 15:06 kovsu

vuejs/vue#5847 ElemeFE/element#9192

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

https://github.com/vueComponent/ant-design-vue/issues/7658#issuecomment-2171750051

vuejs/vue#5847 ElemeFE/element#9192

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

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

tetap avatar Jun 16 '24 16:06 tetap

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

github-actions[bot] avatar Aug 16 '24 02:08 github-actions[bot]