21 lines
564 B
JavaScript
21 lines
564 B
JavaScript
|
"use strict";
|
||
|
const common_vendor = require("../../common/vendor.js");
|
||
|
const _sfc_main = {
|
||
|
__name: "statusBar",
|
||
|
setup(__props) {
|
||
|
const height = common_vendor.ref(0);
|
||
|
common_vendor.onLoad(() => {
|
||
|
common_vendor.index.getSystemInfo().then((rs) => {
|
||
|
height.value = rs.statusBarHeight + "px";
|
||
|
});
|
||
|
});
|
||
|
return (_ctx, _cache) => {
|
||
|
return {
|
||
|
a: height.value
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b1225a22"]]);
|
||
|
wx.createComponent(Component);
|