wepy icon indicating copy to clipboard operation
wepy copied to clipboard

小程序组件化开发框架

Results 132 wepy issues
Sort by recently updated
recently updated
newest added

##### Checklist - [ ] `npm run test` passes - [ ] tests and/or benchmarks are included - [ ] cases or donate is changed or added - [ ]...

## Description ` npm install autoprefixer tailwindcss postcss ` wepy.config.js ` compilers: { plugins: { tailwindcss: {}, autoprefixer: {}, } } ` app.wpy文件中的无法编译 `@tailwind base; @tailwind components; @tailwind utilities;` ##...

```bash [15:59:06] ERR! dependence Message: [15:59:06] ERR! dependence Unrecognized import extension: /home/simon/WebstormProjects/wepy-demo/node_modules/mime-db/db.json [15:59:06] ERR! dependence File: [15:59:06] ERR! dependence /home/simon/WebstormProjects/wepy-demo/node_modules/mime-db/db.json [15:59:06] ERR! dependence Snapshot: [15:59:06] ERR! dependence 10 | */...

## Description [问题描述:站在其它人的角度尽可能清晰地、简洁地把问题描述清楚] 很好复现,有页面A和页面B,A 跳转 B,然后左上角返回,此时页面 B 应当 unload 了,此时用开发者工具的 memory 查看,发现内存中依然留存有两个 WepyPage 实例,如图。 ![image](https://user-images.githubusercontent.com/13449367/100979728-243c9180-357f-11eb-8f82-336aef1467f4.png) 再进入页面 B,再推出,重复多次操作,发现堆栈中的 wepyPage 和 wepyComponent 实例越来越多(内部的 watcher, dep 更多),内存占用也水涨船高。如图。 ![image](https://user-images.githubusercontent.com/13449367/100980202-da07e000-357f-11eb-9c82-7c365dd5987f.png) 真机中使用时,如果访问数据结构复杂的页面,在差一点的手机(如6S)上,稳定几次就会闪退。 查看 wepy 源码中发现没有 destroy...

比如我想有个接口是返回小程序全局导航样式的,需要在app.wpy的中配置,但是没法引入这个数据,有什么骚操作吗?

提交ISSUE前请确保已认真阅读以下内容 *Please read the following information carefully before you open an issue.* 在提交issue之前必须确认以下问题: *Please make sure you understand the following points:* * 必须是一个bug或者功能新增。 * *It must be a bug or...

##### Checklist - [ ] `npm run test` passes - [ ] tests and/or benchmarks are included - [ ] cases or donate is changed or added - [ ]...

Observer 之所以会引用 vm,是为了响应数据被修改时,把修改信息放入 vm.$dirty。 其实可以换个思路。把修改信息通过 notify 往上传给Watcher,由Watcher调用 vm.$dirty。 除了解决 GC 之外,还解决了另一个问题,响应数据和关联的第一个 vm 耦合。 举个例子,有一个 obj。 pageA.data.a = obj。pageB.data.b = obj。 obj.x = 123,只有页面 A 会更新,而页面 B 无法更新,因为 obj 引用的 vm...

2.0.x

##### Checklist - [x] `npm run test` passes - [x] tests and/or benchmarks are included - [x] cases or donate is changed or added - [x] documentation is changed or...

## Description wepy文件压缩插件,可压缩es6+/wxml/json/wxss/console/debugger * Platform: [开发者工具/iOS/Andriod/Web] * terser * pretty-data ## use ```javascript const WepyMiniPlugin = require('wepy-plugin-minify') plugins: [ WepyMiniPlugin() ] ``` ## result