* Support TS expression in vue SFC * Add changelog * Add `__ts_expression` * Add `__vue_ts_expression` * Add tests * Do not use `ast.walk` * Address review * Add `__vue_ts_event_binding` * Fix
11 lines
216 B
Vue
11 lines
216 B
Vue
<script setup lang="ts">
|
|
let x = 1;
|
|
function log(...args) {
|
|
console.log(...args);
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div @click="if (x === 1 as number) { log('hello') } else { log('nonhello') };">{{ x }}</div>
|
|
</template>
|