Commit Graph

74 Commits

Author SHA1 Message Date
Rizumu Ayaka 757af933dc
test(runtime-vapor): `dom/patchProp.ts` (#102)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-02-01 14:35:52 +08:00
三咲智子 Kevin Deng 261b7d40a4
feat(runtime-vapor): add defineComponent 2024-01-31 18:08:07 +08:00
三咲智子 Kevin Deng 46e83e9681
refactor(compiler-vapor): symbol for newline (#104) 2024-01-31 17:26:07 +08:00
三咲智子 Kevin Deng 681dc5d954
feat(compiler-vapor): v-for (#101) 2024-01-31 17:00:19 +08:00
三咲智子 Kevin Deng f7642ab77c
refactor(compiler-vapor): remove createTextNode argument 2024-01-31 13:16:03 +08:00
三咲智子 Kevin Deng e02725665d
fix(compiler-vapor): import helper with type check 2024-01-30 22:21:59 +08:00
三咲智子 Kevin Deng 74f7e56fb8
refactor(runtime-vapor): throw errors when node is not found 2024-01-30 05:39:53 +08:00
三咲智子 Kevin Deng cd0e3273d2
test: add normalizeBlock 2024-01-30 05:39:53 +08:00
Rizumu Ayaka 489f11a1f9
refactor(runtime-vapor): template fragment (#100)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-01-30 04:15:52 +08:00
三咲智子 Kevin Deng 93db0a70eb
test: simplify 2024-01-30 03:16:33 +08:00
三咲智子 Kevin Deng 63aacf6194
style: respect root prettier config 2024-01-29 03:11:30 +08:00
三咲智子 Kevin Deng 17af64c0c1
feat(runtime-vapor): createFor 2024-01-28 20:16:35 +08:00
Rizumu Ayaka ede6c29434
feat(compiler-vapor): `v-if` (#96)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-01-28 01:31:20 +08:00
三咲智子 Kevin Deng 359a5dab19
refactor: get oldVal from metadata 2024-01-25 17:00:19 +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
三咲智子 Kevin Deng 782d60475d
feat: basic template ref 2024-01-20 23:48:10 +08:00
三咲智子 Kevin Deng 6a26db2adc
refactor(runtime-vapor): remove ref wrapper for mounted state 2024-01-20 20:46:41 +08:00
三咲智子 Kevin Deng 9d071e7c31
fix(runtime-vapor): set setupState 2024-01-20 20:22:06 +08:00
三咲智子 Kevin Deng 35334fd33e
fix(runtime-vapor): patch prop 2024-01-20 13:38:20 +08:00
ygj6 775491e46d
feat: prop and attr modifiers for v-bind (#79) 2024-01-20 13:31:16 +08:00
三咲智子 Kevin Deng fc651f6905
fix(runtime-vapor): normalize state&block 2024-01-19 22:43:43 +08:00
三咲智子 Kevin Deng 305a651c68
chore: update comment 2024-01-19 17:10:10 +08:00
三咲智子 Kevin Deng 5c0b8bbeb3
refactor: simplify code 2024-01-19 16:59:03 +08:00
Rizumu Ayaka 1e0070c208
feat(runtime-vapor): createIf (#95)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-01-19 16:38:41 +08:00
Rizumu Ayaka 2cce436aaf
feat(runtime-vapor): lifecycle beforeUpdate and updated hooks (#89) 2024-01-13 03:25:57 +08:00
Rizumu Ayaka 26fee414ff
feat: compound expression for `v-on` (#60) 2024-01-08 14:07:49 +08:00
Rizumu Ayaka fb4d9a1443
feat: renderWatch / renderEffect (#86)
* refactor: use baseWatch to drive watchAPI

* feat: basic implementation of renderWatch and effectId

* chore: remove effect id

* chore: export and simplify types

* test: render watch

* chore: add todo comment

* fix: sync code changes according to the review in PR #82

* fix: enum values conflict

* chore: rename

* feat: change watchEffect to renderEffect in compiler-vapor

* chore: update

---------

Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-01-07 01:31:01 +08:00
Rizumu Ayaka dce55475a5
style: fix lint errors in vapor 2023-12-29 22:05:33 +08:00
三咲智子 Kevin Deng 22ed5a7782
chore: remove unused 2023-12-26 23:48:45 +08:00
三咲智子 Kevin Deng efc32b716f
refactor(runtime-vapor): remove public instance 2023-12-25 02:51:51 +08:00
GaoNeng 3d4bc018d7
feat(runtime-vapor): onErrorCaptured (#71)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-12-25 02:44:01 +08:00
Kaine d3a86cf144
fix(runtime-vapor): fix v-show value (#70) 2023-12-23 15:23:34 +08:00
Rizumu Ayaka 5b3027f0a9
feat(runtime-vapor): `watchEffect`/`watch` and `onEffectCleanup` (#69) 2023-12-23 15:17:18 +08:00
GaoNeng 9d3abcf24b
feat(runtime-vapor): mounted & unmounted hook (#46)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-12-15 01:47:56 +08:00
三咲智子 Kevin Deng 9dda97e736
refactor(runtime-vapor): clean up 2023-12-15 01:30:34 +08:00
白雾三语 6eaf4b651b
fix(runtime-vapor): `unmountComponent` (#63)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-12-15 01:23:17 +08:00
白雾三语 9e031275d7
fix: throw error without `script` block (#61)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-12-13 15:16:33 +08:00
白雾三语 5e681b5945
feat(compiler-vapor): functional custom directive support updated hooks (#58)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-12-13 15:01:07 +08:00
白雾三语 2e25c22ddf
test: add v-show unit test (#56) 2023-12-12 15:52:49 +08:00
三咲智子 Kevin Deng 19fb55febf
fix(runtime-vapor): custom directive instance
closes #50
2023-12-12 15:39:00 +08:00
三咲智子 Kevin Deng 3ba1315e72
refactor(runtime-vapor): remove argument generic 2023-12-11 16:24:07 +08:00
ubugeeei 12250a85b9
feat(runtime-vapor): component props (#40) 2023-12-10 01:33:18 +08:00
三咲智子 Kevin Deng 5f90f8bef0
feat: v-show 2023-12-08 17:37:21 +08:00
三咲智子 Kevin Deng 71bc13575f
types(runtime-vapor): add modifiers & argument type 2023-12-07 10:46:34 +08:00
三咲智子 Kevin Deng 41a7079493
refactor: extract Data 2023-12-07 01:55:00 +08:00
白雾三语 0cca23f574
feat(compiler-vapor): support custom directives argument & modifiers (#34)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-12-07 01:41:17 +08:00
三咲智子 Kevin Deng 9e9703d7b6
feat(runtime-vapor): render component 2023-12-06 18:49:41 +08:00
三咲智子 Kevin Deng 25f90b2a97
chore: fix lint 2023-12-04 16:45:26 +08:00