1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
  | export default {  
 |      props: {  
 |          // 是否开启顶部安全区适配  
 |          safeAreaInsetTop: {  
 |              type: Boolean,  
 |              default: uni.$u.props.navbar.safeAreaInsetTop  
 |          },  
 |          // 固定在顶部时,是否生成一个等高元素,以防止塌陷  
 |          placeholder: {  
 |              type: Boolean,  
 |              default: uni.$u.props.navbar.placeholder  
 |          },  
 |          // 是否固定在顶部  
 |          fixed: {  
 |              type: Boolean,  
 |              default: uni.$u.props.navbar.fixed  
 |          },  
 |          // 是否显示下边框  
 |          border: {  
 |              type: Boolean,  
 |              default: uni.$u.props.navbar.border  
 |          },  
 |          // 左边的图标  
 |          leftIcon: {  
 |              type: String,  
 |              default: uni.$u.props.navbar.leftIcon  
 |          },  
 |          // 左边的提示文字  
 |          leftText: {  
 |              type: String,  
 |              default: uni.$u.props.navbar.leftText  
 |          },  
 |          // 左右的提示文字  
 |          rightText: {  
 |              type: String,  
 |              default: uni.$u.props.navbar.rightText  
 |          },  
 |          // 右边的图标  
 |          rightIcon: {  
 |              type: String,  
 |              default: uni.$u.props.navbar.rightIcon  
 |          },  
 |          // 标题  
 |          title: {  
 |              type: [String, Number],  
 |              default: uni.$u.props.navbar.title  
 |          },  
 |          // 背景颜色  
 |          bgColor: {  
 |              type: String,  
 |              default: uni.$u.props.navbar.bgColor  
 |          },  
 |          // 标题的宽度  
 |          titleWidth: {  
 |              type: [String, Number],  
 |              default: uni.$u.props.navbar.titleWidth  
 |          },  
 |          // 导航栏高度  
 |          height: {  
 |              type: [String, Number],  
 |              default: uni.$u.props.navbar.height  
 |          }, 
 |          // 左侧返回图标的大小 
 |          leftIconSize: { 
 |              type: [String, Number], 
 |              default: uni.$u.props.navbar.leftIconSize 
 |          }, 
 |          // 左侧返回图标的颜色 
 |          leftIconColor: { 
 |              type: String, 
 |              default: uni.$u.props.navbar.leftIconColor 
 |          }, 
 |          // 点击左侧区域(返回图标),是否自动返回上一页 
 |          autoBack: { 
 |              type: Boolean, 
 |              default: uni.$u.props.navbar.autoBack 
 |          }, 
 |          // 标题的样式,对象或字符串 
 |          titleStyle: { 
 |              type: [String, Object], 
 |              default: uni.$u.props.navbar.titleStyle 
 |          }  
 |      }  
 |  } 
 |  
  |