-
1.7.X 版本是可以引用并正常打包通过 npm 引入的 wpy 组件的。
2.0 可以通过 npm 引入原生组件、但引入 wpy 组件却不能正常打包(具体现象是不能在输出目录中创建 `$vendor` 目录)。
示例代码如下:
``` JavaScript
/*
@wepy/cli: 2.0.0-alpha.25
@wepy/core: 2.0.0-alpha.…
-
## Description
使用wepy写的自定义组件, 想把它变成全局的,也就是放在usingComponents里面,但是一直提示组件不存在
## Environment
* Platform: [开发者工具/iOS/Andriod/Web]
* Platform version: [对应工具或者iOS或者Andriod的版本号]
* Wechat ver…
-
## Description
.user用户自定义组件事件不支持Mixin内的方法
## Environment
* Platform: [开发者工具]
* Platform version: 1.02.1811150
* wepy-cli version: 1.7.3
* wepy version: 1.7.2
## Reproduce
…
Licoy updated
4 years ago
-
## Description
WePY2.0 在连续的两个页面内调引入使用同一个组件,第二个页面报错说:上一个实例将覆盖重复的引用“
## Environment
* wepy-cli version: ^1.7.3
* wepy version: ^2.0.2
## Reproduce
[如何重现问题]
在页面A调用的时候一切正常
进入页面B…
-
升级到wepy 2.1.0以后,项目报错,删掉该行ok
```
Function("r", "regeneratorRuntime = r")(runtime);
```
应该是这个原因,https://github.com/facebook/regenerator/issues/373
-
## Environment
* Node version: v10.10.0
### Observed Results
```
$ wepy init empty empty
(node:46848) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usabilit…
-
问题描述:
当多次路由到同一个页面时,该页面上的变量会相互污染,而不是每次打开都是一个全新的初始状态
仔细研究了这个问题,可以分成两个问题。
1. 全局污染
在 xxx.js 中定义的全局变量(即和 `Page({...})` 同级),多次打开同一个页面会共用一个。
例如页面如果这样打开 A?id=1 => B => A?id=2, 在 A 页面定义了全局变量 `const a …
-
async onLoad () {
let res = await wepy.getSystemInfo()
this.sliderLeft = (res.windowWidth / this.tabs.length - sliderWidth) / 2
this.sliderOffset = res.windowWidth / this.tabs.le…
-
编译的时候终端一直报错 ^ Please use space for indentation.
环境: wepy 2.0.0-alpha.2
### Observed Results
[实际表现]
![image](https://user-images.githubusercontent.com/36948546/70388842-39c1be80-19f2-11…
-