| export default { | |
|     props: { | |
|         // 键盘的类型,number-数字键盘,card-身份证键盘,car-车牌号键盘 | |
|         mode: { | |
|             type: String, | |
|             default: uni.$u.props.keyboard.mode | |
|         }, | |
|         // 是否显示键盘的"."符号 | |
|         dotDisabled: { | |
|             type: Boolean, | |
|             default: uni.$u.props.keyboard.dotDisabled | |
|         }, | |
|         // 是否显示顶部工具条 | |
|         tooltip: { | |
|             type: Boolean, | |
|             default: uni.$u.props.keyboard.tooltip | |
|         }, | |
|         // 是否显示工具条中间的提示 | |
|         showTips: { | |
|             type: Boolean, | |
|             default: uni.$u.props.keyboard.showTips | |
|         }, | |
|         // 工具条中间的提示文字 | |
|         tips: { | |
|             type: String, | |
|             default: uni.$u.props.keyboard.tips | |
|         }, | |
|         // 是否显示工具条左边的"取消"按钮 | |
|         showCancel: { | |
|             type: Boolean, | |
|             default: uni.$u.props.keyboard.showCancel | |
|         }, | |
|         // 是否显示工具条右边的"完成"按钮 | |
|         showConfirm: { | |
|             type: Boolean, | |
|             default: uni.$u.props.keyboard.showConfirm | |
|         }, | |
|         // 是否打乱键盘按键的顺序 | |
|         random: { | |
|             type: Boolean, | |
|             default: uni.$u.props.keyboard.random | |
|         }, | |
|         // 是否开启底部安全区适配,开启的话,会在iPhoneX机型底部添加一定的内边距 | |
|         safeAreaInsetBottom: { | |
|             type: Boolean, | |
|             default: uni.$u.props.keyboard.safeAreaInsetBottom | |
|         }, | |
|         // 是否允许通过点击遮罩关闭键盘 | |
|         closeOnClickOverlay: { | |
|             type: Boolean, | |
|             default: uni.$u.props.keyboard.closeOnClickOverlay | |
|         }, | |
|         // 控制键盘的弹出与收起 | |
|         show: { | |
|             type: Boolean, | |
|             default: uni.$u.props.keyboard.show | |
|         }, | |
|         // 是否显示遮罩,某些时候数字键盘时,用户希望看到自己的数值,所以可能不想要遮罩 | |
|         overlay: { | |
|             type: Boolean, | |
|             default: uni.$u.props.keyboard.overlay | |
|         }, | |
|         // z-index值 | |
|         zIndex: { | |
|             type: [String, Number], | |
|             default: uni.$u.props.keyboard.zIndex | |
|         }, | |
|         // 取消按钮的文字 | |
|         cancelText: { | |
|             type: String, | |
|             default: uni.$u.props.keyboard.cancelText | |
|         }, | |
|         // 确认按钮的文字 | |
|         confirmText: { | |
|             type: String, | |
|             default: uni.$u.props.keyboard.confirmText | |
|         }, | |
|         // 输入一个中文后,是否自动切换到英文 | |
|         autoChange: { | |
|             type: Boolean, | |
|             default: uni.$u.props.keyboard.autoChange | |
|         } | |
|     } | |
| }
 |