Commit Graph

182 Commits

Author SHA1 Message Date
Eduardo San Martin Morote ce457f9f4d
fix(slot): add a function to return the slot fallback content (#12014)
Co-authored-by: zrh122 <1229550935@qq.com>
2021-04-16 17:37:35 +02:00
zrh122 0603ff695d
fix(warns): modify `maybeComponent` function in parser (#10167)
fixes #10152
2021-04-07 14:38:13 +02:00
Des Preston 55a30cf9db
fix(compiler): avoid converting &nbps; to spaces (#11065) 2021-03-30 11:03:03 +02:00
Des Preston 862070662d
fix(compiler): event handlers with modifiers swallowing arguments (fix #10867) (#10958)
Pass full parent argument list to the event handler when there are event
modifiers present.
2020-09-21 16:16:45 +02:00
DSha 67825c24bc
fix(parser): allow multiple slots with new syntax (#9785)
* fix(#9781): non greedy `dynamicArgAttribute` RegExp 

* test(parser): add test case for multiple dynamic slot names

* test: add test with value

Co-authored-by: Eduardo San Martin Morote <posva13@gmail.com>
2020-09-21 16:01:46 +02:00
GU Yiling 569b728ab1 fix: fix function expression regex (#9922)
fix #9920
2019-04-25 21:04:36 +08:00
GU Yiling 3433ba5bee fix(codegen): support named function expression in v-on (#9709)
fix #9707
2019-03-18 16:19:41 +08:00
GU Yiling f1bdd7ff9d fix(compiler): whitespace: 'condense' should honor pre tag as well (#9660) 2019-03-14 15:47:51 +08:00
Jason cbad54aa52 fix(compiler): set end location for incomplete elements (#9598) 2019-03-01 09:56:13 -05:00
Evan You 7ec4627902 fix: ensure generated scoped slot code is compatible with 2.5
fix #9545
2019-02-21 08:52:15 -05:00
Evan You 29c348f3cf fix: fix keyCode check for Chrome autofill fake key events
close #9441
2019-02-11 22:54:35 -05:00
Evan You 44a4ca33b9 fix: restore slot-scope + v-if behavior
fix #9422
2019-02-04 22:39:35 -05:00
Filipe Amaral 55bfb94a33 fix(compiler): fix inline-template crashing (#9365)
fix #9361
2019-02-04 16:49:27 -05:00
Barthélémy Ledoux 1922e7d4d9 fix(template-compiler): allow comments on the root node in templates (#9408)
In SFC templates, we are allowed to add comments to the root node. If parsing with comments flag
true, we are not anymore. This ignores the root comments in case they cannot be added.

fix #9407
2019-02-04 16:34:32 -05:00
Evan You 64f863bbb9 feat: move v-bind.prop shorthand behind flag 2019-02-02 10:49:01 -05:00
Evan You 5851961ca3 refactor: adjust codegen for v-if on scoped slot 2019-01-30 18:12:18 -05:00
Evan You c9e3a5d1d9 feat: detect and warn invalid dynamic argument expressions 2019-01-28 18:08:37 -05:00
Evan You dbc0582587 feat: dynamic directive arguments for v-on, v-bind and custom directives (#9373) 2019-01-25 23:22:44 -05:00
Evan You f219bedae8
perf: improve scoped slots change detection accuracy (#9371)
Ensure that state mutations that only affect parent scope only trigger parent update and does not affect child components with only scoped slots.
2019-01-25 22:34:06 -05:00
Evan You d2902ca8ec feat: support .property shorthand syntax for v-bind.prop modifier
close #7582
2019-01-09 17:31:04 -05:00
Evan You e1abedb9e6 feat(compiler): add whitespace option, deprecate preserveWhitespace option
close #9208
2018-12-26 14:12:34 -05:00
Evan You 325fc7693c feat(compiler): output codeframe in browser compiler 2018-12-21 23:55:48 -05:00
Jason b31a1aa887 feat(compiler): output source range for compiler errors (#7127)
ref #6338
2018-12-21 21:58:32 -05:00
Evan You 9432737cf8 fix: cover more cases in v-on inline return value 2018-12-20 12:20:09 -05:00
Evan You 4074104fac perf: skip normalization on single child element v-for 2018-12-11 16:51:40 -05:00
NaotoSuzuki 8fccd82569 chore: fix tag name in compiler/parser/index.js (#9165) 2018-12-11 11:28:40 -05:00
Andrew Hyndman 3d449376d5 fix(v-model): properly handle multiline v-model expressions (#9184)
fix #9183
2018-12-11 10:27:43 -05:00
GU Yiling 0ed0aad772 fix: fix keyName checking for space and delete in IE11 (#9150)
fix #9112
2018-12-05 15:26:58 -05:00
Evan You 1b4a8a0c1e fix(compiler): fix codegen for v-for component inside template
fix #9142
2018-12-04 10:51:49 -05:00
Subhash ef8524ab7d fix(compiler): wrap scoped slots v-if conditions in parens (#9119)
fix #9114
2018-12-01 00:33:59 -05:00
Jovino Xu 05001e695e fix(compiler): should keep newline after unary tags in <pre> (#8965)
fix #8950
2018-11-30 18:02:54 -05:00
HcySunYang 5f6ef15fb2 polish: warn sequential index on <transition-group> (#8748) 2018-11-30 17:35:10 -05:00
Haoqun Jiang 8f04135dba fix(parser): allow CRLFs in string interpolations (#8408)
fix #8103
2018-10-24 13:24:55 -04:00
Kevin Ball ecac831691 fix(compiler): templates inside v-pre should be rendered to HTML (#8146)
close #8041
2018-10-24 13:01:29 -04:00
Evan You e9fc04ba50 test: fix assertion 2018-10-24 12:58:21 -04:00
Jovino Xu aef2a5f3db fix(compiler): maybeComponent should return true when "is" attribute exists (#8114)
close #8101
2018-10-24 12:50:42 -04:00
Yuhang Liu 1b69cbde74 refactor: add empty v-bind warning(re #7973) (#7988)
* refactor: add empty v-bind warnings

re #7973

* Update index.js
2018-10-24 12:46:38 -04:00
Evan You 76fd45c9fd build: upgrade eslint and use only non-stylistic rules 2018-10-24 12:08:32 -04:00
Alex 6bc75cacb7 fix(v-on): return handler value when using modifiers (#7704) 2018-03-08 17:09:53 -05:00
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
2018-03-08 11:24:09 -05:00
Evan You 80e650cfdf chore: fix formatting 2018-03-08 09:52:27 -05:00
Evan You f7311c90b3 refactor: move keyName alias map to compiler 2018-03-07 14:50:35 -05:00
Evan You cd334070f3 fix: address potential regex backtrack 2018-02-21 13:11:11 -05:00
Evan You f8cb3a2393 chore: fix lint 2017-12-25 11:05:54 -05:00
Huo Chunyang 44420b7bbc chore: correct the eslint script statement in package.json and correct the format. (#7308) 2017-12-24 12:28:28 -05:00
Evan You 4e00688e4a build: update dev dependencies 2017-12-12 18:42:44 -05:00
Evan You 5875c7c490 fix: revert shared static tree cache to avoid memory leak
revert f0a66c5
fix #7184
2017-12-05 11:17:36 -05:00
Evan You f5ce6b50cf fix(v-for): support array and nested destructuring in v-for 2017-11-27 16:54:15 -05:00
Evan You aa8262540a fix: fix v-for iterator parsing destructuring + parens without index 2017-11-24 10:09:04 -05:00
Evan You f0a66c5817 refactor: cache v-once and purely static trees separately 2017-11-07 17:10:54 -05:00