Skip to content

Instantly share code, notes, and snippets.

@oceangravity
Created February 16, 2022 22:27
Show Gist options
  • Save oceangravity/db3cc7aa4f3c18355ed6264d7722b247 to your computer and use it in GitHub Desktop.
Save oceangravity/db3cc7aa4f3c18355ed6264d7722b247 to your computer and use it in GitHub Desktop.
<template>
<div>Data: {{ data }}</div>
<button @mousedown="method"></button>
</template>
<script lang="ts" setup>
import { computed, ref } from 'vue'
const test = ref(100)
const data = computed(() => test.value + 200)
const method = () => {
return test
}
</script>
<style></style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment