TraceabilityAPP/node_modules/uview-plus/components/u-form-item/props.js

45 lines
1.2 KiB
JavaScript
Raw Normal View History

2023-10-17 16:02:55 +08:00
import defprops from '../../libs/config/props';
export default {
props: {
// input的label提示语
label: {
type: String,
default: defprops.formItem.label
},
// 绑定的值
prop: {
type: String,
default: defprops.formItem.prop
},
// 是否显示表单域的下划线边框
borderBottom: {
type: [String, Boolean],
default: defprops.formItem.borderBottom
},
// label的宽度单位px
labelWidth: {
type: [String, Number],
default: defprops.formItem.labelWidth
},
// 右侧图标
rightIcon: {
type: String,
default: defprops.formItem.rightIcon
},
// 左侧图标
leftIcon: {
type: String,
default: defprops.formItem.leftIcon
},
// 是否显示左边的必填星号只作显示用具体校验必填的逻辑请在rules中配置
required: {
type: Boolean,
default: defprops.formItem.required
},
leftIconStyle: {
type: [String, Object],
default: defprops.formItem.leftIconStyle,
}
}
}