[ci] yarn format

This commit is contained in:
FredKSchott
2021-07-20 04:07:49 +00:00
committed by GitHub Actions
parent 07e533402e
commit 50f82e1a53
46 changed files with 666 additions and 632 deletions

View File

@ -1,11 +1,11 @@
<template>
<div class="counter">
<button @click="subtract()">-</button>
<pre>{{ count }}</pre>
<button @click="add()">+</button>
<button @click="subtract()">-</button>
<pre>{{ count }}</pre>
<button @click="add()">+</button>
</div>
<div class="children">
<slot />
<slot />
</div>
</template>
@ -13,15 +13,15 @@
import { ref } from 'vue';
export default {
setup() {
const count = ref(0)
const add = () => count.value = count.value + 1;
const subtract = () => count.value = count.value - 1;
const count = ref(0);
const add = () => (count.value = count.value + 1);
const subtract = () => (count.value = count.value - 1);
return {
count,
add,
subtract
}
}
}
subtract,
};
},
};
</script>