Commit Graph

75 Commits

Author SHA1 Message Date
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
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 f1bdd7ff9d fix(compiler): whitespace: 'condense' should honor pre tag as well (#9660) 2019-03-14 15:47:51 +08: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 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 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
NaotoSuzuki 8fccd82569 chore: fix tag name in compiler/parser/index.js (#9165) 2018-12-11 11:28:40 -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
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 4e00688e4a build: update dev dependencies 2017-12-12 18:42:44 -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 f2e00f756f fix: special case for static muted attribute in firefox
fix #6887
2017-11-02 16:55:05 -04:00
AchillesJ 06b9b0bbad fix(v-bind): respect .prop modifier on components (#6159) 2017-07-19 19:25:22 -04: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
wenlu.wang e4da249ab8 feat: add `comments` option to allow preserving comments in template (#5951)
close #5392
2017-06-30 08:56:23 +08:00
Evan You 303780acd2 make function compilation reusable 2017-05-15 15:35:45 +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 c24f492543 fix edge test case 2017-04-26 18:24:38 +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
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
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 61930e0cc6 chore(test): fix some typos (#5101) 2017-03-06 09:50:49 +01:00
Evan You f59aef08e6 further improve end tag check (close #4408) 2017-02-14 15:47:40 -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
chengchao e02fb1294d preserve the only whitespace child (#4760) 2017-01-20 09:42:54 -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 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
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 b7946a4b22 wip: fix tests with expected warnings 2016-11-24 12:00:51 -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 5d36e8bc1b fix IE conditional comments (fix #4125) 2016-11-04 19:48:11 -04:00
Evan You e2a361a052 forgivingly handle < inside template plain text (fix #4012) 2016-11-03 00:53:49 -04:00
Chris Fritz 84918577d2 fix problematic use of 'deprecated' in warnings (#4043) 2016-11-01 11:17:25 -04:00
Evan You 3f8fa43819 fix duplicate attribute test case in IE 2016-10-13 05:19:51 -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
Evan You 8ef603b7c3 test <template> key warning, fix coverage 2016-09-30 14:19:16 -04:00
Brandon Surowiec 0f8ad06b2c Fix Spelling (#3496)
* Fix Spelling

* Fix other instances.
2016-08-22 23:03:00 +02:00