mkm
/
yanzhiAPP
Template
2
0
Fork 0
yanzhiAPP/node_modules/uview-plus/components/u-form/props.js

47 lines
1.4 KiB
JavaScript
Raw Normal View History

2023-10-17 16:02:55 +08:00
import defprops from '../../libs/config/props';
export default {
props: {
// 当前form的需要验证字段的集合
model: {
type: Object,
default: defprops.form.model
},
// 验证规则
rules: {
type: [Object, Function, Array],
default: defprops.form.rules
},
// 有错误时的提示方式message-提示信息toast-进行toast提示
// border-bottom-下边框呈现红色none-无提示
errorType: {
type: String,
default: defprops.form.errorType
},
// 是否显示表单域的下划线边框
borderBottom: {
type: Boolean,
default: defprops.form.borderBottom
},
// label的位置left-左边top-上边
labelPosition: {
type: String,
default: defprops.form.labelPosition
},
// label的宽度单位px
labelWidth: {
type: [String, Number],
default: defprops.form.labelWidth
},
// lable字体的对齐方式
labelAlign: {
type: String,
default: defprops.form.labelAlign
},
// lable的样式对象形式
labelStyle: {
type: Object,
default: defprops.form.labelStyle
}
}
}