wuqy-component
Version:
这是一个微信小程序自定义组件库
21 lines (19 loc) • 392 B
JavaScript
// components/titleCenter/index.ts
const menuInfo = wx.getMenuButtonBoundingClientRect();
// 胶囊底部位置
const bottomLocation = menuInfo.top + menuInfo.height;
Component({
properties: {
title: {
type: String,
value: "请设置标题",
},
position: {
type: String,
value: "center",
},
},
data: {
menuInfo,
},
});