Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+ [ios] merge all 0.9.x ios features to dev #1982

Merged
merged 432 commits into from
Dec 22, 2016
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
432 commits
Select commit Hold shift + click to select a range
9cddbe0
Merge pull request #1671 from kfeagle/ios-bugfix-clipboard
kfeagle Nov 21, 2016
e57fdf8
+ [ios] add default style backgroundcolor for all compnonet
kfeagle Nov 21, 2016
e278ed6
+ [ios] add feature that other component can modify default style
kfeagle Nov 21, 2016
f4f3616
+ [ios] update fetchResetStyles method
kfeagle Nov 21, 2016
fd4bf87
* [ios] add annotation for keepAlive callback
acton393 Nov 21, 2016
9f7e818
+ [ios] update text default color
kfeagle Nov 21, 2016
491df3d
* [ios] fix crash on events' copy
cxfeng1 Nov 22, 2016
08eb3a2
+ [ios] add textArea keyboard feature
kfeagle Nov 22, 2016
c44d2a4
+ [ios] add textArea keyboard feature
kfeagle Nov 22, 2016
5d2c9a9
Merge pull request #1683 from kfeagle/ios-bugfix-textarea-keyboard
kfeagle Nov 22, 2016
1f7e772
* [ios] text storage lock seems unnecessary here.
cxfeng1 Nov 22, 2016
1fbf766
Merge pull request #1660 from cxfeng1/ios-feature-20161208
acton393 Nov 22, 2016
d9a4054
* [ios] Guard against NaN values with WXPixelType
cxfeng1 Nov 22, 2016
356683f
+ [ios] feature default style
kfeagle Nov 22, 2016
2f21e41
Merge remote-tracking branch 'upstream/ios-feature-20161208' into ios…
cxfeng1 Nov 22, 2016
91060db
+ [ios] add completeURL method.
cxfeng1 Nov 22, 2016
af788b9
+ [ios] add default style
kfeagle Nov 23, 2016
4afd283
+ [ios] add default style
kfeagle Nov 23, 2016
50579c3
+ [ios] add default style
kfeagle Nov 23, 2016
505c3fd
+ [ios] fix textarea placeholder bug
kfeagle Nov 23, 2016
e703844
Merge pull request #1688 from kfeagle/ios-bugfix-textarea-placeholder
acton393 Nov 23, 2016
e35d50e
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Nov 23, 2016
d4db2c1
+ [ios] add feature default style
kfeagle Nov 23, 2016
699a1e3
+ [ios] add feature default style
kfeagle Nov 23, 2016
b77bc28
+ [ios] add feature default style
kfeagle Nov 23, 2016
edc11f0
+ [ios] add default style
kfeagle Nov 23, 2016
aa11023
+ [ios] add default style
kfeagle Nov 23, 2016
043987d
+ [ios] add feature default style
kfeagle Nov 23, 2016
57d6b7c
Merge pull request #1 from alibaba/ios-feature-20161208
bluebird78999 Nov 23, 2016
1c7dfec
* [ios] do not trigger display if frame has zero width or height, be…
cxfeng1 Nov 23, 2016
4832776
* [ios] update podfile source
acton393 Nov 23, 2016
cb74327
Merge pull request #2 from alibaba/ios-feature-20161208
bluebird78999 Nov 23, 2016
fbdb662
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Nov 23, 2016
dcfe40e
Revert "* [ios] update podfile source"
acton393 Nov 23, 2016
ed9495a
Merge branch 'ios-feature-default-style' of https://github.com/kfeagl…
kfeagle Nov 23, 2016
91054d4
Merge pull request #1667 from kfeagle/ios-feature-default-style
cxfeng1 Nov 23, 2016
9566400
* [ios] Add URL rewrite support for relative/file/local path
cxfeng1 Nov 23, 2016
fa1255d
+ [ios] keep root view frame when keyboard up
kfeagle Nov 23, 2016
211e497
Merge remote-tracking branch 'upstream/ios-feature-20161208' into ios…
cxfeng1 Nov 23, 2016
6657ef7
+ [ios] keyboard up bug fix
kfeagle Nov 23, 2016
a09bd4d
Merge pull request #1685 from cxfeng1/ios-feature-20161208
acton393 Nov 23, 2016
d4bb3ac
* [ios] adapter onclick coordinate
acton393 Nov 23, 2016
69e1e30
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Nov 23, 2016
b9ba3dd
+ [ios] delete no use code
kfeagle Nov 23, 2016
557d1fa
Merge pull request #1695 from kfeagle/ios-bugfix-nousecode
acton393 Nov 23, 2016
013f411
Merge remote-tracking branch 'upstream/ios-feature-20161208' into ios…
cxfeng1 Nov 23, 2016
461c244
* [ios] fix tests compile error
cxfeng1 Nov 23, 2016
ae3a915
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Nov 24, 2016
b3687b3
+ [ios] set origin root frame to CGRectNull
kfeagle Nov 24, 2016
6efdaba
+ [ios] add feature: freeze root view frame when keyboard pick up and…
kfeagle Nov 24, 2016
8f55a44
Merge pull request #1699 from kfeagle/ios-bugfix-textarea-keyboard
kfeagle Nov 24, 2016
846669a
+ [ios] add feature: freeze root view frame when keyboard pick up and…
kfeagle Nov 24, 2016
440759c
Merge pull request #1700 from kfeagle/ios-bugfix-resetrootview
cxfeng1 Nov 24, 2016
3788350
Merge remote-tracking branch 'upstream/ios-feature-20161208' into ios…
acton393 Nov 24, 2016
5c82427
* [ios] fix textinput component inputEvent fired repetitiously
acton393 Nov 24, 2016
f9ae798
Merge remote-tracking branch 'upstream/ios-feature-20161118' into ios…
cxfeng1 Nov 24, 2016
f8efcae
Merge pull request #1694 from acton393/ios-feature-20161208
acton393 Nov 24, 2016
7ecc264
+ [ios] add feature picker
kfeagle Nov 24, 2016
faab24c
+ [ios] define picker toolbar height
kfeagle Nov 24, 2016
a8b209b
Merge pull request #1707 from kfeagle/ios-feature-picker
kfeagle Nov 24, 2016
6709485
Merge pull request #1696 from cxfeng1/ios-feature-relative-path
acton393 Nov 24, 2016
b5f82da
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
bluebird78999 Nov 24, 2016
c1a90b7
+ [ios] add feature date picker
bluebird78999 Nov 24, 2016
e56eb76
* [ios] cancel simulator scanner
acton393 Nov 24, 2016
4bd661f
* [ios] support components load relative path resource
acton393 Nov 24, 2016
8808f44
* [ios] use urlRewrite maccro
acton393 Nov 25, 2016
7390d76
* [ios] update pospec
acton393 Nov 25, 2016
1c7fe37
Merge pull request #1720 from acton393/ios-feature-20161208
cxfeng1 Nov 25, 2016
dfd24dc
+ [ios] Add URL rewrite tests
cxfeng1 Nov 25, 2016
f7e72ea
* [ios] bugfix add register component type
acton393 Nov 25, 2016
c43e8f4
* [ios] remove unused code
acton393 Nov 25, 2016
82063d1
Merge pull request #1728 from acton393/ios-feature-20161208
cxfeng1 Nov 25, 2016
4efe866
* [ios] bug fix 1664, add resetLoadmore on scroller & list.
namedlock Nov 25, 2016
da671ae
Merge pull request #1731 from namedlock/ios-bugfix-resetLoadmore
cxfeng1 Nov 25, 2016
d3b3316
Merge pull request #1729 from cxfeng1/ios-feature-relative-path
acton393 Nov 26, 2016
fbce215
[ios] fix crash on async‘s callback
li6185377 Nov 28, 2016
649c208
1.targetQueue;2.unitTests
xiayun200825 Nov 28, 2016
9c42777
Merge remote-tracking branch 'upstream/ios-feature-20161208' into ios…
xiayun200825 Nov 28, 2016
6033c81
Merge pull request #1741 from li6185377/ios
acton393 Nov 28, 2016
b92e471
* [ios] fix compiler complain about warning
acton393 Nov 28, 2016
2d40927
Merge pull request #1742 from acton393/ios-feature-20161208
cxfeng1 Nov 28, 2016
1a228ef
Merge remote-tracking branch 'upstream/ios-feature-20161208' into ios…
xiayun200825 Nov 28, 2016
a99a1b8
* [ios] update sdk version to 0.9.4
acton393 Nov 28, 2016
8480427
Merge pull request #1744 from acton393/ios-feature-20161208
cxfeng1 Nov 28, 2016
37e478f
Merge remote-tracking branch 'upstream/ios-feature-20161208' into ios…
xiayun200825 Nov 28, 2016
aa7d16a
bugfix
xiayun200825 Nov 28, 2016
59bc69e
Merge pull request #1745 from xiayun200825/ios-feature-20161208
cxfeng1 Nov 28, 2016
99574bf
* [ios] fix testComponentFactory
acton393 Nov 28, 2016
f9dcaa5
+ [ios] fix feature datepicker. 1.Split datePick into pickDate and pi…
bluebird78999 Nov 28, 2016
5cab41a
+ [ios] fix feature datepicker. change Chinese annotation to English …
bluebird78999 Nov 28, 2016
f091be6
+ [ios] fix feature datepicker. format code style.
bluebird78999 Nov 28, 2016
17749fb
Merge pull request #1747 from acton393/ios-feature-20161208
cxfeng1 Nov 28, 2016
fa54604
Merge pull request #1748 from bluebird78999/ios-feature-20161208dateP…
kfeagle Nov 28, 2016
9817d0c
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Nov 28, 2016
82539e2
+ [ios] combine code to wxutility
kfeagle Nov 28, 2016
0a5df63
+ [ios] WXUtility date function description friendly
kfeagle Nov 28, 2016
e5d9ab4
Merge pull request #1750 from kfeagle/ios-bugfix-combine-code
acton393 Nov 28, 2016
f92a6d7
* [ios] bugfix component load rewriteurl
acton393 Nov 28, 2016
db604b2
+ [ios] bugfix picker
kfeagle Nov 28, 2016
31b08ad
* [ios] fix code style
kfeagle Nov 28, 2016
91cea40
Merge pull request #1753 from kfeagle/ios-feature-20161208
kfeagle Nov 28, 2016
b5dd35e
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Nov 28, 2016
15b035e
Merge pull request #1752 from acton393/ios-feature-20161208
cxfeng1 Nov 28, 2016
2d979a5
* [ios] bug fix picker
kfeagle Nov 29, 2016
27fe3f2
* [ios] bug fix picker rescue
kfeagle Nov 29, 2016
4101ded
Merge pull request #1761 from kfeagle/ios-bugfix-picker-reuse
bluebird78999 Nov 29, 2016
ecd0ef1
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
bluebird78999 Nov 29, 2016
13a2ee6
* [ios] bug fix picker :Improved code reuse logic
bluebird78999 Nov 29, 2016
190c54f
Merge pull request #1762 from bluebird78999/ios-feature-20161208dateP…
kfeagle Nov 29, 2016
4a61dea
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Nov 29, 2016
993f14a
+ [ios] chinese bug fix in texture
kfeagle Nov 29, 2016
4136b3a
Merge pull request #1771 from kfeagle/ios-bugfix-chinese-not-add
acton393 Nov 29, 2016
bb8cdb1
* [ios] fix bug height change to zero when style change
kfeagle Nov 29, 2016
a4d7ebe
* [ios] fix bug height change to zero when style change
kfeagle Nov 29, 2016
1ed428d
* [ios] fix bug height change to zero when style change
kfeagle Nov 29, 2016
aac7c01
* [ios] fix bug height change to zero when style change
kfeagle Nov 29, 2016
f8f056e
* [ios] fix bug default style
kfeagle Nov 29, 2016
969d421
* [ios] fix single picker but
kfeagle Nov 29, 2016
983fe00
* [ios] bug fix picker
kfeagle Nov 29, 2016
a4ae1f0
Merge pull request #1773 from kfeagle/ios-bugfix-picker-crash
kfeagle Nov 29, 2016
8c95801
Merge pull request #1772 from kfeagle/ios-bugfix-defaultstyle-height
cxfeng1 Nov 29, 2016
83fe995
* [ios] text set default value
kfeagle Nov 29, 2016
c61bcb3
* [ios] text set default value
kfeagle Nov 29, 2016
b5259fc
* [ios] change reset css not to private method
kfeagle Nov 30, 2016
2516216
Merge pull request #1774 from kfeagle/ios-bugfix-defaultstyle-height-…
acton393 Nov 30, 2016
d1c0932
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Nov 30, 2016
7c993d1
* [ios] fix bug:_updateAttributesOnComponentThread reset styles delete
kfeagle Nov 30, 2016
42a48ec
Merge pull request #1779 from kfeagle/ios-bugfix-resetstyles
acton393 Nov 30, 2016
cc2ab2d
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Nov 30, 2016
c3cf43d
* [iox] fix 1782.
namedlock Nov 30, 2016
0f5e34d
Merge pull request #1784 from namedlock/ios-bugfix-1782
namedlock Nov 30, 2016
1fda2ed
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Dec 1, 2016
d22836e
* [ios] fix bug: text area cursor auto go to end .reason: if attribut…
kfeagle Dec 1, 2016
45c6ce4
* [ios] updateAttributes will execute in main thread , the _updateAtt…
kfeagle Dec 1, 2016
cf77810
* [ios] texture and input keyboard animation not with component. chan…
kfeagle Dec 1, 2016
6b67a9e
* [ios] bugfix cancel url uft8-encode
acton393 Dec 1, 2016
9216121
Merge pull request #1789 from kfeagle/ios-bugfix-1208-input-keyboard
acton393 Dec 1, 2016
dfc9c6b
Merge pull request #1788 from kfeagle/ios-bugfix-1208-textarea-cursor
acton393 Dec 1, 2016
0569929
* [ios] bug fix: when style change ,text not set height, text's heigh…
kfeagle Dec 1, 2016
3a2d9fa
Merge remote-tracking branch 'upstream/ios-feature-20161208' into ios…
acton393 Dec 2, 2016
4c5d581
* [ios] bugfix iconfont load font , support woff
acton393 Dec 2, 2016
bd1f5dd
Merge pull request #1794 from acton393/ios-feature-20161208
acton393 Dec 2, 2016
0250453
Revert "* [ios] bugfix cancel url uft8-encode"
acton393 Dec 2, 2016
ca3d2f8
Merge pull request #1803 from alibaba/revert-1794-ios-feature-20161208
acton393 Dec 2, 2016
f724a78
Revert "Revert "* [ios] bugfix cancel url uft8-encode""
acton393 Dec 2, 2016
17b43df
* [ios] use absoluteString as key
acton393 Dec 2, 2016
050c7d5
+ [ios] when styles change ,height not set , text should show content…
kfeagle Dec 5, 2016
05b2959
* [ios] bug fix update code style
kfeagle Dec 5, 2016
a782e09
* [ios] bug fix: change resetTextCSSNodes to resetTextCSSNode
kfeagle Dec 5, 2016
b8b2737
* [ios] change resetTextCSSNodes to resetTextCSSNode
kfeagle Dec 5, 2016
7f7aca9
Merge pull request #1804 from acton393/ios-feature-20161208
kfeagle Dec 5, 2016
bfb4f23
* [ios] change default height to wxcomponent
kfeagle Dec 5, 2016
edd47e0
* [ios] bug fix setNeedsLayout in every elements. not in once. becaus…
kfeagle Dec 5, 2016
f1557a2
* [ios] image placeholder compatible
acton393 Dec 5, 2016
ff61ea2
* [ios] change default Process
kfeagle Dec 5, 2016
b0ed1eb
* [ios] update reset styles
kfeagle Dec 5, 2016
c803b91
+ [ios] delete blank
kfeagle Dec 5, 2016
7b09e76
* [ios] add reset styles
kfeagle Dec 5, 2016
0b4093b
* [ios] delete not use code
kfeagle Dec 5, 2016
53918cb
* [ios] update reset cssnode
kfeagle Dec 5, 2016
624d401
* [ios] change style to filterstyle
kfeagle Dec 5, 2016
023fb77
* [ios] change default value CSS_UNDEFINED to 0.0,because their value…
kfeagle Dec 6, 2016
3f751f8
Merge pull request #1811 from kfeagle/ios-bugfix-1208-textdefaultheight
cxfeng1 Dec 6, 2016
1b8cd27
Merge pull request #1814 from acton393/ios-feature-20161208
cxfeng1 Dec 6, 2016
c4ed750
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Dec 6, 2016
9c4a6c2
* [ios] set fontsize to default
kfeagle Dec 6, 2016
22b8ada
* [ios] update _fontsize default WX_TEXT_FONT_SIZE
kfeagle Dec 6, 2016
63fbff9
Merge pull request #1821 from kfeagle/ios-feature-20161208
cxfeng1 Dec 6, 2016
cfd0f1e
add targetqueue to clipboard
xiayun200825 Dec 6, 2016
104b197
Merge pull request #1825 from xiayun200825/ios-feature-20161208
cxfeng1 Dec 6, 2016
46ce451
* [ios] -1 will be converted wrong in 32bit devices, so we should con…
cxfeng1 Dec 7, 2016
bfd16a0
* [ios] force convert
cxfeng1 Dec 7, 2016
0d41b52
Merge pull request #1828 from cxfeng1/ios-feature-20161208
acton393 Dec 7, 2016
84dfd4c
* [ios] fix bug that setFrame incorrectly when transform has been set
cxfeng1 Dec 7, 2016
2ce9fb7
Merge pull request #1830 from cxfeng1/ios-feature-20161208
bluebird78999 Dec 7, 2016
f7c4c89
Merge branch 'ios-feature-20161208' into ios
cxfeng1-zz Dec 7, 2016
f578e26
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Dec 7, 2016
383f87f
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Dec 7, 2016
3f89585
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
bluebird78999 Dec 8, 2016
f438498
+ [example] fix 1:#1570, update navigator demo. substitute require(x…
bluebird78999 Dec 8, 2016
90b0d37
+ [example] fix Update slider-neighbor demo.
bluebird78999 Dec 8, 2016
9d7b46a
+ [ios] fix course bug and add focus for textarea
kfeagle Dec 8, 2016
328a8b0
* [ios] update view to input view and textview
kfeagle Dec 8, 2016
e9063be
* [ios] format code
kfeagle Dec 8, 2016
8027d92
Merge pull request #1840 from kfeagle/ios-bugfix-1208-textarea-cursor
acton393 Dec 8, 2016
d9b7fae
+ [example] add picker demo for playground
kfeagle Dec 8, 2016
068b50e
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Dec 8, 2016
10bed5a
Merge pull request #1842 from kfeagle/ios-feature-addpickerexample
boboning Dec 8, 2016
0350ceb
Merge pull request #1837 from bluebird78999/ios-feature-20161208-demo…
kfeagle Dec 8, 2016
1575c28
* [ios] add getComponentRect Example
acton393 Dec 9, 2016
04dfaa4
* [example] update the input demo
misakuo Dec 9, 2016
d714098
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
bluebird78999 Dec 9, 2016
0e63480
Merge pull request #1846 from misakuo/example-demo-input
fkysly Dec 9, 2016
ae69b7f
+ [ios] fix bug http://velocity.alibaba-inc.com/issues/3232. the ind…
bluebird78999 Dec 9, 2016
53e7365
Merge branch 'ios-feature-20161208' into ios-feature-20161208-demo-up…
bluebird78999 Dec 9, 2016
d3727d8
Merge pull request #1852 from bluebird78999/ios-feature-20161208-demo…
boboning Dec 9, 2016
b75de23
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Dec 12, 2016
ffa167c
* [example] update the input demo
misakuo Dec 12, 2016
f06020b
Merge pull request #1868 from misakuo/example-demo-input
kfeagle Dec 12, 2016
6c748e9
* [example] set autofocus after 1000ms
misakuo Dec 12, 2016
960fca1
Merge pull request #1869 from misakuo/example-demo-input
kfeagle Dec 12, 2016
7ad50eb
* [ios] update podfile and add an interface for weex handler.
boboning Dec 12, 2016
2d05322
* [ios] update podfile
boboning Dec 12, 2016
ec32a94
+ [ios] add custom environment entry.
cxfeng1 Dec 12, 2016
0cb2816
Merge pull request #1879 from cxfeng1/ios-feature-20161208
cxfeng1 Dec 12, 2016
d031f3e
* [ios] update podfile
boboning Dec 12, 2016
74d907f
Merge branch 'ios-feature-20161208' of https://github.com/alibaba/wee…
boboning Dec 12, 2016
495e366
* [ios] update podfile
boboning Dec 12, 2016
386508d
Merge pull request #1847 from acton393/ios-feature-20161208-getCompon…
xkli Dec 13, 2016
753798b
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
bluebird78999 Dec 13, 2016
129c694
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
kfeagle Dec 14, 2016
b841ec3
* [ios] update weex bundle js
boboning Dec 15, 2016
08f8c4a
* [ios] enable set neighbor-space for slider-neighbor
acton393 Dec 15, 2016
d4a3875
* [ios] allow native notification call JS callback
acton393 Dec 15, 2016
3da3359
* [ios] fix : Compatible non-standard url ("//a.b.example.png")
bluebird78999 Dec 15, 2016
27b4698
* [ios] use weexInstanceId to fireGlobalEvent
acton393 Dec 15, 2016
ba5ce24
Merge remote-tracking branch 'alibaba/ios-feature-20161208' into ios-…
bluebird78999 Dec 15, 2016
2123544
* [ios] in case that userInstanceId exist but the real instance has b…
acton393 Dec 15, 2016
6f21b6e
Merge pull request #1906 from acton393/ios-feature-20161208
cxfeng1 Dec 15, 2016
b7187cf
* [ios] add annotation about fireglobalEvent
acton393 Dec 15, 2016
9289909
Merge pull request #1911 from acton393/ios-feature-20161208
acton393 Dec 15, 2016
1bf873b
* [ios] update bundle js
boboning Dec 15, 2016
25b825d
Merge branch 'ios-feature-20161208' of https://github.com/alibaba/wee…
boboning Dec 15, 2016
c35efd5
Merge pull request #1910 from bluebird78999/ios-feature-20161208
boboning Dec 15, 2016
98fe119
* [ios] update bundle js
boboning Dec 16, 2016
ba963e7
* [ios] update bundle js
boboning Dec 16, 2016
090747e
* [ios] update playground version to 1.3
boboning Dec 16, 2016
a38f1b2
* [ios] texture bug fix : when input change . the text content send t…
kfeagle Dec 16, 2016
62f58ec
Merge pull request #1923 from kfeagle/ios-feature-20161208
acton393 Dec 16, 2016
b7809a4
Merge commit '62f58ec5653dcc459f59bffa90fb08bbfdde2504' into ios
cxfeng1-zz Dec 19, 2016
fc8d004
* [ios] stream body param compatible with JSON object
acton393 Dec 19, 2016
b532de6
Merge commit '2f52c3d98c4d8cc272a6efd1c03bb45a2ee9a4be' into ios
cxfeng1-zz Dec 19, 2016
691ec7f
Merge remote-tracking branch 'upstream/ios' into ios
acton393 Dec 19, 2016
c3d6159
* [ios] remove Observer when globalEvent module dealloced
acton393 Dec 19, 2016
b08e1bf
Merge pull request #1945 from acton393/ios
cxfeng1 Dec 19, 2016
5e249f8
* [ios] revert onclick coordinate convert
acton393 Dec 19, 2016
f78812d
Revert "* [ios] revert onclick coordinate convert"
acton393 Dec 20, 2016
fca8e86
* [ios] remove item dataSource when view unload in slider-neighbor
acton393 Dec 20, 2016
f0806da
Merge pull request #1954 from acton393/ios
cxfeng1 Dec 20, 2016
a542093
* [ios] bugfix globalEvent removeObserver don't need specify target
acton393 Dec 20, 2016
c968067
Merge pull request #1958 from acton393/ios
cxfeng1 Dec 20, 2016
d45ddbe
* [ios] fix attribute ‘sticky’ bug while scrolling up and down quickly
Dec 20, 2016
65b6b49
* [ios] fix attribute ‘sticky’ bug while scrolling up and down quickly
Dec 20, 2016
a780352
* [ios] fix bug that sticky component's absolutePosition will be comp…
cxfeng1 Dec 21, 2016
0eb6773
* [ios] SliderNeighbor component’s guesture-blocking bug when it is
Dec 21, 2016
9dc5f8c
Merge pull request #1972 from cxfeng1/ios-feature-yinfeng
acton393 Dec 21, 2016
b982bf3
add comment
Dec 21, 2016
7b30662
Merge pull request #1968 from ZhaoXigua/ios-bugfix-stickyAndSliderNei…
acton393 Dec 21, 2016
e06c687
Merge branch 'dev' into ios
cxfeng1 Dec 22, 2016
5eee06b
Merge commit 'f75cbe955dc0bcdf33a608af82ab18d3290b87c3' into ios
cxfeng1-zz Dec 22, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 30 additions & 17 deletions examples/component/input-demo.we
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,34 @@
</style>

