yl-view
Version:
一个基于uniapp的ui框架
58 lines (57 loc) • 911 B
JavaScript
export default {
props: {
// 是否全部展开
isExpendAll: {
type: Boolean,
default: false
},
// 数据源
data: {
type: Array,
default: _ => []
},
// 文字属性字段
name: {
type: String,
default: 'label'
},
// 图片属性字段
img: {
type: String,
default: 'img'
},
// 右边属性字段
rightLabel: {
type: String,
default: 'count'
},
// 唯一标识属性字段
idLabel: {
type: String,
default: 'id'
},
itemCustomStyle: {
type: Object,
default: _ => {
return {
padding: '30rpx 0rpx',
fontSize:'34rpx',
borderBottom:`solid 1rpx ${uni.$yl.ylBorder}`
}
}
},
imgStyle: {
type: Object,
default: _ => {
return {
width: '80rpx',
height: '80rpx'
}
}
},
isShowRight:{
type:Boolean,
default:true
}
}
}