-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Taro做快应用,从@tarojs/components引入web-view后无法跳转src中的url #3451
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
没有人处理问题吗? |
另外注意到你的 Taro 版本是 1.3.0,最新版 1.3.5 修复了很多快应用的问题,建议更新一下。 |
我是要从@tarojs/components 引用WebView,实际上写为import { WebView } from '@tarojs/components 时 为什么会从@tarojs/components-qa中引,而@tarojs/components-qa中是没有webview的 |
有的,19 小时以前,抱歉应该是 1.3.6 新增的。 taro/packages/taro-components-qa/src/components/webview/index.ux Lines 1 to 56 in 2890b8c
|
|
@Garfield550 components-qa里是webview,但是编译@tarojs\components里的WebView会解析为components-qa\web-view,找不到文件 @tarojs/cli: 1.3.6 |
建议提一个新的 Issue,这个问题和这个 Issue 标题与描述不一致。 |
@Masterzyy 问题修复了。 你就按照 @tarojs/components 这样写。 这个是多端标准组件库的一个入口路径。 在编译成各端的时候, 会找到对应平台的组件。 快应用理所应当是在 @tarojs/components-qa 这里引入。 缺少的 webview 已经补齐。下个版本即可。 |
问题描述:
Taro做快应用,从@tarojs/components引入web-view后无法跳转src中的url
复现步骤 [复现问题的步骤]
①:import { WebView } from '@tarojs/components/';(此处components后添加‘/’,是为了避免从@tarojs/components-qa中引用)从@tarojs/components中引入web-view,指定src中的url
②:无法跳转到web-view中src的地址。
报错信息
系统信息
Taro 版本 [v1.3.0]
Node.js 版本 [v10.16.0]
报错平台 [快应用]
补充信息:
从@tarojs/components中引入web-view时会默认从@tarojs/components-qa中引用web-view
报错信息如图:
The text was updated successfully, but these errors were encountered: