Commit Graph

199 Commits

Author SHA1 Message Date
Evan You
dbc0582587 feat: dynamic directive arguments for v-on, v-bind and custom directives (#9373) 2019-01-25 23:22:44 -05:00
Evan You
f219bedae8
perf: improve scoped slots change detection accuracy (#9371)
Ensure that state mutations that only affect parent scope only trigger parent update and does not affect child components with only scoped slots.
2019-01-25 22:34:06 -05:00
Evan You
b0f2f830e6 chore: fix flow 2019-01-18 16:46:49 -05:00
Evan You
6a2994e8f0 revert: feat: support scoped-slot usage with $slot
This reverts commit 7988a5541c.
2019-01-11 23:04:04 -05:00
Evan You
fe2b27ffb9 types: typing for Vue.observable 2019-01-10 22:44:55 -05:00
Evan You
7988a5541c feat: support scoped-slot usage with $slot 2019-01-07 22:26:44 -05:00
Evan You
e1abedb9e6 feat(compiler): add whitespace option, deprecate preserveWhitespace option
close #9208
2018-12-26 14:12:34 -05:00
Jason
b31a1aa887 feat(compiler): output source range for compiler errors (#7127)
ref #6338
2018-12-21 21:58:32 -05:00
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