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
| import { defineMixin } from '../../libs/vue'
|
| export const props = defineMixin({
| props: {
| // 是否开启顶部安全区适配
| safeAreaInsetTop: {
| type: Boolean,
| default: () => true
| },
| // 是否固定在顶部
| fixed: {
| type: Boolean,
| default: () => true
| },
| // 左边的图标
| leftIcon: {
| type: String,
| default: 'arrow-leftward'
| },
| // 背景颜色
| bgColor: {
| type: String,
| default: () => 'rgba(0,0,0,.15)'
| },
| // 导航栏高度
| height: {
| type: [String, Number],
| default: () => '32px'
| },
| // 图标的大小
| iconSize: {
| type: [String, Number],
| default: '20px'
| },
| // 图标的颜色
| iconColor: {
| type: String,
| default: '#fff'
| },
| // 点击左侧区域(返回图标),是否自动返回上一页
| autoBack: {
| type: Boolean,
| default: () => true
| },
| // 首页路径
| homeUrl: {
| type: [String],
| default: ''
| }
| }
| })
|
|