You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

120 lines
3.6 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import defprops from '../../libs/config/props';
export default {
props: {
// 步进器标识符在change回调返回
name: {
type: [String, Number],
default: defprops.numberBox.name
},
// #ifdef VUE2
// 用于双向绑定的值初始化时设置设为默认min值(最小值)
value: {
type: [String, Number],
default: defprops.numberBox.value
},
// #endif
// #ifdef VUE3
// 用于双向绑定的值初始化时设置设为默认min值(最小值)
modelValue: {
type: [String, Number],
default: defprops.numberBox.value
},
// #endif
// 最小值
min: {
type: [String, Number],
default: defprops.numberBox.min
},
// 最大值
max: {
type: [String, Number],
default: defprops.numberBox.max
},
// 加减的步长,可为小数
step: {
type: [String, Number],
default: defprops.numberBox.step
},
// 是否只允许输入整数
integer: {
type: Boolean,
default: defprops.numberBox.integer
},
// 是否禁用,包括输入框,加减按钮
disabled: {
type: Boolean,
default: defprops.numberBox.disabled
},
// 是否禁用输入框
disabledInput: {
type: Boolean,
default: defprops.numberBox.disabledInput
},
// 是否开启异步变更,开启后需要手动控制输入值
asyncChange: {
type: Boolean,
default: defprops.numberBox.asyncChange
},
// 输入框宽度单位为px
inputWidth: {
type: [String, Number],
default: defprops.numberBox.inputWidth
},
// 是否显示减少按钮
showMinus: {
type: Boolean,
default: defprops.numberBox.showMinus
},
// 是否显示增加按钮
showPlus: {
type: Boolean,
default: defprops.numberBox.showPlus
},
// 显示的小数位数
decimalLength: {
type: [String, Number, null],
default: defprops.numberBox.decimalLength
},
// 是否开启长按加减手势
longPress: {
type: Boolean,
default: defprops.numberBox.longPress
},
// 输入框文字和加减按钮图标的颜色
color: {
type: String,
default: defprops.numberBox.color
},
// 按钮大小宽高等于此值单位px输入框高度和此值保持一致
buttonSize: {
type: [String, Number],
default: defprops.numberBox.buttonSize
},
// 输入框和按钮的背景颜色
bgColor: {
type: String,
default: defprops.numberBox.bgColor
},
// 指定光标于键盘的距离避免键盘遮挡输入框单位px
cursorSpacing: {
type: [String, Number],
default: defprops.numberBox.cursorSpacing
},
// 是否禁用增加按钮
disablePlus: {
type: Boolean,
default: defprops.numberBox.disablePlus
},
// 是否禁用减少按钮
disableMinus: {
type: Boolean,
default: defprops.numberBox.disableMinus
},
// 加减按钮图标的样式
iconStyle: {
type: [Object, String],
default: defprops.numberBox.iconStyle
}
}
}