Rizumu Ayaka
63a127b612
feat(compiler-vapor): `v-else` / `v-else-if` ( #98 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-01-29 03:42:56 +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
2b5e8e4df6
test(compiler-vapor): refactor compile
2024-01-27 22:13:37 +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
359a5dab19
refactor: get oldVal from metadata
2024-01-25 17:00:19 +08:00
ygj6
5028880e5b
feat: generate specific function when the prop key is static ( #97 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-01-22 23:03:39 +08:00
ygj6
775491e46d
feat: prop and attr modifiers for v-bind ( #79 )
2024-01-20 13:31:16 +08:00
三咲智子 Kevin Deng
199b19f076
test: update snapshot
2024-01-20 13:29:55 +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
Rizumu Ayaka
42b913283b
test: add all tests for `v-on` ( #52 )
2023-12-12 15:58:07 +08:00
Rizumu Ayaka
c87512f592
test: add transform tests to `v-html` / `v-text` tests ( #49 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-12-11 03:05:11 +08:00
Rizumu Ayaka
28b11f5cf7
test: add transform tests to `v-once` tests ( #44 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-12-11 01:41:29 +08:00
Rizumu Ayaka
b421aa91a2
test: combine with transform and codegen tests for `v-bind` ( #45 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-12-10 01:33:29 +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
Rizumu Ayaka
e3b21b25b1
test: split test files ( #38 )
2023-12-09 03:29:38 +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
910545f524
test: remove fixtures
2023-12-07 01:12:27 +08:00
三咲智子 Kevin Deng
8786c076d9
perf(compiler-vapor): combine effect
2023-12-07 01:11:25 +08:00
三咲智子 Kevin Deng
3d9f0ac614
feat(compiler-vapor): shorthand & no expression
2023-12-07 00:36:42 +08:00
Rizumu Ayaka
8482bad7af
test: compound expression for `v-bind` ( #36 )
2023-12-07 00:22:36 +08:00
三咲智子 Kevin Deng
a10c8a4128
test: update snapshot
2023-12-06 18:52:14 +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
Rizumu Ayaka
b866cf0cc3
test: `v-cloak` ( #32 )
2023-12-05 22:36:46 +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
Jeff Yang
c7cd2e4764
fix: do not wrap registering event listeners under effect ( #27 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-12-03 01:46:07 +08:00
三咲智子 Kevin Deng
5a424218f1
feat: DirectiveTransform
2023-12-03 01:43:31 +08:00
三咲智子 Kevin Deng
03344eea7e
refactor: transformElement
2023-12-02 16:59:43 +08:00
Rizumu Ayaka
886d16f458
feat: implement error handling for v-html ( #30 )
2023-12-02 15:59:09 +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
0d9f0867d7
refactor(compiler-vapor): errors
2023-12-01 08:05:43 +08:00
三咲智子 Kevin Deng
cfd6d40d72
feat(compiler-vapor): node transform
2023-12-01 07:42:43 +08:00
三咲智子 Kevin Deng
5957c18a0b
fix(compiler-vapor): prefix identifiers
2023-12-01 06:01:25 +08:00
Rizumu Ayaka
184feee3ba
test: v-pre ( #14 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-11-30 05:31:26 +08:00
ubugeeei
503615a31e
feat(compiler): v-on event modifier ( #8 )
2023-11-30 05:11:59 +08:00
Rizumu Ayaka
4200d4e2d0
feat: add vapor errors of `v-bind` / `v-on` ( #3 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-11-28 18:17:41 +08:00
白雾三语
c1ddb700a8
test: add dynamic root nodes and interpolation ( #1 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-11-28 13:06:44 +08:00