apache / incubator-weex-site Goto Github PK
View Code? Open in Web Editor NEWApache Weex (Incubating)
License: Apache License 2.0
Apache Weex (Incubating)
License: Apache License 2.0
https://weex.io/
还是希望能够讲解一下webview里面的页面如何调用原生的功能,譬如照相机
As Weex upgraded from NDK 16 to 18, the following document need to change:
The document for deviceInfo is needed
The document for sdk-console-log
is needed
The issue about the new website is listed below, feel free to append yours.
draft
branch is not merged into master
branchhttps://weex.incubator.apache.org/zh/docs/modules/stream.html#fetch
希望把所有参数的说明都加上,让我们weex开发者进一步了解该模块的特性。
https://weex.apache.org/zh/docs/components/web.html#%E4%BA%8B%E4%BB%B6
component how to set full screen ?
I try to use .WXEnvironment.deviceHeight/ this.WXEnvironment.scale
but it has mistake about height
web端modal的alert、confirm和prompt在显示的时候还可以进行回退操作,回退时modal弹出不会被关闭
https://weex.apache.org/zh/docs/components/refresh.html#%E7%A4%BA%E4%BE%8B
item是可点击组件,进入页面第一次滑动的时候,Android端会默认的进行一次下拉刷新
bug实例地址:http://dotwe.org/vue/707d344cf67f726c1312b5a161b702c7
The documentation says list component can have horizontal view, but this is not the case, using the same parameter of the scroller does not result in horizontal slider in web view
var navigator = weex.requireModule('navigator')
navigator.push({
url: 'http://dotwe.org/raw/dist/519962541fcf6acd911986357ad9c2ed.js',
animated: "true"
}, event => {
console.log('callback: ', event })
})
whats this console.log('callback: ', event })???
https://weex.apache.org/zh/docs/modules/websockets.html#onclose
the demo is
websocket.WebSocket('ws://echo.websocket.org','');
const self = this;
websocket.onopen = function(e) {
// 做一个延时,以免建连太快而抖动
setTimeout(function() {
self.canType = true;
}, 300);
}
websocket.onmessage = function(e) {
const length = self.messages.push({source: 'origin', message: e.data});
self.go2bottom(length);
}
websocket.onerror = function(e) {
modal.toast({
message: '网络错误,请稍后重试。',
duration: 3
});
}
The actual call is
websocket.WebSocket('ws://echo.websocket.org','');
const self = this;
websocket.onopen(function(e) {
// 做一个延时,以免建连太快而抖动
setTimeout(function() {
self.canType = true;
}, 300);
})
websocket.onmessage(function(e) {
const length = self.messages.push({source: 'origin', message: e.data});
self.go2bottom(length);
})
websocket.onerror(function(e) {
modal.toast({
message: '网络错误,请稍后重试。',
duration: 3
});
})
The document is to assign a function to onmessage, actually calling the message function and passing in the callback function.
Can someone answer my question? The underlying layer is socketSocket. Is there a problem with our underlying implementation?
http://weex.io/zh/docs/components/richtext.html#%E6%A0%B7%E5%BC%8F
a document problem
At - Summary - Notes:
' on iOS will have a color:blue style, and children of can not override this style. This only happens on iOS. '
Practice found on iOS set color style is effective (test device: iphone7 ios10 ), then, Is the document out of date or am I not fully testing it?
In addition, <richtext>
- Example . The binding event is itemclick
instead of onitemclick
in demo code.
类似是一个可以提供用来做全局的实例吗,文档没太看懂是可以用来做什么用
在iOS 渲染成功后放置几分钟再这里崩溃
`
GCanvas2dContext.cpp
void GCanvasContext::SendVertexBufferToGPU(const GLenum geometry_type)
{
if (mVertexBufferIndex == 0)
{
return;
}
glDrawArrays(geometry_type, 0, mVertexBufferIndex); // Crash Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
mVertexBufferIndex = 0;
}
`
另外是渲染完成后 ,Log会一直打是否正常?
input输入框在家正则不起作用,在input事件中写正则是改变了,但 是input输入框内容 没有改变,就是控制非数字和 非字母类的输入的正则
1、用weex studio生成的项目不能直接添加安卓项目,能不能添加ios项目未知,在执行weex platform add android指令时,会报错Error: ENOENT: no such file or directory, open 'D:\lava\weexPro\weex-five\plugins\plugins.json',但是用weex create [包名]指令生成的项目就不会报这个错,因为用这个指令生成的项目会包含plugins这个文件夹,当我把用指令生成的项目中的plugins文件夹复制到weex studio生成的项目中后,weex platform add android指令才能生效。
2、当我使用weex build android指令打包安卓apk时,需要填入appid,appname,SplashText,WeexBundle等信息,但是我视乎没有看到官网上有说明这些信息的作用是示例,有点懵,前两个还好理解,最后一个不知道怎么填,于是我随便填了一个进去了,打包也成功了,但是打包出来的apk传到手机上安装时却显示安装失败,起初是手机不允许安装未知应用,后来设置允许之后尝试了好几次,还是显示安装失败,不知道什么原因
希望官方能尽快回复上述问题,急等!!!!
https://weex.apache.org/zh/docs/modules/modal.html#prompt
In Built-in module modal, if too many words in toast or alert, modal can not be displayed properly
https://i.loli.net/2019/06/10/5cfdbae33d82037442.png
https://weex.apache.org/zh/docs/modules/modal.html#confirm
和
https://weex.apache.org/zh/docs/modules/modal.html#prompt
这两个样例中,不应该出现duration,而应该以okTitle或cancelTitle。
这两个都是模态对话框,不可能有duration参数的。
另,modal.confirm的callback若以布尔型结果,表示点击确定或取消为更好,这样代码通用性更强,逻辑上也更合理。
希望iOS对于WXSDKInstance使用多一些说明
在一个viewcontroller里如何针对这一个页面来接受前端调用Native的事件
建议:
WXSDKInstance和UI业务交互比较多 希望可以使用delegate的方式抛回调, 这样外界使用起来比较友好,代码结构更加好设计
支付也是一大块,建议支持淘宝,微信支付,提前做出插件。很重要。
https://weex.apache.org/zh/docs/components/video.html#%E7%A4%BA%E4%BE%8B
希望能出一个控制音量的参数。在video组件
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.