props.js
2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import defprops from '../../libs/config/props';
export default {
props: {
// 键盘弹起时,是否自动上推页面
adjustPosition: {
type: Boolean,
default: defprops.codeInput.adjustPosition
},
// 最大输入长度
maxlength: {
type: [String, Number],
default: defprops.codeInput.maxlength
},
// 是否用圆点填充
dot: {
type: Boolean,
default: defprops.codeInput.dot
},
// 显示模式,box-盒子模式,line-底部横线模式
mode: {
type: String,
default: defprops.codeInput.mode
},
// 是否细边框
hairline: {
type: Boolean,
default: defprops.codeInput.hairline
},
// 字符间的距离
space: {
type: [String, Number],
default: defprops.codeInput.space
},
// 预置值
value: {
type: [String, Number],
default: defprops.codeInput.value
},
// 是否自动获取焦点
focus: {
type: Boolean,
default: defprops.codeInput.focus
},
// 字体是否加粗
bold: {
type: Boolean,
default: defprops.codeInput.bold
},
// 字体颜色
color: {
type: String,
default: defprops.codeInput.color
},
// 字体大小
fontSize: {
type: [String, Number],
default: defprops.codeInput.fontSize
},
// 输入框的大小,宽等于高
size: {
type: [String, Number],
default: defprops.codeInput.size
},
// 是否隐藏原生键盘,如果想用自定义键盘的话,需设置此参数为true
disabledKeyboard: {
type: Boolean,
default: defprops.codeInput.disabledKeyboard
},
// 边框和线条颜色
borderColor: {
type: String,
default: defprops.codeInput.borderColor
},
// 是否禁止输入"."符号
disabledDot: {
type: Boolean,
default: defprops.codeInput.disabledDot
}
}
}