yl-view
Version:
一个基于uniapp的ui框架
75 lines (74 loc) • 1.24 kB
JavaScript
export default {
props:{
// // 单个日期块宽度
width:{
type:String,
default:'86rpx'
},
// 单个日期块高度
height:{
type:String,
default:'120rpx'
},
// 传入时间个数
dateNum:{
type:Number,
default:7,
// 设置验证,传入的时间个数区间在[1,100]
validator:function(value){
return value>=1 &&value<=100
}
},
// 激活背景颜色
activeBg: {
type: String,
default: uni.$yl.ylPrimary
},
// 激活文字颜色
activeColor: {
type: String,
default: '#fff'
},
// 默认背景色
defaultBg:{
type:String,
default:'#f4f4f5'
},
// 日期块外间距
margin:{
type:String,
default:'0'
},
// 是否选择已过去时间
foreDate:{
type:Boolean,
default:false
},
// 是否显示点击切换日期按钮
showForeBack:{
type:Boolean,
default:false
},
week:{
type:Array,
default:()=>['周一', '周二', '周三', '周四', '周五', '周六', '周日']
},
// 日期快样式
labelSize:{
type:String,
default:'28rpx'
},
dateSize:{
type:String,
default:'28rpx'
},
showDay:{
type:Boolean,
default:false
},
val:{
type:String,
default:''
}
}
}