Commit Graph

1122 Commits

Author SHA1 Message Date
Evan You 538ad20d8a fix(directive): should invoke unbind & inserted on inner component root element change
fix #6513
2017-09-05 12:59:57 -04:00
Evan You a744497534 fix: ensure outer bindings on nested HOC are properly re-applied on inner root element change 2017-09-05 12:59:57 -04:00
Evan You 230c6ae782 fix(vdom): avoid diff de-opt when both head/tail are different
fix #6502
2017-09-04 12:51:11 -04:00
Nick Messing f76d16ed95 fix(vdom): Don't replace input for text-like type change (#6344)
fix #6313
2017-09-01 18:49:39 -04:00
Evan You 8fc6bc8827 chore: warn methods that conflict with internals
close #6312
2017-09-01 18:34:10 -04:00
Nick Messing d6e6f1deb1 fix(v-model): Allow using array value with array v-model in checkboxes (#6220)
fix #6219
2017-09-01 17:35:41 -04:00
Evan You 06741f3266 fix: computed properties should not be cached during SSR
ref: vuejs/vuex#877
2017-09-01 12:51:29 -04:00
Evan You db1d047499 chore: remove unnecessary log in tests 2017-09-01 12:19:58 -04:00
Evan You 321866a47d test: use headless chrome for dev 2017-08-30 16:43:16 +02:00
Evan You 986a669e8f chore: trim trailing whitespace 2017-08-30 16:42:30 +02:00
Evan You 0529040c17 fix: deep clone slot vnodes on re-render
fix #6372
2017-08-30 00:47:10 +02:00
Evan You 172dbf9faf fix(ssr): should also escape static text content
fix #6345
2017-08-29 23:32:28 +02:00
赵鑫晖 59dbd4a414 fix: ensure $attrs and $listeners are always objects (#6441)
fix #6263
2017-08-29 22:59:39 +02:00
JK a43d66743b fix(transition): consider async placeholder as valid child to return (#6369)
fix #6256
2017-08-29 22:09:20 +02:00
JK d4d553ced7 fix(v-model): avoid unnecessary change event on select options change
fix #6193
via #6194
2017-08-29 18:59:54 +02:00
Evan You 5091e2c984 fix(ssr): address possible xss vector 2017-08-29 16:42:54 +02:00
Hanks a8146c0c10 feat(weex): remove __weex_require_module__ api 2017-08-29 16:35:39 +02:00
Hanks 9bded22a83 test(weex richtext): rename the file path of richtext test 2017-08-29 16:35:09 +02:00
Hanks 3e4d926336 feat(weex richtext): treat richtext as runtime components 2017-08-29 16:35:09 +02:00
Hanks d627161a91 feat(weex richtext): support events and add more test cases 2017-08-29 16:35:09 +02:00
Hanks b60964256c feat(weex richtext): support to parse styles and classList 2017-08-29 16:35:09 +02:00
Hanks 0ea2bb4fb4 feat(weex): support nested components in richtext 2017-08-29 16:35:09 +02:00
Hanks 09302a7211 test(weex): add test cases for richtext component 2017-08-29 16:35:09 +02:00
Nick Messing 3d14e855e4 fix: checkbox v-model="array" ignore false-value (#6180)
close #6178
2017-07-21 00:00:22 -04:00
Evan You 303655116f fix(provide/inject): merge provide properly from mixins
close #6175
2017-07-20 21:47:52 -04:00
Evan You eb9168cfc1 feat: warn when assigning to computed property with no setter
close #6078
2017-07-20 21:03:13 -04:00
Evan You a8ac129a58 fix: ensure looseEqual is not dependant on key enumeration order
close #5908
2017-07-20 20:41:18 -04:00
AchillesJ 06b9b0bbad fix(v-bind): respect .prop modifier on components (#6159) 2017-07-19 19:25:22 -04:00
laoxiong d03fa26687 fix(compile): properly generate comments with special character (#6156)
close #6150
2017-07-19 19:25:22 -04:00
AchillesJ b0f00e31e7 fix(provide/inject): resolve inject properly from mixins (#6107)
fix #6093
2017-07-19 19:25:22 -04:00
Evan You c70addf7d1 fix(v-model): use stricter check for <select> option update
close #6112
2017-07-19 19:25:22 -04:00
Eduardo San Martin Morote be3dc9c6e9 fix: include boolean in isPrimitive check (#6127)
suppresses key warning for boolean values, closes #6126
2017-07-19 19:25:22 -04:00
Evan You e0ca894dfb test: improve coverage 2017-07-13 13:50:42 +08:00
Evan You 67fe6cb823 test: use latest mobile browsers on saucelabs 2017-07-13 12:03:10 +08:00
Evan You 485e7403e4 test: make tests pass in IE 2017-07-12 18:33:16 +08:00
Evan You 6bf97721f1 feat(ssr): inheritAttrs support in SSR 2017-07-12 16:54:31 +08:00
Evan You 1bf98b0a99 test: adjust transition tests for firefox 2017-07-12 16:27:01 +08:00
Evan You 606666d5a9 test: fix Object.prototype.watch related warnings 2017-07-12 15:50:09 +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 afa108238f test: remove unecessary id in test case 2017-07-11 16:55:14 +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
chengchao 4d680794a5 fix(parser): the first newline following pre and textarea tag should be ignored (#6022)
fix #6022
2017-07-10 21:42:00 +08:00
Evan You a1d1145c91 fix(v-model): should generate component-specific code for tags with "is" attribute
fix #6066
2017-07-10 21:34:40 +08:00
Evan You 8d66691ee2 fix(core): should preserve reactivity-ness of injected objects
fix #5913
2017-07-10 21:12:43 +08:00
Hanks b1512d8b13 feat(weex): implement "weex.supports" api to support feature detection (#6053)
* feat(weex): add "weex.supports" api for feature detection

* test(weex): add test case for weex.supports and related methods
2017-07-10 12:15:31 +08:00
Hanks 0d6ad12a48 refactor(weex): sync recent changes of Weex (#6028)
* compile bundle on native side if 'compileBundle()' is available on
native side.

* refactor sendTasks

* reset renderer.compileBundle

* v2.2.2-weex.1

* v2.2.2-weex.2 && fixed memory leak

* call C++ timer instead of WxTimerModule in weex-vue-framwork

* v2.2.2-weex.4

* v2.2.2-weex.5

* v2.2.6-weex.1

* style(weex): fix eslint

* test(weex): fix test case for weex callback manager
2017-07-07 11:42:47 +08:00
Rahul Kadyan 306997eaf4 fix(core): add merge strategy for provide option (#6025)
Fix #6008
2017-07-07 11:39:25 +08:00
AchillesJ 254d85cfc4 fix(ref): refactor function registerRef (#6039)
fix #5997
2017-07-07 11:37:19 +08:00
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
2017-07-05 09:17:35 +08:00
AchillesJ eea0920f14 fix: improve Vue.set/Vue.delete API to support multi type of array index (#5973)
related #5884
2017-07-01 11:22:25 +08:00
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
2017-06-30 14:58:07 +08:00
wenlu.wang 049f3171a9 fix: support plugin with multi version vue (#5985)
close #5970
2017-06-30 11:20:43 +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
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
2017-06-30 08:50:30 +08:00
wenlu.wang 3965e5053a feat: support sync modifier for v-bind="object" (#5943)
close #5937
2017-06-30 08:46:54 +08:00
lyhper 00a3085628 test: correcting existing test case (#5909)
Fix the location of the test case
2017-06-29 12:39:02 +08:00
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
2017-06-29 12:38:14 +08:00
JK 55816543c4 fix(ssr): reference error when create $ssrContext for root component (#5981)
fix #5941
2017-06-29 12:37:03 +08:00
Evan You 0cd6ef321b feat: resolve ES module default when resolving async components 2017-06-29 12:12:01 +08:00
Evan You 610d1aabe9 build: move test config files into /test 2017-06-17 19:11:38 +08:00
kingwl 213f136a6e fix slot resolved incorrect with abstract component (fix #5888) (#5895) 2017-06-17 02:03:36 +08:00
gebilaoxiong 2f628c3114 test:improve reserved props test 2017-06-17 02:02:37 +08:00
gebilaoxiong f197d0dc45 test:add bind object test 2017-06-17 02:02:37 +08:00
王斐 8a2c5147ad Be able to use string type index in array (#5889) 2017-06-16 09:37:31 +08:00
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 8466a2866b.
2017-06-15 22:15:36 +08:00
Luke Bennett 9831b403cf Add warnHandler to allow users to set a custom warn callback, similar to errorHandler (#5883) 2017-06-14 21:37:26 +08:00
Evan You a2a9110ea1 bump weex test deps 2017-06-13 18:14:03 +08:00
Evan You a855dd0564 add environment-agnostic build for vue-server-renderer 2017-06-13 16:54:55 +08:00
Evan You a18f879bb3 warn when methods conflict with data (close #5832) 2017-06-06 15:05:51 +08:00
Evan You 7b069453ed fix Object.prototype.watch test case 2017-06-06 14:48:05 +08:00
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
2017-06-06 13:48:31 +08:00
Zhang Visper 7561b94eeb warn against non-primitive key (#5816) 2017-06-06 13:27:02 +08:00
Evan You 13bb643d6f handle in-out transition with async components 2017-06-05 22:21:45 +08:00
Evan You c3cdfcfa68 fix out-in transition for async components (fix #5760) 2017-06-05 19:01:23 +08:00
Evan You b4dd0be4fc improve .use() test cases and make it track installation based on constructor id 2017-06-05 16:30:10 +08:00
Evan You ab1203a096 update eslint config 2017-06-01 16:41:07 +08:00
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
2017-05-29 14:24:25 +08:00
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 08f0a8b6c3.

* test case
2017-05-29 13:49:49 +08:00
Evan You b5e4a22a8d refined async hydration + tests 2017-05-24 16:50:17 +08:00
Evan You 8262edcd22 test for ssr rendering async components 2017-05-24 16:50:17 +08:00
Evan You 7404091896 support async hydration 2017-05-24 16:50:17 +08:00
Sébastien Chopin f3757eb37b feat: Add `defer` to body scripts (#5704)
* fix: prefetch should not have `as` attribute

* feat: Add `async` to body script tags

* Use defer instead of async

* Use defer instead of async
2017-05-22 17:47:55 +08:00
Evan You 43485fbc5b Merge branch 'ssr-optimize' into dev 2017-05-18 16:56:05 +08:00
Evan You f061d802d3 fix v-if false rendering 2017-05-18 16:53:35 +08:00
Evan You 41acdc0ff1 fix v-html/v-text on root element 2017-05-18 16:07:49 +08:00
Evan You 2f4ad14d9f test template v-if/v-for 2017-05-18 16:04:54 +08:00
Sébastien Chopin ebca266d10 fix: prefetch should not have `as` attribute (#5683) 2017-05-17 00:18:02 +08:00
Evan You 303780acd2 make function compilation reusable 2017-05-15 15:35:45 +08:00
Evan You af12d3ff7f progress 2017-05-15 14:14:49 +08:00
Evan You 7694c85564 fix static tree optimization for v-else(-if) conditions 2017-05-15 12:05:19 +08:00
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
2017-05-12 10:22:00 +08:00
AchillesJ e3ffa109b3 make vm.$watch api consistent with watch option (#5645) 2017-05-11 15:10:40 +08:00
chengchao aaad7334d9 improve scoped slot test case (#5640) 2017-05-10 00:54:09 +08:00
Evan You e70f191b56 no need to test composition events on Android 2017-05-10 00:51:28 +08:00
Evan You 38759a6957 fix test case in IE 2017-05-10 00:37:41 +08:00
Evan You 8d54aecdd0 async components: timeout should not trigger if already resolved (fix #5635) 2017-05-09 23:35:09 +08:00
Evan You 0ccefff794 support v-for on scoped slots (fix #5615) 2017-05-09 23:22:55 +08:00
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
2017-05-09 23:21:49 +08:00
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
2017-05-07 21:46:33 +08:00
Herrington Darkholme 9ac4c4188d fix #5591: keep ssr template interpolation whitespace-insensitive (#5597) 2017-05-07 21:43:02 +08:00
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
2017-04-29 14:42:35 +08:00
Evan You d8315c42ef do not decode text inside script/style tags (fix #5526) 2017-04-27 12:23:48 +08:00
Evan You cb0531c4fb increase async delay for more test cases 2017-04-26 18:29:09 +08:00
Evan You c24f492543 fix edge test case 2017-04-26 18:24:38 +08:00
Evan You 1096890827 increase async component test delay 2017-04-26 18:06:31 +08:00
Yusuke Otsuka 12b7122c16 fix mixin issue (#5514) 2017-04-26 14:51:25 +08:00
Evan You 016920ebea support customizing context and window keys for renderState() 2017-04-25 13:22:11 +08:00
Eduardo San Martin Morote 380e988823 Allow slot names to be numbers (#5481)
Closes #5480
2017-04-25 12:25:27 +08:00
Evan You 2efc0446b3 inline css links in renderStyles() 2017-04-23 22:54:49 +08:00
Evan You 4f9f28cf16 renderLinks -> renderResourceHints 2017-04-23 22:54:49 +08:00
Evan You 9ca0c35a3f ssr: inject userContext into vnode to ensure correctness 2017-04-20 13:05:59 +08:00
Evan You 67d02fbf3f adjust renderToString context argument position 2017-04-20 10:15:41 +08:00
Evan You 2d50ac177b ssr inject: false option 2017-04-19 11:56:59 +08:00
Evan You 7b8b0e48f7 restructure: remove entires directory 2017-04-18 12:38:27 +08:00
Evan You c0da43d22f fix incorrect compiler warning for $delete usage in templates (fix #5464) 2017-04-18 11:40:32 +08:00
宋铄运 38810d8fd0 Support auto-prefixed style value as array (client/ssr) (#5460)
* support auto-prefixed style value as array (client/ssr)

* adjust test case
2017-04-17 20:49:10 +08:00
Evan You 5a617cc404 update ssr tests with local plugin build 2017-04-16 21:45:31 +08:00
Evan You 745fcd6d78 directMode -> runInNewContext 2017-04-16 21:45:31 +08:00
katashin 086ae4469b allow an extended constructor as global mixin (#5448) 2017-04-16 15:38:13 +08:00
Evan You 5eeb9de5e7 ssr: repeat all test cases for directMode 2017-04-14 16:26:12 +08:00
Evan You 760a74480e test warning component trace 2017-04-14 15:19:41 +08:00
Evan You 65cb5b4f78 adjust async chunk inference strategy 2017-04-14 13:48:42 +08:00
Evan You 9a5dd1bac8 fix test 2017-04-14 13:48:42 +08:00
Evan You 4e40666d53 wip 2017-04-14 13:48:42 +08:00
Evan You 682141fccc support Symbol in props type validation (close #5396) 2017-04-10 20:36:59 +08:00
Evan You 4b6913cb46 handle errors in nextTick (close #5277) 2017-04-10 15:01:32 +08:00
Eduardo San Martin Morote b997af0c01 Use genAssignmentCode in chehckbox model web compiler (#5402)
Fix #5398
2017-04-10 12:24:08 +08:00
Evan You c82546c54b fix keep-alive pruning active instance 2017-04-07 16:11:40 +08:00
Evan You 561bb467ba test functional auto props with render fn 2017-04-07 16:11:09 +08:00
Evan You 931aaea8dc expand .sync into extra listener 2017-04-06 13:51:44 +08:00
Evan You c28b566f19 tests for functional component api improvements 2017-04-05 17:44:38 +08:00
Evan You d2b7142cf5 tests for advanced async component features 2017-04-05 17:04:58 +08:00
Evan You 841fe6028a test computed property conflict warnings 2017-04-05 14:38:46 +08:00
kingwl 2701fa1a64 add provide/inject on functional context (#5204) 2017-04-05 14:36:15 +08:00
kingwl beee7d8143 support v-on passive modifier (#5132)
* support v-on passive modifier

* fix supportsPassive and run unit when the test browser supports

* add mutual exclusive warning

* Fix typo

* Fix typo

* Remove extra line - CS fix
2017-04-05 14:35:16 +08:00
Evan You 354c2f4922 fix keep-alive cache incorrectly pruned with transition mode="out-in" (fix #5346) 2017-04-03 15:32:23 +08:00
Evan You bbec0763ab remove problematic test cases (mutating in render fn) 2017-04-03 14:52:55 +08:00
Evan You 35aa5f0b2b warn click.right (close #5330) 2017-04-03 14:43:23 +08:00
Evan You a12d32a56d fix style diffing on cached/slot elements (fix #5318) 2017-04-03 14:13:57 +08:00
AchillesJ 3c0265517b handle errors thrown by directive hooks (#5314) (#5324)
* handle errors thrown by directive hooks

* fix import
2017-04-03 11:37:54 +08:00
Razvan Stoenescu 255b627f39 fix #5321 don't throw error when node gets relocated (#5322)
* don't throw error when node gets relocated

* perf: Simplify if check in vdom/patch
2017-04-03 11:36:50 +08:00
Evan You 78b73686ea expose preload/prefetch/scripts rendering on render context if no template is provided 2017-04-02 15:38:26 +08:00
Evan You 1e37633567 fix ssr xss (fix #5351) 2017-04-01 14:07:05 +08:00
Evan You 924435a0fa ssr: only preload scripts by default 2017-03-31 17:42:56 +08:00
Evan You 80fa9bf3d6 fix hydration tests 2017-03-31 17:23:49 +08:00
Evan You 69e62f0a74 refactor: remove constants from config 2017-03-31 17:04:19 +08:00
Evan You f4f4c126f2 ssr: handle link rel=preload for non-js assets too 2017-03-30 21:34:39 +08:00
Evan You 655c0f185b tests for ssr bundleRenderer + template + clientManifest 2017-03-30 15:19:13 +08:00
Evan You 2ea80399da restructure ssr tests: move template tests into separate file 2017-03-30 12:10:43 +08:00
Evan You e0a7c1ac68 use data attribute for ssr marker 2017-03-29 17:53:46 +08:00
Kenneth Crawford 6fcfdbd83f warn and handle missing get in computed (fix #5265) (#5267) 2017-03-27 10:41:29 +08:00
Evan You 0bb529a275 also warn when listening to camelCase events in in-DOM templates 2017-03-23 17:28:59 +08:00
Piotr Kaminski e47b1e5c4d Allow named properties on reactive arrays. (#5216)
* Allow named properties on reactive arrays.

* Remove semicolons to comport with style guide.

* Pacify flow type checking.

Without the cast to any, flow complains that Array doesn't have an
__ob__ property.  This appears to be an instance of this issue:
https://github.com/facebook/flow/issues/1330
2017-03-23 15:12:30 +08:00
Raymond Rutjes 23a058ed13 fix(inject): change warn message when trying to mutate an injected value (#5243) 2017-03-21 17:56:22 +05:30
kingwl 7dea9f1eb2 fix provide isn't reactive with a single array (#5229)
* fix provide isn't reactive with a single array - Fix #5223

* add warning when injections has been modified
2017-03-21 15:22:32 +08:00
kingwl 4c4a2ab65f trigger event after reassigned state - Fix #5191 (#5233) 2017-03-21 15:20:57 +08:00
chengchao e733e5cee8 fix SSR v-show render. (#5224)
* fix SSR v-show bug. v-show info needs to be merged from parent to child component

* improve variable name

* update test case

* update test case
2017-03-21 09:50:26 +08:00
Evan You 59a372229b also catch error in data() (close #5198) 2017-03-17 11:46:37 +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
Evan You 041683953a improve camelCase prop warning message 2017-03-13 15:54:36 +08:00
AchillesJ c6ab2e06d4 warn when template contains text outside root element (#5164)
* warn when template contains text outside root element

* fix warned flag

* make warn once a function
2017-03-13 15:42:46 +08:00
CodinCat 025e763124 Warn when not passing props in kebab-case (#5161)
* Warn when not passing props in kebab-case

* Move keyInLowerCase to dev only block
2017-03-13 15:41:26 +08:00
Evan You a6e1ae0aac v-bind object should have lower priority than explicit bindings (fix #5150) 2017-03-10 16:04:43 +08:00
Evan You e7dfcc334d fix custom directive arg fall through (fix #5162) 2017-03-10 15:55:53 +08:00
kingwl 4964b253d0 fix wrong order of generate modifier code (#5147)
* fix wrong order of generate modifier code

* add unit test of #5146

* Update events.js
2017-03-10 09:42:14 +08:00
AchillesJ f9706dc288 fix v-on unit test (#5144) 2017-03-10 09:40:04 +08:00
Herrington Darkholme 8fca83d6b6 fix #5121: parse content in textarea as plaintext (#5143)
* fix #5121: parse content in textarea as plaintext

* update comment
2017-03-10 09:39:38 +08:00
Evan You 95cd2bd7fa test v-model select with circular reference 2017-03-09 10:30:24 +08:00
Evan You fc6f181052 fix weex model test 2017-03-08 16:00:35 +08:00
Evan You c619b8d22c remove inline value warnings for checkbox/radio/select also (close #5112) 2017-03-08 15:22:14 +08:00
kingwl 2e1e809467 fix prevent default unit test (#5127) 2017-03-08 13:47:39 +08:00
Evan You 303824ea9c default slot should use fallback content when it contains all whitespace nodes (fix #5097) 2017-03-08 12:28:34 +08:00
Evan You a524919d21 fix v-on inline function expression with modifiers (fix #5120) 2017-03-08 11:28:01 +08:00
YOU e12d96a132 chore(parser.spec): fix an IE conditional test with a typo (#5102)
* chore(parser.spec): fix an IE conditional test with a typo

* check children.length is 0, instead of undefined
2017-03-08 10:17:08 +08:00
YOU 7010d0ffc5 chore(model-select.spec): add a check for value binding and fix some typo (#5092)
* chore: add a check for value binding

* chore: fix some typo
2017-03-08 10:14:55 +08:00
YOU 61930e0cc6 chore(test): fix some typos (#5101) 2017-03-06 09:50:49 +01:00
Nathan Shively-Sanders 2dc177ffb3 SFC parseComponent pads complete content with spaces (#5059)
* SFC parseComponent pads content with spaces

when `{ pad: true }` is provided. That is, all content is converted to
spaces. Previously, each line was truncated to "//". The new padding
method works better with character-oriented tools that calculate
positions by distance from the beginning of the file instead of by line
number.

* Made parseComponent's pad support "line" | "space"

Also still supports true for backward compatibility. True is the same as
"line".
2017-03-06 04:36:39 +08:00
YOU eb58694f6f chore(filter.spec): fix variable-- test case (#5094) 2017-03-05 09:40:49 +09:00
YOU c683caff3a chore(model-text.spec): add a missing check (#5093) 2017-03-05 09:40:35 +09:00
YOU 23a20ce09d chore: \s match all whitespaces (#5091) 2017-03-05 09:40:14 +09:00
YOU 62e4f2b3d1 chore: fix some closetag mismatches (#5088) 2017-03-05 00:10:11 +09:00
YOU 40bc5923ae chore: preserveWhitespace is true by default (#5082) 2017-03-04 03:40:18 +08:00
laoxiong 6a5b8043f2 imporve:check the delete oparator in event expression (#5072)
* improve:check the unary operators

* add:test
2017-03-03 12:08:59 +08:00
kazuya kawaguchi 0922b1d8aa improve set/delete API (#5050) 2017-03-03 12:07:42 +08:00
Bojan 1b38a261c5 support multi event (#5056) 2017-03-03 11:51:57 +08:00
Evan You 16765db9a4 separate provide/inject resolve timing to allow data/props to rely on injections 2017-03-03 11:49:10 +08:00
Evan You 3294eba5a5 fix v-on .left .right compat with keyboard events (fix #5046) 2017-03-03 11:40:15 +08:00
Rahul Kadyan 2a8a777b11 Check property exists instead of truthy value (#5044)
* Check property exists instead of truthy value

* Provide some falsy values for inject tests
2017-03-01 11:01:24 -05:00
Evan You 10e724fa78 support string values for transition duration 2017-02-25 18:58:15 -05:00
Evan You 72a8c13122 reduce the amount of methods exposed on Vue.util 2017-02-25 18:09:48 -05:00
Evan You 6c3e6dcdce support ES2015 Symbol in provide/inject 2017-02-25 18:09:48 -05:00
Evan You e7a2510e63 Revert "[WIP] Support for ref callback (#4807)"
This reverts commit acec8db2c4.
2017-02-24 18:17:04 -05:00
Evan You f66028b9cd introduce tip + make v-for component key warning a tip + refactor web compiler entry 2017-02-24 16:59:41 -05:00
Evan You d304eee296 fix weex tests 2017-02-24 12:26:21 -05:00
Evan You 680494690f give long transition test specific timeout value 2017-02-23 22:43:23 -05:00
Evan You 7fa8fa76fe avoid duplicate lifecycle hooks during constructor resolution 2017-02-23 21:56:01 -05:00
Evan You 4cf49828c0 properly handle cosntructor options modification before global mixin application (fix #4976) 2017-02-23 18:11:18 -05:00
Evan You 8d25e8f574 make explicit transition duration tests more stable 2017-02-21 22:19:08 -05:00
Evan You 42492ffaf9 adjust explicit transition duration tests 2017-02-21 22:08:25 -05:00
Evan You 29f6902d19 coverage 2017-02-21 13:25:57 -05:00
Evan You f916bcf371 feat: provide/inject (close #4029) 2017-02-20 16:58:24 -05:00
Evan You 1861ee9570 feat: renderError 2017-02-20 00:16:40 -05:00
Evan You 3c0cdb5535 improve error handling for lifecycle hooks 2017-02-19 23:21:29 -05:00
Hanks 3e523e6d57 [weex] convert kebab-case attribute name to camelCase in compiler (#4964)
* [weex] add test case for camelize props

* [weex] add test case for append props

* [weex] camelize component attribute name

* [weex] more reliable camelize functions
2017-02-18 19:36:00 -05:00
Chris Casola 3dc9338479 Warn when defining a method with same name as a prop (#4950)
* Warn when defining a method with same name as a prop

* update error message
2017-02-18 09:09:27 -05:00
Evan You 9ccffe72db invoke activate/deactivate recursively + refactor (close #4242) 2017-02-17 18:56:09 -05:00
kingwl 0e2dafa74c support mouse event modifier (#4866) 2017-02-16 16:04:04 -05:00
kingwl 8bb6c2bdaa support $on multi event (#4860) 2017-02-15 18:39:53 -05:00
Guillaume Chau 0598ab0c64 #4371 - Explicit transition durations (#4857)
* Add transition explicit duration

* Fix tests for explicit transition duration

* Tweaks & default to milliseconds

* Better tests

* Better test for change value case

* Fix transition duration tests

* Better flow typing

* Fix transition test

* Revert "Fix transition test"

This reverts commit db75b3801ed11182119c78ebae87f40a62803714.

* Fix transition test


Revert "Fix transition test"

This reverts commit db75b3801ed11182119c78ebae87f40a62803714.
Fix transition test

* Better flow types

* Warn message

* Better prop handling

* Better flow typings

* adjustments
2017-02-15 18:37:09 -05:00
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
2017-02-15 17:29:13 -05:00
Evan You 05c769bf44 fix .once with other modifiers that prevent execution of a handler (fix #4846) 2017-02-14 17:09:37 -05:00
Evan You f59aef08e6 further improve end tag check (close #4408) 2017-02-14 15:47:40 -05:00
Zephraph 97d36bc23f Pass attributes to parseComponent (addresses #4914) (#4925)
* Pass attributes to parseComponent

* Edited source in the right place, added test

* Back out changes made to the generated compiler build file

* Add a few more checks
2017-02-14 14:35:46 -05:00
Herrington Darkholme 01151ce3fa fix #4872, use context agnostic Function constructor check (#4928)
* fix #4872, use context agnostic Function constructor check

* use getType to check Function Constructor

* fix negation
2017-02-14 13:40:57 -05:00
Riccardo Causo 7259aefbe8 filter division expression with parentheses (fix #4838) (#4844)
* filter division expression with parentheses (fix #4838)

* verify also dot and square brackets

* missed a link check sorry for the useless commit

* added + - and _ support
2017-02-14 13:30:11 -05:00
Evan You 406352baba move computed properties definition to component prototype when possible 2017-02-14 12:03:14 -05:00
Evan You 4f6b1014b3 improve $props test case 2017-02-14 11:39:05 -05:00
yantene 22f9560c92 add $props 2017-02-14 11:39:05 -05:00
Evan You 1c79592524 feat: implement template option for vue-server-renderer 2017-02-13 13:34:05 -05:00
Evan You af619151c6 improve other parser warnings 2017-02-06 19:32:17 -05:00
Evan You cfb4d7c655 improve parser warning for tags with no matching close tag 2017-02-06 19:18:50 -05:00
Evan You a0a619f611 fix sfc parser hanging on trailing ill-formatted brackets (fix vue-loader/#628) 2017-02-06 18:24:32 -05:00
Evan You bf1f5f18e2 avoid externals warning in ssr tests 2017-02-06 18:24:32 -05:00
Eduardo San Martin Morote ec7fca8495 Fix multiple attr in select with undefined value (#4859)
Fix #4855
2017-02-06 11:58:36 -05:00
p(^-^q) 8bf5af8edf fix `addClass` utlil bug (#4863)
* fix addClass util bug

`<transition-group move-class=“ value with leading or trailing whitespace ” />`

* fix addClass util bug

`<transition-group move-class=“ value with leading or trailing whitespace ” />`

* fix addClass util bug

`<transition-group move-class=“ value with leading or trailing whitespace ” />`

* update test case for `addClass / removeClass` util
2017-02-06 11:53:04 -05:00
Evan You c2c87419fe test bundleRenderer bundle format support + source map 2017-02-03 10:42:19 -05:00
Evan You a2ca9b5184 suppress logs during weex tests 2017-02-03 10:42:19 -05:00
Evan You 1baa9d9c6c upgrade to use webpack 2.2 2017-02-03 10:42:19 -05:00
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
Evan You d99637b7f3 [weex] make tests pass 2017-01-20 16:10:11 -05:00
chengchao e02fb1294d preserve the only whitespace child (#4760) 2017-01-20 09:42:54 -05:00
Evan You c9fbcaf591 remove unnecessary slice in SSR renderStyle (small perf gain) 2017-01-19 23:41:37 -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 aa6f7b4cdb add production tips info 2016-12-28 00:09:26 -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 bf8aac0053 fix weex test case 2016-12-14 12:29:30 -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
chengchao 183bd43c3e fix v-bind.prop parse (fix #4432) (#4435)
* reset isProp value

* add test case

* update test case

* fix typo
2016-12-11 10:16:23 -05:00
Phan An 962b778e10 More informative warning message for comp name (#4429)
This commit adds a more informative warning message for invalid
component names. Also fixes a typo.
Closes #4428.
2016-12-09 12:51:13 -05:00
Evan You 612d32105a fix transition v-show display toggle timing for enter hooks (fix #4418) 2016-12-08 16:54:09 -05:00
Evan You b141c6930d fix filter parsing for divisions (fix #4415) 2016-12-08 13:15:33 -05:00
Evan You 8a7b02a159 avoid v-model with .trim/.number updating value when in focus (fix #4392) 2016-12-08 10:56:30 -05:00
Evan You 9cfd63a7d0 fix weex tests 2016-12-07 16:48:29 -05:00
Evan You d2f7f1913e fix codegen tests 2016-12-05 02:36:40 +01:00
Evan You 4b51ad0483 rename _h -> _c so that vue-template-es2015-compiler can use the new internal createElement without breaking backwards compatibility 2016-12-05 02:36:40 +01:00
Evan You 7c3c86f360 fix namespace hoisting 2016-12-05 02:36:40 +01:00
Evan You 79e1058799 wip: refactor compiler to skip normalization when possible
wip fix

wip fix

wip fix
2016-12-05 02:36:40 +01:00
Evan You 1def2d11a5 fix test for emptyVNode rename 2016-12-05 02:36:40 +01:00
Evan You c4da6c7f9c fix select multiple warning test case in IE 2016-12-01 18:32:46 -05:00
Evan You 61f7d0db87 actually complete test case for #4339 2016-11-30 23:32:43 -05:00
Evan You db0bf76e51 fix keep-alive component inner transition (fix #4339) 2016-11-30 23:29:03 -05:00
Evan You de7764a385 refactor patch createElm function, fix component hook merging 2016-11-30 14:21:01 -05:00
chengchao dde0454e7e fix static style parse error. (#4349) 2016-11-30 13:53:20 -05:00
Evan You 66bacb015c make .once modifier work for component v-on as well 2016-11-30 12:31:56 -05:00
chengchao 6ea9a4db42 Support mutliple keys for keycode (#4328)
* support mutliple keys for keycode

* update flow type

* add test case

* update comment

* update flow type

* update comment
2016-11-30 12:16:10 -05:00
Changyu Geng 9215ff0295 Modifier once for v-on (#4267)
* Modifier once for v-on

* Reformat code

* Modifier once for v-on: using removeEventListener instead, bug fix of handler arguments passing, bug fix of modifier ordering problem

* Enhancement of event listener removal which allows rendering of capturing / once events for render function

* Reformat code
2016-11-30 12:15:18 -05:00
Evan You e0ab042295 add focused test eslint rules for tests 2016-11-25 13:04:44 -05:00
Evan You 326aef4a6a fix incorrect context for slot content created in functional components (fix #4315) 2016-11-25 12:41:42 -05:00
Evan You 1903df4991 rename ASTElement node.conditions -> node.ifConditions, avoid mutating it during codegen (close #4317) 2016-11-25 10:06:21 -05:00
Evan You 16e3dae245 fix eslint and coverage 2016-11-24 12:59:19 -05:00
Evan You ae4db82c4b fix unexpected warnings in tests 2016-11-24 12:53:13 -05:00
Evan You a52a094bef wip: adjust update error reporting 2016-11-24 12:17:41 -05:00
Evan You b7946a4b22 wip: fix tests with expected warnings 2016-11-24 12:00:51 -05:00
Evan You 00c137fb27 test: check unexpected warnings 2016-11-24 11:50:20 -05:00
Evan You 3cfd84346f fix style !important spec 2016-11-24 11:21:25 -05:00
Evan You 26b6374c3c test for static style !important support 2016-11-24 10:15:05 -05:00
Evan You 6034c3e699 ensure methods are available in data() (close #4302) 2016-11-24 10:02:20 -05:00
Evan You b2b9d1c272 fix property reference proxy check for hand-written render functions 2016-11-23 17:46:41 -05:00
(´・ω・`) fce3f04a44 Ensure Vue instance's vnode and element is up to date (#4299)
* fix #4284, recursively update vnode element

* fix #4284, ensure vm's vnode is up to date

* add test for edge case
2016-11-23 13:18:52 -05:00
Evan You 9d0bc9768b fix sfc parser special tag check for nested templates (fix #4289) 2016-11-23 13:15:09 -05:00
Evan You fa61c0042c fix proxy missing property detection when render function does not use `with` 2016-11-23 12:57:25 -05:00
Evan You 1a7b910feb inherit child reference from old node when patching static nodes (fix #4288) 2016-11-23 09:42:52 -05:00
katashin c57ba3e622 global mixin should not drop scope id (fix #4266) (#4274) 2016-11-22 09:22:21 -05:00
Evan You b45b974a5c limit mouse event modifiers to mouse events 2016-11-21 17:34:03 -05:00
Evan You cc4f4c5bda v-elseif -> v-else-if 2016-11-21 15:25:08 -05:00
chengchao af78bcf916 Support v-if multiple conditions (#4271)
* add if conditions

* update v-if conditional

* update test

* update test case

* add test case

* update if conditions

* update walkThroughConditionsBlocks

* update v-elseif

* update v-once with v-elseif test case

* update style with v-elseif

* update flow type
2016-11-21 15:24:54 -05:00
Evan You a0d8603f90 support destructuring in v-for alias 2016-11-21 11:41:18 -05:00
Evan You a11ba69094 remove fdescribe 2016-11-21 10:27:54 -05:00
Evan You e5d7f32cf6 tests for keep-alive include/exclude 2016-11-21 09:51:06 -05:00
Evan You 38b8cfdf96 handle regex with pipes in filter parser 2016-11-20 21:42:25 -05:00
Evan You 03043b9081 support .camel modifier 2016-11-20 12:03:43 -05:00
Evan You 0458e2edb2 adjustment: scoped slots must use <template> 2016-11-20 12:03:43 -05:00
Evan You 0b78ea9696 properly handle inline function expressions in v-on 2016-11-20 12:03:43 -05:00
Evan You 303378f85b support default scoped slot + function children as scoped slot 2016-11-20 12:03:43 -05:00
Evan You 745f8a9125 add scoped slots render function usage test 2016-11-20 12:03:43 -05:00
Evan You 7f36f99f6c tests for scoped slots 2016-11-20 12:03:43 -05:00
Evan You 71ce60da9a support filters in v-bind 2016-11-20 12:03:43 -05:00
Evan You 30f890cf3c support es6 template strings in filter parser 2016-11-20 12:03:43 -05:00
Evan You 2dc2d062b1 adjust build 2016-11-20 12:03:43 -05:00
Evan You f242e119fa fix nextTick Promise implementation for polyfills 2016-11-20 12:03:24 -05:00
Evan You 6c7bc69328 sfc parser: treat all custom blocks as special tags 2016-11-20 11:59:55 -05:00
Eduardo San Martin Morote ff7f231002 Support custom blocks in SFC parser (#4157)
This allow to use other block appart from `template`, `script` or
`style` in the SFC parser. This allows such things as writing tests or
examples directly into the SFC file. Those are meant to be handled by
programs others than vue-loader like vue-play.
2016-11-20 11:37:42 -05:00
Chris Fritz 8bf26536d3 Add promise support to nextTick (#3967)
* add promise support to nextTick

* remove test for non-existent nextTick console error

* Update flow annotation for callback

* Revert flow annotation for nextTick callback
2016-11-20 09:50:38 -05:00
Changyu Geng 048014ac0d Modifiers key modifier for directive on of Vue.js 2.0 (#4034)
* Modifiers key modifier for directive on

* meta modifier key modifier for directive on

* Code format
2016-11-20 09:46:31 -05:00
chengchao c1b84f87fb fix markStaticRoots with v-else (#4256) 2016-11-20 09:43:40 -05:00
Evan You c994146372 increase transition test duration buffer on saucelabs 2016-11-19 22:08:06 -05:00
Evan You b60cd83466 keep-alive re-activated component should get updated props (fix #4237) 2016-11-18 20:38:33 -05:00
Evan You acfe1ad4a2 warn using reserved attrs as prop (close #4241) 2016-11-18 12:13:12 -05:00
Evan You c1bf20acb6 do not trigger change on NaN->NaN set (fix #4236) 2016-11-18 11:47:02 -05:00
Evan You 9a742cb423 only treat binding as domProps on specific elements (fix #4233) 2016-11-18 11:36:05 -05:00
Evan You f4df893828 fix weex tests for optimizer adjustments 2016-11-17 18:15:10 -05:00
Evan You 9a659593c4 adjust optimizer strategy and avoid marking simple elements as static root 2016-11-17 18:08:23 -05:00
chengchao 8f7c49c9ba Remove old static style when applying style update (fix #4227) (#4235)
* both static style and stylebinding should be removed

* update test case

* update test case
2016-11-17 11:25:54 -05:00
Dexter Miguel f80231773e destroyed elements pass their styles onto others that are similar (#4232) 2016-11-17 09:16:42 -05:00
Evan You eb92723df5 avoid merging text nodes when the node is a cloned slot node (fix #4209) 2016-11-15 23:07:50 -05:00
Evan You 24604e70ea bump dependencies 2016-11-15 16:45:12 -05:00
Evan You 438b51793f fix style merging assertion in IE 2016-11-15 15:53:26 -05:00
Evan You 3e8ac270a8 fix .trim modifier when v-model is used on custom component (fix #4204) 2016-11-15 11:05:08 -05:00
chengchao 77497931e0 fix v-once inside v-for and v-once with v-if (#4200) 2016-11-14 16:20:21 -05:00
Evan You cccc277dd9 fix eslint 2016-11-13 14:07:34 -05:00
Evan You 4e38b54274 fix weex tests for component slot static check change 2016-11-13 14:04:16 -05:00
chengchao 46b3bcd707 fix object dot notation bug (fix #4185) (#4188)
* fix object dot notation bug

* add test case
2016-11-13 13:15:08 -05:00
Evan You 9931b715cd avoid marking slot content as static. 2016-11-12 22:16:45 -05:00
勾三股四 4f84aefe43 support v-model in weex (#4178)
* [wip] supported v-model in Weex

* fixed v-model in weex

* added test cases for v-model in weex

* used strToRegExp for all test cases in weex

* fixed eslint

* fixed parseModel test case
2016-11-12 11:33:51 -05:00
Evan You cb4854a50e [weex] enable extended constructors to use mixins 2016-11-09 21:19:01 -05:00
Evan You 1bcc571739 Revert "fix #4041, warn overriding Vue's internal methods (#4111)"
This reverts commit 4078ce9c58.
2016-11-09 16:06:59 -05:00
Evan You 2f63cc8a14 fix eslint 2016-11-07 17:31:25 -05:00
Evan You cb253d7405 wip: weex framework integration 2016-11-07 16:26:06 -05:00
chengchao e960cd104e enable style merge behavior between parent-child components (fix #3997) (#4138)
* merge style between components

* update test case

* update style compiler

* add paren to style binding code

* update background property parsing

* introduce interpolation warning and refactor var to const
2016-11-07 16:19:48 -05:00
chengchao 33cf1134ed Update ssr class render (fix #4143) (#4146)
* fix ssr class render

* update test case
2016-11-07 11:33:37 -05:00
Evan You c67a710b3c avoid triggering watcher on unchanged default props (fix #4090) (26 seconds ago) 2016-11-04 22:49:30 -04:00
Evan You 5d36e8bc1b fix IE conditional comments (fix #4125) 2016-11-04 19:48:11 -04:00
Evan You d0afcd3cf9 fix domProps unset for v-html (fix #4107) 2016-11-04 16:22:49 -04:00
Evan You e5f23d9fa0 fix component attrs/domProps merging in SSR 2016-11-04 12:53:15 -04:00
(´・ω・`) 240df147f1 Generate style on custom component in SSR (fix #4055) (#4076)
* fix #4055, generate style on custom component

* add test for custom component style

* add synthetic data for module processing
2016-11-04 09:38:52 -04:00
jingsam c23c5c5d70 keep consistency in dev and prod env (#4093)
* keep consistency in dev and prod env

* Update extend.js

* delete name=null

* fixup

* Update name.spec.js
2016-11-04 09:35:10 -04:00
(´・ω・`) 4078ce9c58 fix #4041, warn overriding Vue's internal methods (#4111)
* fix #4041, warn overriding Vue's internal methods

* prefer concise warning message
2016-11-04 07:44:47 -04:00
Evan You bc455352a3 test sfc parser <style module> 2016-11-03 16:25:53 -04:00
Evan You e2a361a052 forgivingly handle < inside template plain text (fix #4012) 2016-11-03 00:53:49 -04:00
Evan You ec824be88e fix v-once inside v-for (fix #3964) 2016-11-02 22:34:36 -04:00
Evan You 09f9783943 fix global mixin + export constructor in vue-loader (fix vue-loader#433) 2016-11-02 18:51:09 -04:00
Evan You cb1bb75b58 fix global mixin props (fix #3957) 2016-11-02 15:50:57 -04:00
Evan You 4b8eb75c7a fix coverage 2016-11-01 15:53:36 -04:00
chengchao 0cd1489e68 .number modifier should work with select, radio, checkbox (fix #4018) (#4022)
* support number modifier in select, radio, checkbox

* add test case

* add ASTModifier type to specify modifiers type

* fix typo

* keep code consistent
2016-11-01 11:50:22 -04:00
Chris Fritz 84918577d2 fix problematic use of 'deprecated' in warnings (#4043) 2016-11-01 11:17:25 -04:00
Herrington Darkholme 2ac581bb7f SSR: eliminate closure in render.js implementation
eliminate closure

fix multiple render instances and memory leakage

fix eslint

magically fix flow typing

add multiple render stream test
2016-11-01 11:14:46 -04:00
Evan You 7dc38dea27 fix SFC parsing pug templates that contains "<" (fix #3973) 2016-10-22 16:27:35 +08:00
defcc 3105661662 v-model binding with array. (fix #3958,#3979) (#3988)
* fix v-model with array binding

* add mutli selects test case

* add test case. v-bind with array

* add comments

* code refactor
2016-10-22 14:57:32 +08:00
peisong 9c91190b40 Fix typos. (#3956) 2016-10-19 17:21:22 +02:00
Chris Fritz 4f5a47d750 fix root v-else not rendering in prod and switched examples to minified vue for better prod coverage (#3943)
* fix root v-else not rendering in production and switched examples to minified vue for better prod coverage

* add dev build comment to examples

* convert tabs to spaces in todomvc example for consistency
2016-10-14 09:27:54 -04:00
Evan You 3f8fa43819 fix duplicate attribute test case in IE 2016-10-13 05:19:51 -04:00
Evan You d362d64633 update entities encoding/decoding (fix #3899) 2016-10-13 05:05:35 -04:00
defcc a9417e4e4f select change event fix (#3922)
* if select binding not changed, then needRest should be set to false, and no change event should be emitted

* update code style
2016-10-12 13:26:42 -04:00
Evan You 864ef21a7d fix deeply nested keep-alive components not being destroyed (fix #3882) 2016-10-11 23:58:53 -04:00
Evan You 7570a3c566 test for directive refactor (fix #3848) 2016-10-11 20:49:10 -04:00
Evan You 1fa3844dc2 refactor directive update implementation 2016-10-11 20:31:13 -04:00
Evan You e9bf5d1cd9 add warning for using v-model on v-for alias 2016-10-11 18:18:11 -04:00
Evan You 32383e5fa3 remove name option warning during instantiation 2016-10-11 17:58:02 -04:00
Evan You 1bb7cba0e0 improve event warning with component information (close #3831) 2016-10-11 17:32:35 -04:00
defcc 8bb1e58df0 fix multiple select render (#3908)
* fix multiple select render. The mutliple attribute of select dosen't apply at first, so the mutli selected option dosen't work when patching

* keep the vnode.data the same as before
2016-10-11 12:53:30 -04:00
Evan You cc4c066989 fix coverage 2016-10-10 23:25:24 -04:00
Evan You be6e050b89 fix `mounted` not called for manually mounted instance with parent (fix #3898) 2016-10-10 23:03:21 -04:00
Evan You 3446d1485d support functional components as named slot (fix #3872) 2016-10-10 22:41:14 -04:00
Evan You 74e4e11b44 fix v-on handler with whitespaces (fix #3893) 2016-10-10 19:30:19 -04:00
Chris Fritz de199f9bbd allow 2 root nodes with v-if and v-else (#3887)
* allow 2 root nodes with v-if and v-else

* fix compiler-options test with less specific text
2016-10-09 16:33:23 -04:00