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
datacallback parameter contains aresultto tell if operation is success. Andsizetell you the true data(bottom/top/left/right/width/height) of component. -
A brand new
pickermodule. 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
pickermodule 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; } });inputcomponent also add 'date' and 'timetype to work withpicker` 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
widthandheightproperty. -
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
blurandfocusmethod to manually controlinputcomponent 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) 29b9d29f5acd9677a64316b94d5c95f8c7f1a837
- * [android] bugfix duplicate destroy 0a59a85467671ddb982fbea6def810e6fa415137
- * [android] bugfix scroller offset transform twice 1db300d470951f543236e0b605d7b5a974b96430
- * [android] fix appear event not trigger at first 85085a394dd2bae5e397b889c01c1e1a3b8e6b46
- * [android] fix build 46bcf4298cd74c1d9706255143f95e0299ebdd15
- * [android] fix callback parameter 16db52ed031f7182f2159bc18c0c6e20e7c907f7
- * [android] fix dialog window leaked (#55) 4c478044355d6d552fb2f72935cd93867e5f0802
- * [android] fix different behavior with iOS switch (#43) 7708a6680e51ae6af9351724940778ce953538ed
- * [android] fix dynamic inserted header not sticky display 83c06383aa513061d144ec448ce0ccc25bde5484
- * [android] fix fireevent change key 9fb7d0f25d6b1bfe54fb63c9b73c53f8c927e4ad
- * [android] fix flash when render video tag a53e6b80b8fa67cce85307a2e5e93d9fb6c28784
- * [android] fix list not lazy 0be12be1194bea0c624791662e9f38aac4f0c3fd
- * [android] fix methods generate external-loader-component ec6d4136a29c1626470d3bbba90db3d9916c374e
- * [android] fix move child from index to index b within the same parent 72259e7a5734ed9a595de080d05ea8e1bf1e716e
- * [android] fix slider auto scroll a8d74031dbd526201c05433a08c8aac2047b7a66
- * [android] fix slider auto scroll after activity resume bba3bdea45bfb4030b10ea9a847a77463d1ab20a
- * [android] fix slider auto scroll after activity resume e0d5e79fc29e07b734d892073effc041a39c85c6
- * [android] fix stackoverflow in slider c1f1d702110f49ead4005fae50e4e63c5e72cfac
- * [android] fix sticky not display when scrolltoelement 22d163cb572e6b1c510c350a692a4265eb27e204
- * [android] fix test d756db8b4c26f8610076a13a0980d024a4e734ac
- * [android] fix textarea content vertical gravity eecc32c0a72ce82aa4e998cabb31308fc737fe95
- * [android] fix the invalid index of slider-neighbor (#62) 59fd5742a23908174de12804b1a0992d89663afd
- * [android] fix unittest 0b2a3778dfa39f17ae6346168b55a3418d85aa1b
- * [android] fix unittest 0d2bd982507820f5840e99ee12cd351ae6eb18e5
- * [android] fix unittest 4f120b6dbcb4433c8c320c310cd4de051163780c
- * [android] fix unittest 6129cd2ed06ce7acc0366b4c172bdf199d52e997
- * [android] fix wrong behavior with slider.index (cherry picked from commit c59ae39) 3028f32278a47603d1dc9f0f4314b44721069ac4
- * [android] fix wrong behavior with slider.index c59ae3977837be238b08b69388aec12eb4817716
- * [android] move element bug fix dfc643df7fb100737c98efa7f5932e75d07ca59f
- * [android] move element bug fix f28fbdd3ac57c157f52d82fa9473e8651b88023b
- * [android] NPE fix ee67a26c045cc351d317e805712bd6e50c4213cb
- * [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. * 626915b34bfb348947709c23e09a3dac7acd6962
- * [android] slider: fix the IllegalStateException (#58) 0e94762e1ebc240a5e8be6c131848b57bb48b1ea
- * [android] v8 security bug fix 7a8f14b78753fd02d59b126fffbd52996376ecc3
- * [html5] fix the conflict ac845591a65501c4eae70471502d8370f9983130
- * [html5] fix wwp config 0a2420a7202887a0222c0294c510267f139858c8
- * [html5] fixed lazyLoad filename 4119190c6b093f87bcb8ebd00f23bd939c307ad1
- * [html5] fixed rollup build 03f241ce3c7d8ac786b632f80aa22b94fdc00d34
- * [ios] 1. fix refresh location 2. cancel playground re-checkupdate 69f43da52ab22c7777d54bc2d9f45e95eb1d437f
- * [ios] bug fix 1664, add resetLoadmore on scroller & list. 4efe8662912ec5a8ce5fac8e09c2e061a21056a4
- * [ios] bug fix picker 2d979a58c4b37e93dda5b775d79a7a1ea2165c22
- * [ios] bug fix picker 983fe0069ff670b92b6fa7e3e6e29c5b2c768762
- * [ios] bug fix picker rescue 27fe3f23bb63072b766f75b69351464d163b331a
- * [ios] bug fix setNeedsLayout in every elements. not in once. because elements not contain css node only edd47e09ff453a26c7b176279d0ab84454d4914a
- * [ios] bug fix update code style 05b2959be0e0c35ad31b5b20b77f86f296786da2
- * [ios] bug fix: change resetTextCSSNodes to resetTextCSSNode a782e092b175a0a34db7cfccb74b5f157ddb3fd4
- * [ios] bug fix: refresh view layout error. b0c4a403b1e1dc8aa500c60efcef263b6f7fdd6f
- * [ios] bug fix:slider does not remove items synchronously when item view has been remove from superview. f60997fc3fe7bcfd220e159d61dbaae438e59131
- * [ios] bugfix add register component type f7e72ea289ce5f909fb9f6b61705e4f4b9930c53
- * [ios] bugfix cancel url uft8-encode 6b67a9e8a3f62849709d552bea0d947679164041
- * [ios] bugfix cancel url uft8-encode 9a43cfc9ecb9683562560a880d0f026fd28e93ea
- * [ios] bugfix component load rewriteurl f92a6d70e0f3db1eb14c4d90c7e30609e5175dff
- * [ios] bugfix globalEvent removeObserver don't need specify target a5420939bac4e21ef61b15710e2fa5e205403d96
- * [ios] bugfix iconfont load font , support woff 4c5d5812cb145d60270c5e59ae29def9be8fdcf3
- * [ios] cancel animation while handle input keyboard and fix bug when there are many input in a page 61f9259bf77c59916d3dbcdf62b12cd0161698b4
- * [ios] debug performance ae3d30802681990e79ce06fb4229b74f3c1d99c2
- * [ios] fix #1192, #FFF display error in iOS 5df5cd3739e79ec6e2fefbff66ba7ba2a411d637
- * [ios] fix #1479, add handler for slider's items count less than or equal to 2 d654ed7d926c2e20b3a34315348a87470171cdd1
- * [ios] fix : Compatible non-standard url ("//a.b.example.png") 3da33595d6e1a261b1c761811d1d8f7672ba3db5
- * [ios] fix border's "Overlapping Curves" not recomputed when relayout d302adf14568a32d2b635a64d1326172d9590893
- * [ios] fix bug datepicker no update and crash eef4483b3176a0f2e18673e26068a6ec53fef5ca
- * [ios] fix bug debugTool unload 751b752f72690954c49ffaf8b89702a0f93712f2
- * [ios] fix bug default style f8f056e9f067b4ce23731cb3114383705a5926ac
- * [ios] fix bug height change to zero when style change 1ed428dda5d1b4e2b360f216b1b96433479dad28
- * [ios] fix bug height change to zero when style change a4d7ebea5e288b753ee71571b149130149768c6b
- * [ios] fix bug height change to zero when style change aac7c013003c055e840674e5f61dba4d5073dd73
- * [ios] fix bug height change to zero when style change bb8cdb1f2f7ff6ad9b8ac4de23323ca9dea7e0d9
- * [ios] fix bug that setFrame incorrectly when transform has been set 84dfd4c7395ae728356b660a0b605c7b85353973
- * [ios] fix bug that sticky component's absolutePosition will be computed twice if the actual absolute position is {0,0} a780352d0a1a139ce3e276404d03bd3f9e2e6fd6
- * [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 d22836ef559809f566068bfe47be960a6d2e9faa
- * [ios] fix bug:_updateAttributesOnComponentThread reset styles delete 7c993d1952551ccfad2ad22f01ffa40ea9d12245
- * [ios] fix bundlejs 616f4653925c801406ca5fc80fd5f890c45c2b19
- * [ios] fix code style 31b08adf525559d9ce46f25eab349584d2f621a9
- * [ios] fix compiler complain about warning b92e471c1195f40f8167c8253ea0a909930a9880
- * [ios] fix componentRect infomation da08628c562dded860fe1558fb9dc187530223c9
- * [ios] fix componentSize to get 41af993f1ffd4e041083a0150607040b9e7cdef2
- * [ios] fix crash 55f69b502f0ff1f997dbfbe5238e35a4f123bc5b
- * [ios] fix crash on events' copy 491df3dca1fd47c1c564823c7f46527bf064c2dc
- * [ios] fix datepicker bug when no value can not pop right picker 24441ad6273e6093a9919b2699a4333b9d7147df
- * [ios] fix datepicker complie error 3bf2a0753cf47170144939d42173a668b22e27f5
- * [ios] fix datepicker complie error a362ef85918551bacac762ee660300e3108c1c5a
- * [ios] fix deprecated method of textarea 4d24f3ff7e792a1c97aa7ee31fbc7f0899c21efb
- * [ios] fix failed tests. b5210b244f2f2331be01c9afc4a8cde5b32ed0ee
- * [ios] fix input bind each other feb1e7c1ce959491fefed808e46e6291203ccbd7
- * [ios] fix ios7 crash f02eff33acab4a58a1a8d6e4d84cef44dcf09bf4
- * [ios] fix issue about WXConvert 's UIColor method add193b643c980e310866498dc081130ee287373
- * [ios] fix issue that iOS 7 will crash while alert still alive but instance has been destroyed 160a2dae54d6e656c980b9d008b15b0dc28aa4e1
- * [ios] fix issue that onappear/ondisappreat not work if binding to cell component. 63f6d7507731d2004e996f99bf859c228fc8b651
- * [ios] fix multi keyboard notification 684d3955de263cb39f8afc42c6ffa7340674c81a
- * [ios] fix navigator parameter b3117a9c482fb5491b5206413fa7607c356cf95a
- * [ios] fix override bundleUrl d7729716aea6652d325e4282ad6b42aaaf14f82c
- * [ios] fix playground Podfile remove c header file include in WXUtility.h e299feaf4076a5bf7140335ac6cc70d9d99a01da
- * [ios] fix responderToSelector target b0f550d6b94da6d9764863b328edfba6d730a75b
- * [ios] fix rootComponent order 999c59da3a1dc6c91f036b938c9963cc3cfe87c4
- * [ios] fix set navigator callback msg a30b7ed4978de3c91448a1c944431f19e942b515
- * [ios] fix single picker but 969d4212967c084a3477e3877052af224354f0e4
- * [ios] fix stream jsonp bug b018343b71eb7289bde326acf2f2fe1b124cfad8
- * [ios] fix testComponentFactory 99574bf0a1072dbfba547d74545783891b15cdff
- * [ios] fix tests compile error 461c24401e5fa1c37f9af25db35665f9f6b4a8da
- * [ios] fix text line-height and text-align conflict b1a0673020b7a271fb540ae723ca481aa18db7b4
- * [ios] fix textinput component inputEvent fired repetitiously 5c8242776f1410771a357735d6ae2a5b261b7d20
- * [ios] fix warning b8464248f61ad3ed9570730608e563f9c73e8ae6
- * [ios] fix warnning e2533d036daad60345284f276949dec06b5e0db9
- * [ios] fix when options is nil and then bundleUrl will be nil 5f71a1a2eb7442cf63d9732a6a2b3e2cb3765fa1
- * [ios] fix WXSDKInstance rootview bug 3b08a516ff788ca116329dc863ffcb9f66979881
- * [ios] texture bug fix : when input change . the text content send to change a38f1b2b8e05e149f09ffbb986268339a9042691
- * [jsfm] fix #1447, fix binding event bug of components which have repeat attribute 421cc439d1b8b5abbdbba58882f6c39fd8f862c9
- * [jsfm] fix build 8162124f72caf9360657ebc5a2750554d36f3659
- * [jsfm] fix condition judgment bug in insertBefore & insertAfter 9c182af615e0e597e21a44217a511126333499e9
- * [jsfm] fix eslint c0db1807d080a26c7344f4cc57e5834e98b06085
- * [jsfm] fix eslint f75cbe955dc0bcdf33a608af82ab18d3290b87c3
- * [jsfm] fix format for lint 5faa860804c1d9adb719a450b53da165ec523e83
- * [jsfm] fix the npm run build d3e5124add2dd6a42b1209fe11a8dc58cd536487
- * [jsfm] fixed #1818 a757deb7235792c2dd11684500651f717f43226a
- * [jsfm] fixed all cases for default framework (black-box) c842ef884e45c568f9ae55e67a066a5de2de15ed
- * [jsfm] fixed all test scripts 95ba6a1d6c4211d62d7d2a6693c8aa1e5b7d9607
- * [jsfm] fixed all unit test for new file structure d4eb5c97daa34dc53dd929eaf736dcf22e8873b6
- * [jsfm] fixed browser render file structure ba7a40bca9a5759101e821c4e043e437b848dcde
- * [jsfm] fixed deps error 555ded73f6c6ecb5a9c110f34ab34e596c1c36eb
- * [jsfm] fixed html5 render for Vue 980d952d71903545a0bfa7115dfeacd8c7c71ae5
- * [jsfm] fixed lint and added case test a3e20a8c78feda705b853f2036cc17bd256f7bb8
- * [jsfm] fixed rollup config 4a1c208cf33fb3e5649f8116133f97b003e78127
- * [jsfm] fixed runtime instance map management b6e94fa1d54bfdc541ae7c48d98f4dc01481660f
- * [jsfm] fixed some vue examples ca2a9c57365a67c9215f69c438c86440a28704ce
- * [jsfm] fixed some vue examples da21405b7fab3228bda0e0b2a74853a05c5eb69a
- * [jsfm] fixed url checker in vue example 679dc1cffbd0413b9b81624ac46f61473cdf756d
- * [jsfm] removed timer bug case and replaced to slot bug case b6f2c8390e3a97df948fc8d2699d15eb62582625