qa-regulatory-gwj-app/uni_modules/uview-ui/components/u-subsection/props.js

50 lines
1.3 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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