OfficeSystem/node_modules/@climblee/uv-ui/components/uv-form/props.js

46 lines
940 B
JavaScript
Raw Normal View History

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