Commit Graph

174 Commits

Author SHA1 Message Date
Evan You 4f2a04e6a8 fix: fix scopedSlots regression 2022-06-06 15:25:41 +08:00
Evan You 72aed6a149 workflow: remove eslint, apply prettier 2022-05-23 17:21:17 +08:00
Evan You 250bc17d51 test: unit/features/component passing 2022-05-20 08:46:15 +08:00
Evan You 29989a1074 test: move transition + keep alive test cases 2022-05-20 08:30:41 +08:00
Evan You 5ec77f32be test: shim done interface for tests 2022-05-20 08:22:26 +08:00
Evan You 63e7d59a03 test: remove global before waitForUpdate 2022-05-20 07:57:07 +08:00
Evan You 52627b95ce test: jasmine.createSpy -> vi.fn 2022-05-20 07:56:02 +08:00
Evan You 8e672c4251 test: first full test suite passing 2022-05-20 07:29:25 +08:00
Evan You 972d8066d7 test: migrate tests to vitest (wip) 2022-05-19 18:21:31 +08:00
Evan You 0b56077080 build: remove deps 2022-05-19 16:29:22 +08:00
David Welch 40dccfedd1 chore: fix test harness; most of the tooling + test harness is happy; coverage still needs fixing 2022-05-03 11:04:55 -06:00
David Welch cf8b16568d merge 2022-05-01 15:13:36 -06:00
David Welch be4b617942 chore: cleanup on tests; babel preset for typescript help 2022-05-01 14:37:05 -06:00
Carlos Rodrigues ee5243fdcc chore: fix tests 2022-04-30 09:07:01 +01:00
David Welch 534a0aa863 chore: convert tests to typescript 2022-04-29 15:43:25 -06:00
180909 93bd4406ac
fix typos (#12348) 2021-11-06 23:43:57 +01:00
Ziwen Mei 531b7619b1
chore: fix typo in test (#12291) 2021-09-22 15:58:08 +02:00
zrh122 3d29ba863b
fix(v-on): add removing all dom event listeners when vnode destroyed (#10085) 2021-08-05 11:21:12 +02:00
Eduardo San Martin Morote 38f71de380
fix(v-slot): fix scoped slot normalization combined with v-if (#12104) 2021-06-02 14:44:18 +02:00
Eduardo San Martin Morote e7baaa1205
fix(keep-alive): cache what is really needed not the whole VNode data (#12015)
Co-authored-by: zrh122 <1229550935@qq.com>
2021-04-16 19:19:29 +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
ygj6 77b5330c54
fix: force update between two components with and without slot (#11795) 2021-04-16 17:34:34 +02:00
shadowings-zy fb16d7bfa1
fix(vdom): avoid executing root level script tags (#11487)
fix #11483
2021-03-30 11:43:34 +02:00
X.L 085d188379 fix(compiler): Remove the warning for valid v-slot value (#9917) 2019-04-25 11:17:39 +08:00
Alexander Schwartz 02d21c265c fix(core): cleanup timeouts for async components (#9649)
close #9648
2019-03-20 13:55:37 +08:00
Evan You ebc1893fac fix(slots): fix slots not updating when passing down normal slots as $scopedSlots
fix #9699
2019-03-18 17:43:01 +08:00
Evan You 781c70514e fix: should use fallback for scoped slots with single falsy v-if
fix #9658
2019-03-09 02:44:08 +08:00
Evan You 9313cf9174 fix: should consider presence of normal slots when caching normalized scoped slots
fix #9644
2019-03-09 02:03:47 +08:00
Evan You d9b27a92bd fix: ensure scoped slots update in conditional branches
close #9534
2019-02-20 21:48:33 -05:00
Evan You 8f004ea44e fix: scoped slots should update when inside v-for
fix #9506
2019-02-18 17:17:47 -05:00
Evan You 21fca2fffc fix: ensure scoped slot containing passed down slot content updates properly 2019-02-11 11:30:14 -05:00
Evan You e7d49cdcf2 fix: allow passing multiple arguments to scoped slot
fix #9468

Note: the usage is NOT recommended
2019-02-10 22:24:18 -05:00
Evan You 060686d6ea fix: do not cache scoped slots when mixed with normal slots 2019-02-10 22:23:22 -05:00
Evan You 8a800867fe fix: new syntax slots without scope should also be exposed on functional slots() 2019-02-08 14:45:45 -05:00
Evan You 0e8560d0fc fix: expose v-slot slots without scope on this.$slots
fix #9421, fix #9458
2019-02-08 13:47:17 -05:00
Evan You 57bc80a546 fix: empty scoped slot should return undefined
fix #9452
2019-02-07 10:03:13 -05:00
Evan You d5ade28652 revert: feat: expose all scoped slots on this.$slots
This reverts commit 0129b0eb12.
2019-02-06 15:22:21 -05:00
Evan You 96a09aad99 fix(compiler): fix v-bind dynamic arguments on slot outlets
fix #9444
2019-02-06 13:58:09 -05:00
Evan You 4d4d22a3f6 fix: bail out scoped slot optimization when there are nested scopes
fix #9438
2019-02-06 12:29:00 -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
Evan You 0129b0eb12 feat: expose all scoped slots on this.$slots
close #9421
2019-02-04 22:25:19 -05:00
Evan You 3edb999200 polish: warn against incorrect nested v-slot usage 2019-01-30 21:33:59 -05:00
Evan You 2807fd24b0 fix: template v-slot should work with v-else conditions 2019-01-30 21:30:29 -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 8cb2069aa4 test: fix tests in IE/Edge 2019-01-24 10:05:39 -05:00
Evan You 8d8457246d feat: warning for ambiguous v-slot usage 2019-01-23 10:20:01 -05:00
Evan You 67e85deae2 feat: adjust v-slot per RFC + enable flag 2019-01-22 22:21:40 -05:00
Evan You 4fca0454bd feat: update new slot syntax per RFC revision 2019-01-16 13:44:58 -05:00