How to use the vue-tsx-support.modifiers.exact 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>;    //// TS2339: 'keys' does not exist
    <div>;    //// TS2339: 'enter' does not exist

    // mouse button modifier can be specified only once
    <div>;     //// TS2339: 'right' does not exist
    <div>;     //// TS2339: 'left' does not exist
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
github wonderful-panda / vue-tsx-support / test / tsc / basic / modifiers.tsx View on Github external
// key modifier and mouse button modifier can't be specified together
    <div>;     //// TS2339: 'middle' does not exist
    <div>;     //// TS2339: 'enter' does not exist

    // xxx and noxxx can't be specified together
    <div>;    //// TS2339: 'noctrl' does not exist
    <div>;    //// TS2339: 'ctrl' does not exist
    <div>;  //// TS2339: 'noshift' does not exist
    <div>;  //// TS2339: 'shift' does not exist
    <div>;      //// TS2339: 'noalt' does not exist
    <div>;      //// TS2339: 'alt' does not exist
    <div>;    //// TS2339: 'nometa' does not exist
    <div>;    //// TS2339: 'meta' does not exist
    // 'exact' and other modkey can't be specified together
    <div>;    //// TS2339: 'ctrl' does not exist
    <div>;    //// TS2339: 'exact' does not exist
    <div>;    //// TS2339: 'exact' does not exist
}
</div></div></div></div></div></div></div></div></div></div></div></div></div>
github wonderful-panda / vue-tsx-support / test / jest / modifiers.tsx View on Github external
render(): VNode {
        return (
          <div> spy(keyNames[e.keyCode]))}
          /&gt;
        );
      }
    });</div>