-
Basic Info
What is expected?使用 Steps to reproduce采用 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
感觉这种应该封装一个自定义的指令 v-trim,和组件库没啥关系,网上抄的还蛮好用的... https://codesandbox.io/s/flamboyant-tamas-n0z7ei <a-input v-trim v-model="val" /> |
Beta Was this translation helpful? Give feedback.
-
是的,我现在也是在用自己做的指令,但想到 |
Beta Was this translation helpful? Give feedback.
-
没有理应支持的说法,Arco 组件对 vue 来说就是自定义组件,自定义组件要使用修饰符都需要额外定义的,目前 Arco 表单组件没有定义修饰符,所以用不了是正常的。你可以自己修改源码,然后 PR 支持 |
Beta Was this translation helpful? Give feedback.
感觉这种应该封装一个自定义的指令 v-trim,和组件库没啥关系,网上抄的还蛮好用的...
https://codesandbox.io/s/flamboyant-tamas-n0z7ei