uni-app
uni-app copied to clipboard
A cross-platform framework using Vue.js
原始问题见: https://github.com/dcloudio/uni-app/issues/3049#issuecomment-986598931_ 1. 升级 vite 版本至2.7.0-beta.11 2. vite.config.js 中配置: ```js resolve: { preserveSymlinks: true, }, ```
**问题描述** H5 使用 uni.postMessage 传递数据,百度小程序返回页面时触发错误,无法正常接收数据。 **系统信息:** - 发行平台:百度小程序 - uni-app版本:3.0.0-alpha-4000020231218001 **参考代码** ``` uni.postMessage({ data: { url: '链接'} }); ``` ``` function onPostMessage(e: any) { console.log(e) } ``` [](https://imgse.com/i/pF9b9Vx)
编译生成的app.wxss文件有问题好像多了`\?`,这个问题需要怎么解决  当我将下面的`v-if、v-else`代码注释,编译后没有问题 ``` 记住密码 ```
uniapp编译注册小程序全局组件功能缺陷: main.js中通过import 一个配置文件进来注册全局组件,H5可以,小程序不行; 猜测原因:H5是运行时注册全局,小程序是编译时注册,目前编译层面未考虑到import引用的情况  
ios 13pro机型下textarea固定在底部时,且上推页面设置为true时。 **获得焦点软键盘弹出后,上推页面有1s的延时问题**,导致软键盘已经弹出,textarea在底部被遮挡了1s。才被推上去。 安卓机型,软键盘弹出与上推页面时同步的没有延时,ios有这个问题 **如果将textarea换成input组件,其他事件样式不改,上推没有延时问题**。 望给与解答
运行微信小程序,编译不通过 HBuilderx版本:4.08 报错如下: error during build: 22:46:01.931 TypeError: Cannot read properties of undefined (reading 'vueOptions') 22:46:01.956 at Object. (D:\Program Files\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-mp-vite\dist\index.js:27:45) 22:46:01.976 at filterPlugin (file:///D:/Program%20Files/HBuilderX/plugins/uniapp-cli-vite/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:63940:22) 22:46:02.004 at Array.filter () 22:46:02.036 at...
示例代码 ` function getphonenumber(e){ console.log(e,'????') } function getuserextendinfo(e){ console.log(e,'????') } ` bug描述: 下面open-type="getPhoneNumber"可以 使用上面的open-type="getUserExtendInfo"就不行了 然后看快手编辑器 两个类型按钮的写法不一样 hbuilderx的打包代码里也没有搜到对getUserExtendInfo的处理 只搜到了getPhoneNumber
#4781 1. 当发行为混合分包的时候,uniapp 会调用 initCreateSubpackageApp 方法 2. initCreateSubpackageApp 里调用 parseApp ,并在 onLaunch 时候进行 initBaseInstance 3. initCreateSubpackageApp 里调用 parseApp 后同步执行 `vm.$.ctx.$scope = app;` 4. initBaseInstance 在 onLaunch 会进行 `if (this.$vm &&...