Blame view

uni_modules/uview-plus/components/u-form/props.js 1.47 KB
a2702f6d   刘淇   巡查计划
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  import { defineMixin } from '../../libs/vue'
  import defProps from '../../libs/config/props.js'
  export const props = defineMixin({
      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
          }
      }
  })