cultivationApp/node_modules/uview-plus/components/u-subsection/props.js

51 lines
1.4 KiB
JavaScript
Raw Permalink Normal View History

2023-10-17 16:02:55 +08:00
import defprops from '../../libs/config/props';
export default {
props: {
// tab的数据
list: {
type: Array,
default: defprops.subsection.list
},
// 当前活动的tab的index
current: {
type: [String, Number],
default: defprops.subsection.current
},
// 激活的颜色
activeColor: {
type: String,
default: defprops.subsection.activeColor
},
// 未激活的颜色
inactiveColor: {
type: String,
default: defprops.subsection.inactiveColor
},
// 模式选择mode=button为按钮形式mode=subsection时为分段模式
mode: {
type: String,
default: defprops.subsection.mode
},
// 字体大小
fontSize: {
type: [String, Number],
default: defprops.subsection.fontSize
},
// 激活tab的字体是否加粗
bold: {
type: Boolean,
default: defprops.subsection.bold
},
// mode = button时组件背景颜色
bgColor: {
type: String,
default: defprops.subsection.bgColor
},
// 从list元素对象中读取的键名
keyName: {
type: String,
default: defprops.subsection.keyName
}
}
}