Evan You
81e1e47cab
fix: respect type order when boolean casting multi-typed props
fix #7485
7 years ago
AchillesJ
318f29fcdf
fix(core): disable dependency collection in lifecycle hooks and data getter ( #7596 )
This fixes the parent being updated more than necessary due to collecting child props
as dependencies during its own update computation.
fix #7573
7 years ago
Alex
6bc75cacb7
fix(v-on): return handler value when using modifiers ( #7704 )
7 years ago
Eduardo San Martin Morote
db584931e2
fix(v-model): handle trailing whitespaces in expression ( #7737 )
7 years ago
Sergei Chipiga
9e04f6af27
test: add unit tests for core/observer/dep ( #7738 )
7 years ago
Eduardo San Martin Morote
dc97a39c2f
fix(codegen): support filters with () in older browsers ( #7545 )
Fix #7544
Make sure no extra , is added at the end of the call so it also work with older browsers
7 years ago
Hiroki Osame
733c1be7f5
fix(inject): use hasOwn instead of 'in' for provideKey check ( #7460 )
fix #7284
* fix(Injection with Symbol polyfill): hasOwn instead of 'in'
Symbol polyfill adds a setter on the Object prototype so the 'in' check evaluated to true on every
object
* test(Injected properties): Ensures prototype properties aren't injected
Prototype properties were being injected, so injecting 'constructor' would have hit the first
provide-layer and not yield expected results.
7 years ago
İsmail Arılık
e9ea565d91
polish: raise warning when Vue.set/delete is called on invalid values ( #7452 )
close #7381
7 years ago
Evan You
80e650cfdf
chore: fix formatting
7 years ago
Evan You
9b22d86ab3
fix: install ssr helpers for functional context during SSR
close #7443 , ref nuxt/nuxt.js#2565
7 years ago
GU Yiling
1c0b4af5fd
fix: skip v-model & value binding collision check with dynamic type binding ( #7406 )
* fix #7404
7 years ago
Evan You
f7ca21eab1
fix: always install composition event listeners
Previously the installation was skipped on Android because
it was not needed for Chinese IME - however some IMEs such
as Japanese exhibits the same behavior as on other browers.
So it is safer to always enable the check. Closes #7367
7 years ago
Evan You
aeebf0de90
test: add test for observer lazy getter invocation
7 years ago
Evan You
f7311c90b3
refactor: move keyName alias map to compiler
7 years ago
JK
1c8e2e88ed
fix: support KeyboardEvent.key in built-in keyboard event modifiers ( #7121 )
fix #6900
7 years ago
Evan You
50b711af43
fix: do not special case attributes for custom elements
close #6864 , close #6885
7 years ago
Hanks
d6200d7026
feat(weex): update weex recycle-list compiler ( #7610 )
+ Support v-once
+ Generate @templateId on the root element of each component
+ Add binding-expression attribute on recycle-list
+ Fix the compile result of v-else-if and v-else
7 years ago
Hanks
990374bacb
feat(weex): support sending style sheets and class list to native ( #7530 )
No longer manage style sheets and class list in vue and weex-js-runtime.
Refer to https://github.com/Hanks10100/weex-native-directive/issues/14
7 years ago
Evan You
cd334070f3
fix: address potential regex backtrack
7 years ago
TB
e396eb3445
fix(ref): allow ref key to be zero ( #7676 )
prevents missing elements when :ref value is "0"
fix #7669
7 years ago
Guillaume Chau
5191f13472
fix(transition): should not add transition class when cancelled ( #7391 )
fix #7390
7 years ago
AchillesJ
05299610ea
fix(vdom): svg inside foreignObject should be rendered with correct namespace ( fix #7330 ) ( #7350 )
* add failed test case
* fix failed test case
* fix(vdom): svg inside foreignObject should be rendered with correct namespace
* adjust comments
7 years ago
Hanks
ff8fcd2e2b
feat(weex): support parse object literal in binding attrs and styles ( #7291 )
7 years ago
Evan You
f8cb3a2393
chore: fix lint
7 years ago
Huo Chunyang
44420b7bbc
chore: correct the eslint script statement in package.json and correct the format. ( #7308 )
7 years ago
Evan You
144a4dd860
build: rename build/ to scripts/
7 years ago
Evan You
41838c8e86
feat: support v-model dynamic type binding for v-bind="object"
close #7296
7 years ago
Evan You
d8b08387a2
fix: clean up custom events when patched component no longer have events
fix #7294
7 years ago
Evan You
956756b1be
refactor: use more efficient on-demand clone to handle reused node edge cases
removes unnecessary slot/static node clones, fix #7292
7 years ago
Evan You
8335217cb4
fix(core): handle edge cases for functional component returning arrays
fix #7282
7 years ago
cinwell.li
e055df82fe
fix(weex): default value for editor, fix #7165 ( #7286 )
* fix(weex): default value for editor, fix #7165
/cc Hanks10100
* fix(weex): recycle-list test
7 years ago
Evan You
7cc0b559e9
feat(weex): update new syntax for <recycle-list>
7 years ago
Hanks
472a2896bd
feat(weex): adjust framework entry APIs and add flow annotations ( #7272 )
1. Remove the "init", "reset", "getRoot" and "receiveTasks" APIs, which
are already implemented in the new version of "weex-js-runtime".
2. Use "createInstanceContext" instead of "createInstance". Vue only
needs to prepare the instance context and no longer execute the js
code. The js code will be executed by native.
3. Add flow type declarations and annotations.
7 years ago
Evan You
aac76349e7
Revert "feat: auto cache inline prop literals to avoid child re-render"
This reverts commit 996eb00a0a
.
7 years ago
Herrington Darkholme
bacb911f7d
fix(warning): allow symbol as vdom key ( #7271 )
7 years ago
Evan You
01c07503bf
revert: revert prop object validation
close #7279
7 years ago
Evan You
1dd6b6f046
refactor: adjust weex branch coverage and build for merging into dev
7 years ago
Hanks
661bfe552e
feat(weex): partially support lifecycles of virtual component ( #7242 )
Update the `_init` and `_update` logic to partially support lifecycles.
Add test cases for testing the lifecycle hooks and data update.
7 years ago
Hanks
d544d052a9
fix(weex): append as tree by default for recycle-list and cell-slot ( #7216 )
7 years ago
Hanks
b8d33ecd9a
feat(weex): WIP implement virtual component ( #7165 )
7 years ago
Evan You
70b97ac2f4
feat(weex): recycle-list support stateful child component
7 years ago
Evan You
452a65c98a
feat(weex): pass stateless component test case
7 years ago
Evan You
c1743a9dd7
test(weex): use done.fail for reporting errors
7 years ago
Hanks
46c8016562
test(weex): add more test cases for recycle-list ( #7104 )
7 years ago
Hanks
0bf0cbef76
revert(weex): remove the "receiveTasks" api and support component hook ( #7053 )
7 years ago
Hanks
0c11aa8add
feat(weex): generate "@render" function for weex recycle-list ( #6987 )
* feat($compiler): support to generate @render function for weex recycle-list
Compile the template twice with different options for weex platform if
the “recyclable” flag is passed. Generate both normal render function
and “@render” function for recycle-list.
Adjust function names and arguments in recycle-list compiler.
* test(weex): add test cases for <recycle-list>
7 years ago
Evan You
996eb00a0a
feat: auto cache inline prop literals to avoid child re-render
7 years ago
Alexander Sokolov
d02bb37efb
feat: warn misspelled keys on prop validation object ( #7198 )
7 years ago
Evan You
14f7015578
test: fix ssr test due to webpack asset emit order change
7 years ago
Evan You
4e00688e4a
build: update dev dependencies
7 years ago