props.js
1.2 KB
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
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,
}
}
}