<script>
require('weex-components');
module.exports = {
data: {
txtInput: '',
txtChange: ''
},
methods: {
onchange: function(event) {
this.txtChange = event.value;
console.log('onchange', event.value);
},
oninput: function(event) {
this.txtInput = event.value;
console.log('oninput', event.value);
}
}
};
require('weex-components');
module.exports = {
data: {
txtInput: '',
txtChange: '',
autofocus: false,
},
methods: {
ready : function () {
var self = this;
setTimeout(function () {
self.autofocus = true;
},1000);
},
onchange: function (event) {
this.txtChange = event.value;
console.log('onchange', event.value);
},
oninput: function (event) {
this.txtInput = event.value;
console.log('oninput', event.value);
},
focus: function () {
this.$el('input1').focus();
},
blur: function () {
this.$el('input1').blur();
}
}
};
</script>
127 changes: 68 additions & 59 deletions examples/component/navigator-demo.we
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<template>
<wxc-navpage data-role="none" height={{navBarHeight}} background-color="#ff5898" title={{title}} title-color="white" left-item-title="More" left-item-color="white" right-item-src="http://gtms02.alicdn.com/tps/i2/TB1ED7iMpXXXXXEXXXXWA_BHXXX-48-48.png">
<wxc-panel title="push a new page">
<wxc-button type="primary" size="small" value="push" onclick="push"></wxc-button>
</wxc-panel>
<wxc-panel title="pop to the last page">
<wxc-button type="success" size="small" value="pop" onclick="pop"></wxc-button>
</wxc-panel>
<wxc-panel title="push a new page">
<wxc-button type="primary" size="small" value="push" onclick="push"></wxc-button>
</wxc-panel>
<wxc-panel title="pop to the last page">
<wxc-button type="success" size="small" value="pop" onclick="pop"></wxc-button>
</wxc-panel>
</wxc-navpage>
</template>

