yl-view
Version:
一个基于uniapp的ui框架
78 lines (77 loc) • 1.39 kB
JavaScript
export default {
props: {
// 键盘类型number(数字键盘),idcard(身份证键盘),temperature(体温键盘)
mode: {
type: String,
default: 'number'
},
show: {
type: Boolean,
default: false
},
// 是否显示遮罩
overlay: {
type: Boolean,
default: false
},
// 点击遮罩是否关闭弹窗
closeOnClickOverlay: {
type: Boolean,
default: true
},
// 层级
zIndex: {
type: [String, Number],
default: 10030
},
// 是否为iPhoneX留出底部安全距离
safeAreaInsetBottom: {
type: Boolean,
default: true
},
// 显示工具栏
showTooltips: {
type: Boolean,
default: true
},
// 是否显示取消
showCancel: {
type: Boolean,
default: true
},
// 取消文字
cancelText: {
type: String,
default: '取消'
},
// 是否展示中间描述
showTips: {
type: Boolean,
default: true
},
tipText: {
type: String,
default: ''
},
// 是否展示确认
showConfirm: {
type: Boolean,
default: true
},
// 确认文字
confirmText: {
type: String,
default: '确定'
},
// 是否有小数点(mode=number有效)
hasDot: {
type: Boolean,
default: true
},
// 打乱键盘顺序
random: {
type: Boolean,
default: false
}
},
}