feat:设备使用记录
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
/*
|
||||
* @Author : LQ
|
||||
* @Description :
|
||||
* @version : 1.0
|
||||
* @version : 3.0
|
||||
* @Date : 2021-08-20 16:44:21
|
||||
* @LastAuthor : LQ
|
||||
* @lastTime : 2021-08-20 17:18:20
|
||||
* @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
|
||||
* @LastAuthor : jry
|
||||
* @lastTime : 2025-12-19 08:55:21
|
||||
* @FilePath : /uview-plus/libs/config/props/picker.js
|
||||
*/
|
||||
import { t } from '../../libs/i18n'
|
||||
export default {
|
||||
// picker
|
||||
picker: {
|
||||
@@ -17,15 +18,25 @@ export default {
|
||||
columns: [],
|
||||
loading: false,
|
||||
itemHeight: 44,
|
||||
cancelText: '取消',
|
||||
confirmText: '确定',
|
||||
cancelText: t("up.common.cancel"),
|
||||
confirmText: t("up.common.confirm"),
|
||||
cancelColor: '#909193',
|
||||
confirmColor: '#3c9cff',
|
||||
confirmColor: '',
|
||||
visibleItemCount: 5,
|
||||
keyName: 'text',
|
||||
valueName: 'value',
|
||||
closeOnClickOverlay: false,
|
||||
defaultIndex: [],
|
||||
immediateChange: true,
|
||||
zIndex: 10076,
|
||||
disabled: false,
|
||||
disabledColor: '',
|
||||
placeholder: t("up.common.pleaseChoose"),
|
||||
inputProps: {},
|
||||
bgColor: '',
|
||||
round: 0,
|
||||
duration: 300,
|
||||
overlayOpacity: 0.5,
|
||||
pageInline: false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,9 +10,27 @@ export const props = defineMixin({
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
inputProps: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
return {}
|
||||
}
|
||||
},
|
||||
inputBorder: {
|
||||
type: String,
|
||||
default: () => defProps.input.inputBorder
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: () => defProps.picker.disabled
|
||||
},
|
||||
disabledColor:{
|
||||
type: String,
|
||||
default: () => defProps.picker.disabledColor
|
||||
},
|
||||
placeholder: {
|
||||
type: String,
|
||||
default: () => '请选择'
|
||||
default: () => defProps.picker.placeholder
|
||||
},
|
||||
// 是否展示picker弹窗
|
||||
show: {
|
||||
@@ -79,6 +97,11 @@ export const props = defineMixin({
|
||||
type: String,
|
||||
default: () => defProps.picker.keyName
|
||||
},
|
||||
// 选项对象中,需要获取的属性值键名
|
||||
valueName: {
|
||||
type: String,
|
||||
default: () => defProps.picker.valueName
|
||||
},
|
||||
// 是否允许点击遮罩关闭选择器
|
||||
closeOnClickOverlay: {
|
||||
type: Boolean,
|
||||
@@ -104,5 +127,40 @@ export const props = defineMixin({
|
||||
type: [String, Number],
|
||||
default: () => defProps.picker.zIndex
|
||||
},
|
||||
// 弹窗背景色,设置为transparent可去除白色背景
|
||||
bgColor: {
|
||||
type: String,
|
||||
default: () => defProps.picker.bgColor
|
||||
},
|
||||
// 是否显示圆角
|
||||
round: {
|
||||
type: [Boolean, String, Number],
|
||||
default: () => defProps.picker.round
|
||||
},
|
||||
// 动画时长,单位ms
|
||||
duration: {
|
||||
type: [String, Number],
|
||||
default: () => defProps.picker.duration
|
||||
},
|
||||
// 遮罩的透明度,0-1之间
|
||||
overlayOpacity: {
|
||||
type: [Number, String],
|
||||
default: () => defProps.picker.overlayOpacity
|
||||
},
|
||||
// 是否页面内展示
|
||||
pageInline:{
|
||||
type: Boolean,
|
||||
default: () => defProps.picker.pageInline
|
||||
},
|
||||
// 蒙层样式样式
|
||||
maskClass: {
|
||||
type: String,
|
||||
defualt: ''
|
||||
},
|
||||
// 蒙层样式样式
|
||||
maskStyle: {
|
||||
type: String,
|
||||
defualt: ''
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user