Commit Graph

37 Commits

Author SHA1 Message Date
Tycho 7d84010c0f
fix(runtime-vapor): respect immutability for readonly reactive arrays in `v-for` (#13187) 2025-06-18 10:17:22 +08:00
edison 99a8c6d34b
fix(runtime-vapor): reset insertion state to avoid duplicate block inserts during non-hydration (#13220) 2025-06-18 09:01:59 +08:00
Evan You f6d7b90195
wip(vapor): corresponding runtime behavior for if/for/slot-outlet post compiler change 2025-03-11 15:27:51 +08:00
Evan You 242cc15fa6
refactor(vapor): use bitwise flags for v-for runtime optimizations 2025-02-12 15:40:09 +08:00
Evan You 528705f667
perf(vapor): v-for remove all fast path 2025-02-10 17:37:24 +08:00
Evan You 11383ae72d
wip(vapor): fix v-for update check + avoid unnecessary tracking overhead during diff 2025-02-09 12:14:31 +08:00
Evan You bcd2eb7fd8
wip(vapor): fix component unmount when not at block root level 2025-02-07 17:04:05 +08:00
Evan You b20bcf1fb6
chore: fix runtime-vapor dts build 2025-02-03 15:46:40 +08:00
Evan You cad7f0e583
wip(vapor): improve v-for codegen + minor optimization 2025-01-31 13:14:16 +08:00
Evan You 34a0ad7499
wip(vapor): optimize v-for getItem 2025-01-30 22:36:41 +08:00
Evan You c89e01efbf
wip(vapor): support default values in v-for destructure 2025-01-30 21:51:48 +08:00
Evan You 95cf749f8b
wip(vapor): support rest elements in v-for destructure 2025-01-30 21:15:25 +08:00
Evan You e49c5a17da
test(vapor): enable more test cases 2025-01-30 10:12:36 +08:00
Evan You 181d3403f7
wip(vapor): v-for 2025-01-29 19:07:40 +08:00
Evan You 23fe7f991f
chore: make type check pass 2024-12-11 11:50:17 +08:00
Evan You c73ee16345
refactor: remove runtime-shared 2024-12-04 13:50:54 +08:00
Evan You 842f94cc73
perf(vapor): improve component instantiation by using class
Mounting 10k components went from ~100ms to ~60ms with this change.
2024-12-01 16:45:29 +08:00
Kevin Deng 三咲智子 9a2158d2f0
refactor(vapor): drop `v-memo` (#288)
* refactor(runtime-vapor): drop memo

* drop
2024-11-18 04:51:15 +08:00
三咲智子 Kevin Deng 30f6eec3c1
refactor(runtime-vapor): re-organize block 2024-11-16 02:24:42 +08:00
Kevin Deng 三咲智子 c574faa8f3
refactor(runtime-vapor): simplify directive mechanism (#278)
* feat: custom directive v2

* wip

* fix: directive

* fix

* refactor

* refactor: remove ref for el
2024-11-13 08:41:02 +08:00
三咲智子 Kevin Deng c1c316d392
feat(runtime-vapor): fast path for clear all children 2024-10-05 21:27:57 +08:00
三咲智子 Kevin Deng 3867942ddb
fix(runtime-vapor): stale memo cache 2024-10-05 20:33:35 +08:00
Rizumu Ayaka eda2a43f07
refactor(runtime-vapor): remove shallowRef list for v-for (#281) 2024-09-29 00:47:44 +08:00
Rizumu Ayaka 5f6cd32d8b
test(runtime-vapor): fix shallowRef in v-for (#280) 2024-09-28 01:53:29 +08:00
三咲智子 Kevin Deng b962aa52ff
refactor(runtime-vapor): remove support of shallowRef in v-for
Co-authored-by: Rizumu Ayaka <rizumu@ayaka.moe>
2024-09-28 01:42:45 +08:00
Kevin Deng 三咲智子 884c190f08
feat: `v-memo` for `v-for` (#276) 2024-09-19 15:40:20 +08:00
三咲智子 Kevin Deng cc58f651e1
refactor(compiler-vapor): remove `proxyRefs` in v-for 2024-09-19 01:17:16 +08:00
Kevin Deng 三咲智子 e1bedb8ad0
refactor!: drop custom directives (#274) 2024-09-19 01:15:17 +08:00
Rizumu Ayaka b2259a5f92
refactor: general destructuring function (#221) 2024-05-31 15:49:49 +08:00
Rizumu Ayaka 868c4294a0
feat: destructuring + nesting in v-for (#217)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-29 16:25:08 +08:00
Rizumu Ayaka b5ecb72864
feat: directive lifecycle hooks in `v-for`, `v-if` and component (#123)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-27 02:47:51 +08:00
Doctor Wu 4e13a57d9c
feat(compiler/runtime-vapor): implement v-slots + v-for / v-if (#207)
Co-authored-by: Rizumu Ayaka <rizumu@ayaka.moe>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-21 08:50:10 +08:00
Jevon b776f92596
feat: v-once for component and v-for (#201)
* feat: v-once with v-for / v-once for component

* refactor

* refactor

---------

Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-17 20:44:58 +08:00
Doctor Wu 38e167ceb8
feat: implement inheritAttrs (#153)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-19 00:24:58 +08:00
Rizumu Ayaka 64e83689a0
refactor(runtime-vapor): `renderEffect` based on `ReactiveEffect` + remove `renderWatch` (#155) 2024-03-18 20:13:40 +08:00
Kevin Deng 三咲智子 463b47e83d
feat: create component & component lifecycle/props/attrs (#151) 2024-03-16 18:54:36 +08:00
三咲智子 Kevin Deng 7e0f15fa7c
refactor(runtime-vapor): re-organize 2024-03-14 16:02:46 +08:00