问题标签 [weex]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
79 浏览

npm - Weex - 为什么我不能启动项目

我对 weex 有问题。我想开始学习使用 weex 编写一个 Vue 应用程序,但是我遇到了一个问题,因为我无法下载包。我有一个空文件夹,从 npm 文档中输入命令 install weex-toolkit -g,但它会给我这样的错误。

图片错误: https ://cdn.discordapp.com/attachments/424284796068429824/431948032897187841/unknown.png

0 投票
1 回答
90 浏览

android-studio - Weex - 我有安卓文件,下一步是什么

我开始玩weex,我有一个问题,因为我不知道下一步该怎么做。使用命令-weex platform add android,我创建了一个android文件夹

在此处输入图像描述

在我正在写的文档中下载 android studio 并使用命令 - weex run android 但我不工作,nwm 我做错了什么或者我没有安装正确的工具。

我想创建一个手机可以识别并安装应用程序的文件

0 投票
1 回答
35 浏览

weex - 当我更新 weexpack 时,它说 weex sha1 checksnum 失败

我是第一次使用weex做混合APP,我已经

但是当我使用 weex 时

它提示我我应该更新我的 weexpack 并且我这样做了

但它说错误

我现在该怎么办

0 投票
1 回答
213 浏览

richtext - Weex 自定义原生 android 组件富文本高度问题

我正在通过扩展 WXComponent 在 Weex 中创建 Richtext(WXTextView.java) 视图组件。由于 weex android sdk 中没有 Richtext 组件,并且 weex 文本组件中也不支持“v-html”标签。

当我的 Richtext 元素包含在 div 中时,该元素不可见。我必须手动将高度添加到其父 div 以使其可见。

给父母高度并不能解决我的目的,因为文本长度是动态的。我想让这种行为就像支持富文本的默认 weex 文本组件一样。

WXTextView.java

}

0 投票
2 回答
162 浏览

css - create table using weex

I need to build an app that has a table. I tried using html <table> tags to build a table. Even though it shows the table as i require when i run using npm run serve when i build an apk and run it on my android device the output is messed up. Does anyone know how to build a table in weex. And does anyone have any good documentations or tutorials regarding weex. thanks SCAN QR code with weex playground app to see output

0 投票
0 回答
209 浏览

vue.js - Weex 中的 Vue 路由器

我想在weex中使用vue路由器,但是现在出现了一个问题:“No component config for name:router-view, use default config”。谢谢。

路由器.js

你好世界.vue

索引.vue

0 投票
1 回答
51 浏览

for-loop - 如何在 weex 中使用 for 循环?像 for (var x = 0; x < n; x++){} 。用例是:我想渲染一个盒子 n 次

给定的是用例:-我想渲染一个盒子 n 次。如何在 weex 模板中实现从 0 到 n 的 for 循环。

0 投票
1 回答
102 浏览

richtext - WEEX - iOS 上的富文本组件

我正在通过扩展 WXComponent 在 Weex 中创建 Richtext(WXTextView.swift) 视图组件。富文本组件目前在 weex iOS sdk 中不可用。

这是我的 WXRichText.swift 示例代码

和JS代码

正如预期的那样,它没有通过 Weex 在本机端显示任何文本。

0 投票
1 回答
246 浏览

vue.js - Weex - vs

I am developing an application in Weex using Vue.js.

I am trying to build a list component and I was going through the document and in there, there are component which I can use.

  1. <list>
  2. <recycle-list>

I couldn't figure out the difference between two as under the hood how do they differ? It could be inffered that <recycle-list is more efficient than using a <list but the reason is no where mentioned.

Also <recyle-list> does not work on web but it works fine on mobile application. What is the reasoning behind that?

0 投票
1 回答
95 浏览

android - 如何注册 Android onBackPressed 按下?

项目结构

我是 android 的新手,鉴于 java 代码应该被粘贴到 android 目录中的某个地方,应该将代码段保存在哪里。其中 android 目录具有在 android 中启动应用程序所需的所有文件。

在安卓中

在 weex

Android 目录中的可疑文件:

可疑文件 进一步阅读请参考weex 控件 Android 返回键解决方案