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
8 years ago
Evan You
e7dfcc334d
fix custom directive arg fall through ( fix #5162 )
8 years ago
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
8 years ago
Herrington Darkholme
8fca83d6b6
fix #5121 : parse content in textarea as plaintext ( #5143 )
* fix #5121 : parse content in textarea as plaintext
* update comment
8 years ago
Evan You
a524919d21
fix v-on inline function expression with modifiers ( fix #5120 )
8 years ago
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
8 years ago
YOU
61930e0cc6
chore(test): fix some typos ( #5101 )
8 years ago
Evan You
3294eba5a5
fix v-on .left .right compat with keyboard events ( fix #5046 )
8 years ago
Evan You
05c769bf44
fix .once with other modifiers that prevent execution of a handler ( fix #4846 )
8 years ago
Evan You
f59aef08e6
further improve end tag check ( close #4408 )
8 years ago
Evan You
af619151c6
improve other parser warnings
8 years ago
Evan You
cfb4d7c655
improve parser warning for tags with no matching close tag
8 years ago
chengchao
e02fb1294d
preserve the only whitespace child ( #4760 )
8 years ago
Evan You
ab0a2259e0
Revert "also bind static special attrs as props ( fix #4530 )"
This reverts commit b3ebfef91d
.
8 years ago
Evan You
4e830ba3c3
Revert "Mark node with static props as static ( #4662 )"
This reverts commit 92657249dd
.
8 years ago
chengchao
92657249dd
Mark node with static props as static ( #4662 )
* fix special static attrs as dom prop
* refactor
8 years ago
chengchao
66bf120f7a
enforce to loop through children to get the correct normalize type ( #4572 )
8 years ago
Evan You
01f533db1a
avoid duplicate whitespace nodes caused by comments
8 years ago
Evan You
de220a635d
ignore text nodes between v-if conditions ( fix #4533 )
8 years ago
Evan You
b3ebfef91d
also bind static special attrs as props ( fix #4530 )
8 years ago
Evan You
f1c38674f2
use simple normalization for components, fix functional component multi-root node ( fix #4472 )
8 years ago
Evan You
d2f7f1913e
fix codegen tests
8 years ago
Evan You
4b51ad0483
rename _h -> _c so that vue-template-es2015-compiler can use the new internal createElement without breaking backwards compatibility
8 years ago
Evan You
7c3c86f360
fix namespace hoisting
8 years ago
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
8 years ago
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
8 years ago
Evan You
1903df4991
rename ASTElement node.conditions -> node.ifConditions, avoid mutating it during codegen ( close #4317 )
8 years ago
Evan You
b7946a4b22
wip: fix tests with expected warnings
8 years ago
Evan You
b45b974a5c
limit mouse event modifiers to mouse events
8 years ago
Evan You
cc4f4c5bda
v-elseif -> v-else-if
8 years ago
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
8 years ago
Evan You
a0d8603f90
support destructuring in v-for alias
8 years ago
Evan You
0b78ea9696
properly handle inline function expressions in v-on
8 years ago
Evan You
71ce60da9a
support filters in v-bind
8 years ago
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
8 years ago
chengchao
c1b84f87fb
fix markStaticRoots with v-else ( #4256 )
8 years ago
Evan You
9a742cb423
only treat binding as domProps on specific elements ( fix #4233 )
8 years ago
Evan You
9a659593c4
adjust optimizer strategy and avoid marking simple elements as static root
8 years ago
Evan You
9931b715cd
avoid marking slot content as static.
8 years ago
Evan You
5d36e8bc1b
fix IE conditional comments ( fix #4125 )
8 years ago
Evan You
e2a361a052
forgivingly handle < inside template plain text ( fix #4012 )
8 years ago
Chris Fritz
84918577d2
fix problematic use of 'deprecated' in warnings ( #4043 )
8 years ago
Evan You
3f8fa43819
fix duplicate attribute test case in IE
8 years ago
Evan You
1fa3844dc2
refactor directive update implementation
8 years ago
Evan You
74e4e11b44
fix v-on handler with whitespaces ( fix #3893 )
8 years ago
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
8 years ago
Evan You
8ef603b7c3
test <template> key warning, fix coverage
8 years ago
Evan You
47ee6abfc6
remove codegen v-for truthiness check ( fix #3817 )
8 years ago
Evan You
d6a7568891
improve v-bind implementation and make it work on components ( fix #3670 )
8 years ago
Evan You
4afccc8eec
proper slot duplication warning ( fix #3595 )
8 years ago