bug
jiangping
2023-11-07 64b432916af9c9218ab3f3eca614e26c542142ae
minipro_standard/uni_modules/uview-ui/components/u-form/props.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,45 @@
export default {
    props: {
        // å½“前form的需要验证字段的集合
        model: {
            type: Object,
            default: uni.$u.props.form.model
        },
        // éªŒè¯è§„则
        rules: {
            type: [Object, Function, Array],
            default: uni.$u.props.form.rules
        },
        // æœ‰é”™è¯¯æ—¶çš„æç¤ºæ–¹å¼ï¼Œmessage-提示信息,toast-进行toast提示
        // border-bottom-下边框呈现红色,none-无提示
        errorType: {
            type: String,
            default: uni.$u.props.form.errorType
        },
        // æ˜¯å¦æ˜¾ç¤ºè¡¨å•域的下划线边框
        borderBottom: {
            type: Boolean,
            default: uni.$u.props.form.borderBottom
        },
        // label的位置,left-左边,top-上边
        labelPosition: {
            type: String,
            default: uni.$u.props.form.labelPosition
        },
        // label的宽度,单位px
        labelWidth: {
            type: [String, Number],
            default: uni.$u.props.form.labelWidth
        },
        // lable字体的对齐方式
        labelAlign: {
            type: String,
            default: uni.$u.props.form.labelAlign
        },
        // lable的样式,对象形式
        labelStyle: {
            type: Object,
            default: uni.$u.props.form.labelStyle
        }
    }
}