Commit Graph

86 Commits

Author SHA1 Message Date
三咲智子 Kevin Deng 77743006b8
refactor(runtime-vapor): update selected option 2024-02-06 20:24:59 +08:00
FireBushtree 7c881f853c
test(runtime-vapor): dom/patchProp.ts special check (#117)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-02-06 12:35:31 +08:00
ubugeeei e9e7fe414b
feat(runtime-vapor): component props validator (#114) 2024-02-05 03:29:59 +08:00
三咲智子 Kevin Deng 95782883b3
fix(runtime-vapor): special check for setDOMProp 2024-02-05 03:28:32 +08:00
ygj6 d573a3d2f2
feat: support v-bind="{}" (#106)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-02-05 02:44:30 +08:00
三咲智子 Kevin Deng 920b36490e
test(runtime-vapor): pass raw props 2024-02-04 22:51:08 +08:00
三咲智子 Kevin Deng ed954bcd33
feat(runtime-vapor): support v-model w/ select tag 2024-02-04 22:49:59 +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
ubugeeei ea5f7ec076
test(runtime-vapor): component props (#99)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-02-04 20:46:08 +08:00
三咲智子 Kevin Deng be65b98a33
refactor: remove update function from compiler 2024-02-03 05:02:07 +08:00
三咲智子 Kevin Deng e7e3b1c73e
revert: "refactor: id rewrite of vapor v-for"
This reverts commit 31f497b1d1.
2024-02-01 19:12:29 +08:00
三咲智子 Kevin Deng 31f497b1d1
refactor: id rewrite of vapor v-for 2024-02-01 17:42:46 +08:00
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