1.5.1 • Published 1 year ago
@wines/tools v1.5.1
@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
参数 | 类型 | 描述 | 默认值 |
---|---|---|---|
config | object | 配置项 | - |
config.appid | string | 打开其他小程序appid | - |
config.appPath | string | 打开其他小程序appPath | - |
config.appVersion | string | 打开其他小程序appVersion | - |
config.isTabbar | boolean | 打开当前小程序页面tabbar页 | false |
config.currPagePath | string | 打开当前小程指定页面 | - |
config.currHomePagePath | string | 打开当前小程首页 | - |