2024-11-05 10:09:18 +08:00

51 lines
1008 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import '@dcloudio/types'
declare global {
namespace UniNamespace {
export interface GetMenuButtonBoundingClientRectRes {
/**
* 小程序胶囊菜单按钮的宽度
*/
width: number
/**
* 小程序胶囊菜单按钮的高度
*/
height: number
/**
* 小程序胶囊菜单按钮的上边界坐标
*/
top: number
/**
* 小程序胶囊菜单按钮的右边界坐标
*/
right: number
/**
* 小程序胶囊菜单按钮的下边界坐标
*/
bottom: number
/**
* 小程序胶囊菜单按钮的左边界坐标
*/
left: number
/**
* 自定义按钮左边界坐标,单位 px以屏幕左上角为原点
*/
optionMenuLeft: number
}
}
}
interface wx {
requirePrivacyAuthorize: ({
success,
fail,
complete,
}: {
success: () => void
fail: () => void
complete: () => void
}) => void
}
export {}