navigationBar.js
1.23 KB
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
"use strict";
const common_vendor = require("../common/vendor.js");
const common_assets = require("../common/assets.js");
const _sfc_main = {
props: {
title: String
},
data() {
return {};
},
computed: {
safeAreaInsets() {
return common_vendor.index.getSystemInfoSync().safeAreaInsets.bottom;
},
statusHeight() {
let device = common_vendor.index.getSystemInfoSync();
return device.statusBarHeight + "px";
},
getNavigationHeight() {
var h = 0;
let device = common_vendor.index.getSystemInfoSync();
device.statusBarHeight;
h += 44;
return h + "px";
}
},
onLoad() {
},
methods: {
backClick() {
common_vendor.index.navigateBack();
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_assets._imports_0$1,
b: $options.statusHeight,
c: common_vendor.o((...args) => $options.backClick && $options.backClick(...args)),
d: common_vendor.t($props.title),
e: $options.statusHeight,
f: $options.getNavigationHeight
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d53d6386"]]);
wx.createComponent(Component);