Files
2026-02-07 23:14:57 +08:00

99 lines
1.9 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Component({
properties: {
//padding值
padding: {
type: String,
value: ''
},
//margin-top 单位rpx
marginTop: {
type: Number,
optionalTypes: [String],
value: 0
},
//margin-bottom 单位rpx
marginBottom: {
type: Number,
optionalTypes: [String],
value: 0
},
//背景颜色
background: {
type: String,
value: ''
},
//是否有点击效果
highlight: {
type: Boolean,
value: true
},
//是否需要右侧箭头
arrow: {
type: Boolean,
value: false
},
arrowColor: {
type: String,
value: ''
},
//是否显示上边框
topBorder: {
type: Boolean,
value: false
},
//是否显示下边框
bottomBorder: {
type: Boolean,
value: true
},
borderColor: {
type: String,
value: ''
},
//上边框left值单位rpx
topLeft: {
type: Number,
optionalTypes: [String],
value: 0
},
//上边框right值单位rpx
topRight: {
type: Number,
optionalTypes: [String],
value: 0
},
//下边框left值单位rpx
bottomLeft: {
type: Number,
optionalTypes: [String],
value: -1
},
//下边框right值单位rpx
bottomRight: {
type: Number,
optionalTypes: [String],
value: 0
},
//border-radius圆角值
radius: {
type: String,
value: '0'
},
index: {
type: Number,
value: 0
}
},
data:{
c_padding:(wx.$fui && wx.$fui.fuiListCell.padding) || '32rpx',
c_arrowColor:(wx.$fui && wx.$fui.fuiListCell.arrowColor) || '#B2B2B2',
c_bottomLeft: wx.$fui && wx.$fui.fuiListCell.bottomLeft
},
methods: {
handleClick() {
this.triggerEvent('click', {
index: this.data.index
});
}
}
})