chaucerling

Results 10 comments of chaucerling

@imyelo 有具体的 roadmap 吗?我最近用 [wxapp-boilerplate](https://github.com/cantonjs/wxapp-boilerplate),做多端的兼容,发现不少底层支持不一致的地方,很难在js和编译时处理 https://openclub.alipay.com/read.php?tid=11844&fid=65 https://openclub.alipay.com/read.php?tid=11879&fid=65 https://openclub.alipay.com/read.php?tid=12013&fid=65

这个转换工具我一开始做项目迁移时用过,转换效果不太理想,所以后面才采用 wxapp-boilerplate 的方式 ,具体代码见下面的issue,这里对api和wxml组件的key做了转换 https://github.com/cantonjs/wxapp-boilerplate/issues/41#issuecomment-430866633

后面自定义组件的兼容我也另外写了一个js文件对option进行转换 ``` // 微信 properties 可以用 setData 修改,this.triggerEvent('fn', data) 调用父组件的方法 // 支付宝 props 不能用 setData 修改,只能通过 this.props.fn(data) 调用父组件的方法更新 // wxml 的事件绑定用 @bindXXXX (@bind后的第一个字母大写) // 另外的解决方法是用全局的 model 管理父子组件的数据共享问题 function noop() {}...

an example to improve wxapp-boilerplate when working on alipay https://github.com/chaucerling/wxapp-boilerplate-alipay-example

```js //src/shim.js function noop() {} function paramsMap(options, maps = {}) { let params = {}; for (let key in options) { let myKey = maps.hasOwnProperty(key) ? maps[key] : key; params[myKey]...

我现在写了一个 `miniapp.js` 来封装一般的 api,在 `page.js` 里将 `wx` 或 `my` 替换为 `miniapp` 业务相关的 api,例如登录授权和支付要看具体流程另外封装 ```js // src/utils/miniapp.js // 整合各小程序的api,命名和调用参数以微信为标准 import promisify from 'utils/promisify.js'; function noop() {} function paramsMap(options, maps = {})...

我在开发支付宝小程序过程中遇到的一些兼容问题,然后在这个项目的基础上添加了一些功能,保证代码能以微信的标准做开发 写了一个example,如果这边考虑整合,我可以提交一个pr https://github.com/chaucerling/wxapp-boilerplate-alipay-example

需要改一下封装的组件 ``` js // components/f2.js import F2 from '@antv/f2'; function wrapEvent (e) { if (!e) return if (!e.preventDefault) { e.preventDefault = function () {} } return e } Component({ /**...

我是用 https://github.com/cantonjs/wxapp-boilerplate 这个手脚架做编译的,直接文件引入到原生的支付宝小程序是没这个问题的

https://github.com/THUDM/ChatGLM-6B/issues/6#issuecomment-1474260291 `int64` is supported on MacOS 13.3 Βeta, and you should also use the nightly build of pytorch. I tried to use mps backend to run on gpu, but it...