# Form
# 输入框 Input
复制代码
# Input ObjectKey
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
attr | 继承 Element-ui Input 组件属性 | obejct | 同Element-ui Input 组件 (opens new window)属性 | _ |
event | 继承 Element-ui Input 组件事件 | obejct | 同 Element-ui Input 组件 (opens new window)事件 | _ |
# 文本框 textarea
复制代码
# Textarea ObjectKey
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
attr | 继承 Element-ui Input 组件属性 | obejct | 同Element-ui Input 组件 (opens new window)属性 | _ |
event | 继承 Element-ui Input 组件事件 | obejct | 同 Element-ui Input 组件 (opens new window)事件 | _ |
# Select 下拉框
复制代码
# Select ObjectKey
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
attr | 继承 Element-ui Select 组件属性 | obejct | 同Element-ui Select 组件 (opens new window)属性 | _ |
event | 继承 Element-ui Select 组件事件 | obejct | 同 Element-ui Select 组件 (opens new window)事件 | _ |
# chckbox 多选
复制代码
# Checkbox ObjectKey
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
attr | 继承 Element-ui Checkbox 组件属性 | obejct | 同Element-ui Checkbox 组件 (opens new window)属性 | _ |
event | 继承 Element-ui Checkbox 组件事件 | obejct | 同 Element-ui Checkbox 组件 (opens new window)事件 | _ |
# radio 单选
复制代码
# Radio ObjectKey
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
attr | 继承 Element-ui Radio 组件属性 | obejct | 同Element-ui Radio 组件 (opens new window)属性 | _ |
event | 继承 Element-ui Radio 组件事件 | obejct | 同 Element-ui Radio 组件 (opens new window)事件 | _ |
# datepicker 时间选择
复制代码
# date 组件说明
type | attr | event |
---|---|---|
datetimerange ,datetime | 同Element-ui DateTimePicker 组件 (opens new window)属性 | 同 Element-ui DateTimePicker 组件 (opens new window)事件 |
daterange ,date | 同Element-ui DatePicker 组件 (opens new window)属性 | 同 Element-ui DatePicker 组件 (opens new window)事件 |
timeSelect ,time | 同Element-ui TimePicker 组件 (opens new window)属性 | 同 Element-ui TimePicker 组件 (opens new window)事件 |
# 在 dialog 中使用
复制代码
# Form Attributes
参数 | 说明 | 类型 | 可选 | 默认值 |
---|---|---|---|---|
form | form 表单数据 | object | 必选 | _ |
columns | 表单项配置参数列表 详情见下表 | array | _ | _ |
buttons | 表单提交按钮 想情见下表 | array | _ | [] |
button-align | 表单提交按钮位置 | string | left/right/center | center |
其他参数 | 同element-ui 的 Form 组件 (opens new window)属性 | _ | _ |
# Columns Key
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
type | 表单组件类型 | string | datetimerange, datetime, daterange, date, timeSelect, time, input, select, checkbox, radio, textarea, switch | |
prop | form 数据 的 key (form[key]) | string | _ | _ |
label | 标签 | string | _ | false |
options | 列表数据 ,仅在 type=select | checkbox | radio 有效 | array | _ | _ |
lazyLoad | 动态加载 options 的方法 ,仅在 type=select | checkbox | radio 有效 | Function(relsove,param) | _ | _ |
prefix | 输入框头部内容插槽名称,仅在 type=input 有效 | string | _ | _ |
suffix | 输入框尾部内容插槽名称,仅在 type=input 有效 | string | _ | _ |
append | 输入框前置内容插槽名称,仅在 type=input 有效 | string | _ | false |
prepend | 输入框后置内容插槽名称,仅在 type=input 有效 | string | _ | _ |
attr | 继承 Element-ui 表单组件属性 | obejct | _ | _ |
event | 继承 Element-ui 表单组件事件 | obejct | _ | _ |
formAttr | 继承 Element-ui FormItem (opens new window) 组件属性 | obejct | _ | _ |
# Form Event
事件名称 | 说明 | 回调参数 |
---|---|---|
validate | 任一表单项被校验后触发 | 返回一个 Promise |