1.5.1 • Published 1 year ago

@wines/tools v1.5.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

@wines/tools

调试工具

使用指南

在 page.json 中引入组件

{
  "navigationBarTitleText": "Tools",
  "usingComponents": {
    "wux-tools": "@wines/tools"
  }
}

示例

<wux-tools config="{{config}}">
	This is comized item
</wux-tools>
import './index.less';
Page({
  data: {
    config: {
      // --打开当前小程序页面
      isTabbar: false,
      currPagePath: '/pages/index/index',
      currHomePagePath: '/pages/index/index',
    },
  },
});

API

参数类型描述默认值
configobject配置项-
config.appidstring打开其他小程序appid-
config.appPathstring打开其他小程序appPath-
config.appVersionstring打开其他小程序appVersion-
config.isTabbarboolean打开当前小程序页面tabbar页false
config.currPagePathstring打开当前小程指定页面-
config.currHomePagePathstring打开当前小程首页-