Commit Graph

68 Commits

Author SHA1 Message Date
三咲智子 Kevin Deng e02725665d
fix(compiler-vapor): import helper with type check 2024-01-30 22:21:59 +08:00
三咲智子 Kevin Deng 7f8a94b48e
refactor(compiler-vapor): fast path for string 2024-01-30 22:17:34 +08:00
三咲智子 Kevin Deng c0b7515369
refactor(compiler-vapor): CodeFragment for codegen 2024-01-30 22:08:28 +08:00
三咲智子 Kevin Deng d942be14f2
refactor(compiler-vapor): simplify codegen context 2024-01-30 19:35:29 +08:00
三咲智子 Kevin Deng 48d2aa3bcb
fix(compiler-vapor): handle no template 2024-01-29 23:06:21 +08:00
三咲智子 Kevin Deng 22436ea341
refactor(compiler-vapor): decoupe insert and non-template 2024-01-29 22:15:34 +08:00
三咲智子 Kevin Deng 79636ddc5b
refactor(compiler-vapor): dynamicFlag 2024-01-29 22:08:57 +08:00
三咲智子 Kevin Deng 63aacf6194
style: respect root prettier config 2024-01-29 03:11:30 +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 164fd90df4
refactor(compiler-vapor): codegen result 2024-01-27 22:00:34 +08:00
三咲智子 Kevin Deng c2c8070207
refactor(compiler-vapor): group directives by same element 2024-01-27 20:49:43 +08:00
三咲智子 Kevin Deng 1d11ed72fb
refactor(compiler-vapor): extract gen operation 2024-01-21 13:43:23 +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
ygj6 775491e46d
feat: prop and attr modifiers for v-bind (#79) 2024-01-20 13:31:16 +08:00
zhiyuanzmj 0494323795
feat(compiler-vapor): support `expressionPlugins` for generate (#91) 2024-01-13 18:30:03 +08:00
zhiyuanzmj 8d7d672bc5
fix(compiler-vapor): should not prefix member expression (#92) 2024-01-13 03:26:50 +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
Rizumu Ayaka 5b3027f0a9
feat(runtime-vapor): `watchEffect`/`watch` and `onEffectCleanup` (#69) 2023-12-23 15:17:18 +08:00
三咲智子 Kevin Deng d1dd1e110a
fix(compiler-vapor): add modifier for empty v-on 2023-12-10 01:36:34 +08:00
三咲智子 Kevin Deng ecf7da98d7
feat: pushFnCall 2023-12-10 01:26:19 +08:00
三咲智子 Kevin Deng 0c26b0d4ed
feat: withIndent 2023-12-10 01:05:26 +08:00
三咲智子 Kevin Deng 4b4cb055a4
refactor: pushMulti 2023-12-10 01:01:57 +08:00
三咲智子 Kevin Deng da8e196ca5
refactor(compiler-vapor): v-on 2023-12-10 00:06:20 +08:00
三咲智子 Kevin Deng 45e86e36d7
fix(compiler-vapor): generate static expression 2023-12-09 23:29:30 +08:00
三咲智子 Kevin Deng 341ddf0190
feat(compiler-vapor/v-bind): globally allowed 2023-12-09 23:29:22 +08:00
Rizumu Ayaka 26308c51eb
feat: camel modifier for `v-bind` (#39) 2023-12-09 18:41:59 +08:00
三咲智子 Kevin Deng 5f769745fa
test: add transform test 2023-12-09 04:11:02 +08:00
三咲智子 Kevin Deng 5f90f8bef0
feat: v-show 2023-12-08 17:37:21 +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 f907a2a708
fix(compiler-vapor): event handler 2023-12-06 18:49:41 +08:00
三咲智子 Kevin Deng 505c5a8c07
fix: genExpression 2023-12-06 14:25:15 +08:00
三咲智子 Kevin Deng f644ed4081
feat: compound expression for v-bind 2023-12-06 00:17:16 +08:00
三咲智子 Kevin Deng 3474e06542
fix: exclude compund expression type 2023-12-06 00:17:16 +08:00
三咲智子 Kevin Deng f3e80d7706
feat: support more directive hook 2023-12-04 16:08:15 +08:00
三咲智子 Kevin Deng db151e1b43
feat: custom directlve
closes #19
2023-12-03 18:36:54 +08:00
白雾三语 28caf8f566
feat: v-on modifiers support native options and keyboards (#28)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-12-03 03:49:44 +08:00
三咲智子 Kevin Deng 89cefda3ad
fix: identifier source map 2023-12-02 00:49:17 +08:00
三咲智子 Kevin Deng 2180706cad
fix: preamble in inline mode 2023-12-02 00:35:30 +08:00
三咲智子 Kevin Deng 13d0993cd3
feat: source map for expressions 2023-12-02 00:07:24 +08:00
三咲智子 Kevin Deng 2f029b659c
refactor: process expression 2023-12-01 23:30:21 +08:00
三咲智子 Kevin Deng 919644faaf
refactor: codegen indent 2023-12-01 22:45:08 +08:00
三咲智子 Kevin Deng 9843175c2c
feat: push codegen 2023-12-01 22:12:19 +08:00
三咲智子 Kevin Deng fe1780d9ff
refactor(compiler-vapor): import alias 2023-12-01 08:26:01 +08:00
三咲智子 Kevin Deng 0b765bcea3
feat: codegen context 2023-12-01 06:01:25 +08:00
ubugeeei 503615a31e
feat(compiler): v-on event modifier (#8) 2023-11-30 05:11:59 +08:00
三咲智子 Kevin Deng 8b075796d7
feat: scheduler 2023-11-27 23:48:36 +08:00
三咲智子 Kevin Deng 71cf732d6d
feat: append & prepend multiple elements 2023-11-27 06:22:10 +08:00