vue3-yuanma/packages/compiler-core/__tests__
Evan You 380c6792d8 fix(v-on): refactor DOM event options modifer handling
fix #1567

Previously multiple `v-on` handlers with different event attach option
modifers (`.once`, `.capture` and `.passive`) are generated as an array
of objects in the form of `[{ handler, options }]` - however, this
makes it pretty complex for `runtime-dom` to properly handle all
possible value permutations, as each handler may need to be attached
with different options.

With this commit, they are now generated as event props with different
keys - e.g. `v-on:click.capture` is now generated as a prop named
`onClick.capture`. This allows them to be patched as separate props
which makes the runtime handling much simpler.
2020-07-14 11:48:05 -04:00
..
__snapshots__ fix(slots): differentiate dynamic/static compiled slots 2020-07-13 12:36:41 -04:00
transforms fix(v-on): refactor DOM event options modifer handling 2020-07-14 11:48:05 -04:00
codegen.spec.ts refactor: rename optimizeBindings -> optimizeImports 2020-07-10 20:43:52 -04:00
compile.spec.ts refactor(compiler): downgrade to source-map v6 for sync API 2019-12-13 12:56:31 -05:00
parse.spec.ts fix(compiler-core): support static slot names containing dots for 2.x compat 2020-06-12 16:09:27 -04:00
scopeId.spec.ts fix(compiler-core): hoist pure annotations should apply to all nested calls 2020-05-01 18:36:34 -04:00
testUtils.ts perf(compiler-core): treat v-for with constant exp as a stable fragment (#1394) 2020-06-17 16:13:14 -04:00
transform.spec.ts test: test updates for d40c642 2020-02-11 18:40:42 -05:00
utils.spec.ts chore: remove unused util function 2019-10-24 15:39:31 -04:00