Input
The v-input
component gives you a baseline to create your own custom inputs. It consists of a prepend/append slot, messages, and a default slot. It is recommended that you extend this component, but it can be used as a standalone.
用例
v-input
has 4 main areas. The prepended slot, the appended slot, the default slot, and messages. These make up the core logic shared between all form components.
API
Components.Inputs.
Components.Inputs.
将指定的色彩应用与控件
应用暗黑主题变体
Components.Inputs.
将输入框设置为手动错误状态。
Components.Inputs.
将输入框置于错误状态,并传入自定义的错误信息。将与来自规则(rules)属性的任何验证相结合。这个字段不会触发验证。
设置组件高度
Components.Inputs.
Components.Inputs.
Components.Inputs.
应用明亮主题变体
Components.Inputs.
Components.Inputs.
Components.Inputs.
Components.Inputs.
Components.Inputs.
返回True或带有错误信息的字符串的函数数组。
Components.Inputs.
Components.Inputs.
延迟验证直到失去焦点的事件被触发
控制可见性