Commit Graph

191 Commits

Author SHA1 Message Date
Guillaume Chau
d7a533d6f8 feat(ssr): ssrPrefetch option + context.rendered hook (#9017) 2018-12-20 15:26:12 -05:00
狼族小狈
c711ec189a fix(types): support chain call for Vue.use and Vue.mixin (#8595) 2018-11-30 23:27:24 -05:00
Alexander
1abb944a71 chore(typo): no dots at the end of the comments (#8087) 2018-04-26 14:14:16 +02:00
Evan You
f43ce3a5d8
fix: invoke component node create hooks before insertion (#7823)
fix #7531
2018-03-23 19:03:17 -04:00
Evan You
9b22d86ab3 fix: install ssr helpers for functional context during SSR
close #7443, ref nuxt/nuxt.js#2565
2018-03-08 09:51:03 -05:00
Hanks
f319bef532 chore: update weex flow type annotations (#7322) 2017-12-26 21:33:48 -05:00
Hanks
472a2896bd feat(weex): adjust framework entry APIs and add flow annotations (#7272)
1. Remove the "init", "reset", "getRoot" and "receiveTasks" APIs, which
are already implemented in the new version of "weex-js-runtime".
2. Use "createInstanceContext" instead of "createInstance". Vue only
needs to prepare the instance context and no longer execute the js
code. The js code will be executed by native.
3. Add flow type declarations and annotations.
2017-12-19 15:47:53 -05:00
Evan You
aac76349e7 Revert "feat: auto cache inline prop literals to avoid child re-render"
This reverts commit 996eb00a0a.
2017-12-19 14:03:39 -05:00
Hanks
661bfe552e feat(weex): partially support lifecycles of virtual component (#7242)
Update the `_init` and `_update` logic to partially support lifecycles.
Add test cases for testing the lifecycle hooks and data update.
2017-12-18 20:58:53 -05:00
Hanks
b8d33ecd9a feat(weex): WIP implement virtual component (#7165) 2017-12-18 20:57:43 -05:00
Evan You
b06d09f274 types: adjust weex flow types 2017-12-18 20:57:18 -05:00
Evan You
5c2ce0017f feat(weex): WIP fix flow + handle errors in recycle-list template render 2017-12-18 20:57:18 -05:00
Evan You
801f793625 feat(weex): WIP invoke recycle-list child component with backing instance 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
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
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
Hanks
7ad368ebb6 feat(compile): supports compiling v-if to the weex native directive 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
531371b818 types: upgrade flow 2017-12-12 19:06:47 -05:00
Evan You
7e46683470 refactor: simplify internal component creation 2017-11-28 15:10:08 -05:00
Evan You
f5cd29e1d8 fix: init _staticTrees to avoid runtime reference warning
fix #7075
2017-11-17 09:45:03 -05:00
Evan You
cfd73c2386 fix: handle encoded tabs and newlines in attributes for Chrome a[href] and IE/Edge
fix #6828, fix #6916
2017-10-26 16:01:12 +02:00
Evan You
bb1d888d44 refactor: remove no longer needed _staticTrees property 2017-10-11 12:04:07 -04:00
Evan You
f3fe012d54 feat(v-model): support dynamic input type binding 2017-10-07 23:18:11 -04:00
Evan You
96472be6f6 types: add types for new features and adjust tests 2017-10-06 17:41:54 -04:00
Evan You
4987eeb3a7 feat: v-on automatic key inference 2017-10-04 14:59:59 -04:00
赵鑫晖
59dbd4a414 fix: ensure $attrs and $listeners are always objects (#6441)
fix #6263
2017-08-29 22:59:39 +02:00
Evan You
1f9e924971 feat(types): add declaration for inheritAttrs 2017-07-11 22:43:31 +08:00
Evan You
61187596b9 feat(core): $attrs, $listeners & inheritAttrs option
New features intended for easier creation of higher-order components.

- New instance properties: $attrs & $listeners. these are essentially aliases
  of $vnode.data.attrs and $vnode.data.on, but are reactive.

- New component option: inheritAttrs. Turns off the default behavior where
  parent scope non-prop bindings are automatically inherited on component root
  as attributes.

close #5983.
2017-07-11 22:38:09 +08:00
Evan You
11614d63b7 feat(v-on): support v-on object syntax with no arguments
Note this does not support modifiers and is meant to be used for handling
events proxying in higher-order-components.
2017-07-11 16:36:04 +08:00
wenlu.wang
e4da249ab8 feat: add comments option to allow preserving comments in template (#5951)
close #5392
2017-06-30 08:56:23 +08:00
wenlu.wang
3965e5053a feat: support sync modifier for v-bind="object" (#5943)
close #5937
2017-06-30 08:46:54 +08:00
gebilaoxiong
d33c1250ee fix:when using object syntax in v-bind, special attribute have no effect 2017-06-17 02:02:37 +08:00
Evan You
c994e5cf48 upgrade flow 2017-06-13 17:42:16 +08:00
Evan You
55d8bfd6fd support scopeId 2017-05-18 16:33:55 +08:00
Evan You
36bdf48550 handle dynamic class 2017-05-17 23:46:14 +08:00
Evan You
9fbca0dc79 remove unused, fix type 2017-05-17 14:40:06 +08:00
Evan You
85e24b3b31 progress 2017-05-16 17:52:28 +08:00
Evan You
26953f5cac add semis to flow decls for better syntax highlighting 2017-05-15 16:01:30 +08:00
Evan You
af12d3ff7f progress 2017-05-15 14:14:49 +08:00
Evan You
0ccefff794 support v-for on scoped slots (fix #5615) 2017-05-09 23:22:55 +08:00
Herrington Darkholme
bb7c543fc2 fix #5539: improve isDef type definition (#5549)
* fix #5539: improve flow type coverage

* skip unnecessary object creation

* use flow internal syntax to enable predicate type
2017-04-29 14:24:06 +08:00
Evan You
94d5e332d1 use lodash.template for ssr templates by default 2017-04-19 11:43:53 +08:00
Evan You
a7965292f4 comments for flow type nodes 2017-04-07 16:10:36 +08:00
Evan You
1073035164 fix activate hook call timing (fix vue-router#1212) 2017-04-07 15:30:37 +08:00
Evan You
a12d32a56d fix style diffing on cached/slot elements (fix #5318) 2017-04-03 14:13:57 +08:00
Evan You
fae6b87786 refactor: pull in vue-ssr-html-stream and refactor into generic template renderer 2017-03-29 10:14:28 +08:00
Hanks
29445153e3 [weex] Support unary and left open tags (#5052)
* [weex] Support unary and left open tags

* [weex] add test case for unary tag

* [compiler] move canBeLeftOpenTag to compiler option
2017-03-15 09:56:25 +08:00