<script>
require('weex-components');
var navigator = require('@weex-module/navigator');
var modal = require('@weex-module/modal');

module.exports = {
data: {
navBarHeight: 88,
Expand All @@ -19,80 +22,86 @@
baseURL: '',
},
created: function() {
this.$getConfig(function (config) {
var env = config.env;
if(env.platform == 'iOS'){
var scale = env.scale;
var deviceWidth = env.deviceWidth / scale;
this.navBarHeight = 64.0 * 750.0 / deviceWidth;
}
}.bind(this));
this.$getConfig(function (config) {
var env = config.env;
if(env.platform == 'iOS'){
var scale = env.scale;
var deviceWidth = env.deviceWidth / scale;
this.navBarHeight = 64.0 * 750.0 / deviceWidth;
}
}.bind(this));

this.$on('naviBar.rightItem.click',function(e){
duration = 2;
this.$call('modal', 'toast', {
'message': 'naviBar.rightItem.click',
'duration': duration
});
this.$on('naviBar.rightItem.click',function(e){
duration = 2;
modal.toast({
'message': 'naviBar.rightItem.click',
'duration': duration
});
});

this.$on('naviBar.leftItem.click',function(e){
duration = 2;
this.$call('modal', 'toast', {
'message': 'naviBar.leftItem.click',
'duration': duration
});
this.$on('naviBar.leftItem.click',function(e){
duration = 2;
modal.toast({
'message': 'naviBar.leftItem.click',
'duration': duration
});
});

var bundleUrl = this.$getConfig().bundleUrl;
bundleUrl = new String(bundleUrl);
console.log('hit', bundleUrl);
var nativeBase;
var isAndroidAssets = bundleUrl.indexOf('file://assets/') >= 0;
var bundleUrl = this.$getConfig().bundleUrl;
bundleUrl = new String(bundleUrl);
console.log('hit', bundleUrl);
var nativeBase;
var isAndroidAssets = bundleUrl.indexOf('file://assets/') >= 0;

var isiOSAssets = bundleUrl.indexOf('file:///') >= 0 && bundleUrl.indexOf('WeexDemo.app') > 0;
if (isAndroidAssets) {
nativeBase = 'file://assets/';
}
else if (isiOSAssets) {
// file:///var/mobile/Containers/Bundle/Application/{id}/WeexDemo.app/
// file:///Users/{user}/Library/Developer/CoreSimulator/Devices/{id}/data/Containers/Bundle/Application/{id}/WeexDemo.app/
nativeBase = bundleUrl.substring(0, bundleUrl.lastIndexOf('/') + 1);
}
else {
var host = 'localhost:12580';
var matches = /\/\/([^\/]+?)\//.exec(this.$getConfig().bundleUrl);
if (matches && matches.length >= 2) {
host = matches[1];
}
nativeBase = 'http://' + host + '/' + this.dir + '/build/';
}
var h5Base = './index.html?page=./' + this.dir + '/build/';
// in Native
var base = nativeBase;
if (typeof window === 'object') {
// in Browser or WebView
base = h5Base;
var isiOSAssets = bundleUrl.indexOf('file:///') >= 0 && bundleUrl.indexOf('WeexDemo.app') > 0;
if (isAndroidAssets) {
nativeBase = 'file://assets/';
}
else if (isiOSAssets) {
// file:///var/mobile/Containers/Bundle/Application/{id}/WeexDemo.app/
// file:///Users/{user}/Library/Developer/CoreSimulator/Devices/{id}/data/Containers/Bundle/Application/{id}/WeexDemo.app/
nativeBase = bundleUrl.substring(0, bundleUrl.lastIndexOf('/') + 1);
}
else {
var host = 'localhost:12580';
var matches = /\/\/([^\/]+?)\//.exec(this.$getConfig().bundleUrl);
if (matches && matches.length >= 2) {
host = matches[1];
}
this.baseURL = base;
nativeBase = 'http://' + host + '/' + this.dir + '/build/';
}
var h5Base = bundleUrl;
// in Native
var base = nativeBase;
if (typeof window == 'object') {
// in Browser or WebView
base = h5Base;
}
this.baseURL = base;
},
methods: {
push: function() {
var vm = this;
if (typeof window !== 'object') {
this.baseURL = this.baseURL + 'component/navigator-demo.js?test=1';
}
var params = {
'url': this.baseURL + 'component/navigator-demo.js?test=1',
'url': this.baseURL,
'animated' : 'true',
}
vm.$call('navigator','push',params, function () {});
navigator.push(params,function(){
});
},

pop: function() {
var vm = this;
var params = {
'animated' : 'true',
}
vm.$call('navigator','pop',params, function () {});
navigator.pop(params,function () {

});
},
}
}
</script>
</script>
Loading