jiuyiUniapp/jiuyi2/unpackage/dist/dev/mp-weixin/components/header/statusBar.js

21 lines
564 B
JavaScript
Raw Normal View History

2024-12-18 15:46:27 +08:00
"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);