How to use the vue-tsx-support.modifiers.enter function in vue-tsx-support

To help you get started, we’ve selected a few vue-tsx-support examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wonderful-panda / vue-tsx-support / test / tsc / basic / modifiers.tsx View on Github external
function modifiers() {
    <div>;
    <div> {})} /&gt;;
    <div>;
    <div> console.log(e.keyCode))} /&gt;;
    <div> console.log(e.keyCode))} /&gt;;
    <div>;
    <div>;
    <div>;
    <div>;
    <div> console.log(e.keyCode))} /&gt;;
    <div>;
    <div> console.log(e.keyCode))} /&gt;;

    // each modifiers can be specified only once
    <div>;    //// TS2339: 'prevent' does not exist
    <div>;    //// TS2339: 'left' does not exist
    <div>;    //// TS2339: 'left' does not exist
    <div>;    //// TS2339: 'enter' does not exist

    // key modifier can be specified only once
    <div>;    //// TS2339: 'esc' does not exist</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>