提交 dcaa9890 编写于 作者: 辛宝Otto's avatar 辛宝Otto 🥊

feat: 引入 event 测试方案

上级 dde0eba9
...@@ -14,12 +14,15 @@ type State = { ...@@ -14,12 +14,15 @@ type State = {
safeArea : SafeArea safeArea : SafeArea
// 设备像素比 // 设备像素比
devicePixelRatio : number devicePixelRatio : number
// 事件判断回调
eventCallbackNum: number
} }
export const state = reactive({ export const state = reactive({
lifeCycleNum: 0, lifeCycleNum: 0,
statusBarHeight: 0, statusBarHeight: 0,
devicePixelRatio: 1, devicePixelRatio: 1,
eventCallbackNum: 0,
safeArea: { safeArea: {
top: 0, top: 0,
right: 0, right: 0,
...@@ -34,6 +37,10 @@ export const setLifeCycleNum = (num : number) => { ...@@ -34,6 +37,10 @@ export const setLifeCycleNum = (num : number) => {
state.lifeCycleNum = num state.lifeCycleNum = num
} }
export const setEventCallbackNum = (num : number) => {
state.eventCallbackNum = num
}
export const setStatusBarHeight = (height : number) => { export const setStatusBarHeight = (height : number) => {
state.statusBarHeight = height state.statusBarHeight = height
} }
...@@ -45,3 +52,4 @@ export const setSafeArea = (value : SafeArea) => { ...@@ -45,3 +52,4 @@ export const setSafeArea = (value : SafeArea) => {
export const setDevicePixelRatio = (devicePixelRatio : number) => { export const setDevicePixelRatio = (devicePixelRatio : number) => {
state.devicePixelRatio = devicePixelRatio state.devicePixelRatio = devicePixelRatio
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册