Commit Graph

2589 Commits

Author SHA1 Message Date
Evan You 801f793625 feat(weex): WIP invoke recycle-list child component with backing instance 2017-12-18 20:57:18 -05:00
Evan You c1743a9dd7 test(weex): use done.fail for reporting errors 2017-12-18 20:57:18 -05:00
Evan You 0ee81b24b5 fix(weex): update recycle-list v-for transform 2017-12-18 20:57:18 -05:00
Hanks 3b32652aa6 feat(weex): update weex utils (#7115)
Add flow type annotations. Add the "registerComponentHook" and the "updateComponentData" api.
2017-12-18 20:57:18 -05:00
Evan You e5da1daeec test(weex): avoid v-else warning for recycle-list tests 2017-12-18 20:57:18 -05:00
Evan You bb8e8f44a9 test(weex): avoid @binding key warnings 2017-12-18 20:57:18 -05:00
Evan You 813409593e refactor(weex): declare __WEEX__ in flow typings 2017-12-18 20:57:18 -05:00
Hanks 46c8016562 test(weex): add more test cases for recycle-list (#7104) 2017-12-18 20:56:41 -05:00
Hanks 0bf0cbef76 revert(weex): remove the "receiveTasks" api and support component hook (#7053) 2017-12-18 20:56:41 -05:00
Hanks 0c11aa8add feat(weex): generate "@render" function for weex recycle-list (#6987)
* feat($compiler): support to generate @render function for weex recycle-list

Compile the template twice with different options for weex platform if
the “recyclable” flag is passed. Generate both normal render function
and “@render” function for recycle-list.

Adjust function names and arguments in recycle-list compiler.

* test(weex): add test cases for <recycle-list>
2017-12-18 20:55:58 -05:00
Evan You 305ef28574 chore: update package-lock.json 2017-12-18 20:55:58 -05:00
Hanks 2cb8ea3fee feat(weex): support compiling `v-on` in the weex native directive (#6892)
* refactor(compiler): move postTransforms to after children are processed

* feat(weex): recycle-list support WIP

* refactor: fix types

* feat(weex): split text into separate module

* feat($compiler): supports compiling v-bind to the weex native directive in recycle-list

* feat(compile): supports compiling v-if to the weex native directive

* feat($compiler): supports compiling v-for to the weex native directive

* feat($compiler): compile weex native directives in preTransformNode

* feat($compiler): supports compiling v-else-if and v-else to the weex native directive

* feat($event): support binding parameters on event handler within weex recycle-list

* refactor: mark weex-specific block

* feat(wip): recycle list template inline expand

* build: add weex factory dev script

* feat($compiler): support to compile "v-on" into weex native directive

* feat($compiler): adjust handler params to fit the weex native renderer

+ Filter the non-expression params and the `$event`.
+ Use `$event` as the last argument of handler.
2017-12-18 20:55:58 -05:00
Evan You ac999573ea feat(wip): recycle list template inline expand 2017-12-18 20:55:58 -05:00
Evan You b3cb9d9dd2 refactor: mark weex-specific block 2017-12-18 20:55:58 -05:00
Hanks acdc3c46e9 feat($event): support binding parameters on event handler within weex recycle-list 2017-12-18 20:55:57 -05:00
Hanks 2a1ce0d92c feat($compiler): supports compiling v-else-if and v-else to the weex native directive 2017-12-18 20:55:57 -05:00
Hanks 2d09ee3b8c feat($compiler): compile weex native directives in preTransformNode 2017-12-18 20:55:57 -05:00
Hanks 9bd1483803 feat($compiler): supports compiling v-for to the weex native directive 2017-12-18 20:55:57 -05:00
Hanks 7ad368ebb6 feat(compile): supports compiling v-if to the weex native directive 2017-12-18 20:55:57 -05:00
Hanks 8b893c13d6 feat($compiler): supports compiling v-bind to the weex native directive in recycle-list 2017-12-18 20:55:57 -05:00
Evan You c104cc582d feat(weex): split text into separate module 2017-12-18 20:55:57 -05:00
Evan You 08660e876d refactor: fix types 2017-12-18 20:55:57 -05:00
Evan You 5254ee31c4 feat(weex): recycle-list support WIP 2017-12-18 20:55:57 -05:00
Evan You 248803146c refactor(compiler): move postTransforms to after children are processed 2017-12-18 20:55:57 -05:00
Evan You 996eb00a0a feat: auto cache inline prop literals to avoid child re-render 2017-12-18 12:55:02 -05:00
Evan You f493715f39 chore: update sponsors/backers 2017-12-18 12:03:27 -05:00
toBeTheLight 8be29e2f19 refactor: return is better when inject has no value (#7258) 2017-12-16 15:47:44 -05:00
Evan You 3b7c05d0cc chore: update sponsor logo 2017-12-14 21:31:52 -05:00
Evan You d3c30a2e60 chore: update sponsor logo 2017-12-14 14:13:27 -05:00
Evan You 9c01684762 build: release 2.5.11 2017-12-14 11:56:02 -05:00
Evan You 36efc76256 build: build 2.5.11 2017-12-14 11:56:00 -05:00
Evan You 3f0c628e2c fix: avoid unnecessary lowercase coersion in component name validation
close #7237
2017-12-14 11:52:37 -05:00
Evan You 90ed48224e refactor: move prop rule validation to util/options.js 2017-12-14 11:50:20 -05:00
Alexander Sokolov d02bb37efb feat: warn misspelled keys on prop validation object (#7198) 2017-12-14 11:39:32 -05:00
Evan You 14f7015578 test: fix ssr test due to webpack asset emit order change 2017-12-12 19:16:17 -05:00
Evan You 531371b818 types: upgrade flow 2017-12-12 19:06:47 -05:00
Evan You 4e00688e4a build: update dev dependencies 2017-12-12 18:42:44 -05:00
Evan You a5924a5336 build: release 2.5.10 2017-12-12 18:16:40 -05:00
Evan You 711aaf71bb build: build 2.5.10 2017-12-12 18:16:39 -05:00
Evan You 8936b8d9c1 fix(ssr): properly handle errors in async component
fix #6778
2017-12-12 18:12:02 -05:00
Evan You 86e4d7566e test: add test case for #7223 2017-12-12 17:07:28 -05:00
Felix Bünemann 73a89bf9e5 fix(ssr): fix double escaping of ssrNode attribute values (#7224)
This fixes a double escaping of attribute values in the SSR optimizing
compiler by unescaping the value in `genAttrSegment` because literal
attribute values get escaped early during `processAttrs` before it is
known, if this attribute will be optimized to an _ssrNode string template,
which is escaped as well, causing the double escape.

fix #7223
2017-12-12 17:06:11 -05:00
laoxiong 023f171f58 fix(core): warn duplicate keys in all cases (#7200)
close #7199
2017-12-12 16:38:32 -05:00
Evan You 644274cbd3 fix: more consistent component naming warnings across the API
close #7212
2017-12-12 13:22:50 -05:00
Guillaume Chau bd4819e6cf fix: data() should be called with vm as first argument in mixins
fix #7191
2017-12-06 09:11:49 -05:00
Evan You 6eccd8e433 chore: update backers 2017-12-05 20:53:13 -05:00
Evan You 904d9c9a81 test: fix weex test case 2017-12-05 11:20:33 -05:00
Evan You 5875c7c490 fix: revert shared static tree cache to avoid memory leak
revert f0a66c5
fix #7184
2017-12-05 11:17:36 -05:00
Hanks 0da8bced77 fix(weex): send createFinish signal after root component mounted (#7154) 2017-12-04 09:58:46 -05:00
Evan You 7166c4e875 chore: update sponsors 2017-12-01 09:26:22 -05:00