export const formProps = { // 表单数据对象(需要验证的表单数据) model: { type: Object, default() { return {} } }, // 发生错误时的提示方式 // toast - 弹出toast框 // message - 提示信息 // border - 如果设置了边框,边框会变成红色 // border-bottom - 下边框会呈现红色 // none - 无提示 errorType: { type: Array, default() { return ['message', 'toast'] } }, // 是否显示表单域的下划线边框 borderBottom: { type:Boolean, default: true }, // label(标签名称)的位置 // left - 左边 // top - 上边 labelPosition: { type: String, default: 'left' }, // label的宽度 labelWidth: { type: Number, default: 90 }, // label的对齐方式 // left - 左对齐 // center - 居中对齐 // right - 右对齐 labelAlign: { type: String, default: 'left' }, // label 的样式 labelStyle: { type: Object, default() { return {} } } }