- 85 个 uView props.js 的中文注释由 GBK 乱码还原为 UTF-8 并去除 BOM - uview-ui/index.js 修复 2 行注释乱码 - 各文件头部 uview-init 兜底 import 保留,功能改动不变
46 lines
1.3 KiB
JavaScript
46 lines
1.3 KiB
JavaScript
import '@/common/uview-init.js'
|
|
export default {
|
|
props: {
|
|
// 当前匹配项的name
|
|
value: {
|
|
type: [String, Number, null],
|
|
default: uni.$u.props.tabbar.value
|
|
},
|
|
// 是否为iPhoneX留出底部安全距离
|
|
safeAreaInsetBottom: {
|
|
type: Boolean,
|
|
default: uni.$u.props.tabbar.safeAreaInsetBottom
|
|
},
|
|
// 是否显示上方边框
|
|
border: {
|
|
type: Boolean,
|
|
default: uni.$u.props.tabbar.border
|
|
},
|
|
// 元素层级z-index
|
|
zIndex: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.tabbar.zIndex
|
|
},
|
|
// 选中标签的颜色
|
|
activeColor: {
|
|
type: String,
|
|
default: uni.$u.props.tabbar.activeColor
|
|
},
|
|
// 未选中标签的颜色
|
|
inactiveColor: {
|
|
type: String,
|
|
default: uni.$u.props.tabbar.inactiveColor
|
|
},
|
|
// 是否固定在底部
|
|
fixed: {
|
|
type: Boolean,
|
|
default: uni.$u.props.tabbar.fixed
|
|
},
|
|
// fixed定位固定在底部时,是否生成一个等高元素防止塌陷
|
|
placeholder: {
|
|
type: Boolean,
|
|
default: uni.$u.props.tabbar.placeholder
|
|
}
|
|
}
|
|
}
|