Evan You
4987eeb3a7
feat: v-on automatic key inference
7 years ago
赵鑫晖
59dbd4a414
fix: ensure $attrs and $listeners are always objects ( #6441 )
fix #6263
7 years ago
Evan You
1f9e924971
feat(types): add declaration for inheritAttrs
7 years ago
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 .
7 years ago
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.
7 years ago
wenlu.wang
e4da249ab8
feat: add `comments` option to allow preserving comments in template ( #5951 )
close #5392
8 years ago
wenlu.wang
3965e5053a
feat: support sync modifier for v-bind="object" ( #5943 )
close #5937
8 years ago
gebilaoxiong
d33c1250ee
fix:when using object syntax in v-bind, special attribute have no effect
8 years ago
Evan You
c994e5cf48
upgrade flow
8 years ago
Evan You
55d8bfd6fd
support scopeId
8 years ago
Evan You
36bdf48550
handle dynamic class
8 years ago
Evan You
9fbca0dc79
remove unused, fix type
8 years ago
Evan You
85e24b3b31
progress
8 years ago
Evan You
26953f5cac
add semis to flow decls for better syntax highlighting
8 years ago
Evan You
af12d3ff7f
progress
8 years ago
Evan You
0ccefff794
support v-for on scoped slots ( fix #5615 )
8 years ago
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
8 years ago
Evan You
94d5e332d1
use lodash.template for ssr templates by default
8 years ago
Evan You
a7965292f4
comments for flow type nodes
8 years ago
Evan You
1073035164
fix activate hook call timing (fix vue-router#1212)
8 years ago
Evan You
a12d32a56d
fix style diffing on cached/slot elements ( fix #5318 )
8 years ago
Evan You
fae6b87786
refactor: pull in vue-ssr-html-stream and refactor into generic template renderer
8 years ago
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
8 years ago
Evan You
12870be9e0
expose component v-model expression on passed data
8 years ago
kazuya kawaguchi
0922b1d8aa
improve set/delete API ( #5050 )
8 years ago
Bojan
1b38a261c5
support multi event ( #5056 )
8 years ago
Evan You
3b7b597044
cover Symbol for provide/inject typing
8 years ago
Evan You
e7a2510e63
Revert "[WIP] Support for ref callback ( #4807 )"
This reverts commit acec8db2c4
.
8 years ago
Evan You
f66028b9cd
introduce tip + make v-for component key warning a tip + refactor web compiler entry
8 years ago
Evan You
4cf49828c0
properly handle cosntructor options modification before global mixin application ( fix #4976 )
8 years ago
Evan You
73c5614740
update types for new features
8 years ago
Evan You
689c107de4
feat: config.performance
8 years ago
Evan You
1861ee9570
feat: renderError
8 years ago
Evan You
9ccffe72db
invoke activate/deactivate recursively + refactor ( close #4242 )
8 years ago
kingwl
8bb6c2bdaa
support $on multi event ( #4860 )
8 years ago
Rahul Kadyan
acec8db2c4
[WIP] Support for ref callback ( #4807 )
* ✨ Tests for ref callback
* ✨ Support for ref callback
* Add test of inline ref callback
* adjust ref implementation strategy
* fix patch ref registration
* fix tests
* fix flow
* fix test for phantomjs
8 years ago
Evan You
406352baba
move computed properties definition to component prototype when possible
8 years ago
Evan You
87ffd0da9f
tweaks
8 years ago
yantene
22f9560c92
add $props
8 years ago
Evan You
1c79592524
feat: implement template option for vue-server-renderer
8 years ago
Evan You
e71d70dcb3
tweak build + upgrade flow
8 years ago
Evan You
068095579b
support source map in bundle renderer
8 years ago
Evan You
e7083d09f1
fix scoped slots with dynamic slot names + force update for child components with scoped slots ( fix #4779 )
8 years ago
Evan You
9d6c8ec268
feat: allow customization of component v-model prop/event via model option ( close #4515 )
8 years ago
Evan You
08bd81f8c0
fix #4530 with smaller change scope
8 years ago
Evan You
4e830ba3c3
Revert "Mark node with static props as static ( #4662 )"
This reverts commit 92657249dd
.
8 years ago
Evan You
30258a9a60
rename vnode.child -> vnode.componentInstance
8 years ago
chengchao
92657249dd
Mark node with static props as static ( #4662 )
* fix special static attrs as dom prop
* refactor
8 years ago
Evan You
dacd0cf582
createElement flow type correction
8 years ago
Evan You
7ffa77f3df
optimize instance hook event lookup
8 years ago