小说小程序前端代码仓库(小程序)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

54 lines
959 B

export default {
props: {
// tab的数据
list: {
type: Array,
default: () => []
},
// 当前活动的tab的index
current: {
type: [String, Number],
default: 0
},
// 激活的颜色
activeColor: {
type: String,
default: '#3c9cff'
},
// 未激活的颜色
inactiveColor: {
type: String,
default: '#303133'
},
// 模式选择,mode=button为按钮形式,mode=subsection时为分段模式
mode: {
type: String,
default: 'button'
},
// 字体大小
fontSize: {
type: [String, Number],
default: 12
},
// 激活tab的字体是否加粗
bold: {
type: Boolean,
default: true
},
// mode = button时,组件背景颜色
bgColor: {
type: String,
default: '#eeeeef'
},
// 从list元素对象中读取的键名
keyName: {
type: String,
default: 'name'
},
customItemStyle: {
type: [String, Object],
default: ''
},
...uni.$uv?.props?.subsection
}
}