You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
1.8 KiB

import defprops from '../../libs/config/props';
export default {
props: {
// 是否开启顶部安全区适配
safeAreaInsetTop: {
type: Boolean,
default: defprops.navbar.safeAreaInsetTop
},
// 固定在顶部时,是否生成一个等高元素,以防止塌陷
placeholder: {
type: Boolean,
default: defprops.navbar.placeholder
},
// 是否固定在顶部
fixed: {
type: Boolean,
default: defprops.navbar.fixed
},
// 是否显示下边框
border: {
type: Boolean,
default: defprops.navbar.border
},
// 左边的图标
leftIcon: {
type: String,
default: defprops.navbar.leftIcon
},
// 左边的提示文字
leftText: {
type: String,
default: defprops.navbar.leftText
},
// 左右的提示文字
rightText: {
type: String,
default: defprops.navbar.rightText
},
// 右边的图标
rightIcon: {
type: String,
default: defprops.navbar.rightIcon
},
// 标题
title: {
type: [String, Number],
default: defprops.navbar.title
},
// 背景颜色
bgColor: {
type: String,
default: defprops.navbar.bgColor
},
// 标题的宽度
titleWidth: {
type: [String, Number],
default: defprops.navbar.titleWidth
},
// 导航栏高度
height: {
type: [String, Number],
default: defprops.navbar.height
},
// 左侧返回图标的大小
leftIconSize: {
type: [String, Number],
default: defprops.navbar.leftIconSize
},
// 左侧返回图标的颜色
leftIconColor: {
type: String,
default: defprops.navbar.leftIconColor
},
// 点击左侧区域(返回图标),是否自动返回上一页
autoBack: {
type: Boolean,
default: defprops.navbar.autoBack
},
// 标题的样式,对象或字符串
titleStyle: {
type: [String, Object],
default: defprops.navbar.titleStyle
}
}
}