mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-24 08:11:55 +08:00
70 lines
1.9 KiB
JavaScript
70 lines
1.9 KiB
JavaScript
export default {
|
||
props: {
|
||
// 最大输入长度
|
||
maxlength: {
|
||
type: [String, Number],
|
||
default: uni.$u.props.codeInput.maxlength
|
||
},
|
||
// 是否用圆点填充
|
||
dot: {
|
||
type: Boolean,
|
||
default: uni.$u.props.codeInput.dot
|
||
},
|
||
// 显示模式,box-盒子模式,line-底部横线模式
|
||
mode: {
|
||
type: String,
|
||
default: uni.$u.props.codeInput.mode
|
||
},
|
||
// 是否细边框
|
||
hairline: {
|
||
type: Boolean,
|
||
default: uni.$u.props.codeInput.hairline
|
||
},
|
||
// 字符间的距离
|
||
space: {
|
||
type: [String, Number],
|
||
default: uni.$u.props.codeInput.space
|
||
},
|
||
// 预置值
|
||
value: {
|
||
type: [String, Number],
|
||
default: uni.$u.props.codeInput.value
|
||
},
|
||
// 是否自动获取焦点
|
||
focus: {
|
||
type: Boolean,
|
||
default: uni.$u.props.codeInput.focus
|
||
},
|
||
// 字体是否加粗
|
||
bold: {
|
||
type: Boolean,
|
||
default: uni.$u.props.codeInput.bold
|
||
},
|
||
// 字体颜色
|
||
color: {
|
||
type: String,
|
||
default: uni.$u.props.codeInput.color
|
||
},
|
||
// 字体大小
|
||
fontSize: {
|
||
type: [String, Number],
|
||
default: uni.$u.props.codeInput.fontSize
|
||
},
|
||
// 输入框的大小,宽等于高
|
||
size: {
|
||
type: [String, Number],
|
||
default: uni.$u.props.codeInput.size
|
||
},
|
||
// 是否隐藏原生键盘,如果想用自定义键盘的话,需设置此参数为true
|
||
disabledKeyboard: {
|
||
type: Boolean,
|
||
default: uni.$u.props.codeInput.disabledKeyboard
|
||
},
|
||
// 边框和线条颜色
|
||
borderColor: {
|
||
type: String,
|
||
default: uni.$u.props.codeInput.borderColor
|
||
}
|
||
}
|
||
}
|