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,47 @@
import { defineMixin } from '../../libs/vue'
import defProps from '../../libs/config/props.js'
export const props = defineMixin({
props: {
// 当前匹配项的name
value: {
type: [String, Number, null],
default: () => defProps.tabbar.value
},
// 是否为iPhoneX留出底部安全距离
safeAreaInsetBottom: {
type: Boolean,
default: () => defProps.tabbar.safeAreaInsetBottom
},
// 是否显示上方边框
border: {
type: Boolean,
default: () => defProps.tabbar.border
},
// 元素层级z-index
zIndex: {
type: [String, Number],
default: () => defProps.tabbar.zIndex
},
// 选中标签的颜色
activeColor: {
type: String,
default: () => defProps.tabbar.activeColor
},
// 未选中标签的颜色
inactiveColor: {
type: String,
default: () => defProps.tabbar.inactiveColor
},
// 是否固定在底部
fixed: {
type: Boolean,
default: () => defProps.tabbar.fixed
},
// fixed定位固定在底部时是否生成一个等高元素防止塌陷
placeholder: {
type: Boolean,
default: () => defProps.tabbar.placeholder
}
}
})

View File

@@ -0,0 +1,22 @@
/*
* @Author : LQ
* @Description :
* @version : 1.0
* @Date : 2021-08-20 16:44:21
* @LastAuthor : LQ
* @lastTime : 2021-08-20 17:22:40
* @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
*/
export default {
// tabbar
tabbar: {
value: null,
safeAreaInsetBottom: true,
border: true,
zIndex: 1,
activeColor: '#1989fa',
inactiveColor: '#7d7e80',
fixed: true,
placeholder: true
}
}

File diff suppressed because it is too large Load Diff