This commit is contained in:
houjunxiang
2025-10-09 18:19:55 +08:00
parent f2ffc65094
commit 386f1e7466
1553 changed files with 284685 additions and 32820 deletions

View File

@@ -0,0 +1,51 @@
import { defineMixin } from '../../libs/vue'
import defProps from '../../libs/config/props.js'
export const props = defineMixin({
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
}
}
})

View File

@@ -0,0 +1,23 @@
/*
* @Author : LQ
* @Description :
* @version : 1.0
* @Date : 2021-08-20 16:44:21
* @LastAuthor : LQ
* @lastTime : 2021-08-20 17:12:20
* @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
*/
export default {
// subsection组件
subsection: {
list: [],
current: 0,
activeColor: '#3c9cff',
inactiveColor: '#303133',
mode: 'button',
fontSize: 12,
bold: true,
bgColor: '#eeeeef',
keyName: 'name'
}
}

File diff suppressed because it is too large Load Diff