三咲智子 Kevin Deng
681dc5d954
feat(compiler-vapor): v-for ( #101 )
2024-01-31 17:00:19 +08:00
三咲智子 Kevin Deng
7b036fd4c0
fix(compiler-vapor): source map position
2024-01-31 15:43:37 +08:00
三咲智子 Kevin Deng
f7642ab77c
refactor(compiler-vapor): remove createTextNode argument
2024-01-31 13:16:03 +08:00
三咲智子 Kevin Deng
ccfadc1fb4
refactor(compiler-vapor): re-organize
2024-01-30 23:02:16 +08:00
三咲智子 Kevin Deng
38a06394f7
refactor(compiler-vapor): rename dynamicFlags to flags
2024-01-30 22:52:42 +08:00
三咲智子 Kevin Deng
b8806f0954
refactor(compiler-vapor): class-based CodegenContext
2024-01-30 22:46:56 +08:00
三咲智子 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
d7ab873f1e
refactor(compiler-vapor): remove unnecessary DynamicFlag.INSERT
2024-01-30 06:12:01 +08:00
三咲智子 Kevin Deng
48d2aa3bcb
fix(compiler-vapor): handle no template
2024-01-29 23:06:21 +08:00
三咲智子 Kevin Deng
ed9368c06c
refactor(compiler-vapor): make dynamic.children an array
2024-01-29 22:28:40 +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
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
三咲智子 Kevin Deng
63aacf6194
style: respect root prettier config
2024-01-29 03:11:30 +08:00
三咲智子 Kevin Deng
86ed0eddae
perf(compiler-vapor): use array instead of regex
2024-01-28 03:35:04 +08:00
三咲智子 Kevin Deng
d3baff92b1
fix(compiler-vapor): don't mutate ast
2024-01-28 03:32:27 +08:00
三咲智子 Kevin Deng
7e47ae17f9
feat(compiler-vapor): add error check and simplify for v-if
2024-01-28 02:14:42 +08:00
三咲智子 Kevin Deng
9c9e9b2862
refactor(compiler-vapor): dedpue fragment
2024-01-28 01:39:21 +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
三咲智子 Kevin Deng
8848d10522
fix(compiler-vapor): omit prop key for set class&style
2024-01-25 16:24:50 +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
三咲智子 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
三咲智子 Kevin Deng
199b19f076
test: update snapshot
2024-01-20 13:29:55 +08:00
三咲智子 Kevin Deng
10f8cb4351
fix(compiler-vapor): don't setText for root element
2024-01-19 22:50:12 +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
三咲智子 Kevin Deng
d1dd1e110a
fix(compiler-vapor): add modifier for empty v-on
2023-12-10 01:36:34 +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
三咲智子 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