vue3-yuanma/packages/compiler-core
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
..
__tests__ fix(v-on): refactor DOM event options modifer handling 2020-07-14 11:48:05 -04:00
src fix(v-on): capitalize dynamic event names 2020-07-13 17:36:46 -04:00
api-extractor.json refactor(types): mark internal API exports and exclude from d.ts 2020-04-30 17:04:35 -04:00
index.js refactor: rename packages 2018-10-26 15:44:50 -04:00
LICENSE chore: license 2019-10-28 11:15:17 -04:00
package.json wip: compileScriptSetup full js support 2020-07-09 12:17:28 -04:00
README.md refactor: rename packages 2018-10-26 15:44:50 -04:00

@vue/compiler-core