Commit Graph

167 Commits

Author SHA1 Message Date
三咲智子 Kevin Deng e050646079
fix(compiler-vapor): generate assignment for v-model 2024-02-09 00:09:05 +08:00
三咲智子 Kevin Deng 985d4c7422
refactor: return only one node from children helper 2024-02-08 23:03:42 +08:00
三咲智子 Kevin Deng c70661c8a3
refactor(compiler-vapor): don't convert event name 2024-02-08 21:56:57 +08:00
三咲智子 Kevin Deng 126796edb9
fix(compiler-vapor): add newline after effect body 2024-02-08 21:56:30 +08:00
三咲智子 Kevin Deng 697102f796
feat(compiler-vapor): resolve dynamic expression 2024-02-08 21:56:30 +08:00
三咲智子 Kevin Deng 6e80e34e6b
perf(compiler-vapor): register as operations if no dynamic expressions 2024-02-08 20:50:34 +08:00
三咲智子 Kevin Deng 0cdc9f20c6
refactor(compiler): export isLiteralWhitelisted 2024-02-08 20:35:11 +08:00
三咲智子 Kevin Deng 35b78920c4
feat(compiler-vapor): add getKey function for v-for 2024-02-08 20:31:56 +08:00
三咲智子 Kevin Deng 8fb01504da
refactor(compiler-vapor): remove ir expression 2024-02-08 20:30:51 +08:00
三咲智子 Kevin Deng 6001fe8976
refactor(compiler-vapor): simplify generate prop modifier 2024-02-08 03:49:52 +08:00
三咲智子 Kevin Deng ce570751c6
refactor(compiler-vapor): remove vnode-related, adjust key override 2024-02-08 03:49:06 +08:00
三咲智子 Kevin Deng 3957dabb8c
fix(compiler-vapor): handle same-name shorthand edge case for in-DOM templates
fix https://github.com/vuejs/core/issues/10280
2024-02-08 03:24:50 +08:00
三咲智子 Kevin Deng b7e6e1eceb
fix(compiler-vapor): hoist template with inline option 2024-02-07 17:56:32 +08:00
三咲智子 Kevin Deng 99da2e5abe
refactor(compiler-vapor): remove runtime fragment
returns array directly
2024-02-07 17:29:04 +08:00
三咲智子 Kevin Deng 823e47ca62
refactor(compiler-vapor): simplify register template 2024-02-07 16:45:06 +08:00
三咲智子 Kevin Deng 68b0caf495
fix(compiler-vapor): convert to display string for each text 2024-02-07 04:40:49 +08:00
三咲智子 Kevin Deng 14813cec1e
refactor(compiler-vapor): combine interpolation & text 2024-02-07 04:29:53 +08:00
三咲智子 Kevin Deng 38865c7ca1
refactor: simplify event handler 2024-02-07 01:37:07 +08:00
三咲智子 Kevin Deng ef12b99d0c
refactor(compiler-vapor): code fragment with falsy value 2024-02-06 20:56:22 +08:00
三咲智子 Kevin Deng 9ffd4b6c75
refactor(compiler-vapor): simplify renderEffect with a single statement 2024-02-06 20:46:12 +08:00
三咲智子 Kevin Deng d10a1a3c08
refactor(compiler-vapor): hoist template generator 2024-02-06 20:34:06 +08:00
ygj6 c4a567b93d
test(compiler-vapor): v-bind="obj" (#119) 2024-02-06 20:26:55 +08:00
Rizumu Ayaka ba3ca6a304
feat(compiler-vapor): props merging (#118)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-02-06 02:35:52 +08:00
Rizumu Ayaka 75b0937d31
feat(compiler-vapor): complex identifier rewriting with vOn (#113)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-02-05 22:37:09 +08:00
三咲智子 Kevin Deng 2229d3ce20
fix(compiler-vapor): treat attribute as dynamic if has dynamic key prop 2024-02-05 03:28:32 +08:00
三咲智子 Kevin Deng 6d098b6871
feat(compiler-vapor): add source mapping for object key 2024-02-05 03:03:23 +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 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
三咲智子 Kevin Deng 21bec835f0
refactor(compiler-vapor): extract imports & unify context name 2024-01-31 18:00:16 +08:00
三咲智子 Kevin Deng 4062c6805a
refactor(compiler-vapor): remove loc in IR 2024-01-31 17:37:54 +08:00
三咲智子 Kevin Deng 2bc107a7a7
refactor(compiler-vapor): missing check in genOperation 2024-01-31 17:32:01 +08:00
三咲智子 Kevin Deng 3817bbf134
refactor(compiler-vapor): remove source in codegen context 2024-01-31 17:28:19 +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 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