v0.9.4
- New features
-
SDK
-
New API to get Component's size and position:
Now you can get these data through
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 aresult
to tell if operation is success. Andsize
tell you the true data(bottom
/top
/left
/right
/width
/height
) of component. -
A brand new
picker
module. We have 'single-picker','date-picker' and 'time-picker' currently, and more common pickers are on the way.
There are two ways to use
picker
- Use
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>
-
-
Support animation with
width
andheight
property. -
Support use empty value to reset css property to default value.
-
Components can expose methods too, like modules do. Developers use the same way as create module method to achieve that.
-
Add
blur
andfocus
method to manually controlinput
component to lose or get focus. -
Support relative URL, which will resolve real URL by bundle's URL.
-
Core javascript framework's unit test coverage is 100% now. we'll pay more attention to quality.
-
DevTool
- Support to check the node hierarchy in weex-devtool-extension and highlight the node if it exceeds an specified level.
- Support different refresh mode in devtools to reload the page or SDK automatically when source file updated.
- Improve quality in weex-devtools-android module
- Remove explicit dependency on okhttp and okhttp3 by reflection and proxy
- Improve demo application with less and refactored code
- Fix some crash caused by class up cast
- Fix reflection crash caused by complier optimization
- Fix "network on main thread" and stop screencast when disconnect
- Add weex-analyzer-android and weex-analyzer-ios which support the following on device directly:
- Inspect FPS/CPU/memory
- Inspect storage
- Display log information
- 3D viewer of the weex page
- Javascript error prompt
-
- Bugfix
- * [android] bug fix slider (#56) 29b9d29
- * [android] bugfix duplicate destroy 0a59a85
- * [android] bugfix scroller offset transform twice 1db300d
- * [android] fix appear event not trigger at first 85085a3
- * [android] fix build 46bcf42
- * [android] fix callback parameter 16db52e
- * [android] fix dialog window leaked (#55) 4c47804
- * [android] fix different behavior with iOS switch (#43) 7708a66
- * [android] fix dynamic inserted header not sticky display 83c0638
- * [android] fix fireevent change key 9fb7d0f
- * [android] fix flash when render video tag a53e6b8
- * [android] fix list not lazy 0be12be
- * [android] fix methods generate external-loader-component ec6d413
- * [android] fix move child from index to index b within the same parent 72259e7
- * [android] fix slider auto scroll a8d7403
- * [android] fix slider auto scroll after activity resume bba3bde
- * [android] fix slider auto scroll after activity resume e0d5e79
- * [android] fix stackoverflow in slider c1f1d70
- * [android] fix sticky not display when scrolltoelement 22d163c
- * [android] fix test d756db8
- * [android] fix textarea content vertical gravity eecc32c
- * [android] fix the invalid index of slider-neighbor (#62) 59fd574
- * [android] fix unittest 0b2a377
- * [android] fix unittest 0d2bd98
- * [android] fix unittest 4f120b6
- * [android] fix unittest 6129cd2
- * [android] fix wrong behavior with slider.index (cherry picked from commit c59ae39) 3028f32
- * [android] fix wrong behavior with slider.index c59ae39
- * [android] move element bug fix dfc643d
- * [android] move element bug fix f28fbdd
- * [android] NPE fix ee67a26
- * [android] Parent's "append=tree" will prevent child's transform style, this commit fix it by add the whole dom tree to animation set instead of the root dom. * 626915b
- * [android] slider: fix the IllegalStateException (#58) 0e94762
- * [android] v8 security bug fix 7a8f14b
- * [html5] fix the conflict ac84559
- * [html5] fix wwp config 0a2420a
- * [html5] fixed lazyLoad filename 4119190
- * [html5] fixed rollup build 03f241c
- * [ios] 1. fix refresh location 2. cancel playground re-checkupdate 69f43da
- * [ios] bug fix 1664, add resetLoadmore on scroller & list. 4efe866
- * [ios] bug fix picker 2d979a5
- * [ios] bug fix picker 983fe00
- * [ios] bug fix picker rescue 27fe3f2
- * [ios] bug fix setNeedsLayout in every elements. not in once. because elements not contain css node only edd47e0
- * [ios] bug fix update code style 05b2959
- * [ios] bug fix: change resetTextCSSNodes to resetTextCSSNode a782e09
- * [ios] bug fix: refresh view layout error. b0c4a40
- * [ios] bug fix:slider does not remove items synchronously when item view has been remove from superview. f60997f
- * [ios] bugfix add register component type f7e72ea
- * [ios] bugfix cancel url uft8-encode 6b67a9e
- * [ios] bugfix cancel url uft8-encode 9a43cfc
- * [ios] bugfix component load rewriteurl f92a6d7
- * [ios] bugfix globalEvent removeObserver don't need specify target a542093
- * [ios] bugfix iconfont load font , support woff 4c5d581
- * [ios] cancel animation while handle input keyboard and fix bug when there are many input in a page 61f9259
- * [ios] debug performance ae3d308
- * [ios] fix #1192, #FFF display error in iOS 5df5cd3
- * [ios] fix #1479, add handler for slider's items count less than or equal to 2 d654ed7
- * [ios] fix : Compatible non-standard url ("//a.b.example.png") 3da3359
- * [ios] fix border's "Overlapping Curves" not recomputed when relayout d302adf
- * [ios] fix bug datepicker no update and crash eef4483
- * [ios] fix bug debugTool unload 751b752
- * [ios] fix bug default style f8f056e
- * [ios] fix bug height change to zero when style change 1ed428d
- * [ios] fix bug height change to zero when style change a4d7ebe
- * [ios] fix bug height change to zero when style change aac7c01
- * [ios] fix bug height change to zero when style change bb8cdb1
- * [ios] fix bug that setFrame incorrectly when transform has been set 84dfd4c
- * [ios] fix bug that sticky component's absolutePosition will be computed twice if the actual absolute position is {0,0} a780352
- * [ios] fix bug: text area cursor auto go to end .reason: if attributes[@"value"] is exist. _updateAttributesOnMainThread will change textview text.the cursor go to end. * solution: save the textview selectedRange , when set textview.text ,correct it d22836e
- * [ios] fix bug:_updateAttributesOnComponentThread reset styles delete 7c993d1
- * [ios] fix bundlejs 616f465
- * [ios] fix code style 31b08ad
- * [ios] fix compiler complain about warning b92e471
- * [ios] fix componentRect infomation da08628
- * [ios] fix componentSize to get 41af993
- * [ios] fix crash 55f69b5
- * [ios] fix crash on events' copy 491df3d
- * [ios] fix datepicker bug when no value can not pop right picker 24441ad
- * [ios] fix datepicker complie error 3bf2a07
- * [ios] fix datepicker complie error a362ef8
- * [ios] fix deprecated method of textarea 4d24f3f
- * [ios] fix failed tests. b5210b2
- * [ios] fix input bind each other feb1e7c
- * [ios] fix ios7 crash f02eff3
- * [ios] fix issue about WXConvert 's UIColor method add193b
- * [ios] fix issue that iOS 7 will crash while alert still alive but instance has been destroyed 160a2da
- * [ios] fix issue that onappear/ondisappreat not work if binding to cell component. 63f6d75
- * [ios] fix multi keyboard notification 684d395
- * [ios] fix navigator parameter b3117a9
- * [ios] fix override bundleUrl d772971
- * [ios] fix playground Podfile remove c header file include in WXUtility.h e299fea
- * [ios] fix responderToSelector target b0f550d
- * [ios] fix rootComponent order 999c59d
- * [ios] fix set navigator callback msg a30b7ed
- * [ios] fix single picker but 969d421
- * [ios] fix stream jsonp bug b018343
- * [ios] fix testComponentFactory 99574bf
- * [ios] fix tests compile error 461c244
- * [ios] fix text line-height and text-align conflict b1a0673
- * [ios] fix textinput component inputEvent fired repetitiously 5c82427
- * [ios] fix warning b846424
- * [ios] fix warnning e2533d0
- * [ios] fix when options is nil and then bundleUrl will be nil 5f71a1a
- * [ios] fix WXSDKInstance rootview bug 3b08a51
- * [ios] texture bug fix : when input change . the text content send to change a38f1b2
- * [jsfm] fix #1447, fix binding event bug of components which have repeat attribute 421cc43
- * [jsfm] fix build 8162124
- * [jsfm] fix condition judgment bug in insertBefore & insertAfter 9c182af
- * [jsfm] fix eslint c0db180
- * [jsfm] fix eslint f75cbe9
- * [jsfm] fix format for lint 5faa860
- * [jsfm] fix the npm run build d3e5124
- * [jsfm] fixed #1818 a757deb
- * [jsfm] fixed all cases for default framework (black-box) c842ef8
- * [jsfm] fixed all test scripts 95ba6a1
- * [jsfm] fixed all unit test for new file structure d4eb5c9
- * [jsfm] fixed browser render file structure ba7a40b
- * [jsfm] fixed deps error 555ded7
- * [jsfm] fixed html5 render for Vue 980d952
- * [jsfm] fixed lint and added case test a3e20a8
- * [jsfm] fixed rollup config 4a1c208
- * [jsfm] fixed runtime instance map management b6e94fa
- * [jsfm] fixed some vue examples ca2a9c5
- * [jsfm] fixed some vue examples da21405
- * [jsfm] fixed url checker in vue example 679dc1c
- * [jsfm] removed timer bug case and replaced to slot bug case b6f2c83