Commit Graph

469 Commits

Author SHA1 Message Date
Evan You 5ae63d9d2f warn v-for component lists without explicit keys 2017-01-24 16:04:14 -05:00
Evan You e7083d09f1 fix scoped slots with dynamic slot names + force update for child components with scoped slots (fix #4779) 2017-01-24 11:04:02 -05:00
Evan You 6cbee6b286 refactor: extract universal v-model codegen code and update weex v-model codegen 2017-01-23 12:06:17 -05:00
Evan You 90a455c95c fix replaced component root nodes losing parent scopeId (fix #4774) 2017-01-23 11:42:59 -05:00
Evan You 379695c912 complete coverage by testing v-model with extra listeners 2017-01-23 09:15:42 -05:00
Phan An b4115f71b2 Remove warnings about inline value attributes for v-model (closes #4733) (#4770) 2017-01-23 08:57:08 -05:00
Evan You 9d6c8ec268 feat: allow customization of component v-model prop/event via model option (close #4515) 2017-01-22 14:31:43 -05:00
Evan You 769c4dc203 ensure mutating extended constructor options does not affect parent (fix #4767) 2017-01-22 13:01:00 -05:00
chengchao e02fb1294d preserve the only whitespace child (#4760) 2017-01-20 09:42:54 -05:00
dhcmrlchtdj 938fa4efcc fix(sfc): component contains '<' only (#4753)
* fix(sfc): component contains '<' only

* update based on reviews
2017-01-19 22:23:20 -05:00
chengchao 9e38abca3e Support select multiple binding (fix #4755) (#4756)
* support select multiple binding

* improve select onchange handle

* update  style
2017-01-19 13:36:19 -05:00
Hanks 466e849c85 Be able to delete array item in `Vue.delete` (#4747)
* Support to delete array item in Vue.delete

* add test case for Vue.delete array

* add blank line between test cases
2017-01-19 10:41:32 -05:00
Evan You 55c87aa2c5 fix multi-select test case bug detection in IE9 2017-01-16 18:39:06 -05:00
Evan You c660917b29 improve event update algorithm (thanks to suggestions from @defcc) 2017-01-13 19:44:32 -05:00
Evan You fe6a26bb9c keep-alive: prune cache on include/exclude change, also avoid firing deactivate for already inactive components (fix #4633) 2017-01-13 18:54:35 -05:00
Evan You ee6ad6af0e fix v-on .once on multiple elements (fix #4655) 2017-01-13 12:14:23 -05:00
Evan You 1a1952ba81 handle single -> array & array -> single event handler patching (fix #4650) 2017-01-13 11:49:49 -05:00
Evan You 08bd81f8c0 fix #4530 with smaller change scope 2017-01-12 21:41:23 -05:00
Evan You ab0a2259e0 Revert "also bind static special attrs as props (fix #4530)"
This reverts commit b3ebfef91d.
2017-01-12 20:58:32 -05:00
Evan You 4e830ba3c3 Revert "Mark node with static props as static (#4662)"
This reverts commit 92657249dd.
2017-01-12 20:57:30 -05:00
Evan You bb426258a1 skip multiple select tests on Android 4.4 by detecting its bug 2017-01-12 19:36:07 -05:00
chengchao 92657249dd Mark node with static props as static (#4662)
* fix special static attrs as dom prop

* refactor
2017-01-10 17:38:32 -05:00
chengchao 8be3aa4859 update test case (#4653) 2017-01-05 11:17:28 -05:00
chengchao da955d1a4f Use 'click' event for checkbox and radio (fix #4620) (#4639)
* listen to click event for checkbox and radio.

* add test cases
2017-01-04 14:43:52 -05:00
Evan You 2ee516dfc8 ensure updated hook is called after children are updated as well (fix #4599) 2016-12-29 16:19:44 -05:00
Evan You 6b1755ae8c adjust hydration strategy (fix #4560) 2016-12-27 17:27:20 -05:00
松鹤 610fe31592 add unit test for dynamic with props (#4570)
add unit test for dynamic component with props
2016-12-27 16:09:09 -05:00
Evan You 0cbc96101d add new transition to-state classes 2016-12-27 15:03:48 -05:00
Evan You 02e2d99e27 Revert "ensure leave transitions and enter transitions are triggered in the same frame (fix #4510)"
This reverts commit 92ad0bd378.
2016-12-27 14:11:45 -05:00
Evan You 0bb2d4e2b6 Revert "fix enter transition flicker regression (fix #4576)"
This reverts commit 89987e8e2c.
2016-12-27 14:11:40 -05:00
Evan You 89987e8e2c fix enter transition flicker regression (fix #4576) 2016-12-27 10:16:45 -05:00
chengchao 66bf120f7a enforce to loop through children to get the correct normalize type (#4572) 2016-12-26 13:28:32 -05:00
Evan You 01f533db1a avoid duplicate whitespace nodes caused by comments 2016-12-23 20:08:51 -05:00
Evan You de220a635d ignore text nodes between v-if conditions (fix #4533) 2016-12-22 23:40:10 -05:00
Evan You b3ebfef91d also bind static special attrs as props (fix #4530) 2016-12-22 22:32:57 -05:00
chengchao 71cc0a575b Node maybe be removed v-html/v-text (#4548) 2016-12-22 21:17:40 -05:00
Evan You 0eb8cdc7f7 support v-bind object on scoped slots (fix #4529) 2016-12-21 23:27:21 -05:00
chengchao bc140de48b improve looseequal test case (#4542) 2016-12-21 22:35:52 -05:00
Evan You 92ad0bd378 ensure leave transitions and enter transitions are triggered in the same frame (fix #4510) 2016-12-21 22:03:50 -05:00
chengchao 56bfa1d291 update loose equal, check toString value for primitive type (#4528) 2016-12-21 16:22:54 -05:00
chengchao be9210fc78 update dom prop for option.value (fix #4494) (#4505)
* update dom prop for option.value

* refactor value update logic
2016-12-21 16:19:04 -05:00
Evan You a977642fac unbind v-show if no longer present during patch (fix #4484) 2016-12-21 16:08:34 -05:00
Eduardo San Martin Morote 974247fd8e Add missing string handler in v-for (#4499)
Fix #4497
2016-12-16 11:50:53 -05:00
Evan You 7f260e1185 test case for lifecycle hook events 2016-12-14 12:27:38 -05:00
Evan You f1c38674f2 use simple normalization for components, fix functional component multi-root node (fix #4472) 2016-12-14 12:22:54 -05:00
Evan You 6116bbf13a fix svg foreignObject regression (fix #4478) 2016-12-14 11:24:53 -05:00
Evan You 4cca50725a fix v-for on v-else branch regression (fix #4464) 2016-12-13 12:02:37 -05:00
chengchao 6918436bf8 Update normalize children (fix 4466) (#4468)
* omit boolean node

* add test case

* update boolean type

* update test case

* update test case
2016-12-13 11:52:25 -05:00
Evan You 850fb9fbcb fix number update spec in ie9 2016-12-12 21:59:07 -05:00
Evan You 2afa2601e0 ensure local assets is prioritized regardless of naming convention (fix #4434) 2016-12-12 21:30:52 -05:00