- 修复 uni-popup-dialog/uni-data-picker keypress.js 中 $once 在 H5 端报错(改用生命周期钩子清理监听) - main.js 补 $delete globalProperties polyfill(z-paging 自动高度逻辑依赖) - App.vue onLaunch 补设备信息初始化,修复 X-Device-Id 恒为 unknown - 68 处 ::v-deep、/deep/ 旧深度选择器替换为 :deep()(含 login-page.scss) - zetank-personalpage 组件 .sync 修饰符改为 v-model:xxx(Vue3 已移除 .sync) - vite.config.js HBuilderX 路径支持 HBUILDERX_HOME 环境变量覆盖 - 根 package.json 清理 image-grid 插件遗留元数据 - 收录此前未提交的 uView Vue3 兜底补丁(common/uview-init.js 及各组件 props.js)
111 lines
3.8 KiB
JavaScript
111 lines
3.8 KiB
JavaScript
import '@/common/uview-init.js'
|
|
export default {
|
|
props: {
|
|
// 姝ヨ繘鍣ㄦ爣璇嗙锛屽湪change鍥炶皟杩斿洖
|
|
name: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.numberBox.name
|
|
},
|
|
// 鐢ㄤ簬鍙屽悜缁戝畾鐨勫€硷紝鍒濆鍖栨椂璁剧疆璁句负榛樿min鍊?鏈€灏忓€?
|
|
value: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.numberBox.value
|
|
},
|
|
// 鏈€灏忓€?
|
|
min: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.numberBox.min
|
|
},
|
|
// 鏈€澶у€?
|
|
max: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.numberBox.max
|
|
},
|
|
// 鍔犲噺鐨勬闀匡紝鍙负灏忔暟
|
|
step: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.numberBox.step
|
|
},
|
|
// 鏄惁鍙厑璁歌緭鍏ユ暣鏁?
|
|
integer: {
|
|
type: Boolean,
|
|
default: uni.$u.props.numberBox.integer
|
|
},
|
|
// 鏄惁绂佺敤锛屽寘鎷緭鍏ユ锛屽姞鍑忔寜閽?
|
|
disabled: {
|
|
type: Boolean,
|
|
default: uni.$u.props.numberBox.disabled
|
|
},
|
|
// 鏄惁绂佺敤杈撳叆妗?
|
|
disabledInput: {
|
|
type: Boolean,
|
|
default: uni.$u.props.numberBox.disabledInput
|
|
},
|
|
// 鏄惁寮€鍚紓姝ュ彉鏇达紝寮€鍚悗闇€瑕佹墜鍔ㄦ帶鍒惰緭鍏ュ€?
|
|
asyncChange: {
|
|
type: Boolean,
|
|
default: uni.$u.props.numberBox.asyncChange
|
|
},
|
|
// 杈撳叆妗嗗搴︼紝鍗曚綅涓簆x
|
|
inputWidth: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.numberBox.inputWidth
|
|
},
|
|
// 鏄惁鏄剧ず鍑忓皯鎸夐挳
|
|
showMinus: {
|
|
type: Boolean,
|
|
default: uni.$u.props.numberBox.showMinus
|
|
},
|
|
// 鏄惁鏄剧ず澧炲姞鎸夐挳
|
|
showPlus: {
|
|
type: Boolean,
|
|
default: uni.$u.props.numberBox.showPlus
|
|
},
|
|
// 鏄剧ず鐨勫皬鏁颁綅鏁?
|
|
decimalLength: {
|
|
type: [String, Number, null],
|
|
default: uni.$u.props.numberBox.decimalLength
|
|
},
|
|
// 鏄惁寮€鍚暱鎸夊姞鍑忔墜鍔?
|
|
longPress: {
|
|
type: Boolean,
|
|
default: uni.$u.props.numberBox.longPress
|
|
},
|
|
// 杈撳叆妗嗘枃瀛楀拰鍔犲噺鎸夐挳鍥炬爣鐨勯鑹?
|
|
color: {
|
|
type: String,
|
|
default: uni.$u.props.numberBox.color
|
|
},
|
|
// 鎸夐挳澶у皬锛屽楂樼瓑浜庢鍊硷紝鍗曚綅px锛岃緭鍏ユ楂樺害鍜屾鍊间繚鎸佷竴鑷?
|
|
buttonSize: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.numberBox.buttonSize
|
|
},
|
|
// 杈撳叆妗嗗拰鎸夐挳鐨勮儗鏅鑹?
|
|
bgColor: {
|
|
type: String,
|
|
default: uni.$u.props.numberBox.bgColor
|
|
},
|
|
// 鎸囧畾鍏夋爣浜庨敭鐩樼殑璺濈锛岄伩鍏嶉敭鐩橀伄鎸¤緭鍏ユ锛屽崟浣峱x
|
|
cursorSpacing: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.numberBox.cursorSpacing
|
|
},
|
|
// 鏄惁绂佺敤澧炲姞鎸夐挳
|
|
disablePlus: {
|
|
type: Boolean,
|
|
default: uni.$u.props.numberBox.disablePlus
|
|
},
|
|
// 鏄惁绂佺敤鍑忓皯鎸夐挳
|
|
disableMinus: {
|
|
type: Boolean,
|
|
default: uni.$u.props.numberBox.disableMinus
|
|
},
|
|
// 鍔犲噺鎸夐挳鍥炬爣鐨勬牱寮?
|
|
iconStyle: {
|
|
type: [Object, String],
|
|
default: uni.$u.props.numberBox.iconStyle
|
|
}
|
|
}
|
|
}
|