UNPKG

@form-create/element-ui

Version:

element-ui动态表单|form-create is a form generation component that can generate dynamic rendering, data collection, verification and submission functions through JSON. Supports 5 UI frameworks, and supports the generation of any Vue components. Built-in 20 ki

16 lines (12 loc) 296 B
import toArray from '@form-create/utils/lib/toarray'; const name = 'select'; export default { name, toFormValue(value, ctx) { if (ctx.prop.props.multiple && !Array.isArray(value)) { return toArray(value) } else { return value; } } }