Commit Graph

67 Commits

Author SHA1 Message Date
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
Doctor Wu 9a2c12e3cd
feat(runtime-vapor): implement setupContext (#157) 2024-03-22 23:28:18 +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
Kevin Deng 三咲智子 463b47e83d
feat: create component & component lifecycle/props/attrs (#151) 2024-03-16 18:54:36 +08:00
三咲智子 Kevin Deng 5d15314c4e
refactor(runtime-vapor): remove created & beforeCreate hooks 2024-03-16 03:32:19 +08:00
三咲智子 Kevin Deng 808d17dbd1
refactor(runtime-vapor): split create component & render 2024-03-14 16:32:22 +08:00
三咲智子 Kevin Deng 7e0f15fa7c
refactor(runtime-vapor): re-organize 2024-03-14 16:02:46 +08:00
三咲智子 Kevin Deng c1d9b64b7b
refactor: re-organize exports 2024-02-25 15:23:29 +08:00
三咲智子 Kevin Deng 26f29b2529
refactor(runtime-vapor): move metadata from instance to node 2024-02-23 01:21:00 +08:00
三咲智子 Kevin Deng e10f7d1689
refactor(runtime-vapor): fix component type 2024-02-14 14:43:18 +08:00
ubugeeei 52311fa7ae
feat(runtime-vapor): component attrs (#124) 2024-02-10 13:07:13 +08:00
ubugeeei cde91e4fb5
feat(runtime-vapor): component emits (#103)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-02-04 21:18:57 +08:00
三咲智子 Kevin Deng 1f134ae43a
feat(runtime-vapor): expose vapor mode flag 2024-01-24 22:11:46 +08:00
三咲智子 Kevin Deng 32604cf91c
refactor(runtime-vapor): template refs 2024-01-21 13:59:56 +08:00
三咲智子 Kevin Deng 31e8fa35c0
feat: v-model for input & textarea 2024-01-21 02:16:53 +08:00