# DebugEntrance 调试入口

调试入口,H5 默认不展示,小程序平台默认在 wx.getAccountInfoSync().miniProgram.envVersionrelease 时才展示。

# 引入

import PressDebugEntrance from '@tencent/press-plus/press-debug-entrance/press-debug-entrance';

export default {
  components: {
    PressDebugEntrance,
  }
}

# 代码演示

# 基础用法

<!-- #ifndef H5 -->
<PressDebugEntrance @click="clickDebug" />
<!-- #endif -->
export default {
  methods: {
     clickDebug() {
      wx.navigateTo({
        url: '/pages/press/debug/debug',
      });
    },
  }
}

# API

# Props

参数 说明 类型 默认值
bottom 距离底部距离,单位 px number 100
force-show 是否强制展示 boolean false

# Events

事件名 说明 参数
click 点击 -
横屏