链接
表单组件介绍
button
button 按钮。
常用属性如下(具体见文档):
- size
- type
- plain
- disabled
- loading
- form-type
- open-type
checkbox
checkbox多选项目。
所有属性如下:
- value
- disabled
- checked
- color
form
form将组件内的用户输入的switch input checkbox slider radio picker 提交。
当点击 form 表单中 form-type 为 submit 的 button 组件时,会将表单组件中的 value 值进行提交,需要在表单组件中加上 name 来作为 key。
常用属性如下:
- bindsubmit
- bindreset
input
input 输入框该组件为原生组件。
常用属性如下:
- value
- type
- password
- placeholder
- placeholder-style
- placeholder-class
- disabled
- maxlength
- cursor-spacing
- auto-focus
- focus
picker
picker 从底部弹起的滚动选择器。
见文档
switch
开关选择器。
全部属性:
- checked
- disabled
- type
- color
- bindchange