Commit Graph

2075 Commits

Author SHA1 Message Date
Evan You 606666d5a9 test: fix Object.prototype.watch related warnings 2017-07-12 15:50:09 +08: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 afa108238f test: remove unecessary id in test case 2017-07-11 16:55:14 +08:00
Evan You 1b7ddd7a35 feat(types): expose $vnode 2017-07-11 16:46:54 +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
Evan You b0b6b7e972 build: upgrade rollup 2017-07-11 15:33:19 +08:00
Evan You 0a9aab510b fix(v-model): fix input change check for type="number"
The change should only apply to the .number modifier, not type="number".
fix #6069
2017-07-11 13:06:23 +08:00
Evan You fed602b90b refactor: also clone vnode.asyncFactory 2017-07-11 13:06:23 +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
Evan You 5dbca4e3c4 style: tweak import style 2017-07-10 21:05:24 +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
SSHz 8ff77a243c fix typos in src/server/bundle-renderer/create-bundle-runner.js (#6010) 2017-07-01 15:36:23 +02:00
Evan You 275d95d0fe chore: improve commit convention examples to be more Vue-specific 2017-07-01 11:29:36 +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
JK 34d8c796ac fix: check enterToClass/leaveToClass existence before adding it (#5912)
related: #5800
2017-06-30 14:57:16 +08:00
wenlu.wang 049f3171a9 fix: support plugin with multi version vue (#5985)
close #5970
2017-06-30 11:20:43 +08:00
Blake Newman 27a1b03827 chore(build): ignore dist files until release (#5984)
ignore dist files until release
improves contributor experience
ensures dist files can't be accidentally committed in
2017-06-30 09:02:02 +08:00
AchillesJ 16700c95e1 refactor(core): remove unnecessary switch case (#5971) 2017-06-30 08:59:07 +08:00
MopTym de42186d52 fix(ssr): fix bundleRenderer mapped async chunks caching check (#5963)
_mappedfiles => _mappedFiles
2017-06-30 08:58:08 +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
superwf e01c09adad refactor(compiler): remove 'head' tag contains 'html' tag condition code (#5958)
remove 'head' tag contains 'html' tag condition I am not sure this is necessary, but all test passed
after remove the code.
2017-06-30 08:49:25 +08:00
wenlu.wang 3965e5053a feat: support sync modifier for v-bind="object" (#5943)
close #5937
2017-06-30 08:46:54 +08:00
J. Dalton Childers bd79d7e179 README update to include Vue Land as questions resource and chat badges (#5947)
* Updated README to include Vue Land 😃

* Updated Discord link to be the Vue Land site

* Added Gitter and Discord Badges to README
2017-06-30 08:44:17 +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 b5f08f3bed build: use cross-platform hook installation with shelljs 2017-06-17 19:21:00 +08:00
Evan You 610d1aabe9 build: move test config files into /test 2017-06-17 19:11:38 +08:00
Evan You a7afcb4cca build: add script for generating release note 2017-06-17 18:38:03 +08:00
Evan You b49c969474 build: add git commit message validation 2017-06-17 18:16:40 +08:00
Evan You 4acc8c8be1 fix(v-model): use consistent behavior during IME composition for other text-like input types (fix #5902) 2017-06-17 16:45:55 +08:00
Evan You 4f8f4db5dd simplify source with rest params 2017-06-17 16:45:55 +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
gebilaoxiong d33c1250ee fix:when using object syntax in v-bind, special attribute have no effect 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
David Eckel 69f946b437 Fix XHTML incompatibility (fix #5852) (#5853) 2017-06-13 21:53:38 +08:00