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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
| export default {
| props: {
| // 键盘的类型,number-数字键盘,card-身份证键盘,car-车牌号键盘
| mode: {
| type: String,
| default: 'number'
| },
| // 是否显示键盘的"."符号
| dotDisabled: {
| type: Boolean,
| default: false
| },
| // 是否显示顶部工具条
| tooltip: {
| type: Boolean,
| default: true
| },
| // 是否显示工具条中间的提示
| showTips: {
| type: Boolean,
| default: true
| },
| // 工具条中间的提示文字
| tips: {
| type: String,
| default: ''
| },
| // 是否显示工具条左边的"取消"按钮
| showCancel: {
| type: Boolean,
| default: true
| },
| // 是否显示工具条右边的"完成"按钮
| showConfirm: {
| type: Boolean,
| default: true
| },
| // 是否打乱键盘按键的顺序
| random: {
| type: Boolean,
| default: false
| },
| // 是否开启底部安全区适配,开启的话,会在iPhoneX机型底部添加一定的内边距
| safeAreaInsetBottom: {
| type: Boolean,
| default: true
| },
| // 是否允许通过点击遮罩关闭键盘
| closeOnClickOverlay: {
| type: Boolean,
| default: true
| },
| // 是否允许点击确认按钮关闭组件
| closeOnClickConfirm: {
| type: Boolean,
| default: true
| },
| // 是否显示遮罩,某些时候数字键盘时,用户希望看到自己的数值,所以可能不想要遮罩
| overlay: {
| type: Boolean,
| default: true
| },
| // z-index值
| zIndex: {
| type: [String, Number],
| default: 10075
| },
| // 取消按钮的文字
| cancelText: {
| type: String,
| default: '取消'
| },
| // 确认按钮的文字
| confirmText: {
| type: String,
| default: '确定'
| },
| // 输入一个中文后,是否自动切换到英文
| autoChange: {
| type: Boolean,
| default: false
| },
| // 被禁用的键
| disKeys: {
| type: Array,
| default: ()=>[]
| },
| // 是否自定义abc
| customabc: {
| type: Boolean,
| default: false
| },
| ...uni.$uv?.props?.keyboard
| }
| }
|
|