Home / v0.9.4
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2016-12-22 10.8 kB
v0.9.4.tar.gz 2016-12-22 10.2 MB
v0.9.4.zip 2016-12-22 12.6 MB
Totals: 3 Items   22.8 MB 0
  • New features
  • SDK

    • New API to get Component's size and position:

    Now you can get these data through getComponentRect:

    javascript 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. - A brand new picker module. We have 'single-picker','date-picker' and 'time-picker' currently, and more common pickers are on the way.
    img_1282

    There are two ways to use picker - Use picker module directly:

    javascript 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 withpicker` module internally:

    html <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 and height 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 and focus method to manually control input 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) [29b9d2] - * [android] bugfix duplicate destroy [0a59a8] - * [android] bugfix scroller offset transform twice [1db300] - * [android] fix appear event not trigger at first [85085a] - * [android] fix build [46bcf4] - * [android] fix callback parameter [16db52] - * [android] fix dialog window leaked (#55) [4c4780] - * [android] fix different behavior with iOS switch (#43) [7708a6] - * [android] fix dynamic inserted header not sticky display [83c063] - * [android] fix fireevent change key [9fb7d0] - * [android] fix flash when render video tag [a53e6b] - * [android] fix list not lazy [0be12b] - * [android] fix methods generate external-loader-component [ec6d41] - * [android] fix move child from index to index b within the same parent [72259e] - * [android] fix slider auto scroll [a8d740] - * [android] fix slider auto scroll after activity resume [bba3bd] - * [android] fix slider auto scroll after activity resume [e0d5e7] - * [android] fix stackoverflow in slider [c1f1d7] - * [android] fix sticky not display when scrolltoelement [22d163] - * [android] fix test [d756db] - * [android] fix textarea content vertical gravity [eecc32] - * [android] fix the invalid index of slider-neighbor (#62) [59fd57] - * [android] fix unittest [0b2a37] - * [android] fix unittest [0d2bd9] - * [android] fix unittest [4f120b] - * [android] fix unittest [6129cd] - * [android] fix wrong behavior with slider.index (cherry picked from commit c59ae39) [3028f3] - * [android] fix wrong behavior with slider.index [c59ae3] - * [android] move element bug fix [dfc643] - * [android] move element bug fix [f28fbd] - * [android] NPE fix [ee67a2] - * [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. * [626915] - * [android] slider: fix the IllegalStateException (#58) [0e9476] - * [android] v8 security bug fix [7a8f14] - * [html5] fix the conflict [ac8455] - * [html5] fix wwp config [0a2420] - * [html5] fixed lazyLoad filename [411919] - * [html5] fixed rollup build [03f241] - * [ios] 1. fix refresh location 2. cancel playground re-checkupdate [69f43d] - * [ios] bug fix 1664, add resetLoadmore on scroller & list. [4efe86] - * [ios] bug fix picker [2d979a] - * [ios] bug fix picker [983fe0] - * [ios] bug fix picker rescue [27fe3f] - * [ios] bug fix setNeedsLayout in every elements. not in once. because elements not contain css node only [edd47e] - * [ios] bug fix update code style [05b295] - * [ios] bug fix: change resetTextCSSNodes to resetTextCSSNode [a782e0] - * [ios] bug fix: refresh view layout error. [b0c4a4] - * [ios] bug fix:slider does not remove items synchronously when item view has been remove from superview. [f60997] - * [ios] bugfix add register component type [f7e72e] - * [ios] bugfix cancel url uft8-encode [6b67a9] - * [ios] bugfix cancel url uft8-encode [9a43cf] - * [ios] bugfix component load rewriteurl [f92a6d] - * [ios] bugfix globalEvent removeObserver don't need specify target [a54209] - * [ios] bugfix iconfont load font , support woff [4c5d58] - * [ios] cancel animation while handle input keyboard and fix bug when there are many input in a page [61f925] - * [ios] debug performance [ae3d30] - * [ios] fix [#1192], #FFF display error in iOS [5df5cd] - * [ios] fix [#1479], add handler for slider's items count less than or equal to 2 [d654ed] - * [ios] fix : Compatible non-standard url ("//a.b.example.png") [3da335] - * [ios] fix border's "Overlapping Curves" not recomputed when relayout [d302ad] - * [ios] fix bug datepicker no update and crash [eef448] - * [ios] fix bug debugTool unload [751b75] - * [ios] fix bug default style [f8f056] - * [ios] fix bug height change to zero when style change [1ed428] - * [ios] fix bug height change to zero when style change [a4d7eb] - * [ios] fix bug height change to zero when style change [aac7c0] - * [ios] fix bug height change to zero when style change [bb8cdb] - * [ios] fix bug that setFrame incorrectly when transform has been set [84dfd4] - * [ios] fix bug that sticky component's absolutePosition will be computed twice if the actual absolute position is {0,0} [a78035] - * [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 [d22836] - * [ios] fix bug:_updateAttributesOnComponentThread reset styles delete [7c993d] - * [ios] fix bundlejs [616f46] - * [ios] fix code style [31b08a] - * [ios] fix compiler complain about warning [b92e47] - * [ios] fix componentRect infomation [da0862] - * [ios] fix componentSize to get [41af99] - * [ios] fix crash [55f69b] - * [ios] fix crash on events' copy [491df3] - * [ios] fix datepicker bug when no value can not pop right picker [24441a] - * [ios] fix datepicker complie error [3bf2a0] - * [ios] fix datepicker complie error [a362ef] - * [ios] fix deprecated method of textarea [4d24f3] - * [ios] fix failed tests. [b5210b] - * [ios] fix input bind each other [feb1e7] - * [ios] fix ios7 crash [f02eff] - * [ios] fix issue about WXConvert 's UIColor method [add193] - * [ios] fix issue that iOS 7 will crash while alert still alive but instance has been destroyed [160a2d] - * [ios] fix issue that onappear/ondisappreat not work if binding to cell component. [63f6d7] - * [ios] fix multi keyboard notification [684d39] - * [ios] fix navigator parameter [b3117a] - * [ios] fix override bundleUrl [d77297] - * [ios] fix playground Podfile remove c header file include in WXUtility.h [e299fe] - * [ios] fix responderToSelector target [b0f550] - * [ios] fix rootComponent order [999c59] - * [ios] fix set navigator callback msg [a30b7e] - * [ios] fix single picker but [969d42] - * [ios] fix stream jsonp bug [b01834] - * [ios] fix testComponentFactory [99574b] - * [ios] fix tests compile error [461c24] - * [ios] fix text line-height and text-align conflict [b1a067] - * [ios] fix textinput component inputEvent fired repetitiously [5c8242] - * [ios] fix warning [b84642] - * [ios] fix warnning [e2533d] - * [ios] fix when options is nil and then bundleUrl will be nil [5f71a1] - * [ios] fix WXSDKInstance rootview bug [3b08a5] - * [ios] texture bug fix : when input change . the text content send to change [a38f1b] - * [jsfm] fix [#1447], fix binding event bug of components which have repeat attribute [421cc4] - * [jsfm] fix build [816212] - * [jsfm] fix condition judgment bug in insertBefore & insertAfter [9c182a] - * [jsfm] fix eslint [c0db18] - * [jsfm] fix eslint [f75cbe] - * [jsfm] fix format for lint [5faa86] - * [jsfm] fix the npm run build [d3e512] - * [jsfm] fixed [#1818] [a757de] - * [jsfm] fixed all cases for default framework (black-box) [c842ef] - * [jsfm] fixed all test scripts [95ba6a] - * [jsfm] fixed all unit test for new file structure [d4eb5c] - * [jsfm] fixed browser render file structure [ba7a40] - * [jsfm] fixed deps error [555ded] - * [jsfm] fixed html5 render for Vue [980d95] - * [jsfm] fixed lint and added case test [a3e20a] - * [jsfm] fixed rollup config [4a1c20] - * [jsfm] fixed runtime instance map management [b6e94f] - * [jsfm] fixed some vue examples [ca2a9c] - * [jsfm] fixed some vue examples [da2140] - * [jsfm] fixed url checker in vue example [679dc1] - * [jsfm] removed timer bug case and replaced to slot bug case [b6f2c8]

Source: README.md, updated 2016-12-22