image.save
(#575).ArrayBuffer
between js and native.<recycle-list>
, both in Vue and Rax DSL.image
#547cell
#643box-shadow
style for Android 4.3 and higher #685recycle-list
compoent with hight performance and low memory cost #726list
in viewpager #601weex.supports
api for feature detections. #6053WXImageQuality.AUTO
#478scroll
event on horizontal scroller#494text
cannot be reset #493slider
#510list
#512waterfall
component (#438).list
#416waterfall
#424clearTimeout
and clearInterval
doesn't work when funId is greater than 127 #439scroller
now has pagingEnabled
attribute, which can enable paging
feature in native Pull Request#393line-height
feature in iOS. Pull Request#377 Pull Request#305needLayout
option in animation module operation after animation finished Pull Request#337 Pull Request#336list
component has new type of event for sticky
feature Pull Request#332Beside these, lots of crashes and bugs are fixed.Pull Request#441 Pull Request#413 Pull Request#403 Pull Request#373
C++ timer by lycool Discussed in https://lists.apache.org/thread.html/567c9b19d68ccf3e0d24c1467298ebcd4316ffa524c557a34c6c087f@%3Cdev.weex.apache.org%3E relate pull requests:[apache/incubator-weex/pull/228|https://github.com/apache/incubator-weex/pull/228], [apache/incubator-weex/pull/232|https://github.com/apache/incubator-weex/pull/232], [apache/incubator-weex/pull/221|https://github.com/apache/incubator-weex/pull/221]
Add scroller/list scroll event in html5 render android&iOS already have this feature in v0.11 https://github.com/apache/incubator-weex/commit/f50fba8647c8bb6ac522b1a4569a2a2269da1953
Enhance accessibility, new aria-label
& role
support [apache/incubator-weex/pull/149|https://github.com/apache/incubator-weex/pull/149]
Native input/textarea enhancement by kfeagle & misakuo support number
data type; support soft keyboard event
Picker module enhancement More picker options to customize picker dialog style(background color etc.). Related pull requests: [apache/incubator-weex/pull/234|https://github.com/apache/incubator-weex/pull/234], [apache/incubator-weex/pull/233|https://github.com/apache/incubator-weex/pull/233]
Android DOM module refactor Seperate module code by action, increasing the maintainability. [apache/incubator-weex/pull/104|https://github.com/apache/incubator-weex/pull/104]
.we
), which is inspired by Vue 1.0, is deprecated. Although it still works well in this release, we suggest to migrate it to Vue 2.0.New CSS support
text font-weight
font-weight
can set to [normal
|bold
] or 100-900.
gradient
like CSS3, now you can use gradient in Weex. For example:
background-image: linear-gradient(to right, blue, white);
Pseudo class
Currently, Weex supports 4 pseudo classes:active
, focus
, disabled
, enabled
.
New BroadcastChannel API Developers can use BroadcastChannel
API to implement inter-instance communication.
const Stack = new BroadcastChannel('Avengers') Stack.onmessage = function (event) { console.log(event.data) // in this case, it's "Hulk Smash !!!" } // in another instance const Hulk = new BroadcastChannel('Avengers') Hulk.postMessage("Hulk Smash !!!")
Image's onload
event add naturalHeight
and naturalWidthimage
to get the original size of image file.
Websocket Support
WebSockets is an advanced technology that makes it possible to open an interactive communication session between the user's h5/iOS/android and a server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply.
Read more about Weex's websocket.
Support synchronous method call Both module and component method can defined synchronous method exposed to JS runtime now. Means native will invoke these method in JS thread directly.
Support viewport
configuration Similar to W3C specification, Weex support set define viewport
in script tag:
<script type="config"> { "viewport": { "width": "device-width" } } </script>
getComponentRect
:var dom = require('@weex-module/dom'); dom.getComponentRect(this.$el('comp_id'), function(data){ if(data.result) console.log(data); });The
data
callback parameter contains a result
to tell if operation is success. And size
tell you the true data(bottom
/top
/left
/right
/width
/height
) of component.picker
module. We have ‘single-picker’,‘date-picker’ and ‘time-picker’ currently, and more common pickers are on the way.picker
picker
module directly:var picker = require('@weex-module/picker'); var self = this; picker.pickDate({ 'value':'2016-11-28', 'max':'2029-11-28', 'min':'2015-11-28' },function (ret) { var result = ret.result; if(result == 'success') { self.value = ret.data; } });
input
component also add ‘date’ and 'timetype to work with
picker` module internally:<input type="date" placeholder="select date" class="input" autofocus="false" value="" onchange="onchange" max = "2029-11-28" min = "2015-11-28" ></input>
width
and height
property.blur
and focus
method to manually control input
component to lose or get focus.width/height
animation in transitioncallAddElement
low-level API to make rendering fasterSet
polyfill to fix iOS7 memory leaksetProperty
replace reflection for better performancestatic
directive in default js framework to avoid unnecessary data-binding and take down the memory useimage
component's error page when src is invalidborder
,padding
,background-color
stylescrollto
apiposition:fixed
style can not be closedobject
paramssetIndex
apicallNative
signal to stop JSFM render after instance been destroyedweex-toolkit supports require and generator
Playground supports runtime performance viewer
Text
supports style text-overflow.Image
supports attribute resize.List
supports events appear
, disappear
, loadmore
and refresh.require('@weex-module/moduleName')
.