contribu
52608302e9
fix(core): fix sameVnode for async component ( #11107 )
...
Co-authored-by: mac2 <mac2@example.com>
2021-04-16 17:58:02 +02:00
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
hareku
841bb084ca
chore: fix typo in element test ( #11085 )
2020-02-06 17:22:26 +01: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
Evan You
7186940143
fix: should not swallow user catch on rejected promise in methods
...
fix #9694
2019-03-14 15:25:01 +08:00
Decade
2747a65765
test: remove unused code ( #9684 )
2019-03-13 10:19:19 +08:00
Jason
cbad54aa52
fix(compiler): set end location for incomplete elements ( #9598 )
2019-03-01 09:56:13 -05:00
Evan You
03c13de38e
refactor: remove unncessary condition
2019-02-28 17:39:10 -05:00
Evan You
173042bb8e
refactor: improve test case
2019-02-21 14:14:35 -05:00
DSha
2f3020e9cc
fix( #9511 ): avoid promise catch multiple times ( #9526 )
...
* fix(#9511 ): avoid promise catch multiple times
* fix(#9511 ): add a test case for util/error/invokeWithErrorHandling
* fix(#9511 ): update test case for util/error/invokeWithErrorHandling
2019-02-21 14:01:53 -05:00
Evan You
8a80a23ecb
fix: avoid errors thrown during dom props update
...
breaking the entire app
fix #9459
2019-02-21 14:00:28 -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
24b4640c1f
fix: avoid exposing internal flags on $scopedSlots
...
ref #9443
2019-02-06 11:35:26 -05:00
Evan You
b9de23b100
fix: async component should use render owner as force update context
...
Previously, an async component uses its lexical owner as the force
update context. This works when the async component is rendered in a
scoped slot because in the past parent components always force update
child components with any type of slots. After the optimization in
f219bed
though, child components with only scoped slots are no longer
force-updated, and this cause async components inside scoped slots to
not trigger the proper update. Turns out they should have used the
actual render owner (the component that invokes the scoped slot) as the
force update context all along.
fix #9432
2019-02-05 22:18:05 -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
44a17ba2cd
fix: fix child forceUpdate regression
...
close #9396
2019-01-31 10:24:41 -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
6fe07ebf5a
chore: merge branch '2.6' into dev
2019-01-11 18:26:32 -05:00
Adrien Baron
d21e931396
fix(async component): memory leak after synchronous async loading ( #9275 )
...
fix #9229
2019-01-11 15:46:25 -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
Zhenfei You
bf0efb02b1
feat(compiler): support deindent: false in vue-template-compiler ( #7215 )
...
close #7054
2018-12-21 11:59:33 -05:00
Evan You
9432737cf8
fix: cover more cases in v-on inline return value
2018-12-20 12:20:09 -05:00
Xin Du (Clark)
b06c784b81
fix(ssr): support rendering comment ( #9128 )
2018-12-12 11:41:08 -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
Evan You
5d721a42b1
revert: fix(sfc): avoid deindent when pad option is specified ( #7647 )
...
This reverts commit 9d2f9a034f
.
2018-12-09 15:52:17 -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
Daniel Santana Rocha
2bb3199da7
polish: warn duplicate keys when patching children into empty node ( #8881 )
...
close #8832
2018-11-30 18:01:45 -05:00
Matt Lavallee
2e472c5e5e
fix(component): clean up memory leak after loading async component completes ( fix #8740 ) ( #8755 )
...
* fix(component): clean up memory leak after loading async component completes
* fix(async component): accounting for async components with loading property
* refactor(component): simplifying memory cleanup logic
2018-11-30 17:36:08 -05:00
HcySunYang
5f6ef15fb2
polish: warn sequential index on <transition-group> ( #8748 )
2018-11-30 17:35:10 -05:00