Evan You
e0ca894dfb
test: improve coverage
7 years ago
Evan You
485e7403e4
test: make tests pass in IE
7 years ago
Evan You
1bf98b0a99
test: adjust transition tests for firefox
7 years ago
Evan You
606666d5a9
test: fix Object.prototype.watch related warnings
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
afa108238f
test: remove unecessary id in test case
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
Evan You
a1d1145c91
fix(v-model): should generate component-specific code for tags with "is" attribute
fix #6066
7 years ago
Evan You
8d66691ee2
fix(core): should preserve reactivity-ness of injected objects
fix #5913
7 years ago
Rahul Kadyan
306997eaf4
fix(core): add merge strategy for provide option ( #6025 )
Fix #6008
7 years ago
AchillesJ
254d85cfc4
fix(ref): refactor function registerRef ( #6039 )
fix #5997
7 years ago
wenlu.wang
d8d4ca6763
fix: transition group should work with dynamic name ( #6006 ) ( #6019 )
* fix: transition group should work with dynamic name (#6006 )
* fix: improve remove class
7 years ago
AchillesJ
eea0920f14
fix: improve Vue.set/Vue.delete API to support multi type of array index ( #5973 )
related #5884
8 years ago
AchillesJ
458030ae19
fix: v-bind object should not override props on scopedSlots ( #5995 )
* v-bind object should not override props on scopedSlots
* Update render-slot.js
8 years ago
wenlu.wang
049f3171a9
fix: support plugin with multi version vue ( #5985 )
close #5970
8 years ago
wenlu.wang
e4da249ab8
feat: add `comments` option to allow preserving comments in template ( #5951 )
close #5392
8 years ago
JK
51c595a7ce
feat(keep-alive): support Array for include and exclude ( #5956 )
* allow array index on keep-alive:include/exclude
* add Array in patternTypes
* fix flow type
* add flow type for include/exclude in watch
* add test case
8 years ago
wenlu.wang
3965e5053a
feat: support sync modifier for v-bind="object" ( #5943 )
close #5937
8 years ago
lyhper
00a3085628
test: correcting existing test case ( #5909 )
Fix the location of the test case
8 years ago
Herrington Darkholme
f6cd44c48b
fix: ensure cleanup in watcher.get ( #5988 )
watcher.get should always clean up observee stack in order to prevent memory leak. Also, non-user
defined watch should rethrow error.
fix #5975
8 years ago
Evan You
0cd6ef321b
feat: resolve ES module default when resolving async components
8 years ago
kingwl
213f136a6e
fix slot resolved incorrect with abstract component ( fix #5888 ) ( #5895 )
8 years ago
gebilaoxiong
2f628c3114
test:improve reserved props test
8 years ago
gebilaoxiong
f197d0dc45
test:add bind object test
8 years ago
王斐
8a2c5147ad
Be able to use string type index in array ( #5889 )
8 years ago
JK
080c387d49
Merge inject when extending a component ( #5827 )
* simply fix inject extends
* add comments for normalizeInject
* normalizeInect should return for non-array
* remove isArray branch in resolveInject
* add test case for extending injection
* Create options.js
* type of inject should be object now
* Revert "type of inject should be object now"
This reverts commit 8466a2866b868de00f755b80e5b3a3dc8bdc2d86.
8 years ago
Luke Bennett
9831b403cf
Add warnHandler to allow users to set a custom warn callback, similar to errorHandler ( #5883 )
8 years ago
Evan You
a18f879bb3
warn when methods conflict with data ( close #5832 )
8 years ago
Evan You
7b069453ed
fix Object.prototype.watch test case
8 years ago
strantr
48c0c1ceb5
Added check in merge strat for watches if child is already an array ( fix #5652 ) ( #5653 )
* Added check for if child is already an array
If the child is already an array it does not need to be wrapped again.
Fixing #5652
* Added unit test for watch merge strat
* Moved test to own describe
* Added test for merging multiple extends
8 years ago
Evan You
13bb643d6f
handle in-out transition with async components
8 years ago
Evan You
c3cdfcfa68
fix out-in transition for async components ( fix #5760 )
8 years ago
Evan You
b4dd0be4fc
improve .use() test cases and make it track installation based on constructor id
8 years ago
Chris Nicola
11b7d5dff2
Add handleError during event handling ( #5709 )
* Add handleError during event handling
Currently handleError is used to handle errors during lifecycle hooks.
This commit adds this functionality in to the event handling for
consistency.
* style tweak
8 years ago
Maciej Kasprzyk
b182ac4069
Warn when a inject has been not provided ( #5681 )
* warn when a inject has been not provided
* typo
* typo
* fix when undefined is provided
* use util hasOwn
* refactor
* test case
* Revert "test case"
This reverts commit 08f0a8b6c3837fc34ddd264712b8c30a05c165e5.
* test case
8 years ago
Maciej Kasprzyk
d6bd667e1a
Warn when component option should be an object, but is not ( #5605 ) ( #5642 )
* warn when component should be an object, but is not
* remarks
* remarks
* remarks
* rename to checkOptionType and guard production
* typo
* Update state.js
* Update test-object-option.js
8 years ago
AchillesJ
e3ffa109b3
make vm.$watch api consistent with watch option ( #5645 )
8 years ago
chengchao
aaad7334d9
improve scoped slot test case ( #5640 )
8 years ago
Evan You
e70f191b56
no need to test composition events on Android
8 years ago
Evan You
8d54aecdd0
async components: timeout should not trigger if already resolved ( fix #5635 )
8 years ago
Evan You
0ccefff794
support v-for on scoped slots ( fix #5615 )
8 years ago
laoxiong
f2bd882073
Fix: nested child elements can not be updated correctly, fix #5618 ( #5627 )
* fix:nested elements can not be updated correctly
* add tests
* ensure nestedIndex is always passed down
8 years ago
Eduardo San Martin Morote
d52a4991bd
Prevent unecessary input trigger with v-model ( #5589 )
* Prevent unecessary input trigger with v-model
Fix #5586
* Add test for compositionend on v-model + @input
* [skip ci] Rename tests for compositionend
8 years ago
laoxiong
3b426efe60
Fix when functional component render method retrun null ( fix #5536 ) ( #5539 )
* fix:create empty vnode when functional component return null
* add test
* use isDef
8 years ago
Evan You
cb0531c4fb
increase async delay for more test cases
8 years ago
Evan You
1096890827
increase async component test delay
8 years ago
Yusuke Otsuka
12b7122c16
fix mixin issue ( #5514 )
8 years ago
Eduardo San Martin Morote
380e988823
Allow slot names to be numbers ( #5481 )
Closes #5480
8 years ago
Evan You
7b8b0e48f7
restructure: remove entires directory
8 years ago
Evan You
c0da43d22f
fix incorrect compiler warning for $delete usage in templates ( fix #5464 )
8 years ago