Commit Graph

81 Commits

Author SHA1 Message Date
Evan You 4833c1c96e
wip: vapor hmr rerender 2024-12-08 17:20:34 +08:00
Evan You 6f5493c677
wip: make dev mode work for sfc generated code 2024-12-08 16:22:23 +08:00
Evan You f413e00e43
chore: element -> node 2024-12-07 22:08:08 +08:00
Evan You aa96762ad4
wip: dynamic slots 2024-12-07 21:56:54 +08:00
Evan You 4b6100623f
wip: slots 2024-12-07 15:12:32 +08:00
Evan You 8331aa43c4
wip: avoid proxy when slots are static 2024-12-06 23:11:30 +08:00
Evan You 3ef1656d4a
wip: slots proxy 2024-12-06 22:45:45 +08:00
Evan You 238d1817cc
wip: get instance from rawProps to fix proxy handler caching 2024-12-06 21:27:24 +08:00
Evan You e60ec9f399
wip: proxy refs on setup ctx during dev 2024-12-06 11:12:54 +08:00
Evan You ae5ec075ad
wip: component with fallback 2024-12-06 11:10:35 +08:00
Evan You 300bb0859a
wip: fix all runtime-core type errors 2024-12-06 01:19:20 +08:00
Evan You 30e24ce986
wip(vapor): updated/beforeUpdate 2024-12-06 00:55:00 +08:00
Evan You e23a6a8746
wip: unify currentInstance between vdom and vapor + provide/inject 2024-12-05 23:13:24 +08:00
Evan You 93a16af08e
wip: vapor component props validation 2024-12-05 16:14:38 +08:00
Evan You 004e23f9dd
wip: cache normalized options for dev check 2024-12-04 23:50:59 +08:00
Evan You caca46bb73
wip: fix value casting 2024-12-04 23:47:28 +08:00
Evan You 33d1b8bcec
wip: use proxy for static props too 2024-12-04 23:29:01 +08:00
Evan You 23ba438be1
wip(vapor): align compiler with new props runtime behavior 2024-12-04 21:08:12 +08:00
Evan You b1b3baeb6e
wip: make sfc playground work after refactor + support dev mode 2024-12-04 15:07:40 +08:00
Evan You 3a6915b587
refactor: remove @vue/vapor package 2024-12-04 14:22:26 +08:00
Evan You c73ee16345
refactor: remove runtime-shared 2024-12-04 13:50:54 +08:00
Evan You f8046a3e1a
wip: attr fallthrough 2024-12-03 13:21:10 +08:00
Evan You 41c18ef272
wip: props handling 2024-12-02 20:35:45 +08:00
Evan You 0acafc7b4d
wip: save 2024-12-02 09:36:49 +08:00
Evan You 5828f2441f
perf: use class for SetupContext 2024-12-01 17:37:49 +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 3f6ce964c7
feat(vapor): support more magic vars 2024-11-16 06:58:26 +08:00
三咲智子 Kevin Deng 30f6eec3c1
refactor(runtime-vapor): re-organize block 2024-11-16 02:24:42 +08:00
三咲智子 Kevin Deng 7f3ca46523
fix(runtime-vapor): scope id for `v-if` 2024-11-15 01:21:30 +08:00
三咲智子 Kevin Deng 247617612a
feat(vapor): merge inherited attrs with current attrs 2024-11-14 20:21:20 +08:00
三咲智子 Kevin Deng fab9917ae4
fix(runtime-vapor): component self-reference 2024-11-13 11:00:07 +08:00
Kevin Deng 三咲智子 e1bedb8ad0
refactor!: drop custom directives (#274) 2024-09-19 01:15:17 +08:00
三咲智子 Kevin Deng 2ef97fec30
refactor: isolatedDeclarations for vapor 2024-08-09 17:00:27 +08:00
三咲智子 Kevin Deng 07444b3266
feat(runtime-vapor): try to support devtools 2024-06-21 14:03:11 +08:00
XiaoDong be6a2d1d35
fix(runtime-vapor): apiLifeCycle circular dependencies (#244) 2024-06-20 14:33:16 +08:00
Kevin Deng 三咲智子 97f0b3bc33
refactor: component slots (#238)
Co-authored-by: Doctor Wu <doctorwu@moego.pet>
Co-authored-by: Rizumu Ayaka <rizumu@ayaka.moe>
2024-06-19 01:09:17 +08:00
XiaoDong 3ac951b5b5
feat(runtime-vapor): implement app.config.performance (#230)
* feat(runtime-capor): add app.config.performance

* refactor: move formatComponentName to component.ts

* refactor: update import in warning.ts

* fix

* refactor

* fix order

---------

Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-06-16 16:50:36 +08:00
三咲智子 Kevin Deng 598b55f1e8
test(runtime-vapor): finish expose and inject tests 2024-06-05 04:35:13 +08:00
Doctor Wu 107569b922
feat(runtime-vapor): resolve assets of components & directives (#214) 2024-05-29 01:43:47 +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
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
Rizumu Ayaka 9346f885b0
refactor(runtime-vapor): remove optional chaining syntax (#208) 2024-05-12 19:09:31 +08:00
三咲智子 Kevin Deng 1c54cae29a
refactor(runtime-vapor): remove default value 2024-05-12 00:01:27 +08:00
三咲智子 Kevin Deng 639c847c0c
refactor(runtime-shared): move `Data` 2024-05-11 23:14:26 +08:00
三咲智子 Kevin Deng 05f4ade4d9
feat(runtime-vapor): warning with component stack 2024-04-28 22:50:17 +09:00
Doctor Wu b7b652eb71
feat(runtime-vapor): template ref on component (#185) 2024-04-25 04:57:45 +08:00
Doctor Wu d490bf2ed7
feat(runtime-vapor): implement expose (#181)
Co-authored-by: Kevin Deng 三咲智子 <sxzz@sxzz.moe>
2024-04-20 22:17:30 +08:00
Rizumu Ayaka b447aceac5
fix(runtime-vapor): detach effect scope & component instance (#174) 2024-04-16 16:55:44 +08:00
ubugeeei 78f74ce241
feat(runtime-vapor): component slot (#143)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-24 20:29:00 +08:00
ubugeeei 5c9a15140d
feat(runtime-vapor): provide and inject (#158)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-22 23:41:16 +08:00