megalo icon indicating copy to clipboard operation
megalo copied to clipboard

基于 Vue 的小程序开发框架

Results 85 megalo issues
Sort by recently updated
recently updated
newest added

const matchPath = function (p) { const files = [path.resolve(`src/${p}.js`), path.resolve(`src/${p}.vue`),path.resolve(`src/${p}/index.js`),path.resolve(`src/${p}/index.vue`)] for(const filePath of files){ if(fs.existsSync(filePath)){ return filePath } } return false } 增加下文件夹下index 的文件的处理

Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. Commits 6370e90 Mark version 5.7.4 fbc15b1 More rigorously check surrogate pairs in regexp validator See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=acorn&package-manager=npm_and_yarn&previous-version=5.7.3&new-version=5.7.4)](https://help.github.com/articles/configuring-automated-security-fixes) Dependabot...

dependencies

![image](https://user-images.githubusercontent.com/4167554/71401548-29057f80-2665-11ea-844b-e76bd75ccc43.png) 以上代码事件不能响应, 通过调试发现,生成的页面结构 data-cid="[Object object]" 导致获取vm失败,实际上 data-cid 应该是0 把变量c重新命名以后data-cid正常,事件能正确响应了

## 代码与复现步骤 首先,基于 megalo-cli 创建一个新项目。 下载 `vant-weapp` 小程序组件,在 `src/main.js` 中引入 ``` js ... export default { config: { ... usingComponents: { 'van-cell': 'native/vant-weapp/cell/index', 'van-cell-group': 'native/vant-weapp/cell-group/index' } } } ``` 创建...

版本信息: "@megalo/api": "0.5.6", "@megalo/vhtml-plugin": "^0.1.2", "megalo": "0.10.1", 主要遇到的问题是: 页面级的mounted钩子会最先触发,而页面内组件的mounted钩子是按照vue官方的子先触发,父后触发的顺序,请问这个是megola的特性吗? 实例: A页面钩子 mounted:()=>{console.log(‘page A mounted’)} (A页面内组件) component B 钩子 mounted:()=>{console.log(‘component B mounted’)} 组件 component B 子组件C 钩子 mounted:()=>{console.log(‘component C mounted’)} 触发顺序...

使用 megalo 写的`v-for`多层嵌套,当外层循环和内层循环的 `:key` 重名时,会导致 `f_` 取到错误的值的情况,从而导致展示的数据有误。 出错的代码片段: ```html ``` 上面的代码vue打包为h5是 ok的,但是打包为微信小程序则数据出错。 看了一下megalo的源码, ![](http://cdn.dujuncheng.com/2019-10-08-112251.jpg) 上面代码中,对比右左侧的 `render` 函数, 两个 `index` 都是外层循环的索引,导致在运行时 `getHid` 方法中, 错误的计算了 `f_ ` 值为 `外层循环的index- 外层循环的index` , 然后app内维护的数据就变成了...

代码与复现步骤: 组件 Form 包含一个slot,组件 FormItem 包含一个slot 页面引入组件 Form ,并在 Form 的 slot 中插入组件 FormItem,组件 FormItem 的 slot 中放置文本内容“这是 FormItem Slot 的内容。”。 代码: [megalo-test.zip](https://github.com/kaola-fed/megalo/files/3505214/megalo-test.zip) 问题现象: 在微信小程序端正常显示“这是 FormItem Slot 的内容。”,但在支付宝小程序无法显示。 版本: @megalo/target...