yl-view
Version:
一个基于uniapp的ui框架
68 lines • 1.17 kB
JavaScript
/*
* @Descripttion:
* @Author: dxyqn
* @Date: 2022-03-21 16:04:32
* @Last Modified by: dxyqn
* @LastEditTime: 2022-03-21 16:10:51
*/
export default {
props: {
// 数据
list: {
type: Array,
default: _ => []
},
// 主题
theme: {
type: String,
default: 'primary'
},
// 当前激活下标
activeIndex: {
type: Number,
default: 0
},
// 是否禁用
disabled:{
type:Boolean,
default:false
},
// 模式选择 值为button时为按钮类型 值为subsection时为分段器形式
mode:{
type:String,
default:'subsection'
},
// button 模式圆角
radius:{
type:String,
default:'6rpx'
},
// padding 间隔
padding:{
type:String,
default:'6rpx'
},
// 激活背景色
activeBg:{
type:String,
default:''
},
// 未激活背景色
unActiveBg:{
type:String,
default:''
},
// 文字颜色
color:{
type:String,
default:''
},
// 自定义样式
customStyle:{
type:Object,
default:()=>{
return {}
}
}
},
}